/* ONE LAP · vertical slice styles (concept B). Editorial, restrained instrumentation; the scene carries the drama. */
:root {
  --asphalt: #07090C; --strip: #CFE8EC; --white: #F1F3F5; --red: #FF3B30; --mute: rgba(241,243,245,.62); --faint: rgba(241,243,245,.34);
  --wide: "Anybody", "Arial Black", sans-serif; --ui: "Instrument Sans", "Helvetica Neue", sans-serif;
  --gutter: clamp(22px, 3vw, 44px);
}
html { background: var(--asphalt); color: var(--white); font-family: var(--ui); }
body { background: var(--asphalt); }
a { color: inherit; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: flex-start; padding: var(--gutter); pointer-events: none; }
.top a { pointer-events: auto; text-decoration: none; }
.mark { font-family: var(--wide); font-variation-settings: "wdth" 150, "wght" 700; font-size: 14px; letter-spacing: .32em; }
.mark small { display: block; margin-top: 7px; font-family: var(--ui); font-variation-settings: normal; font-size: 10px; letter-spacing: .14em; font-weight: 400; color: var(--mute); }
.req { font-size: 13px; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; }
.req::after { content: ""; width: 30px; height: 1px; background: var(--red); transition: width .25s ease; }
.req:hover::after, .req:focus-visible::after { width: 46px; }

/* the lap: a long scroll track with a sticky stage */
.lap { position: relative; height: 900vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--asphalt); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback[hidden] { display: none; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 10vw; background: radial-gradient(ellipse at 50% 42%, #1b2a3a, #07090C 70%); font-size: 20px; }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: var(--flash, 0); background: radial-gradient(ellipse at 50% 42%, rgba(214,228,240,.9), rgba(120,150,190,.35) 45%, transparent 75%); mix-blend-mode: screen; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='5'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"); }
.curtain { position: absolute; inset: 0; background: var(--asphalt); opacity: 0; pointer-events: none; transition: opacity .16s linear; }
.curtain.on { opacity: 1; }

/* chapters */
.chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter { position: absolute; left: var(--gutter); pointer-events: auto; transform-origin: 20% 50%; will-change: opacity, transform; }
.chapter[inert] { pointer-events: none; }
.chapter:not(.hero) { opacity: 0; } /* first paint shows only the hero; JS takes over choreography */
.hero { top: 24vh; max-width: min(620px, 80vw); }
.hero .kicker, .chapter .k { margin: 0 0 16px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.chapter .k b { color: var(--red); font-weight: 500; }
.hero h1 { margin: 0; font-family: var(--ui); font-weight: 400; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.025em; }
.hero .lede { margin: 18px 0 0; font-size: 18px; color: var(--strip); }
.skip { display: inline-block; margin-top: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--faint); padding: 6px 0; }
.skip:hover, .skip:focus-visible { color: var(--white); border-color: var(--white); }

.c-launch, .c-tunnel, .c-crest { top: 27vh; }
.word { margin: 0; font-family: var(--wide); font-variation-settings: "wdth" 92, "wght" 800; font-size: calc(clamp(64px, 10.5vw, 190px) * var(--ws, 1)); line-height: .84; letter-spacing: -.015em; text-transform: uppercase;
  text-shadow: 0 0 40px rgba(7,9,12,.35); }
.line { margin: 26px 0 0; max-width: 34ch; font-size: 19px; line-height: 1.38; }
.line span { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.c-crest .word { font-variation-settings: "wdth" 92, "wght" 300; }

.c-finish { top: 22vh; max-width: min(700px, 86vw); }
.c-finish h2 { margin: 0; font-family: var(--ui); font-weight: 400; font-size: clamp(30px, 3.5vw, 54px); line-height: 1.06; letter-spacing: -.022em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 30px; }
.cta { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 15px; text-decoration: none; }
.cta::after { content: ""; width: 36px; height: 1px; background: var(--red); transition: width .25s ease; }
.cta.alt::after { background: var(--strip); }
.cta:hover::after, .cta:focus-visible::after { width: 60px; }
.fine { margin: 26px 0 0; font-size: 11px; letter-spacing: .12em; color: var(--mute); }
.c-finish:focus { outline: none; }

/* instruments: editorial telemetry, not a game HUD */
.instruments { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.is-moving .instruments { opacity: 1; }
.lapt { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) - 4px); }
.lapt .lbl { font-size: 10px; letter-spacing: .22em; color: var(--mute); }
.lapt .t { margin-top: 8px; font-family: var(--wide); font-variation-settings: "wdth" 100, "wght" 400; font-variant-numeric: tabular-nums; font-size: 30px; line-height: 1; }
.lapt .t i { font-style: normal; color: var(--red); }
.throttle { position: absolute; right: var(--gutter); top: 50%; height: 26vh; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.throttle .bar { position: relative; flex: 1; width: 1px; background: rgba(241,243,245,.16); }
.throttle i { position: absolute; left: -1px; right: -1px; bottom: 0; top: 0; background: linear-gradient(to top, var(--strip), var(--red)); transform-origin: 50% 100%; transform: scaleY(0); }
.throttle span { font-size: 9px; letter-spacing: .24em; color: var(--mute); writing-mode: vertical-rl; transform: rotate(180deg); }
.mini { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - 6px); width: 210px; height: auto; overflow: visible; }
.mini path { fill: none; stroke: rgba(241,243,245,.32); stroke-width: 1.2; }
.mini #mini-marks circle { fill: rgba(241,243,245,.55); }
.mini #mini-marks text { font: 8px var(--ui); fill: rgba(241,243,245,.55); letter-spacing: .08em; }
.mini #mini-dot { fill: var(--red); }

.cue { position: absolute; left: 50%; bottom: calc(var(--gutter) + 6px); transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: opacity .5s ease; }
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--white), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.is-moving .cue { opacity: 0; }
.ph-tag { position: absolute; right: var(--gutter); top: calc(var(--gutter) + 44px); margin: 0; max-width: 250px; text-align: right; font-size: 9px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.slice-end { min-height: 40vh; display: grid; place-items: center; padding: 10vh var(--gutter); background: var(--asphalt); border-top: 1px solid rgba(241,243,245,.08); }
.slice-end p { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* mobile: designed, not squeezed */
.is-mobile .lap { height: 640vh; }
@media (max-width: 700px) {
  .hero { top: 20svh; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 16px; }
  .c-launch, .c-tunnel, .c-crest { top: 19svh; right: var(--gutter); }
  .word { font-size: calc(17vw * var(--ws, 1)); }
  .line { font-size: 16px; max-width: 30ch; }
  .c-finish { top: 18svh; }
  .c-finish h2 { font-size: 28px; }
  .throttle { top: auto; bottom: 96px; right: var(--gutter); height: 1px; width: 38vw; transform: none; flex-direction: row; }
  .throttle .bar { height: 1px; width: 100%; flex: 1; }
  .throttle i { left: 0; top: -1px; bottom: -1px; right: 0; transform-origin: 0 50%; background: linear-gradient(to right, var(--strip), var(--red)); }
  .throttle span { display: none; }
  .lapt .t { font-size: 24px; }
  .mini { width: 130px; top: 76px; right: 12px; bottom: auto; }
  .ph-tag { top: 70px; bottom: auto; left: var(--gutter); right: auto; text-align: left; max-width: 52vw; }
  .ph-long { display: none; }
  .ph-short { display: inline !important; }
  .cue { bottom: calc(var(--gutter) + 50px); }
}

@media (prefers-reduced-motion: reduce) {
  .cue i { animation: none; transform: none; }
  .chapter { transition: opacity .18s linear; }
}

.ph-short { display: none; }

@media (pointer: coarse), (max-width: 700px) { .req, .skip { min-height: 44px; display: inline-flex; align-items: center; } }
