/* ===================================================================
   Animations — hero, reveals, marquee, glow
   =================================================================== */

/* ---- Scroll reveal (driven by IntersectionObserver in main.js) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* Diagonal pinstripe texture */
.hero-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 44px,
    rgba(255,255,255,.022) 44px,
    rgba(255,255,255,.022) 45px
  );
}

/* Two-column inner layout */
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* LEFT: text */
.hero-content { position: relative; z-index: 2; }

.hero-kicker {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-sport); font-weight: 600;
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.38); margin-bottom: 1.6rem;
}
.hero-kicker::before {
  content: ""; width: 32px; height: 1px;
  background: rgba(255,255,255,.3); flex-shrink: 0;
}

.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { margin: 0 0 2.2rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* RIGHT: baseball diamond SVG */
.hero-diamond {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-diamond svg { width: 100%; max-width: 460px; }

/* Stroke draw-on animations */
.diamond-path {
  stroke-dasharray: 1080; stroke-dashoffset: 1080;
  animation: drawPath 2s cubic-bezier(.4,0,.2,1) forwards .6s;
}
.diamond-arc {
  stroke-dasharray: 430; stroke-dashoffset: 430;
  animation: drawPath 1.2s cubic-bezier(.4,0,.2,1) forwards 1.8s;
}
.diamond-mound {
  stroke-dasharray: 180; stroke-dashoffset: 180;
  animation: drawPath .9s cubic-bezier(.4,0,.2,1) forwards 2.2s;
}
@keyframes drawPath { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-diamond { display: none; }
}
@media (max-width: 640px) {
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-sport); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue .dot { width: 22px; height: 36px; border: 2px solid var(--border-bright); border-radius: 12px; position: relative; }
.scroll-cue .dot::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; background: rgba(255,255,255,.7); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.7s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---- Stats counter bar ---- */
.stats-bar {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, #060608, #0b0b0e);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.8rem, 4vw, 2.8rem) 1rem; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stat .label { font-family: var(--font-sport); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: .5rem; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
}

/* ---- Marquee (brand strip) ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg); padding-block: 1.1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .05em; color: var(--text-dim); display: flex; align-items: center; gap: 3.5rem; white-space: nowrap; }
.marquee-item::after { content: "✦"; color: var(--pink); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-logo, .marquee-track, .scroll-cue .dot::after { animation: none !important; }
}
