/* Aviadock: the night flight-deck display.
   One white ink at stepped opacities on a near-black ground, hairlines and
   corner brackets for framing, deck markings as the graphic language, and a
   single deck yellow reserved for the line in motion. */

:root {
  --ground: #050607;
  --ground-2: #0a0b0d;
  --ground-3: #111315;
  --ink: #e9eaea;
  --ink-2: #a9acae;
  --ink-3: #7d8184;
  --line: rgba(233, 234, 234, 0.12);
  --line-2: rgba(233, 234, 234, 0.24);
  --line-3: rgba(233, 234, 234, 0.5);

  --paper: #dddfe0;
  --paper-ink: #07080a;
  --paper-ink-2: #383d40;
  --paper-ink-3: #565b5f;
  --paper-line: rgba(7, 8, 10, 0.14);
  --paper-line-2: rgba(7, 8, 10, 0.3);

  --deck: #f2c230;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section-y: clamp(88px, 9.5vw, 148px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--ink);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
dl, dd { margin: 0; }

::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

html { scrollbar-color: rgba(233, 234, 234, 0.28) var(--ground); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: rgba(233, 234, 234, 0.22); border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: rgba(233, 234, 234, 0.4); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -60px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 14px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */
.display, .h2, .h3w, .wordmark {
  font-family: var(--sans);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
}
.display {
  font-size: clamp(2.25rem, 6.4vw, 6rem);
  font-weight: 640;
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.display span { display: block; }
.display .dim, .h2 .dim { color: var(--ink-3); }
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.h3w {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.body { color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ink { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Buttons and links                                                   */
/* ------------------------------------------------------------------ */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 18px;
  font-family: var(--sans); font-size: 13px; font-weight: 620; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--ground); }
.btn--solid:hover { background: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--line-3); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(233, 234, 234, 0.06); }
.btn--lg { --h: 56px; padding: 0 24px; font-size: 14px; }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 12px; }
.btn--mail { text-transform: none; letter-spacing: 0.01em; font-size: 15px; font-weight: 560; }
.btn--mail.btn--lg { font-size: 16px; }

.tlink {
  color: var(--ink); font-weight: 560; text-decoration: underline;
  text-decoration-color: var(--line-3); text-underline-offset: 0.28em; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.tlink:hover { text-decoration-color: var(--ink); }
.tlink svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Corner brackets                                                     */
/* ------------------------------------------------------------------ */
.bracket, .mate::after {
  --bc: rgba(233, 234, 234, 0.6);
  --bl: 14px;
  background-image:
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc));
  background-repeat: no-repeat;
  background-size: var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl), var(--bl) 1px, 1px var(--bl);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.solid { background: rgba(5, 6, 7, 0.96); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav.solid { background: rgba(5, 6, 7, 0.88); backdrop-filter: blur(14px) saturate(1.1); } }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.brand span { font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }

/* Logo kit: hover (or focus, or tap the caret) the brand to download the mark */
.brand-wrap { position: relative; display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.nav-cta { flex: none; }
.kit-toggle { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-3); transition: color 0.2s var(--ease); }
.kit-toggle svg { width: 10px; height: 10px; transition: transform 0.35s var(--ease); }
.kit-toggle:hover { color: var(--ink); }
.kit {
  position: absolute; top: calc(100% + 18px); left: -12px; z-index: 60;
  width: 372px; max-width: calc(100vw - 2 * var(--pad));
  background-color: var(--ground); border: 1px solid var(--line-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease) 0.14s, transform 0.35s var(--ease) 0.14s, visibility 0s linear 0.4s;
}
.kit::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; } /* keeps the hover alive across the gap */
.brand-wrap[data-open] .kit, .brand-wrap:not([data-shut]):has(:focus-visible) .kit { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.brand-wrap[data-open] .kit-toggle, .brand-wrap:not([data-shut]):has(:focus-visible) .kit-toggle { color: var(--ink); }
.brand-wrap[data-open] .kit-toggle svg, .brand-wrap:not([data-shut]):has(:focus-visible) .kit-toggle svg { transform: rotate(180deg); }
@media (hover: hover) {
  .brand-wrap:not([data-shut]):hover .kit { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s; }
  .brand-wrap:not([data-shut]):hover .kit-toggle { color: var(--ink); }
  .brand-wrap:not([data-shut]):hover .kit-toggle svg { transform: rotate(180deg); }
}
.kit-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.kit-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; }
.kit-row + .kit-row { border-top: 1px solid var(--line); }
.kit-prev { height: 60px; display: grid; place-items: center; background: var(--ground-2); border: 1px solid var(--line); }
.kit-prev img { width: auto; height: 22px; }
.kit-prev--tile img { height: 46px; }
.kit-prev--paper { background: var(--paper); border-color: var(--paper); }
.kit-name { display: grid; gap: 3px; font-size: 14.5px; font-weight: 560; line-height: 1.25; color: var(--ink); }
.kit-name i { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.kit-files { display: grid; gap: 6px; }
.kit-files a {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 27px; padding: 0 8px 0 9px;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-2); text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.kit-files a svg { width: 11px; height: 11px; transition: transform 0.35s var(--ease); }
.kit-files a:hover { border-color: var(--ink); color: var(--ink); background: rgba(233, 234, 234, 0.06); }
.kit-files a:hover svg { transform: translateY(2px); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  font-size: 12px; font-weight: 620; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); transition: color 0.2s var(--ease); position: relative; padding-block: 6px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero { position: relative; }
.hero-stage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr;
  isolation: isolate; overflow: hidden;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 0% 100%, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.6) 40%, rgba(5, 6, 7, 0) 70%),
    linear-gradient(0deg, var(--ground) 0%, rgba(5, 6, 7, 0) 22%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.7) 0%, rgba(5, 6, 7, 0) 14%);
}
.hero-fallback {
  position: absolute; inset: 0; display: none;
  background-image: radial-gradient(rgba(233, 234, 234, 0.16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 70% 35%, #000 0%, transparent 75%);
}
.no-webgl .hero-fallback { display: block; }
.no-webgl canvas { display: none; }
.hero-copy { align-self: end; padding-top: calc(var(--nav-h) + 48px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero-copy .lead { margin-top: clamp(22px, 2.4vw, 32px); max-width: 33em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 38px); }

.status { border-top: 1px solid var(--line); background: rgba(5, 6, 7, 0.72); }
@supports (backdrop-filter: blur(1px)) { .status { background: rgba(5, 6, 7, 0.5); backdrop-filter: blur(10px); } }
.status-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 16px 18px; margin-block: 0; }
.status-line span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); white-space: nowrap; }
.status-line b { font-weight: 500; color: var(--ink); }
.status-line .deckc { color: var(--deck); }
.live-dot { width: 7px; height: 7px; background: var(--deck); flex: none; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--deck); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.6); } 70%, 100% { opacity: 0; transform: scale(1.8); } }
.hold-dot { width: 7px; height: 7px; border: 1px solid var(--ink); flex: none; }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */
.section { position: relative; padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section--raised { background: var(--ground-2); }
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.head .lead { justify-self: end; }

/* ---- Two decks: the cutaway --------------------------------------- */
.cutaway { position: relative; }
.cutaway-figure { position: relative; padding: clamp(18px, 3vw, 40px) clamp(10px, 2vw, 28px); border: 1px solid var(--line); background: var(--ground); }
.cutaway-figure > svg { width: 100%; height: auto; overflow: visible; }
.cut-hull, .cut-detail, .cut-deck, .cut-well, .cut-fill { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; }
.cut-hull { stroke-width: 1.2; }
.cut-detail { stroke: var(--line-3); stroke-width: 1; }
.cut-faint { stroke: var(--line-2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.cut-dash { stroke-dasharray: 5 6; }
.cut-water { stroke: var(--line-2); stroke-dasharray: 2 7; fill: none; vector-effect: non-scaling-stroke; }
.cut-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-3); text-transform: uppercase; }
.cut-label.big { font-size: 12px; fill: var(--ink); }
.cut-zone { transition: opacity 0.6s var(--ease); }
.cut-zone .cut-fill { stroke: none; fill: rgba(233, 234, 234, 0.0); transition: fill 0.6s var(--ease); }
.cut-zone > :not(text) { transition: opacity 0.6s var(--ease); }
.cutaway[data-active="flight"] .cut-zone[data-zone="well"] > :not(text),
.cutaway[data-active="well"] .cut-zone[data-zone="flight"] > :not(text) { opacity: 0.3; }
.cutaway[data-active="flight"] .cut-zone[data-zone="flight"] .cut-fill,
.cutaway[data-active="well"] .cut-zone[data-zone="well"] .cut-fill { fill: rgba(233, 234, 234, 0.07); }
.cut-plane { fill: var(--ground); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cut-vessel { fill: var(--ground); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cut-next { fill: none; stroke: var(--line-3); stroke-dasharray: 3 3; }
.cut-air { fill: var(--deck); stroke: var(--deck); }
.track-cut { fill: none; stroke: var(--deck); stroke-width: 1.3; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }

/* draw-in */
.draw [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .draw:not(.drawn) [pathLength] { stroke-dashoffset: 1; }
.draw [pathLength] { transition: stroke-dashoffset 2.2s var(--ease); }
.draw .cut-dash[pathLength] { stroke-dasharray: 0.006 0.007; }
.draw .cut-water[pathLength] { stroke-dasharray: 0.002 0.006; }
.js .draw:not(.drawn) .cut-dash[pathLength], .js .draw:not(.drawn) .cut-water[pathLength] { stroke-dasharray: 0.006 0.007; stroke-dashoffset: 0; opacity: 0; }
.draw .cut-dash[pathLength], .draw .cut-water[pathLength] { transition: opacity 1.2s var(--ease) 0.9s; }
.js .draw:not(.drawn) .cut-label, .js .draw:not(.drawn) .cut-plane, .js .draw:not(.drawn) .cut-vessel { opacity: 0; }
.draw .cut-label, .draw .cut-plane, .draw .cut-vessel { transition: opacity 0.8s var(--ease) 1.1s; }

.deck-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-top: 0; }
.deck-tab {
  text-align: left; padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start;
  border-left: 1px solid var(--line); position: relative; transition: background-color 0.3s var(--ease);
}
.deck-tab:first-child { border-left: 0; }
.deck-tab::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.deck-tab[data-on]::before { transform: scaleX(1); }
.deck-tab:hover { background: rgba(233, 234, 234, 0.025); }
.deck-tab .tab-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; text-align: left; width: 100%; }
.deck-tab .tab-top .mono { transition: color 0.3s var(--ease); }
.deck-tab[data-on] .tab-top .mono { color: var(--ink); }
.deck-tab .h3w { color: var(--ink); }
.deck-tab .body { font-size: 16px; }
.deck-tab .tlink { margin-top: 6px; justify-self: start; }

/* ---- Flight deck: handler's board --------------------------------- */
.board { border: 1px solid var(--line); background: var(--ground); position: relative; }
.board-plan { position: relative; padding: clamp(20px, 3vw, 44px) clamp(16px, 3vw, 44px) clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.board-plan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(233, 234, 234, 0.13) 1px, transparent 1.3px);
  background-size: 22px 22px; background-position: 11px 11px;
}
.plan { position: relative; }
.plan > svg { width: 100%; height: auto; overflow: visible; }
.plan .deck-outline { fill: rgba(233, 234, 234, 0.025); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.plan .mark { fill: none; stroke: var(--line-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .mark-dash { stroke-dasharray: 6 7; }
.plan .mark-faint { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .island { fill: var(--ground-3); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-3); }
.plan .track-air { fill: none; stroke: var(--deck); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.plan .track-air-solid { fill: none; stroke: var(--deck); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.plan .ac { fill: var(--ground); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.plan .ac-air { fill: var(--deck); stroke: var(--deck); }
.plan .ac-next { fill: none; stroke: var(--line-3); stroke-dasharray: 3 4; }
.plan .cat-pulse { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: catpulse 2.6s var(--ease) infinite; }
@keyframes catpulse { 0% { opacity: 0.8; transform: scale(0.7); } 80%, 100% { opacity: 0; transform: scale(1.9); } }

.tokens { position: absolute; inset: 0; pointer-events: none; }
.tokens .token { pointer-events: auto; }
[data-svgfit] { --k: 1; }
.cut-label, .plan .lbl, .dock .d-lbl { font-size: calc(11.5px * var(--k)) !important; }
.cut-label.big { font-size: calc(12.5px * var(--k)) !important; }
.token {
  position: absolute; transform: translate(-50%, -50%);
  width: 64px; height: 64px; display: grid; place-items: center;
}
.token::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid transparent; transition: border-color 0.3s var(--ease), inset 0.4s var(--ease);
}
.token:hover::before { border-color: var(--line-3); }
.token[aria-selected="true"]::before { inset: 0; border-color: var(--ink); }
.token .tag {
  position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; text-align: left; display: grid; gap: 1px; pointer-events: none;
}
.token .tag b { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); }
.token .tag i { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.token--left .tag { left: auto; right: calc(100% + 6px); text-align: right; }
.token--below .tag { left: 50%; top: calc(100% + 4px); transform: translateX(-50%); text-align: center; }

.board-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel { padding: clamp(24px, 3.4vw, 48px); }
.panel + .panel { border-left: 1px solid var(--line); }
.spec[hidden] { display: none; }
.spec-name { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spec-name .h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.spec .tagline { font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: var(--ink); margin-top: 18px; line-height: 1.35; max-width: 24em; text-wrap: balance; }
.spec .body { margin-top: 14px; }
.spec .tlink { margin-top: 26px; }
.state {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.state--live { border-color: rgba(242, 194, 48, 0.55); }
.state--plan { border-style: dashed; color: var(--ink-2); }

.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rows dd { color: var(--ink); font-size: 16px; line-height: 1.45; }

/* ---- 90-day rule --------------------------------------------------- */
.rule { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.rule .body { margin-top: 18px; }
.bingo { position: relative; padding: 44px 0 70px; }
.bingo-track { position: relative; height: 1px; background: var(--line-2); }
.bingo-fill { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }
.bingo-ticks { position: absolute; left: 0; right: 0; top: 38px; height: 13px; display: flex; justify-content: space-between; }
.bingo-ticks span { width: 1px; height: 13px; background: var(--line-2); }
.bingo-ticks span:nth-child(3n+1) { background: var(--line-3); height: 13px; }
.bingo-days { position: absolute; left: 0; right: 0; top: 66px; height: 18px; }
.bingo-days span { position: absolute; top: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.bingo-days .d0 { left: 0; }
.bingo-days .d30 { left: 33.333%; transform: translateX(-50%); }
.bingo-days .d60 { left: 66.667%; transform: translateX(-50%); }
.bingo-days .d90 { right: 14px; color: var(--deck); }
.bingo-line { position: absolute; right: 0; top: 0; bottom: 30px; width: 1px; background: repeating-linear-gradient(to bottom, var(--deck) 0 5px, transparent 5px 10px); }
.bingo-ac { position: absolute; top: 20px; left: calc(15px + var(--p, 1) * (100% - 30px)); width: 30px; height: 30px; transform: translate(-50%, -50%); z-index: 1; }
.bingo-ac use { fill: var(--ground); stroke: var(--ink); stroke-width: 1.2; }
.bingo-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bingo-out div { background: var(--ground); padding: 16px 18px; display: grid; gap: 4px; }
.bingo-out b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.bingo-out span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.bingo-out .struck b { text-decoration: line-through; text-decoration-color: var(--deck); }

/* ------------------------------------------------------------------ */
/* Hangar: the one light section (SHIPdock)                            */
/* ------------------------------------------------------------------ */
.hangar {
  background: var(--paper); color: var(--paper-ink); border-top: 0;
  --line: var(--paper-line); --line-2: var(--paper-line-2); --line-3: rgba(7, 8, 10, 0.55);
  color-scheme: light;
}
.hangar ::selection { background: var(--paper-ink); color: var(--paper); }
.hangar :focus-visible { outline-color: var(--paper-ink); }
.hangar .lead, .hangar .body { color: var(--paper-ink-2); }
.hangar .h2 .dim { color: var(--paper-ink-3); }
.hangar .mono { color: var(--paper-ink-3); }
.hangar .tlink { color: var(--paper-ink); }
.hangar .btn--solid { background: var(--paper-ink); color: var(--paper); }
.hangar .btn--solid:hover { background: #000; }
.hangar .btn--ghost { color: var(--paper-ink); border-color: rgba(7, 8, 10, 0.45); }
.hangar .btn--ghost:hover { border-color: var(--paper-ink); background: rgba(7, 8, 10, 0.05); }
.hangar .bracket { --bc: rgba(7, 8, 10, 0.7); }

.dock { position: relative; border: 1px solid var(--line); }
.dock-figure { position: relative; padding: clamp(16px, 2.6vw, 36px) clamp(12px, 2.4vw, 32px) clamp(8px, 1.6vw, 20px); overflow: hidden; }
.dock-figure > svg { width: 100%; height: auto; overflow: visible; }
.dock .d-line { fill: none; stroke: var(--paper-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dock .d-faint { fill: none; stroke: var(--paper-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dock .d-dash { stroke-dasharray: 5 6; }
.dock .d-water { fill: none; stroke: var(--paper-line-2); stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.dock .d-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--paper-ink-3); }
.dock .d-lbl.on { fill: var(--paper-ink); }
.dock .d-progress { fill: none; stroke: var(--paper-ink); stroke-width: 2.5; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--q, 1)); }
.dock .dv { transition: opacity 0.6s var(--ease); }
.js .dock .dv:not(.on) { opacity: 0.3; }
.dock .v-mark { fill: none; stroke: var(--paper-ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dock .v-scaf { fill: none; stroke: var(--paper-ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 3; }
.dock .v-half { stroke-dasharray: 14 4; }
.dock .v-hull { fill: var(--paper); stroke: var(--paper-ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 5 5; transition: stroke-dasharray 0.6s var(--ease); }
.dock .v-hull.done { stroke-dasharray: none; }
.dock .v-detail { fill: none; stroke: var(--paper-ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.dock .v-detail.done { stroke-dasharray: none; }
.dock .bay-fill { fill: rgba(7, 8, 10, 0); transition: fill 0.5s var(--ease); }
.dock .bay-fill.on { fill: rgba(7, 8, 10, 0.05); }

.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stage { padding: clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 32px) clamp(26px, 3vw, 40px); border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.stage:first-child { border-left: 0; }
.stage .h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.stage .mono { color: var(--paper-ink-2); }
.stage .body { font-size: 16px; }

.test { margin-top: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 88px); align-items: end; padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.test .h2 { font-size: clamp(1.7rem, 3.2vw, 2.75rem); }
.test-actions { display: grid; gap: 18px; justify-items: start; }

/* ------------------------------------------------------------------ */
/* Crew manifest                                                       */
/* ------------------------------------------------------------------ */
/* the crew board: three portraits lifted off their photos, graded to the one
   ink, standing on the dotted deck. They scan in bottom to top. */
.crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(56px, 7vw, 104px); }
.mate { position: relative; background: var(--ground); isolation: isolate; }
.mate::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 2;
  --bc: rgba(233, 234, 234, 0.4);
  transition: inset 0.5s var(--ease);
}
.mate:hover::after { inset: 6px; --bc: rgba(233, 234, 234, 0.85); }
.mate-shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.mate-shot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(233, 234, 234, 0.15) 1px, transparent 1.3px);
  background-size: 22px 22px; background-position: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 0%, transparent 78%);
}
.mate-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 54%, transparent 73%);
  mask-image: linear-gradient(#000 54%, transparent 73%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s var(--ease);
}
.js .crew:not(.in) .mate-shot img { clip-path: inset(100% 0 0 0); }
.mate-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: 0; pointer-events: none; }
.crew.in .mate-shot::after { animation: scan 1.6s var(--ease) both; }
.mate:nth-child(2) .mate-shot img, .mate:nth-child(2) .mate-shot::after { transition-delay: 0.14s; animation-delay: 0.14s; }
.mate:nth-child(3) .mate-shot img, .mate:nth-child(3) .mate-shot::after { transition-delay: 0.28s; animation-delay: 0.28s; }
@keyframes scan { 0% { bottom: 0; opacity: 0.85; } 82% { opacity: 0.85; } 100% { bottom: 100%; opacity: 0; } }
.mate-name { position: absolute; left: clamp(20px, 2.6vw, 34px); bottom: clamp(20px, 2.6vw, 32px); z-index: 1; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1; color: var(--ink); }
.mate-name span { display: block; }

.manifest { border-top: 1px solid var(--line); }
.manifest > div { display: grid; grid-template-columns: 160px minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 64px); padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.manifest dt { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.manifest .h3w { font-size: clamp(1.4rem, 2.6vw, 2.3rem); color: var(--ink); text-wrap: balance; }
.manifest .body { font-size: 16px; }

/* ------------------------------------------------------------------ */
/* Standing orders                                                     */
/* ------------------------------------------------------------------ */
.orders { display: grid; }
.order { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 88px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: end; }
.order:last-child { border-bottom: 1px solid var(--line); }
.order .was {
  display: block; color: var(--ink-3);
  font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem); font-weight: 560; letter-spacing: -0.005em; line-height: 1.2;
}
.order .was s {
  text-decoration: line-through; text-decoration-color: var(--ink-2); text-decoration-thickness: 2px;
  transition: text-decoration-color 0.9s var(--ease) 0.15s;
}
.js .order:not(.in) .was s { text-decoration-color: transparent; }
.order .now { display: block; margin-top: 12px; }
.order .h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
.order .body { font-size: 16.5px; }
.order .now { transition: opacity 0.9s var(--ease) 0.45s, transform 0.9s var(--ease) 0.45s; }
.js .order:not(.in) .now { opacity: 0; transform: translateY(14px); }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(233, 234, 234, 0.12) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 0%, transparent 70%);
}
.contact .display { font-size: clamp(2.2rem, 5.2vw, 5.2rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; gap: clamp(28px, 4vw, 40px) clamp(28px, 5vw, 88px); margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); align-items: start; position: relative; }
.contact-pick { grid-column: 1; grid-row: 1; display: grid; gap: 28px; }
.form-panel { grid-column: 2; grid-row: 1 / span 2; position: relative; background-color: var(--ground); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.direct { grid-column: 1; grid-row: 2; display: grid; gap: 12px; justify-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.direct .mono.caption { min-height: 1.45em; }
html:not(.js) .form-panel { display: none; }

.form-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 16px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field label span { color: var(--ink-3); }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--ground-2); border: 1px solid var(--line-2); border-radius: 0; padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field input { height: 50px; }
.field textarea { min-height: 172px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--ground); }
/* dashed means not done yet: an invalid field keeps a dashed ink edge until fixed */
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover, .field [aria-invalid="true"]:focus { border-color: var(--ink); border-style: dashed; }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 100px var(--ground-2) inset; transition: background-color 9999s;
}
.field-err, .form-status.is-error { display: flex; gap: 9px; align-items: baseline; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.field-err::before, .form-status.is-error::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--ink); flex: none; transform: translateY(-1px); }
.form-status { font-size: 14.5px; color: var(--ink-2); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 4px; }
.btn[disabled] { cursor: progress; opacity: 0.72; }
.btn[disabled]:active { transform: none; }
.btn[disabled] svg { transform: none; }
.sent { display: grid; gap: 18px; justify-items: start; align-content: start; outline: none; }
.sent[hidden] { display: none; }
.sent .h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-top: 6px; }
.sent .tlink { margin-top: 6px; }
.heading-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.heading-pick legend { padding: 0; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14.5px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover span { border-color: var(--line-3); color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.direct-addr { color: var(--ink); font-weight: 560; user-select: all; }
.mono.caption { text-transform: none; letter-spacing: 0.01em; font-size: 12.5px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: clamp(24px, 4vw, 64px); }
.foot-grid .brand { margin-bottom: 14px; }
.foot-grid p { color: var(--ink-2); font-size: 15px; max-width: 22em; }
.foot-col h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col li + li { margin-top: 8px; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 15px; transition: color 0.2s var(--ease); }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--line-3); }
.foot-col .mono { display: block; margin-top: 2px; font-size: 11.5px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-block: 18px; border-top: 1px solid var(--line); }
.giant { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.giant .wordmark {
  display: block; font-weight: 720; line-height: 0.74; letter-spacing: -0.03em; white-space: nowrap;
  font-size: clamp(3rem, 13.2vw, 13.4rem); color: transparent; -webkit-text-stroke: 1px rgba(233, 234, 234, 0.22);
  text-align: center; transform: translateY(18%);
  user-select: none;
}
.giant .centerline { position: absolute; left: 0; right: 0; top: 44%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-3) 0 14px, transparent 14px 26px); transform-origin: left; transition: transform 2.4s var(--ease); }
.js .giant:not(.in) .centerline { transform: scaleX(0); }

/* ------------------------------------------------------------------ */
/* Reveal (content is visible by default; JS hides only what it will   */
/* reveal, and only below the fold)                                    */
/* ------------------------------------------------------------------ */
.rv { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .rv.pre { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.rv[data-d="1"] { transition-delay: 0.08s; }
.rv[data-d="2"] { transition-delay: 0.16s; }
.rv[data-d="3"] { transition-delay: 0.24s; }

.hero .rise { animation: rise 1.2s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: 0.12s; }
.hero .rise:nth-child(3) { animation-delay: 0.24s; }
.hero .rise:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.display .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.display .line > span { display: block; animation: lineup 1.25s var(--ease) both; text-wrap: balance; }
.display .line:nth-child(2) > span { animation-delay: 0.14s; }
@keyframes lineup { from { transform: translateY(105%); } to { transform: none; } }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .head, .rule, .test, .order, .contact-grid { grid-template-columns: 1fr; }
  .head .lead { justify-self: start; }
  .contact-pick, .form-panel, .direct { grid-column: auto; grid-row: auto; }
  .manifest > div { grid-template-columns: 140px minmax(0, 1fr); }
  .manifest > div .body { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .board-body { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .stages { grid-template-columns: 1fr; }
  .stage { border-left: 0; border-top: 1px solid var(--line); }
  .stage:first-child { border-top: 0; }
  .deck-switch { grid-template-columns: 1fr; }
  .deck-tab { border-left: 0; border-top: 1px solid var(--line); }
  .deck-tab:first-child { border-top: 0; }
  .token .tag i { display: none; }
  .hero-scene::after {
    background: linear-gradient(0deg, var(--ground) 0%, rgba(5, 6, 7, 0.85) 34%, rgba(5, 6, 7, 0) 62%);
  }
}
@media (max-width: 760px) {
  .hero { min-height: 0; grid-template-rows: auto auto auto; }
  .hero-scene { position: relative; inset: auto; height: clamp(320px, 92vw, 460px); margin-top: calc(var(--nav-h) - 8px); z-index: 0; }
  .hero-scene::after { background: linear-gradient(0deg, var(--ground) 0%, rgba(5, 6, 7, 0) 12%); }
  .hero-copy { padding-top: 8px; }
  .manifest > div { grid-template-columns: 1fr; gap: 10px; }
  .manifest > div .body { grid-column: auto; }
  .crew { grid-template-columns: 1fr; }
  .mate { display: grid; grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr); align-items: end; }
  .mate-name { position: static; padding: 0 16px 22px 4px; font-size: clamp(1.1rem, 5.2vw, 1.6rem); }
  .mate:nth-child(n) .mate-shot img, .mate:nth-child(n) .mate-shot::after { transition-delay: 0s; animation-delay: 0s; }
  .rows > div { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .bingo-out { grid-template-columns: 1fr; }
  .cut-label, .plan .lbl, .dock .d-lbl { display: none; }
  .bingo-days .d30, .bingo-days .d60 { display: none; }
  .token .tag { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero-actions .btn { width: 100%; }
  .btn--lg { width: 100%; }
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .submit-row .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .token { width: 44px; height: 44px; }
  .token .tag b { font-size: 11px; }
}

/* the narrowest phones (320px, the WCAG reflow width): the nav tightens
   rather than pushing its button off the edge */
@media (max-width: 360px) {
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand span { font-size: 13px; letter-spacing: 0.04em; }
  .nav-cta { padding: 0 11px; }
  .nav-cta svg { display: none; }
}
/* tablets: the figures shrink but their labels hold their size, so the
   labels that repeat the cards below step aside until there is room */
@media (min-width: 761px) and (max-width: 1040px) {
  .cut-sub, .lbl-more { display: none; }
}
/* touch: every control gets a 44px hit area; the look stays the same */
@media (pointer: coarse) {
  .btn--sm { --h: 44px; }
  .chip span { height: 44px; }
  .kit-toggle { width: 32px; height: 44px; margin-inline: -2px; }
  .tlink { padding-block: 9px; }
  .deck-tab .tab-top { padding-block: 11px; margin-block: -11px; }
  .foot-col li + li { margin-top: 0; }
  .foot-col a { display: inline-block; padding-block: 11px; }
  .foot-col .mono { margin-top: -8px; margin-bottom: 6px; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion and ?still                                           */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .live-dot::after, .plan .cat-pulse, .mate-shot::after { display: none; }
}
html.still { scroll-behavior: auto; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .live-dot::after, .still .plan .cat-pulse, .still .mate-shot::after { display: none; }
