/* Page color is the vortex tank, flat-fielded (see build/make_assets.py). The accent is the
   blue dye sampled from the same footage. Every other color comes from the thumbnails.
   One family, Archivo, does every job; its width axis separates the voices. */
:root {
  --page: #e9eced;
  --page-rgb: 233 236 237;
  --raise: #f3f5f6;
  --ink: #111417;
  --ink-2: #4c545c;
  --ink-3: #737b83;
  --line: rgb(17 20 23 / 0.12);
  --line-2: rgb(17 20 23 / 0.06);
  --accent: #203de8;
  --accent-ink: #1a31bd;
  --warm-ink: #2b2622;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --nav-h: 60px;
  --open: calc(var(--nav-h) + clamp(28px, 7vh, 84px));
  --gap: clamp(96px, 11vw, 160px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --sans: "Archivo", ui-sans-serif, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  /* Clipped on its own box (the root carries the viewport's clip), and positioned, so overlays
     appended to the body, like the review pins, can never widen the page on a phone. */
  overflow-x: clip;
  position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */

/* Every page opens on the same instrument: one big expanded headline and one plain line. */
.display {
  font-size: clamp(50px, 7.4vw, 124px);
  line-height: .9;
  font-weight: 760;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 116;
  text-wrap: balance;
}
.lede {
  margin-top: 22px; max-width: 30ch;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: var(--ink-2);
  text-wrap: pretty;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 88;
  color: var(--ink-2);
}
h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 112;
  text-wrap: balance;
}
.eyebrow + h2 { margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .15s, color .15s;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--page); }
.btn-ink:hover { background: #2a3036; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-line { box-shadow: inset 0 0 0 1px rgb(17 20 23 / .28); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn .i { stroke-width: 2; }

/* A plain link to another page. The arrow leans toward where it goes. */
.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.more .i { color: var(--ink-2); transition: transform .2s var(--ease-out), color .15s; }
.more:hover { color: var(--accent); }
.more:hover .i { color: var(--accent); transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.nav.is-solid {
  background: rgb(var(--page-rgb) / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark {
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 118;
  text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.wordmark { gap: 10px; }
.logo-mark {
  display: inline-block; flex: none; width: calc(2.1em * 392 / 500); height: 2.1em; margin: -4px 0;
  background-color: currentColor;
  -webkit-mask: url("../shared/brand/head-mark.png") center / contain no-repeat;
  mask: url("../shared/brand/head-mark.png") center / contain no-repeat;
}
.footer-mark .logo-mark { width: calc(.9em * 392 / 500); height: .9em; margin-right: .14em; vertical-align: -0.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: 10px 12px; border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--ink); background: rgb(17 20 23 / .05); }
/* The page you're on carries the same blue mark as the ruler under each opening scene. */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--accent);
}
.menu-btn { display: none; }

/* Over a dark scene the nav goes dark with it. */
.top-dark .nav { color: #f3f5f6; }
.top-dark .nav.is-solid { background: rgb(10 11 12 / .72); box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.top-dark .nav-links a { color: rgb(243 245 246 / .72); }
.top-dark .nav-links a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.top-dark .nav-links a[aria-current="page"] { color: #fff; }
.top-dark .nav-links a[aria-current="page"]::after { background: #7d90ff; }

/* ---------- Opening scenes ---------- */

.page-head { max-width: var(--max); margin: 0 auto; padding: var(--open) var(--gutter) 0; }

.hero { position: relative; height: 230vh; height: 230svh; }
.hero-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; left: 0; top: 0;
  mix-blend-mode: darken;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.hero-copy {
  position: absolute; z-index: 2;
  left: var(--gutter); top: var(--open);
  max-width: 980px;
}
.drop .hero-copy { max-width: 620px; }
/* The hand holding the tweezers fades out low on the right, so the drop stays the subject. */
.drop .hero-canvas {
  --fade-y: linear-gradient(to bottom, transparent 0, #000 10%, #000 92%, transparent 100%);
  --fade-x: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  --fade-hand: radial-gradient(ellipse 42% 58% at 80% 100%, transparent 45%, #000 100%);
  -webkit-mask-image: var(--fade-y), var(--fade-x), var(--fade-hand);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-y), var(--fade-x), var(--fade-hand);
  mask-composite: intersect;
}

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; display: inline-block; }

.ruler { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 14px; z-index: 1; opacity: .9; }
.ruler-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--line); }
.ruler-ticks i { display: block; width: 1px; height: 4px; background: rgb(17 20 23 / .22); }
.ruler-ticks i.major { height: 9px; background: rgb(17 20 23 / .4); }
.ruler-mark { position: absolute; bottom: -1px; left: 0; width: 2px; height: 14px; background: var(--accent); transform: translateX(0); will-change: transform; }
.scene-caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 10px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; opacity: .9;
}
.scene-caption a { color: var(--ink); text-underline-offset: 2px; }

/* ---------- The map ---------- */

.atlas { position: relative; z-index: 2; padding: var(--gap) var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.atlas-head { display: grid; grid-template-columns: 1fr minmax(0, 470px); gap: 24px 48px; align-items: end; }
.atlas-intro { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.atlas-intro .more { margin-top: 6px; }
.only-coarse, .on-narrow { display: none; }
@media (hover: none) { .only-fine { display: none; } .only-coarse { display: inline; } p.only-coarse { display: block; } }

/* The map page: the headline opens straight onto the map, which takes the whole width. */
.atlas-full { max-width: none; padding-top: var(--open); }
.map-head { padding: 0; max-width: none; display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 24px 64px; align-items: end; }
.map-key { display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); padding-bottom: 6px; }
.atlas-full .toolbar { margin-top: clamp(28px, 4vw, 48px); }

.toolbar {
  margin-top: 28px;
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--ink);
}
.search {
  position: relative; display: flex; align-items: center;
  width: min(360px, 100%);
}
.search .i { position: absolute; left: 14px; color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 14px 0 40px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: #f8f9fa; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(17 20 23 / .2);
  transition: box-shadow .15s, background-color .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.count { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { color: var(--ink); font-weight: 650; }
.reset {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(17 20 23 / .07); font-size: 13px; font-weight: 600;
}
.reset:hover { background: rgb(17 20 23 / .12); }
.size-key { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.size-key-label { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 88; }
.size-key-items { display: flex; align-items: center; gap: 14px; }
.size-key-items span { display: inline-flex; align-items: center; gap: 6px; }
.size-key-items i { display: inline-block; border-radius: 50%; background: rgb(17 20 23 / .16); box-shadow: inset 0 0 0 1px rgb(17 20 23 / .25); }

.expeditions { display: flex; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; padding: 4px 0 6px; }
.expeditions-label { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; font-variation-settings: "wdth" 88; color: var(--ink); }
.expeditions-list { display: flex; flex-wrap: wrap; gap: 2px 2px; }
.exp {
  display: inline-flex; align-items: baseline; gap: 6px;
  min-height: 36px; padding: 8px 10px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; font-size: 14px; font-weight: 550; color: var(--ink-2);
  font-variation-settings: "wdth" 92;
  transition: background-color .15s, color .15s;
}
.exp small { font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.exp:hover { background: rgb(17 20 23 / .05); color: var(--ink); }
.exp[aria-pressed="true"] { background: var(--accent); color: #fff; }
.exp[aria-pressed="true"] small { color: rgb(255 255 255 / .8); }

.status { min-height: 40px; padding: 4px 0 10px; font-size: 15px; color: var(--ink-2); max-width: 900px; line-height: 1.45; }
.status b { color: var(--ink); font-weight: 650; }
.status .kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 88; color: var(--accent); margin-right: 8px; }

/* Lane names sit in a gutter left of the plot, one row header per lane, so they never cover the
   earliest dots. Each header's top rule continues the lane line the canvas draws. */
.map-wrap { position: relative; --lane-w: 158px; }
.lanes { position: absolute; left: 0; top: 0; z-index: 3; width: var(--lane-w); }
.lane {
  position: absolute; left: 0; width: var(--lane-w);
  display: flex; align-items: center;
  padding: 0 18px 0 0; border: 0; border-top: 1px solid rgb(17 20 23 / .13); border-radius: 0;
  background: none; cursor: pointer; text-align: left;
  transition: color .15s, opacity .2s;
}
.lane-label { display: block; font-size: 11.5px; line-height: 1.3; text-wrap: balance; }
.lane-name { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 80; line-height: 1.25; }
.lane-count { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 7px; }
.lane:hover .lane-name, .lane[aria-pressed="true"] .lane-name, .lane[aria-pressed="true"] .lane-count { color: var(--accent); }
.lane:focus-visible { outline-offset: -2px; }
.lanes.has-active .lane[aria-pressed="false"] { opacity: .45; }
.plot { position: relative; min-width: 0; padding-left: var(--lane-w); }
#map-canvas { display: block; width: 100%; touch-action: pan-y; cursor: default; }
#map-canvas.is-pointer { cursor: pointer; }
#map-canvas:focus-visible { outline-offset: 6px; }
.years { position: relative; height: 30px; border-top: 1px solid var(--ink); font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 84; }
.years span { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.years span.decade { color: var(--ink); font-weight: 650; }

.hovercard {
  position: absolute; z-index: 5; left: 0; top: 0;
  width: 272px; pointer-events: none;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(17 20 23 / .08), 0 18px 40px -20px rgb(17 20 23 / .45);
  opacity: 0; transform: translateY(4px) scale(.98); transform-origin: top left;
  transition: opacity .12s, transform .16s var(--ease-out);
}
.hovercard.is-on { opacity: 1; transform: none; }
.hovercard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c, #ccc); }
.hc-body { padding: 10px 14px 13px; display: grid; gap: 4px; }
.hc-kicker { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 86; color: var(--ink-2); }
.hc-title { font-size: 15px; line-height: 1.25; font-weight: 650; }
.hc-meta { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Deep dives, listed under the map. Each row is one button that draws its route above. */
.dives { max-width: none; padding: var(--gap) var(--gutter) 0; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 16px 64px; align-items: end; margin-bottom: 36px; }
.section-intro p { font-size: 17px; color: var(--ink-2); line-height: 1.5; }
.dives-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--ink); }
.dives-list li { border-bottom: 1px solid var(--line); }
.dive {
  width: 100%; display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 22px 10px 22px 0; border: 0; background: none; cursor: pointer; text-align: left;
  border-radius: 0; transition: background-color .15s;
}
.dive-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 8px; overflow: hidden; }
.dive-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c, #ccc); transition: transform .3s var(--ease-out); }
.dive-text { display: grid; gap: 4px; }
.dive-kind { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 86; color: var(--accent); }
.dive-name { font-size: 22px; line-height: 1.12; font-weight: 720; letter-spacing: -0.01em; font-variation-settings: "wdth" 108; }
.dive-blurb { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.dive-meta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dive-go { grid-column: 2; display: inline-flex; align-items: center; gap: 7px; margin-top: -8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.dive-go .i { color: var(--ink-2); width: 15px; height: 15px; }
.dive-go-on { display: none; }
.dive:hover .dive-name { color: var(--accent); }
.dive:hover .dive-strip img { transform: scale(1.04); }
.dive[aria-pressed="true"] .dive-go { color: var(--accent); }
.dive[aria-pressed="true"] .dive-go .i { color: var(--accent); }
.dive[aria-pressed="true"] .dive-go-off { display: none; }
.dive[aria-pressed="true"] .dive-go-on { display: inline; }

/* ---------- Detail panel ---------- */

.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(17 20 23 / .18); opacity: 0; transition: opacity .25s; }
.scrim.is-on { opacity: 1; }
.panel {
  position: fixed; z-index: 41; top: 12px; right: 12px; bottom: 12px;
  width: min(460px, calc(100vw - 24px));
  background: var(--raise); border-radius: 18px;
  box-shadow: 0 0 0 1px rgb(17 20 23 / .08), 0 30px 80px -30px rgb(17 20 23 / .5);
  overflow: hidden auto; overscroll-behavior: contain;
  transform: translateX(24px); opacity: 0;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.panel.is-on { transform: none; opacity: 1; }
.panel-inner { padding: 14px 14px 28px; }
.panel-top { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; margin-bottom: -58px; padding: 6px; pointer-events: none; }
.icon-btn {
  pointer-events: auto;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(var(--page-rgb) / .9); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line);
}
.icon-btn .i { width: 18px; height: 18px; stroke-width: 2; }
.icon-btn:hover { background: #fff; }
.panel-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--c, #ccc); }
.panel-body { padding: 18px 8px 0; }
.panel-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 86; color: var(--ink-2); }
.panel-kicker .ep { color: var(--accent); }
.panel h3 { margin-top: 8px; font-size: 26px; line-height: 1.12; font-weight: 720; letter-spacing: -0.015em; font-variation-settings: "wdth" 104; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; margin: 18px 0 20px; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-variation-settings: "wdth" 86; }
.facts dd { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; grid-row: 2; }
.panel .btn-accent { width: 100%; justify-content: center; }
.wander { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wander button {
  display: grid; gap: 2px; align-content: start; text-align: left;
  min-height: 64px; padding: 10px 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgb(17 20 23 / .045); transition: background-color .15s;
}
.wander button:hover { background: rgb(17 20 23 / .08); }
.wander button:disabled { opacity: .4; cursor: default; }
.wander .w-dir { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-variation-settings: "wdth" 86; }
.wander .w-dir .i { width: 13px; height: 13px; }
.wander .w-next { justify-content: flex-end; }
.wander button:last-child { text-align: right; }
.wander .w-title { font-size: 13.5px; line-height: 1.3; font-weight: 550; }
.series-block { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.series-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.series-name { font-size: 17px; font-weight: 700; font-variation-settings: "wdth" 104; }
.series-kind { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-variation-settings: "wdth" 86; }
.series-blurb { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.stops { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.stop {
  width: 100%; display: grid; grid-template-columns: 22px 88px 1fr; gap: 10px; align-items: center;
  padding: 6px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  transition: background-color .15s;
}
.stop:hover { background: rgb(17 20 23 / .05); }
.stop[aria-current="true"] { background: rgb(32 61 232 / .08); }
.stop-n { font-size: 12px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.stop[aria-current="true"] .stop-n { color: var(--accent); }
.stop img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--c, #ccc); }
.stop-title { font-size: 13.5px; line-height: 1.3; font-weight: 550; }
.stop-date { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; margin-top: 2px; }
.route-btn { margin-top: 12px; }

/* ---------- Video lists ---------- */

/* Cards: a big thumbnail, then the rank in condensed numerals beside the title. */
.cards { list-style: none; padding: 0; display: grid; gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 14px; align-items: start; text-decoration: none; }
.card-img { grid-column: 1 / -1; display: block; overflow: hidden; border-radius: 14px; background: var(--c, #ccc); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s var(--ease-out); }
.card-n {
  font-size: 44px; line-height: .8; font-weight: 300; letter-spacing: -0.03em; margin-top: 1px;
  font-variation-settings: "wdth" 66; font-variant-numeric: tabular-nums; color: var(--ink-3);
  transition: color .15s;
}
.card-title { font-size: 17px; line-height: 1.25; font-weight: 620; text-wrap: pretty; }
.card a:not(:has(.card-n)) .card-title { grid-column: 1 / -1; }
.card-meta { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.card a:hover .card-img img { transform: scale(1.03); }
.card a:hover .card-n { color: var(--accent); }
.card a:hover .card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card a:focus-visible { outline-offset: 6px; border-radius: 16px; }
.cards-2 .card-n { font-size: 64px; }
.cards-2 .card-title { font-size: 21px; }

/* Number one gets the room: the frame on the left, the rank and title stacked on the right. */
.cards-1 .card a { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 0 clamp(28px, 4vw, 64px); align-items: end; }
.cards-1 .card-img { grid-column: 1; grid-row: 1 / 3; border-radius: 18px; }
.cards-1 .card-n { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(120px, 15vw, 240px); line-height: .78; color: var(--ink); margin-bottom: 18px; }
.cards-1 .card-title { grid-column: 2; grid-row: 2; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; font-weight: 720; letter-spacing: -0.015em; font-variation-settings: "wdth" 104; }
.cards-1 .card-meta { font-size: 16px; margin-top: 12px; letter-spacing: 0; font-weight: 400; }

/* Rows: compact, two columns, the way the old home page listed them. */
.rows { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(6, auto); column-gap: 56px; border-top: 1px solid var(--ink); }
.row a {
  display: grid; grid-template-columns: 64px 128px minmax(0, 1fr); grid-template-areas: "n img title"; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.row-n { grid-area: n; font-size: 34px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variation-settings: "wdth" 66; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .15s; }
.row-img { grid-area: img; display: block; overflow: hidden; border-radius: 6px; }
.row-img img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c, #ccc); transition: transform .25s var(--ease-out); }
.row-title { grid-area: title; font-size: 16px; line-height: 1.28; font-weight: 600; }
.row-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.row a:hover .row-n { color: var(--accent); }
.row a:hover img { transform: scale(1.04); }
.row a:hover .row-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Home ---------- */

.newest { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0; }
.newest-link { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; text-decoration: none; color: inherit; }
.newest-img { display: block; border-radius: 18px; overflow: hidden; }
.newest-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease-out); }
.newest-link:hover .newest-img img { transform: scale(1.03); }
.newest-text { display: grid; gap: 14px; justify-items: start; }
.newest-title { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.04; font-weight: 750; letter-spacing: -0.02em; }
.newest-meta { font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 32ch; }
.newest-text .btn { margin-top: 8px; }
.newest-link:hover .btn-ink { background: #2a3036; }
.newest-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 20px; }

.preview { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0; }
.preview-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }

.about-preview {
  max-width: var(--max); margin: 0 auto;
  padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.about-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 40% 18%; border-radius: 22px; }
.note { color: var(--warm-ink); max-width: 560px; }
.note p { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.note .note-lead { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; font-variation-settings: "wdth" 100; margin: 14px 0 20px; }
.note .more { margin-top: 18px; }
.inline-link {
  color: inherit;
  text-decoration: underline; text-decoration-color: rgb(43 38 34 / .4); text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.inline-link:hover { text-decoration-color: currentColor; }

.list {
  max-width: var(--max); margin: 0 auto;
  padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end;
}
.list-quote p {
  font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 108; text-wrap: balance;
}
.list-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-variation-settings: "wdth" 88; }
.field input {
  min-height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #f8f9fa; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(17 20 23 / .2);
  transition: box-shadow .15s, background-color .15s;
}
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #c3262b; }
.list-form .btn { grid-column: 1 / -1; justify-content: center; min-height: 52px; font-size: 16px; }
.form-error { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; color: #b0201f; }
.thanks { padding: 24px 0 8px; border-top: 1px solid var(--ink); }
.thanks:focus { outline: none; }
.thanks-title { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; font-variation-settings: "wdth" 108; margin-bottom: 6px; }
.thanks p:last-child { color: var(--ink-2); font-size: 17px; }
.thanks.is-in { animation: rise .45s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.support-preview {
  max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end;
}
.support-preview h2 { max-width: 15ch; }
.support-actions { display: grid; justify-items: start; gap: 8px; }

.shelf { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }

/* ---------- Products ---------- */

.product { display: grid; align-content: start; gap: 12px; text-decoration: none; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease-out); }
.product:hover img { transform: scale(1.03); }
.product-name { font-size: 15px; font-weight: 600; text-align: center; }
.product:hover .product-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.product-photo img { mix-blend-mode: normal; object-fit: cover; border-radius: 14px; }
.product-price { font-size: 16px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.product-note { font-size: 17px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Greatest Hits ---------- */

.hits { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) 0; display: grid; gap: clamp(56px, 6vw, 88px); }
.next { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0; }
.next .more, .lately .more { margin-top: 20px; }

/* ---------- About ---------- */

.about-head .lede { max-width: 34ch; }
.garage { margin-top: clamp(40px, 5vw, 64px); }
.garage-frame { position: relative; overflow: hidden; aspect-ratio: 2.25 / 1; max-height: 78svh; width: 100%; }
.garage-frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 38% 38%; will-change: transform; }

.story {
  max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start;
}
.story-lead { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.18; font-weight: 600; letter-spacing: -0.015em; font-variation-settings: "wdth" 104; color: var(--warm-ink); text-wrap: pretty; }
.story-after { grid-column: 1; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.first { grid-row: 1 / 3; grid-column: 2; display: grid; gap: 16px; text-decoration: none; }
.first img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; filter: saturate(.9); transition: transform .45s var(--ease-out); }
.first:hover img { transform: scale(1.02); }
.first-text { display: grid; gap: 6px; justify-items: start; }
.first-title { font-size: 22px; line-height: 1.15; font-weight: 700; font-variation-settings: "wdth" 104; }
.first .more { min-height: 36px; }
.first:hover .first-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.goals-sec {
  max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 96px);
}
.goals-sec h2 { grid-column: 1; margin-bottom: 28px; }
.goals-big { grid-column: 1; list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.goals-big li { display: grid; grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr); gap: 16px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--warm-ink); text-wrap: pretty; }
.goal-n { font-size: clamp(44px, 4.6vw, 64px); line-height: .8; font-weight: 300; font-variation-settings: "wdth" 66; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.goals-photo { grid-column: 2; }
.goals-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.goals-photo-a { grid-row: 1 / 3; align-self: start; margin-top: 8px; }
.goals-photo-a img { object-position: 40% 20%; }
.goals-photo-b { grid-row: 3; width: 68%; justify-self: end; margin-top: -16%; position: relative; }
.goals-photo-b img { aspect-ratio: 4 / 3; object-position: 62% 40%; box-shadow: 0 0 0 6px var(--page); }

.podcast {
  max-width: var(--max); margin: var(--gap) auto 0; padding: 30px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  /* Rules inside the gutters, drawn as backgrounds so the section keeps its padding. */
  background:
    linear-gradient(var(--ink), var(--ink)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.podcast-title { font-size: clamp(28px, 3vw, 40px); font-weight: 750; letter-spacing: -0.02em; font-variation-settings: "wdth" 118; line-height: 1.05; }
.podcast-copy { font-size: 17px; color: var(--ink-2); }

.contact { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) var(--gutter) 0; }
.contact h2 { margin-bottom: 28px; }
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; border-top: 1px solid var(--ink); padding-top: 22px; }
.contact-list dt { font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; font-variation-settings: "wdth" 88; margin-bottom: 8px; }
.contact-list dd { font-size: 17px; color: var(--ink-2); line-height: 1.55; }
.contact-list a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Email list: the one dark room ---------- */

.strike { position: relative; background: #000; color: #eef0f1; }
.strike-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.strike-copy { flex: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: var(--open) var(--gutter) 96px; }
.strike-copy > :not(.strike-film) { position: relative; z-index: 2; max-width: 560px; }
.strike .display { color: #fff; }
.strike-film { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.strike-canvas {
  position: absolute;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 22%);
  mask-composite: intersect;
}
.strike-quote { margin: 26px 0 34px; }
.strike-quote p { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.24; font-weight: 600; letter-spacing: -0.01em; color: rgb(255 255 255 / .86); text-wrap: pretty; font-variation-settings: "wdth" 104; }
.strike .field label { color: rgb(255 255 255 / .66); }
.strike .field input { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .24); }
.strike .field input:focus { background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1.5px #7d90ff; }
.strike .field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff8a80; }
.strike .form-error { color: #ff9d94; }
.strike .thanks { border-top-color: rgb(255 255 255 / .5); }
.strike .thanks p:last-child { color: rgb(255 255 255 / .72); }
.strike :focus-visible { outline-color: #7d90ff; }
.strike .scene-caption { color: rgb(255 255 255 / .58); z-index: 2; }
.strike .scene-caption a { color: #fff; }
.again {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
  background: rgb(255 255 255 / .1); color: #fff;
}
.again:hover { background: rgb(255 255 255 / .18); }
.again .i { width: 14px; height: 14px; }

/* The dark room ends on a clean edge, like walking out of a darkroom into daylight. */
.lately { position: relative; padding: var(--gap) var(--gutter) 0; }
.lately > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.lately .more { display: flex; width: max-content; margin-left: 0; }

/* ---------- Support ---------- */

/* The headline on the left, and the one thing to do beside it, level with its last line. */
.support-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 80px); align-items: end; }
.support-row { display: grid; justify-items: start; gap: 24px; padding-bottom: 6px; }
.support-row .lede { margin: 0; max-width: 34ch; }
.mosaic-fig { margin: clamp(48px, 6vw, 80px) 0 0; padding: 0 var(--gutter); }
/* Each tile is a link painted from the map's sprite: --k scales a 60px sprite cell to the tile,
   --sx/--sy find the video's cell. mosaic.js sets the transform and z-index for the dock magnify. */
.mosaic { display: grid; grid-template-columns: repeat(var(--cols, 31), minmax(0, 1fr)); gap: var(--gap, 2px); }
.tile {
  position: relative; display: block; aspect-ratio: 1;
  background: rgb(17 20 23 / .08) url(media/dots.webp) no-repeat;
  background-size: calc(var(--k, .6) * 1280px) auto;
  background-position: calc(var(--k, .6) * var(--sx) * -1px) calc(var(--k, .6) * var(--sy) * -1px);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tile.is-sharp { background-image: none; }
.tile.is-sharp img { opacity: 1; }
.tile:focus-visible { box-shadow: 0 10px 24px -10px rgb(17 20 23 / .6); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 0; }
.mosaic { position: relative; }
.mosaic.will-in .tile { opacity: 0; }
.mosaic.is-in .tile { opacity: 1; animation: tile-in 260ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 3.8ms); }
@keyframes tile-in { from { opacity: 0; scale: .86; } to { opacity: 1; scale: 1; } }
.mosaic-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--ink); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* The hours figure stands on top of the mosaic, so the number and the 398 videos read as one fact. */
.hours-fig { margin-top: var(--gap); }
.hours { padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 8px 28px; flex-wrap: wrap; }
.hours .big-num { font-size: clamp(110px, 14vw, 220px); margin: 0; }
.hours .big-num-label { margin: 0; padding-bottom: 6px; }
.hours + .mosaic-fig { margin-top: 24px; }

/* Every supporter's name rolls by like the credits at the end of a video. Searching swaps the
   roll for the matches inside the same box, so the page itself never moves (supporters.js). */
.credits-sec { max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter); }
.credits {
  height: min(74vh, 660px); height: min(74svh, 660px); min-height: 460px;
  display: flex; flex-direction: column;
  background: #0c0d0e; color: #fff; border-radius: 6px; overflow: hidden;
}
.credits-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px 40px; flex-wrap: wrap; padding: 32px 40px 8px; }
.credits-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .55); font-variation-settings: "wdth" 88; }
.credits-title { margin: 8px 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; font-variation-settings: "wdth" 112; }
.credits-find { width: min(340px, 100%); }
.credits .find {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); transition: border-color .2s, background-color .2s;
}
.credits .find:focus-within { border-color: rgb(255 255 255 / .5); background: rgb(255 255 255 / .11); }
.credits .find input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: #fff; }
.credits .find input::-webkit-search-cancel-button { filter: grayscale(1) brightness(2.4); cursor: pointer; }
.credits .find input::placeholder { color: rgb(255 255 255 / .5); }
.credits .find .i { width: 18px; height: 18px; stroke: rgb(255 255 255 / .6); flex: none; }
.credits-note { margin: 10px 4px 0; min-height: 1.5em; font-size: 14px; color: rgb(255 255 255 / .72); }
.credits-body { position: relative; flex: 1; min-height: 0; }
.credits-roll, .credits-results { position: absolute; inset: 0; transition: opacity .25s ease-out, visibility .25s; }
.credits-roll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent);
}
.credits-track { padding: 0 40px; animation: credits-roll 300s linear infinite; }
@keyframes credits-roll { to { transform: translateY(-50%); } }
.credits-block, .credits-list { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 40px; font-size: 16px; line-height: 1.9; }
.credits-block { color: rgb(255 255 255 / .86); }
.credits-block li, .credits-list li { break-inside: avoid; }
.credits-results { overflow-y: auto; overscroll-behavior: contain; padding: 16px 40px 40px; opacity: 0; visibility: hidden; }
.credits.is-searching .credits-roll { opacity: 0; visibility: hidden; }
.credits.is-searching .credits-results { opacity: 1; visibility: visible; }
.credits-found { margin: 0 0 24px; max-width: 20ch; text-wrap: balance; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; font-variation-settings: "wdth" 112; color: #fff; }
.credits-list { color: rgb(255 255 255 / .58); }
.credits-list mark { background: none; color: #fff; font-weight: 700; }
.credits-more { margin: 20px 0 0; font-size: 14px; color: rgb(255 255 255 / .5); }
@media (prefers-reduced-motion: reduce) {
  .credits-roll { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .credits-block[aria-hidden="true"] { display: none; }
}
.big-num {
  font-size: clamp(120px, 19vw, 300px); line-height: .8; font-weight: 800; letter-spacing: -0.06em;
  font-variation-settings: "wdth" 62; font-variant-numeric: tabular-nums;
}
.big-num-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-variation-settings: "wdth" 88; padding-bottom: 8px; }

/* ---------- Store ---------- */

/* Without motion this is a plain two column opening: the shirt beside its story. */
.zoom-stage {
  position: relative; max-width: var(--max); margin: 0 auto; padding: var(--open) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start;
}
.zoom-intro { grid-column: 1; }
.zoom-story { grid-column: 1; display: grid; gap: 8px; justify-items: start; max-width: 44ch; }
.zoom-frame { grid-column: 2; grid-row: 1 / 3; }
.zoom-img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.zoom-story .product-name { font-size: clamp(26px, 2.6vw, 36px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; font-variation-settings: "wdth" 110; text-align: left; }
.zoom-story .btn { margin-top: 16px; }

/* With motion the room goes dark over the first tenth of a screen of scrolling. The stage is one
   screen tall and scrolls away normally; nothing pins. */
.zoom.is-live .zoom-stage {
  position: relative; height: 100vh; height: 100svh; max-width: none; overflow: hidden; display: block; padding: 0;
  background: var(--page); transition: background-color .35s ease-out;
}
.zoom.is-live .zoom-frame { position: absolute; top: calc(var(--nav-h) + 3vh); right: calc(var(--gutter) + 2vw); width: min(54vw, 86vh); }
.zoom.is-live .zoom-intro { position: absolute; left: var(--gutter); top: var(--open); width: min(620px, 44vw); z-index: 2; }
.zoom.is-live .zoom-intro, .zoom.is-live .zoom-story { transition: opacity .35s ease-out, transform .35s ease-out, visibility .35s; }
.zoom.is-live .zoom-intro .display { font-size: clamp(50px, 7.4vw, 124px); }
.zoom.is-live .zoom-story { position: absolute; left: var(--gutter); bottom: 14vh; z-index: 2; color: #f3f5f6; visibility: hidden; }
.zoom.is-live .zoom-story .product-note { color: rgb(243 245 246 / .78); }
.zoom.is-live .zoom-story .product-price { color: #93a3ff; }
.zoom.is-live .zoom-story .btn-ink { background: #f3f5f6; color: var(--ink); }
.zoom.is-live .zoom-story .btn-ink:hover { background: #fff; }
.zoom.is-live .zoom-story :focus-visible { outline-color: #93a3ff; }

.shop { position: relative; padding: var(--gap) var(--gutter) 0; }
.shop-row { max-width: var(--max); margin: 0 auto; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.shop-row .product-name { font-size: 17px; }
.shop-all { display: flex; width: max-content; margin: 56px auto 0; }

/* ---------- Footer ---------- */

.footer { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--gutter) 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px 48px; font-size: 15px; color: var(--ink-2); }
.footer--follow .footer-grid { grid-template-columns: 1fr; }
.footer--follow .social { grid-template-columns: repeat(6, max-content); }
.footer-grid p + p { margin-top: 8px; }
.footer-grid a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-h { font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); font-variation-settings: "wdth" 88; margin: 0 0 12px; }
address { font-style: normal; line-height: 1.6; }
.social { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; }
.social a:hover { text-decoration: underline; }
.social .i { color: var(--ink-2); }
.footer-mark {
  margin: clamp(60px, 8vw, 110px) 0 -0.16em;
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 10.95); line-height: 1; font-weight: 800; letter-spacing: -0.045em;
  font-variation-settings: "wdth" 125; white-space: nowrap; color: rgb(17 20 23 / .9);
  width: max-content;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .map-wrap { --lane-w: 134px; }
  .nav-links a { padding: 10px 8px; font-size: 13.5px; }
  .nav-links a[aria-current="page"]::after { left: 8px; right: 8px; }
  .rows { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .dives-list { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  :root { --nav-h: 56px; --open: calc(var(--nav-h) + 26px); --gap: 88px; }
  body { font-size: 16px; }
  .display { font-size: clamp(40px, 11.6vw, 60px); line-height: .94; font-variation-settings: "wdth" 108; }
  .lede { margin-top: 16px; font-size: 17px; }
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 0; border-radius: 999px; background: rgb(17 20 23 / .06); font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .top-dark .menu-btn { background: rgb(255 255 255 / .12); }
  .menu {
    position: absolute; top: calc(var(--nav-h) - 4px); right: 10px; left: 10px;
    display: grid; padding: 8px; border-radius: 16px; color: var(--ink);
    background: var(--raise); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgb(17 20 23 / .45);
  }
  .menu a { position: relative; min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 17px; }
  .menu a:active { background: rgb(17 20 23 / .06); }
  .menu a[aria-current="page"] { color: var(--accent); background: rgb(32 61 232 / .07); }

  .hero { height: 210vh; height: 210svh; }
  .hero-copy { right: var(--gutter); }
  .frame-count { display: none; }
  .scene-caption { font-size: 11px; }

  .atlas { padding-top: var(--gap); }
  .atlas-full { padding-top: var(--open); }
  .atlas-head, .map-head, .section-intro { grid-template-columns: 1fr; }
  .map-key { font-size: 15px; padding: 0; }
  .on-wide { display: none; }
  .on-narrow { display: inline; }
  .toolbar {
    position: sticky; top: var(--nav-h); z-index: 6;
    margin: 24px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter);
    background: rgb(var(--page-rgb) / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    flex-wrap: nowrap; gap: 10px;
  }
  .search { width: auto; flex: 1; }
  .size-key { display: none; }
  .reset { flex: none; min-height: 40px; }
  .expeditions { display: block; padding: 6px 0 4px; }
  .expeditions-label { margin-bottom: 6px; }
  .expeditions-list { gap: 6px; }
  .exp { min-height: 40px; background: rgb(17 20 23 / .05); border-radius: 999px; padding: 8px 12px; font-size: 13.5px; }
  .status { min-height: 0; padding: 6px 0 12px; font-size: 14.5px; }
  .status:empty { padding: 0; }

  .lanes { position: relative; width: auto; height: 136px; margin: 28px 0 0 34px; }
  .lane {
    top: 0; bottom: 0; left: auto; min-height: 0; padding: 0 0 10px; border-top: 0; border-radius: 0; background: none;
    flex-direction: column; justify-content: flex-end; align-items: center; gap: 0;
  }
  .lane[aria-pressed="true"] { background: none; }
  .lane[aria-pressed="true"] .lane-name { color: var(--accent); }
  .lane[aria-pressed="true"] .lane-count { color: var(--accent); }
  .lane-label { display: contents; }
  /* Long names wrap into a second column instead of running up under the search. */
  .lane-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .06em; max-height: 104px; text-wrap: balance; }
  .lane-count { font-size: 10.5px; margin: 6px 0 0; }
  .years { position: absolute; left: 0; top: 0; width: 34px; height: auto; bottom: 0; border-top: 0; border-right: 0; }
  .years span { left: 0; transform: translateY(-50%); }
  .plot { padding-left: 34px; }
  .hovercard { display: none; }

  .dive { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .dive-name { font-size: 19px; }
  .dive-blurb { font-size: 14.5px; }
  .dive-go { grid-column: 2; margin-top: -4px; min-height: 32px; }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 90vh; max-height: 90svh; border-radius: 20px 20px 0 0;
    transform: translateY(40px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .panel h3 { font-size: 23px; }
  .facts { gap: 4px 22px; }

  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .cards { gap: 32px; }
  .card-n { font-size: 38px; }
  .cards-2 .card-n { font-size: 52px; }
  .cards-2 .card-title { font-size: 19px; }
  .cards-1 .card a { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; gap: 16px 14px; align-items: start; }
  .cards-1 .card-img { grid-column: 1 / -1; grid-row: auto; border-radius: 14px; }
  .cards-1 .card-n { grid-column: 1; grid-row: auto; font-size: 88px; margin: 0; align-self: start; }
  .cards-1 .card-title { grid-column: 2; grid-row: auto; font-size: 23px; }
  /* On a phone the lower ranks become rows, so twelve big frames don't run on forever. */
  .hits .cards-3 { gap: 0; border-top: 1px solid var(--ink); }
  .hits .cards-3 .card a { grid-template-columns: 52px 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hits .cards-3 .card-img { grid-column: 2; grid-row: 1; border-radius: 6px; }
  .hits .cards-3 .card-n { grid-column: 1; grid-row: 1; font-size: 34px; }
  .hits .cards-3 .card-title { grid-column: 3; font-size: 15px; }
  .hits .cards-3 .card-meta { font-size: 12.5px; margin-top: 3px; }

  .rows { border-top: 1px solid var(--ink); }
  .row a { grid-template-columns: 44px 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .row-n { font-size: 28px; }
  .row-img img { width: 96px; }
  .row-title { font-size: 15px; }

  .newest-link { grid-template-columns: 1fr; }
  .newest-img { border-radius: 14px; }
  .preview-head { align-items: start; flex-direction: column; gap: 4px; }
  .about-preview { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 4 / 3; border-radius: 18px; }
  .list { grid-template-columns: 1fr; }
  .list-form { grid-template-columns: 1fr; }
  .support-preview { grid-template-columns: 1fr; }
  .shelf { gap: 24px 16px; }
  .product-name { font-size: 14px; }

  .garage-frame { aspect-ratio: 4 / 3.2; }
  .garage-frame img { object-position: 30% 40%; }
  .story, .goals-sec { grid-template-columns: 1fr; }
  .first { grid-row: auto; grid-column: 1; }
  .goals-photo, .goals-photo-a { grid-column: 1; grid-row: auto; margin-top: 28px; }
  .goals-photo-b { grid-row: auto; width: 70%; margin-top: -22%; }
  .podcast { grid-template-columns: 1fr; }
  .podcast .btn { justify-self: start; }
  .contact-list { grid-template-columns: 1fr; }

  .strike-copy { padding-bottom: 88px; }
  .strike-film { position: relative; inset: auto; margin: 10px calc(-1 * var(--gutter)) -10px; height: calc(100vw * 1.8 * 9 / 16); }
  .strike-canvas { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .strike-quote { margin-top: 0; }
  .strike .scene-caption { flex-wrap: wrap; }

  .support-head { grid-template-columns: 1fr; }
  .support-row .btn { width: 100%; justify-content: center; }
  .mosaic-cap { font-size: 12px; }
  .big-num { font-size: 38vw; }
  .hours .big-num { font-size: 34vw; }
  .credits { height: min(80svh, 620px); }
  .credits-head { padding: 24px 20px 4px; }
  .credits-find { width: 100%; }
  .credits-track, .credits-results { padding-left: 20px; padding-right: 20px; }
  .credits-block, .credits-list { columns: 2; column-gap: 20px; font-size: 14px; }

  .zoom.is-live .zoom-frame { top: auto; bottom: 4vh; right: 50%; transform: translateX(50%); width: min(100vw, 62svh); }
  .zoom.is-live .zoom-intro { width: auto; right: var(--gutter); }
  .zoom.is-live .zoom-intro .display { font-size: clamp(40px, 11.6vw, 60px); }
  /* The stage has scrolled a tenth of a screen by the time the story shows, so it starts that much lower. */
  .zoom.is-live .zoom-story { top: calc(var(--nav-h) + 20px + 10svh); bottom: auto; right: var(--gutter); }
  .zoom-stage { grid-template-columns: 1fr; }
  .zoom-frame { grid-column: 1; grid-row: auto; order: 2; }
  .zoom-story { order: 3; }
  .shop-row { grid-template-columns: 1fr 1fr; }
  .shop-row li:has(.product-photo) { grid-column: 1 / -1; }
  .shop-row .product-photo img { width: 64%; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer--follow .social { grid-template-columns: repeat(2, max-content); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
