/* Cinematic hero: a pinned stage whose video is scrubbed by scroll.
   The static gate below must match GATES in hero.js exactly. */
.hero { position: relative; height: 500vh; background: var(--ground-a); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ground-a); isolation: isolate; }
.hero__poster { position: absolute; inset: 0; background: var(--ground-a) url("assets/hero-ending.jpg") 72% 50% / cover no-repeat; }
.hero.is-scrub .hero__poster { background-image: url("assets/hero-poster.jpg"); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; opacity: 0; transition: opacity .7s var(--sc-ease-out, ease); transform: translateZ(0); will-change: transform; }
.hero__stage.video-ready video { opacity: 1; }
.hero__stage.video-failed video { display: none; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 62% 45%, rgba(5, 10, 20, 0) 40%, rgba(5, 10, 20, .6) 100%); }

/* loading ring: honest progress while the video streams in */
.ring { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem); width: 34px; height: 34px; color: var(--sc-accent); transition: opacity .5s; z-index: 3; transform: rotate(-90deg); }
.ring circle { stroke-dashoffset: var(--ld, 126); transition: stroke-dashoffset .2s linear; }
.hero__stage.video-ready .ring, .hero__stage.video-failed .ring { opacity: 0; }
.hero:not(.is-scrub) .ring { display: none; }

.hero__cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(1.25rem, 4vh, 2.5rem); z-index: 3; display: flex; align-items: center; gap: .7rem; color: var(--sc-ink-soft); transition: opacity .4s; }
.hero__cue::before { content: ""; width: 1px; height: 2.2rem; background: linear-gradient(var(--sc-accent), transparent); }
.hero__cue.is-gone { opacity: 0; }
.hero:not(.is-scrub) .hero__cue { display: none; }

/* action row: present in every frame of the scrub */
.hero__ctas { position: absolute; z-index: 3; left: var(--sc-gutter); bottom: clamp(1.25rem, 5vh, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin: 0; isolation: isolate; text-shadow: 0 1px 2px rgba(5, 10, 20, .95), 0 3px 12px rgba(5, 10, 20, .8); }
.hero__ctas::before { content: ""; position: absolute; inset: -1.6rem -3rem -1.6rem -3rem; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 80% at 40% 50%, rgba(5, 10, 20, .72), rgba(5, 10, 20, 0) 78%); }
.hero__ctas .btn, .hero__ctas a { text-shadow: none; }
.hero:not(.is-scrub) .hero__ctas { display: none; }

/* caption bands */
.hero__bands { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.band { position: absolute; left: var(--sc-gutter); top: 50%; width: min(46vw, 40rem); transform: translateY(-50%); opacity: 0; visibility: hidden; isolation: isolate; text-shadow: 0 1px 2px rgba(5, 10, 20, .95), 0 3px 14px rgba(5, 10, 20, .78), 0 10px 44px rgba(5, 10, 20, .8); }
.band.on { pointer-events: auto; }
.band::before { content: ""; position: absolute; inset: -22% -24% -22% -34%; z-index: -1; pointer-events: none; opacity: calc(.25 + .75 * var(--k, 1)); background: radial-gradient(ellipse 72% 62% at 42% 50%, rgba(5, 10, 20, .74) 0%, rgba(5, 10, 20, .46) 48%, rgba(5, 10, 20, 0) 76%); }
.band--arrival::before { inset: -30% -30% -30% -40%; background: radial-gradient(ellipse 74% 66% at 44% 50%, rgba(5, 10, 20, .7) 0%, rgba(5, 10, 20, .4) 52%, rgba(5, 10, 20, 0) 78%); }
.band .btn, .band a { text-shadow: none; }
.band__kick { display: block; margin-bottom: 1rem; color: var(--sc-accent); }
.band__h { font: 600 clamp(2.5rem, 1.5rem + 4.6vw, 5.4rem)/1.02 var(--sc-font-display); letter-spacing: -.02em; text-wrap: balance; }
.band__h--md { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); }
.band__sub { margin-top: 1.1rem; max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink); text-wrap: pretty; }
.band__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.6rem; }
.band .band__cta { opacity: clamp(0, (var(--k, 0) - .7) * 4, 1); }

/* band 1: blur to sharp. The soft copy is static blur, only opacity moves. */
.blur { position: relative; }
.blur__soft { position: absolute; inset: 0; filter: blur(12px); opacity: calc(1 - var(--k, 1)); pointer-events: none; }
.blur__sharp { opacity: var(--k, 1); }
/* band 2 and 3: words drift or rise into place from --k */
.w { display: inline-block; --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); }
.w--drift { transform: translateY(calc((1 - var(--kc)) * -26px)); }
.w--rise { transform: translateY(calc((1 - var(--kc)) * 30px)); }
.band .band__sub { opacity: clamp(0, (var(--k, 0) - .5) * 3, 1); }
.hero__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* static hero: composed copy over the ending frame */
.hero__static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; min-height: 100svh; }
  .hero video, .hero__bands, .ring, .hero__cue { display: none; }
  .hero__poster { background-position: 78% 24%; }
  .hero__static { display: grid; position: absolute; z-index: 2; left: var(--sc-gutter); right: var(--sc-gutter); bottom: clamp(2rem, 7vh, 4rem); gap: 1rem; text-shadow: 0 1px 2px rgba(5, 10, 20, .95), 0 3px 14px rgba(5, 10, 20, .8); }
  .hero__static::before { content: ""; position: absolute; inset: -60% -12% -12% -12%; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, .86) 46%, rgba(5, 10, 20, .94)); }
  .hero__static .band__h { font-size: clamp(2.2rem, 9vw, 3.6rem); }
}
/* phones and tall screens: the same scrub, captions anchored low over a vertical scrim */
@media (max-width: 720px), (orientation: portrait) {
  .hero { height: 440svh; }
  .hero video, .hero__poster { object-position: 80% 50%; background-position: 80% 50%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(5, 10, 20, .35) 0%, rgba(5, 10, 20, 0) 22%, rgba(5, 10, 20, 0) 40%, rgba(5, 10, 20, .86) 74%, rgba(5, 10, 20, .94) 100%); }
  .band { top: auto; bottom: clamp(7.5rem, 17svh, 9.5rem); left: var(--sc-gutter); right: var(--sc-gutter); width: auto; transform: none; }
  .band::before { inset: -40% -12% -18% -12%; background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, .55) 40%, rgba(5, 10, 20, .6)); }
  .band--arrival::before { inset: -40% -12% -18% -12%; background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, .6) 40%, rgba(5, 10, 20, .66)); }
  .band__h { font-size: clamp(1.9rem, 8.2vw, 2.7rem); }
  .band__h--md { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .band__sub { margin-top: .7rem; font-size: var(--sc-t-sm); max-width: none; }
  .band__kick { margin-bottom: .6rem; }
  .hero__ctas { left: var(--sc-gutter); right: var(--sc-gutter); bottom: clamp(1.1rem, 3.5svh, 2rem); gap: .6rem 1.25rem; font-size: var(--sc-t-sm); }
  .hero__ctas::before { inset: -1.2rem -1rem -1rem -1rem; background: linear-gradient(180deg, rgba(5, 10, 20, 0), rgba(5, 10, 20, .8)); }
  .hero__cue { display: none; }
  .ring { right: 1rem; bottom: auto; top: 1rem; }
}
@media (min-width: 721px) and (prefers-reduced-motion: reduce) and (orientation: landscape) {
  .hero__static { top: 50%; bottom: auto; transform: translateY(-50%); width: min(46vw, 40rem); right: auto; }
  .hero__static::before { inset: -30% -30% -30% -40%; background: radial-gradient(ellipse 72% 62% at 42% 50%, rgba(5, 10, 20, .74), rgba(5, 10, 20, 0) 76%); }
  .hero__poster { background-position: 72% 50%; }
}

/* numbers strip */
.stats { background: var(--ground-a); padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--sc-hairline); }
.stats__list { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) 2rem; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; }
.stats__list li { list-style: none; display: grid; gap: .5rem; align-content: start; }
.stats__list b { display: block; font: 600 clamp(2.6rem, 1.6rem + 4vw, 5rem)/1 var(--sc-font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats__d { color: var(--sc-ink-soft); max-width: 22ch; font-size: var(--sc-t-sm); line-height: 1.4; }
@media (max-width: 520px) { .stats__list { gap: 1rem; } .stats__list b { font-size: 2.2rem; } .stats__d { font-size: var(--sc-t-xs); } }

/* the one interactive moment: hold to light the route */
.hold { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); border: 1px solid var(--sc-accent); border-radius: var(--sc-r-md); background: transparent; color: var(--sc-ink); font: 500 var(--sc-t-sm)/1 var(--sc-font-text); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.hold__fill { position: absolute; inset: 0; background: var(--sc-accent); opacity: .28; transform: scaleX(var(--hp, 0)); transform-origin: left; }
.hold__label { position: relative; }
.hold.is-done { border-color: var(--sc-hairline-strong); cursor: default; }
.tl.armed:not(.is-lit)::before { opacity: .25; }
.tl.armed:not(.is-lit) li::before { border-color: var(--mute); }
.tl.armed li::before, .tl.armed::before { transition: opacity .6s var(--sc-ease-out, ease), border-color .6s var(--sc-ease-out, ease), background .6s; }
.tl.is-lit li.lit::before { background: var(--sc-accent); border-color: var(--sc-accent); box-shadow: 0 0 0 6px var(--accent-muted, rgba(52, 227, 176, .22)); }
.tl.is-lit::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tl.armed li::before, .tl.armed::before { transition: none; } .hold__fill { transition: none; } }
