@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* the film's night: sampled from the blimp shot */
  --sky-0: #000a26;
  --sky-1: #001a52;
  --sky-2: #012a7a;
  --sky-3: #03368c;
  --black: #020306;
  --ink: #f3f5f8;
  --soft: rgba(243, 245, 248, .74);
  --mute: rgba(243, 245, 248, .5);
  --line: rgba(255, 255, 255, .16);
  /* the sign's bulbs */
  --bulb: #f4f7ff;
  --bulb-red: #ff4a5e;
  --bulb-cyan: #7fe6f2;
  --pad: clamp(18px, 4.4vw, 72px);
  /* side margins that also clear the notch / rounded corners in landscape (viewport-fit=cover) */
  --pad-l: max(var(--pad), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--pad), env(safe-area-inset-right, 0px));
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* how much taller the full-bleed stage is than the visible area while the Safari toolbar is out */
  --tb: 0px;
  --spring: cubic-bezier(.2, .9, .2, 1);
  --font: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
@supports (height: 100lvh) { :root { --tb: calc(100lvh - 100svh); } }
html { background: #01030a; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  color: var(--ink); background: #01030a;
  font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; }
::selection { background: var(--ink); color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { position: relative; z-index: 10; }
.scene { position: relative; }
/* A scene that holds the screen while you scroll through it: give the scene a height, put a .stage inside. */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* type */
.display { font-weight: 800; letter-spacing: -0.04em; line-height: .95; font-size: clamp(44px, 7.2vw, 132px); }
.title   { font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-size: clamp(34px, 4.6vw, 80px); }
.lead    { font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; font-size: clamp(19px, 1.7vw, 28px); color: var(--soft); }
.small   { font-size: 14px; font-weight: 500; color: var(--mute); }

a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---- labels (v12): the one small style on the site. Plain words in the page's own type. No capitals, no mono,
   no slashes, no counters, no codes. (.hud-k and .hud-v keep their names from v11; they are simply labels now.) ---- */
.hud-k, .hud-v { font-family: var(--font); font-size: 15px; line-height: 1.35; letter-spacing: -0.005em; text-transform: none; }
.hud-k { font-weight: 600; color: var(--soft); }
.hud-v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(6px + env(safe-area-inset-top, 0px)) var(--pad-r) 20px var(--pad-l);   /* v20: still 70px tall; the links sit at the top, the bottom 20px holds the chapter marker */
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
/* one shared backing so nothing ever prints through the nav; main.js turns it on from About to the ending */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(1, 3, 10, .94); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s ease;
}
.nav-solid .nav::before { opacity: 1; }
/* v20: which part of six, in a strip under the bar from Experience to Playbooks (main.js fills it) */
.nav-mark { position: fixed; z-index: 61; left: var(--pad-l); top: calc(51px + env(safe-area-inset-top, 0px)); margin: 0; height: 19px; font-size: 15px; font-weight: 600; line-height: 19px; letter-spacing: -0.005em; color: var(--soft); white-space: nowrap; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.has-mark .nav-mark { opacity: 1; }
/* tap targets at least 44px tall, layout unchanged */
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.nav-name { font-weight: 800; letter-spacing: -0.03em; font-size: 17px; margin-left: -8px; }
.nav-links { display: flex; align-items: center; column-gap: clamp(6px, 1.6vw, 22px); margin-right: -8px; }
.nav-link .nl-arrow { display: inline-block; margin-left: .3em; transition: transform .4s var(--spring); }
.nav-link:hover .nl-arrow { transform: translate(3px, -3px); }
.nav-link .nl-short { display: none; }
@media (max-width: 560px) { .nav-link .nl-long { display: none; } .nav-link .nl-short { display: inline; } .nav a { padding: 0 6px; } }

/* ---- a film (v11): a pinned full-screen 3D picture with type over it. road.js plays it, the scene's script drives it.
   The heading sits top left, the readings top right, one beat at a time comes up bottom left, and labels inside
   the picture are placed by the script each frame. --len on .film-pin is how much scroll the film takes.
   Without 3D (reduced motion, or no WebGL: .no-gl on the scene) nothing is pinned and the beats are a plain list. ---- */
.film-pin { height: var(--len, 380vh); }
/* the stage fills the tall viewport, so nothing behind it shows when Safari's toolbar slides away; what sits at
   its bottom adds --tb (tall minus short viewport) to stay clear of the toolbar while it is out */
.film { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #01030a; }
.film .gl-slot { position: absolute; inset: 0; opacity: calc(var(--in, 1) * (1 - var(--out, 0))); }
.film .gl-slot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film .shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 3, 10, .78) 0%, rgba(1, 3, 10, 0) 48%), linear-gradient(0deg, rgba(1, 3, 10, .86) 0%, rgba(1, 3, 10, 0) 40%), linear-gradient(180deg, rgba(1, 3, 10, .7) 0%, rgba(1, 3, 10, 0) 22%), radial-gradient(60% 46% at 100% 0%, rgba(1, 3, 10, .82) 0%, rgba(1, 3, 10, 0) 100%);
}
.fmask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.fmask > b { display: inline-block; font-weight: inherit; will-change: transform; }
.film .fhead { position: absolute; left: var(--pad-l); top: clamp(88px, 13vh, 132px); width: min(46%, 620px); z-index: 2; }
.film .ftitle { font-size: clamp(44px, min(5.6vw, 10vh), 96px); letter-spacing: -0.04em; }
.film .fsub { margin-top: clamp(10px, 1.8vh, 20px); font-size: clamp(18px, min(1.5vw, 2.6vh), 24px); color: var(--soft); max-width: 32ch; text-wrap: pretty; }
/* labels inside the picture: a thin line up from the thing, its name at the top */
.film .ftags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.film .ftag { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform, opacity; }
.film .ftag > i { position: absolute; left: 0; bottom: 0; width: 1.5px; height: 46px; background: rgba(255, 255, 255, .9); }
.film .ftag > b { position: absolute; left: 10px; bottom: 30px; white-space: nowrap; font-weight: 700; font-size: 18px; letter-spacing: -0.015em; line-height: 1; color: #fff; text-shadow: 0 1px 14px rgba(1, 3, 10, .95), 0 0 3px rgba(1, 3, 10, .9); }
/* the beats: one at a time */
.film .fbeats { list-style: none; position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: calc(var(--tb) + var(--safe-b) + clamp(30px, 7vh, 76px)); z-index: 2; height: clamp(150px, 24vh, 230px); }
.film .fbeat { position: absolute; left: 0; bottom: 0; width: min(100%, 760px); opacity: var(--on, 1); transform: translateY(calc((1 - var(--on, 1)) * 18px)); pointer-events: none; }
.film .fn { display: block; margin-bottom: 12px; color: var(--soft); }
.film .fh { font-size: clamp(34px, min(4.4vw, 8vh), 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.film .fd { margin-top: clamp(10px, 1.6vh, 18px); font-size: clamp(18px, min(1.55vw, 2.8vh), 25px); font-weight: 500; line-height: 1.34; letter-spacing: -0.015em; color: var(--ink); max-width: 36ch; text-wrap: pretty; }

.is-reduced .film-pin, .no-gl .film-pin { height: auto; }
.is-reduced .film, .no-gl .film { position: relative; height: auto; min-height: 100vh; min-height: 100svh; padding: clamp(88px, 13vh, 132px) var(--pad-r) clamp(40px, 8vh, 80px) var(--pad-l); }
.is-reduced .film .fhead, .no-gl .film .fhead { position: relative; left: auto; top: auto; }
.is-reduced .film .fbeats, .no-gl .film .fbeats { position: relative; left: auto; right: auto; bottom: auto; height: auto; margin-top: 40px; display: grid; row-gap: 28px; }
.is-reduced .film .fbeat, .no-gl .film .fbeat { position: relative; opacity: 1; transform: none; }
.is-reduced .film .fh, .no-gl .film .fh { font-size: clamp(26px, 3vw, 40px); }
.is-reduced .film .ftags, .no-gl .film .ftags, .no-gl .film .gl-slot { display: none; }
.is-reduced .film .shade { background: rgba(1, 3, 10, .74); }

@media (max-width: 899px) {
  .film-pin { height: var(--len-m, var(--len, 360vh)); }
  .film .shade { background: linear-gradient(0deg, rgba(1, 3, 10, .92) 0%, rgba(1, 3, 10, .55) 26%, rgba(1, 3, 10, 0) 46%), linear-gradient(180deg, rgba(1, 3, 10, .86) 0%, rgba(1, 3, 10, .4) 24%, rgba(1, 3, 10, 0) 40%); }
  .film .fhead { top: calc(80px + env(safe-area-inset-top, 0px)); width: auto; right: var(--pad-r); }
  .film .ftitle { font-size: clamp(40px, 11.6vw, 64px); }
  .film .fsub { display: none; }
  .film .ftag > i { height: 34px; }
  .film .ftag > b { bottom: 20px; left: 8px; font-size: 16px; }
  .film .fbeats { bottom: calc(var(--tb) + var(--safe-b) + 28px); height: 220px; }
  .film .fn { margin-bottom: 8px; }
  .film .fh { font-size: clamp(32px, 9.4vw, 50px); }
  .film .fd { font-size: 18px; margin-top: 10px; max-width: none; }
}
/* a phone on its side: the heading steps aside for the picture */
@media (max-width: 899px) and (max-height: 480px) {
  .film .fhead { top: 64px; }
  .film .ftitle { font-size: 30px; }
  .film .fhead .hud-tag { display: none; }
  .film .fbeats { height: 120px; bottom: 14px; }
  .film .fh { font-size: 26px; }
  .film .fd { font-size: 15px; margin-top: 4px; max-width: 60ch; }
}

/* ---- a split scene (v11 phase 3): the picture is pinned to the right while the scene's content scrolls on the left.
   On phones the picture is a band pinned under the nav and the content scrolls beneath it. road.js plays it. ---- */
.split { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); align-items: start; }
.split-main { grid-column: 1; grid-row: 1; min-width: 0; }
.split-pic { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #01030a; }
.split-pic .gl-slot { position: absolute; inset: 0; opacity: calc(var(--in, 1) * (1 - var(--out, 0))); }
.split-pic .gl-slot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the picture melts into the page on its left edge, and under the nav */
.split-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #01030a 0%, rgba(1, 3, 10, 0) 26%), linear-gradient(180deg, rgba(1, 3, 10, .82) 0%, rgba(1, 3, 10, 0) 18%), linear-gradient(0deg, rgba(1, 3, 10, .7) 0%, rgba(1, 3, 10, 0) 20%); }
.no-gl .split { display: block; }
.no-gl .split-pic { display: none; }
@media (max-width: 899px) {
  .split { display: block; }
  .split-pic { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 4; height: 32vh; height: 32svh; min-height: 190px; max-height: 320px; border-bottom: 1px solid var(--line); }
  .split-pic::after { background: linear-gradient(0deg, rgba(1, 3, 10, .55) 0%, rgba(1, 3, 10, 0) 30%); }
}
@media (max-width: 899px) and (max-height: 480px) { .split-pic { position: relative; top: auto; height: 70vh; max-height: none; } }

/* labels inside a split picture: the same thin line and bold name as in a film */
.split-pic .ftags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.split-pic .ftag { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform, opacity; }
.split-pic .ftag > i { position: absolute; left: 0; bottom: 0; width: 1.5px; height: 40px; background: rgba(255, 255, 255, .9); }
.split-pic .ftag > b { position: absolute; left: 10px; bottom: 26px; white-space: nowrap; font-weight: 700; font-size: 18px; letter-spacing: -0.015em; line-height: 1; color: #fff; text-shadow: 0 1px 14px rgba(1, 3, 10, .95), 0 0 3px rgba(1, 3, 10, .9); }
.is-reduced .split-pic .ftags, .no-gl .split-pic .ftags { display: none; }
@media (max-width: 899px) { .split-pic .ftag > i { height: 20px; } .split-pic .ftag > b { bottom: 10px; left: 8px; font-size: 15px; } }
