/* ─────────────────────────────────────────────────────────────────────────────
   The baseball hero.

   A poster, laid out on a grid, that happens to be interactive. The reading
   order is deliberate and the sizes enforce it: the player's name is the
   largest thing on the page, the ball is the counterweight, the phone is the
   object you reach for, and everything else is small.

   The ball sits BEHIND the type and in front of the ground, overlapping both.
   That overlap is the whole composition — a ball floating in clear space
   beside a headline would be a stock illustration; a headline cutting across
   a ball is a designed page.
   ──────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(96px, 14vh, 150px) clamp(60px, 9vh, 110px);
}

/* Layers of the hero, back to front. */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* A vast ghosted word anchoring the background. Pure graphic furniture. */
.hero-ghost {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-weight: 700;
  /* TOUCHDOWN is nine characters where WALK-UP is seven, so the size is
     capped against the viewport width rather than set from the shorter word. */
  font-size: min(clamp(9rem, 26vw, 26rem), 15vw);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.06;
  white-space: nowrap;
  user-select: none;
}

/* The radiating bars canvas. */
.hero-viz { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* The giant ball. */
.hero-obj {
  /* The clear quarter: right of the headline, left of the device, above the
     barrier. Nothing else in the composition occupies it, and the blast
     rings need room on both sides or the object reads as a drawing of a
     stereo rather than one that is playing. */
  position: absolute;
  z-index: 2;
  width: clamp(185px, 23vw, 330px);
  left: 42%;
  top: 9%;
  pointer-events: none;
}

/* Night only. On the poster ground the object is flat by definition — a
   drop shadow and a brightness knock are lighting, and there is none. */
:root[data-art="night"] .hero-obj {
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.7)) brightness(0.92);
}
.hero-obj svg { width: 100%; height: auto; }

.hero-in {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

/* ── The type block ───────────────────────────────────────────────────────── */
.hero-copy { min-width: 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 2vw, 24px);
}
.hero-kicker .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 60%, transparent);
}
.hero-kicker.is-live .dot { animation: livePulse 1.6s var(--e-io) infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 55%, transparent); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* The name. The biggest thing on the page, set tight and stacked. */
.hero-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-mega);
  line-height: 0.82;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0;
}
.hero-name span { display: block; }
/* Set per sport by Scene from the poster palette — see poster.js. */
.hero-name .ln2 { color: var(--scene-name, var(--hot)); }

/* The jersey numeral, set as a graphic beside the name. */
.hero-num {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(14px, 2vw, 22px);
}
.hero-num b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.76;
  color: rgba(247, 247, 250, 0.06);
  -webkit-text-stroke: 2.5px rgba(247, 247, 250, 0.42);
  font-variant-numeric: tabular-nums;
}
.hero-num .meta { padding-bottom: 0.5em; }
.hero-num .meta span {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-num .meta strong { font-size: var(--t-md); color: var(--ink); font-weight: 600; }

/* ── The now-playing strip: the scoreboard ───────────────────────────────── */
.np {
  margin-top: clamp(22px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--g-1);
  box-shadow: inset 0 0 0 1px var(--line);
  max-width: 580px;
  transition: box-shadow var(--t-2) var(--e-out);
}
.np.is-live { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 55%, transparent); }
.np-art {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: var(--g-3);
  background-size: cover;
  display: grid; place-items: center;
  overflow: hidden;
}
.np-art svg { width: 66%; height: auto; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.32)); }
.np-text { min-width: 0; }
.np-text .lbl {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3); display: block;
}
.np-text .ttl {
  font-size: var(--t-md); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-start {
  font-family: var(--f-display);
  font-size: 1.9rem; line-height: 1;
  color: var(--cool);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.np-start span {
  display: block; font-family: var(--f-body); font-size: 9.5px;
  letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase;
}

/* The strip waveform under it. */
.np-wave { grid-column: 1 / -1; height: 34px; min-height: 34px; position: relative; }
.np-wave canvas { position: absolute; inset: 0; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }

/* OUT OF FLOW, deliberately. The copy column's vertical rhythm is tuned
   against the painted horizon — the rail band runs 65–73.5% of the hero and
   has to land in the gap under the number block. Adding a row of chips to
   the top of that column pushed everything down 5% and put the horizon
   straight through "WALK-UP STARTS AT". The chips sit over the scene
   instead, under the top bar, where they cost the composition nothing. */
/* Fifteen sports. Wrapped, they took two rows and shoved the headline down;
   this is one row that scrolls, with the gutter preserved at both ends. */
.hero-sports {
  position: absolute;
  top: clamp(58px, 9vh, 96px);
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: max(var(--gut), calc(50% - var(--max) / 2 + var(--gut)));
  -webkit-mask-image: linear-gradient(90deg, #000 0 94%, transparent);
          mask-image: linear-gradient(90deg, #000 0 94%, transparent);
}
.hero-sports::-webkit-scrollbar { display: none; }
.hero-sport {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(13, 14, 20, 0.5);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.hero-sport:hover { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.hero-sport span { font-size: 1.05em; line-height: 1; filter: grayscale(1) opacity(0.75); }
.hero-sport.is-on { background: var(--p-ink, #14151C); color: #fff; box-shadow: none; }
.hero-sport.is-on span { filter: none; }

/* ── The call to action ───────────────────────────────────────────────────────
   This was a grey line of text at the bottom of the copy column, sitting on
   the darkest part of the field. It was the only thing telling a visitor
   what to do and it could not be read. It is a solid pill now, in the
   poster's own ink, with an arrow aimed at the device — and it steps aside
   the moment something plays, because by then it is in the way.
   ───────────────────────────────────────────────────────────────────────────── */
.hero-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  /* Something upstream sets wrap, and at 375px the icon and the text each
     took a line of their own inside the pill. The TEXT wraps; the parts
     do not. */
  flex-wrap: nowrap;
  gap: 11px;
  padding: 10px 17px 12px 14px;
  /* Four different corners, off-axis. The ink block has to stay — this sits
     on a painted scene and plain type on it could not be read, which is why
     the pill existed in the first place — but a 999px pill in Inter reads as
     a web component dropped on a poster. This is the same contrast, scrawled.
     Per-corner values, not a token: a uniform radius is the thing it is
     deliberately not. */
  border-radius: 20px 26px 19px 25px / 24px 18px 26px 20px;
  rotate: -1.1deg;
  background: var(--p-ink, #14151C);
  color: var(--p-cream, #F8F6EC);
  font-family: var(--f-mark);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.34;
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.3);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.hero-cta-ico {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--p-name, var(--hot));
  color: var(--p-ink, #14151C);
  flex: none;
}
.hero-cta-ico svg { width: 15px; height: 15px; }
/* Pressed. The callout has said its piece. */
.hero-cta.is-done { opacity: 0.32; transform: scale(0.97); }

/* ── The drawn arrow ──────────────────────────────────────────────────────
   One marker stroke from the scrawl to the control the phone is pulsing.
   Positioned and shaped entirely by _placeAim() in kit/hero.js, which sets
   the viewBox to this box's own pixel size — so the user units here ARE CSS
   pixels and the stroke never distorts.
   ──────────────────────────────────────────────────────────────────────── */
.hero-aim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;              /* over the device: the head stops at its edge */
  pointer-events: none;    /* it points at a button, it is not one */
  overflow: visible;
  /* The same pen as the scrawl — poster ink, cased in poster cream. The
     accent was the first choice and it failed by sport: coral vanished on
     the orange dirt band, hockey's red sat on a navy casing and read as one
     dark line, and football's accent IS cream. */
  color: var(--p-ink, #14151C);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}
.hero-aim.is-on { opacity: 1; }

/* ONE closed shape — shaft and head traced as a single polygon by
   _placeAim — filled in ink and stroked in cream. `paint-order: stroke`
   puts the stroke down first so the fill covers its inner half and what
   shows is a casing OUTSIDE the shape: one continuous outline around the
   whole arrow. It replaced four paths and two outlines whose caps did not
   line up, which left the tail ending in a pale stub. */
.hero-aim path {
  fill: currentColor;
  stroke: var(--p-cream, #F8F6EC);
  stroke-width: 6;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* The nudge runs along the arrow's own tangent — set per layout in JS — so
   it reads as pointing harder rather than drifting in some fixed direction. */
.hero-aim g { animation: aimNudge 1.3s ease-in-out infinite; }
@keyframes aimNudge {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(var(--aim-dx, 0), var(--aim-dy, 0)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aim g { animation: none; }
}

/* ── The phone slot ───────────────────────────────────────────────────────── */
.hero-phone { position: relative; z-index: 4; display: flex; justify-content: center; }

/* A soft pool behind the device so it reads as a lit object on the page. */
.hero-phone::before {
  content: "";
  position: absolute;
  inset: -12% -22%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hot) 24%, transparent), transparent 72%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}

/* ── Kinetic type: the beat scales a few chosen things, not everything ───── */
.beat-scale { will-change: transform; transform-origin: left center; }

/* ── Mobile ───────────────────────────────────────────────────────────────
   A different composition, not a squeezed one. Portrait has no room for a
   two-column poster, so the order becomes a vertical read — label, name,
   number, the now-playing card, then the phone — with the ball kept as a
   cropped graphic behind the type rather than demoted to a small picture in
   the corner. The first pass let the ball, the ghost word and the hint all
   land in the same band and they collided.
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* ONE SCREEN. The device is the thing you reach for and the poster is what
     answers, so a layout that puts four hundred pixels between them is not a
     stacked poster, it is two pages. (Dan, 2026-11-20: "You kind of need to
     see the phone and the yellow area on one screen without scrolling.")

     Everything below is the arithmetic of that. The hero is exactly the screen
     under the nav, the copy takes what it needs, and the device takes the
     rest — sized by HEIGHT off the leftover grid row, which works because the
     frame carries its own aspect-ratio and everything inside the screen is in
     cqw, so it scales as one piece at any size. Nothing here is measured in
     JavaScript and nothing reflows after load.

     The sport rail above the hero is 60-odd pixels that scroll away, so the
     first screen is short by that much until the smallest flick — which is
     also when Safari collapses its URL bar and hands back about the same
     amount. The two very nearly cancel. */
  .hero,
  .page .hero {
    min-height: calc(100svh - var(--navh, 56px));
    padding-block: 16px 12px;
    align-items: stretch;
  }
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    /* The copy is auto; the device gets what is left. minmax(0, 1fr) rather
       than 1fr, or the row refuses to shrink below the phone's natural size
       and the whole point is lost. */
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    min-height: 0;
  }
  .hero-copy { text-align: left; }

  /* The ball is a cropped graphic in the top corner, behind the name. It sits
     higher and smaller than it did: the copy block is half the height it was,
     so the old position put it straight through the instruction. */
  .hero-obj {
    position: absolute;
    width: min(40vw, 158px);
    left: auto;
    right: -7vw;
    top: 6px;
    bottom: auto;
    translate: none;
    opacity: 0.78;
  }

  .hero-ghost {
    top: 10px;
    left: -4vw;
    transform: none;
    font-size: 19vw;
    opacity: 0.07;
  }

  .hero-kicker { margin-bottom: 6px; min-height: 1.25em; }
  .hero-kicker .pa { font-size: 11px; letter-spacing: 0.12em; }

  /* line-height is 0.82, so the second line's glyphs sit below their own
     box. With the old margins that spill had somewhere to go; at these it
     landed on the instruction pill.

     The min-height is what keeps the device still. The device is now sized
     by the row the copy leaves it, and on the thirteen sports that open with
     no name on the poster, the first press puts one there — so without two
     lines reserved from the start, pressing GOAL would shrink the phone
     under your thumb at the moment you pressed it. */
  .hero-name {
    font-size: 11.2vw;
    /* 0.3em of air under the name, in em so it tracks the three font sizes
       this block and the two height bands below set. The ink sits about
       0.18em below its own line box at line-height 0.82, and the scrawl
       under it is rotated, so its left corner rides up another few pixels.
       At 0.1em those two overhangs met and clipped the surname. */
    padding-bottom: 0.3em;
    min-height: calc(1.64em + 0.3em);
  }

  /* FOLDED INTO THE STRIP BELOW, not deleted by accident. The jersey number
     and "Walk-up song starts at 0:18" said the same thing the now-playing
     strip was already saying two inches lower — the poster carried 0:18
     twice and the pair cost 227px on a screen that has none to spare. */
  .hero-num { display: none; }

  .hero-cta {
    margin-top: 10px;
    font-size: 0.78rem;
    /* Two lines held open. The walkthrough rewrites this text at every step
       and the device is sized by the row the copy leaves it, so a step that
       wrapped to one line would grow the phone under the thumb that just
       pressed something. */
    box-sizing: border-box;
    /* Three lines. "Press TOUCHDOWN — the team song, or the kid who
       scored." needs them in a marker face, and the walkthrough rewrites
       this text at every step — a step that wrapped to fewer would grow
       the phone under the thumb that just pressed something. */
    min-height: calc(4.02em + 16px);
    line-height: 1.3;
    gap: 9px;
    padding: 8px 13px 8px 11px;
    border-radius: 20px;
  }
  .hero-cta-ico { width: 22px; height: 22px; }
  .hero-cta-ico svg { width: 13px; height: 13px; }

  /* One row: artwork, song, start point. The start used to wrap to a line of
     its own under the title, which is what made this card 170px tall. */
  .np {
    margin-top: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 7px 11px;
    max-width: none;
  }
  .np-art { width: 32px; height: 32px; border-radius: 7px; }
  .np-text .lbl { font-size: 9px; letter-spacing: 0.18em; }
  .np-text .ttl { font-size: 0.95rem; }
  .np-start { grid-column: 3; grid-row: 1; font-size: 1.3rem; text-align: right; }
  .np-start span { font-size: 8.5px; }
  .np-wave { height: 16px; min-height: 16px; }

  /* The device takes the leftover row and is sized by it. `width: auto` is
     resolved from the frame's own aspect-ratio, and .phone-screen is a
     cqw container, so the whole UI scales rather than overflowing. */
  .hero-phone {
    min-height: 0;
    align-items: flex-end;
    justify-content: center;
    margin-top: 0;
  }
  .hero-phone .phone {
    height: 100%;
    width: auto;
    /* The frame carries 10px of padding as its bezel. Content-box would add
       that on top of the row it was given and push the home indicator off
       the bottom of the screen — 20px, which is the whole margin here. */
    box-sizing: border-box;
    /* A floor, because a legible phone that runs a little past the fold beats
       an unreadable one that fits. It binds on short screens only. */
    min-height: 380px;
  }
  .hero-phone::before { inset: -5% -12%; }
}

@media (max-width: 520px) {
  .hero-obj { width: min(44vw, 150px); right: -9vw; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* Short screens in portrait, in two steps. The device has a floor under it,
   so past a point the copy is what gives — and it gives up the things the
   phone beside it is already showing, in order of least loss.

   First the strip's waveform, which the device draws its own copy of two
   inches below. A 393x852 iPhone with Safari's bars showing lands here, so
   this band is the common case, not the edge one. */
@media (max-width: 980px) and (max-height: 800px) {
  .hero-name { font-size: 9.8vw; }
  /* The waveform STAYS. It was the first thing cut when the one-screen
     budget was tight — "the device draws its own copy two inches below" —
     and Dan asked for it back on the poster's strip, which is the one
     readout that is always above the fold. 12px instead of 16 is the whole
     saving it needs to be. (2026-11-20.) */
  .np-wave { height: 12px; min-height: 12px; }
  .np { padding: 8px 11px; }
  .hero-cta { margin-top: 8px; }
}

/* Then the typed PA line and the ghost word, which are atmosphere. */
@media (max-width: 980px) and (max-height: 700px) {
  .hero-kicker { display: none; }
  .np-wave { height: 10px; min-height: 10px; }
  .hero-ghost { display: none; }
  .hero-name { font-size: 9.2vw; }
}

/* Wide and short — a landscape phone. The vertical stack has nowhere left to
   go, so the poster goes back BESIDE the device the way it does on a desktop,
   which is the shape this screen actually wants. `.page .hero` has to be named
   or the portrait block above out-specifies this one and the hero demands a
   full screen it does not have. */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 620px) {
  .hero,
  .page .hero { min-height: auto; padding-block: 68px 24px; align-items: center; }
  .hero-in {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 26px;
    align-items: center;
  }
  .hero-kicker { display: inline-flex; }
  .hero-name { font-size: clamp(2.2rem, 6.4vw, 3.4rem); }
  .hero-obj { display: none; }
  .hero-phone { align-items: center; }
  /* Sized by WIDTH here, not by the screen. A 360px-tall window has no
     height to divide up — fitting the device to it produced a 114px phone
     nobody could read — so landscape keeps a legible device and gives up the
     one-screen rule, which is the right trade for the rarest orientation. */
  .hero-phone .phone {
    height: auto;
    width: min(230px, 32vw);
    min-height: 0;
  }
}


/* ── The typed PA line ────────────────────────────────────────────────────
   The announcement used to be spoken. It is typed into the kicker row now,
   which is why that row reserves its height: a line growing one character
   at a time must not push the headline down on every keystroke.
   ──────────────────────────────────────────────────────────────────────── */
.hero-kicker { min-height: 1.5em; align-items: center; }
.hero-kicker .pa { font-size: var(--t-sm); letter-spacing: 0.14em; }

.tw { display: inline-flex; align-items: center; }
.tw-txt { white-space: pre; }
.tw-car {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  background: currentColor;
  opacity: 0;
}
.tw.is-on .tw-car { animation: twBlink 1.05s steps(1) infinite; }
@keyframes twBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── The boombox, blasting ────────────────────────────────────────────────
   Rings scale from each speaker's own centre, which needs an explicit
   origin in viewBox units — the default would scale each arc around its own
   bounding box and the rings would fly apart instead of radiating.
   ──────────────────────────────────────────────────────────────────────── */
.hero-obj .eq-blast { opacity: 0; transition: opacity 260ms var(--e-out); }
.hero-obj.is-blasting .eq-blast { opacity: 1; }

.hero-obj [data-ring] path { transform-box: view-box; }
.hero-obj [data-ring="l"] path { transform-origin: 120px 208px; }
.hero-obj [data-ring="r"] path { transform-origin: 280px 208px; }

.hero-obj.is-blasting [data-ring] path {
  animation: blastOut 0.82s linear infinite;
}
/* NEGATIVE delays, not positive. A positive stagger still leaves all three
   rings at the same point in the cycle most of the time, and because the
   keyframe spends its tail fading out the blast read as an occasional
   flicker. Starting each ring a third of a cycle in means there is always
   one leaving the cabinet, one mid-flight and one dying. */
.hero-obj.is-blasting [data-ring] path:nth-child(2) { animation-delay: -0.273s; }
.hero-obj.is-blasting [data-ring] path:nth-child(3) { animation-delay: -0.546s; }

@keyframes blastOut {
  0%   { opacity: 0;    scale: 0.88; }
  18%  { opacity: 1;    scale: 0.96; }
  62%  { opacity: 0.75; scale: 1.05; }
  100% { opacity: 0;    scale: 1.13; }
}

.hero-obj .eq-cone { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .hero-obj.is-blasting [data-ring] path { animation: none; opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   THE SHOUT. An effect on the phone used to flash a word over the phone's
   own screen, which covered the control you had just pressed. It belongs
   here, on the poster, at the size the word deserves — and on the left,
   where the headline already lives, so it reads as the page's own voice
   rather than a notification.
   ──────────────────────────────────────────────────────────────────────────── */
.hero-shout {
  position: absolute;
  left: max(var(--gut), calc(50% - var(--max) / 2 + var(--gut)));
  top: 44%;
  z-index: 6;
  font-family: var(--f-display);
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--p-cream, #F8F6EC);
  -webkit-text-stroke: 3px var(--p-ink, #14151C);
  paint-order: stroke fill;
  text-shadow: 10px 10px 0 var(--sh, #FD6A3F);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6) rotate(-5deg);
  transform-origin: left center;
}
.hero-shout.is-on { animation: shoutPop 1.1s cubic-bezier(0.18, 1.5, 0.35, 1) both; }
@keyframes shoutPop {
  0%   { opacity: 0; transform: scale(0.45) rotate(-12deg); }
  16%  { opacity: 1; transform: scale(1.12) rotate(-3deg); }
  26%  { transform: scale(0.98) rotate(-6deg); }
  34%  { transform: scale(1.03) rotate(-4deg); }
  44%  { transform: scale(1) rotate(-5deg); }
  78%  { opacity: 1; transform: scale(1) rotate(-5deg); }
  100% { opacity: 0; transform: scale(1.12) rotate(-5deg); }
}

/* The PA line lands rather than appearing. It is the one piece of copy on
   the page that is the product talking. */
.hero-kicker.is-hit { animation: paHit 0.62s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes paHit {
  0%   { transform: scale(0.94) translateX(-6px); }
  18%  { transform: scale(1.06) translateX(3px); }
  34%  { transform: scale(1) translateX(-2px); }
  48%  { transform: scale(1.02) translateX(2px); }
  62%  { transform: scale(1) translateX(-1px); }
  100% { transform: none; }
}
.hero-kicker.is-hit .dot { animation: paDot 0.62s ease-out both; }
@keyframes paDot {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
  40%  { transform: scale(1.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px transparent; }
}

@media (max-width: 980px) {
  .hero-shout { top: 30%; font-size: clamp(3rem, 16vw, 7rem); -webkit-text-stroke-width: 2px;
    text-shadow: 6px 6px 0 var(--sh, #FD6A3F); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shout.is-on { animation: none; opacity: 1; transform: scale(1) rotate(-5deg); }
  .hero-kicker.is-hit, .hero-kicker.is-hit .dot { animation: none; }
}

/* ── The poster at rest ───────────────────────────────────────────────────
   Thirteen of the fifteen sports open with no name on the poster. Most
   players never score a touchdown or a goal, so leading with one kid's name
   promises what the sport does not deliver — and the name is not the
   headline anyway, the thing you just pressed is. Baseball and softball are
   the exceptions, because every batter walks up.

   The name block collapses rather than sitting empty, so the instruction and
   the now-playing strip rise to fill the space instead of a hole opening in
   the middle of the poster. */
.hero.is-resting .hero-name { display: none; }
.hero.is-resting .hero-num { margin-top: 0; }
.hero.is-resting .hero-num b { display: none; }
.hero.is-resting .hero-num .meta { margin-top: clamp(8px, 1.4vw, 16px); }

/* Reserved, not drawn — PORTRAIT ONLY, and it has to sit after the rule it
   overrides rather than up in the portrait block, which loses on source
   order at equal specificity.

   On desktop the resting poster hides its name block outright and the
   device, in its own column, never notices. In portrait the device lives on
   whatever row the copy leaves it, so a hidden name that appears on the
   first press takes 34px off the phone at the exact moment you press it.
   The thirteen resting sports trade a little device size for a device that
   does not move under your thumb. */
@media (max-width: 980px) {
  .hero.is-resting .hero-name { display: block; visibility: hidden; }
}

/* A button's own name, once something has been pressed. Board labels run
   longer than a surname ("TOUCHDOWN", "POWER PLAY"), so the word steps down
   a size and is allowed to wrap rather than running off the poster. */
@media (min-width: 981px) {
  .hero.is-word .hero-name {
    font-size: clamp(3rem, 1.6rem + 7.4vw, 9rem);
    line-height: 0.86;
  }
}
/* Portrait keeps the band size for a pressed word too. This rule used to
   apply at every width, out-specifying the portrait block, so pressing a
   board button grew the name block from 77px to 106px — and the device,
   which lives on the row the copy leaves it, was already on its floor and
   the hero spilled past the fold instead. */
.hero.is-word .hero-name span { overflow-wrap: anywhere; }
.hero.is-word .hero-num b { display: none; }


/* The scrawl's last job: the way into the song-requests demo. Lit rather
   than dimmed, because at this point it is the only thing on the poster
   still asking for anything. See _endTour in kit/hero.js. */
.hero-cta-down { display: none; flex: none; }
.hero-cta-down svg { width: 17px; height: 17px; }
.hero-cta.is-next { cursor: pointer; }
.hero-cta.is-next .hero-cta-down {
  display: grid;
  place-items: center;
  color: var(--p-name, var(--hot));
  animation: ctaDown 1.5s ease-in-out infinite;
}
@keyframes ctaDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
.hero-cta.is-next:hover { filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) {
  .hero-cta.is-next .hero-cta-down { animation: none; }
}
