:root {
  --ink: #0b0a09;
  --ink-2: #120f0d;
  --ink-3: #191512;
  --cream: #ece4d6;
  --cream-dim: #a89f92;
  --cream-panel: #ece5d8;
  --rust: #c1440e;
  --rust-bright: #e35a1f;
  --rust-band: #b8410f;
  --line: rgba(236, 228, 214, 0.14);
  --line-soft: rgba(236, 228, 214, 0.08);
  --shell: min(1240px, calc(100vw - 56px));
  --header-height: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --condensed: "Oswald", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --mono: "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1.2rem; color: var(--cream-dim); }
h1, h2, h3 { margin: 0; line-height: 1; }

.shell { width: var(--shell); margin-inline: auto; }
.section { position: relative; padding: clamp(84px, 10vw, 150px) 0; }

.display {
  font-family: var(--condensed);
  font-stretch: condensed;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: .95;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rust-bright);
}
.kicker-dim { color: var(--cream-dim); letter-spacing: .28em; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; color: #000; background: var(--cream); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

/* Compact pill, per the reference. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid var(--rust);
  border-radius: 999px;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  position: absolute; inset: 0; content: "";
  background: var(--rust);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { border-color: var(--rust-bright); color: #fff; }
.btn-solid { border-color: var(--rust); background: var(--rust); color: #fff; }
.btn-solid::before { background: var(--rust-bright); }
.btn-lg { min-height: 50px; padding-inline: 26px; gap: 18px; }
.btn-nav { min-height: 36px; padding-inline: 18px; font-size: .58rem; letter-spacing: .11em; }
.btn-onlight { border-color: #b8410f; color: #1a1512; }
.btn-onlight:hover { color: #fff; }
/* High-contrast primary for use over the footage. */
.btn-cream { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.btn-cream::before { background: #fff; }
.btn-cream:hover { border-color: #fff; color: var(--ink); transform: translateY(-1px); }
/* Primary over footage: solid rust that brightens on hover. Black was the other
   option but it sinks into the dark scrim and reads as a disabled state. */
.btn-red { border-color: var(--rust); background: var(--rust); color: #fff; }
.btn-red::before { background: var(--rust-bright); }
.btn-red:hover { border-color: var(--rust-bright); color: #fff; box-shadow: 0 10px 32px rgba(227, 90, 31, .42); transform: translateY(-1px); }
/* Header CTA: quiet frosted pill that fills red on hover. */
.btn-nav { border-color: rgba(236, 228, 214, .34); background: rgba(236, 228, 214, .1); backdrop-filter: blur(10px); }
.btn-nav::before { background: var(--rust); }
.btn-nav:hover { border-color: var(--rust-bright); color: #fff; }

/* ============================================================
   NAVIGATION — fixed above the footage, transparent over the hero
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
/* Frosted, not opaque — the footage should still read through the bar. */
.site-header.scrolled {
  background: rgba(11, 10, 9, .38);
  border-color: rgba(236, 228, 214, .1);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 30px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: auto; height: 30px; opacity: .95; transition: opacity .25s; }
.brand:hover img { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-actions .btn svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Outline twin of .btn-nav for a second, lower-emphasis header action. */
.btn-nav-ghost { border-color: rgba(236, 228, 214, .22); background: transparent; }
.btn-nav-ghost::before { background: rgba(236, 228, 214, .12); }
.btn-nav-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* Two solo buttons on desktop/tablet; the dropdown trigger stands in for both
   of them on mobile, so the header never grows past two controls wide. */
.nav-dropdown { position: relative; display: none; }
.nav-dropdown-toggle svg { width: 11px; height: 11px; margin-left: 2px; transition: transform .25s var(--ease); }
.nav-dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(236, 228, 214, .14);
  border-radius: 14px;
  background: rgba(14, 12, 10, .92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-dropdown-menu.open { opacity: 1; transform: none; visibility: visible; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--cream-dim);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}
.nav-dropdown-menu a svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-dropdown-menu a:hover { color: var(--cream); background: rgba(236, 228, 214, .06); }
.nav-dropdown-menu .nav-dropdown-cta { justify-content: center; color: #fff; background: var(--rust); }
.nav-dropdown-menu .nav-dropdown-cta:hover { background: var(--rust-bright); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav-links > a:not(.btn) {
  position: relative;
  color: var(--cream-dim);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .25s;
}
.nav-links > a:not(.btn)::after { position: absolute; right: 100%; bottom: -8px; left: 0; height: 1px; content: ""; background: var(--rust); transition: right .25s var(--ease); }
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--cream); }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; border: 0; background: none; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 6px 0; background: var(--cream); transition: transform .3s, opacity .3s; }

/* ============================================================
   CINEMATIC HERO
   Pinned by position:sticky inside a tall track. The page never
   translates during the sequence; only the canvas contents change.
   ============================================================ */

.hero-track {
  position: relative;
  height: 500vh;   /* fallback: without this the hero collapses to 0 where svh is unsupported */
  height: 500svh;
}

.hero-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;   /* fallback where svh is unsupported */
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Warm grade + edge falloff so the type stays legible over the footage. */
.hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,10,9,.74) 0%, rgba(11,10,9,.12) 22%, rgba(11,10,9,0) 42%),
    /* Reaches further up than a normal scrim: the bottom row sits over the
       brightly lit suit, not over dark ground. */
    linear-gradient(0deg, rgba(11,10,9,.94) 0%, rgba(11,10,9,.74) 12%, rgba(11,10,9,.44) 24%, rgba(11,10,9,.16) 38%, rgba(11,10,9,0) 56%);
}

/* Three rows: the wordmark centred on the astronaut, then a badge, then the
   supporting row — both anchored low and to the outer columns. The only thing
   allowed near the middle of the frame is the wordmark itself. */
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding-bottom: clamp(26px, 5vh, 56px);
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-copy .shell { width: var(--shell); }
.hero-copy a { pointer-events: auto; }

.hero-mid { grid-row: 1; align-self: center; text-align: center; }

/* Pill badge, bottom-left — deliberately off the astronaut's face. The row
   wrapper carries `shell` so the pill itself can size to its content. */
.hero-badge-row { grid-row: 2; margin-bottom: clamp(16px, 2.6vh, 30px); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 7px 16px 7px 13px;
  border: 1px solid rgba(236, 228, 214, .26);
  border-radius: 999px;
  background: rgba(11, 10, 9, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cream);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust-bright); box-shadow: 0 0 10px var(--rust); }

/* MISSION and MARS flank the centred astronaut. A fixed centred gap keeps them
   tucked against the helmet — `space-between` threw them to the viewport edges
   and left a void across the middle. */
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(110px, 22vw, 330px);
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(2.9rem, 9.5vw, 9rem);
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: .86;
  text-transform: uppercase;
  text-shadow: 0 8px 46px rgba(0,0,0,.7);
}
.hero-title span { display: block; }

/* Bottom row: tagline far left, context + CTA far right. Both outer columns,
   so the centre of the frame stays clear. */
.hero-bottom {
  grid-row: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 40ch);
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.hero-tagline {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rust);
  color: var(--cream);
  font-family: var(--mono);
  font-size: clamp(.6rem, .8vw, .7rem);
  letter-spacing: .28em;
  line-height: 2;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}
.hero-b-right { display: grid; justify-items: end; gap: 20px; }
.hero-lede {
  margin: 0;
  color: #cbc2b6;
  font-size: .9rem;
  line-height: 1.72;
  text-align: right;
  text-shadow: 0 2px 16px rgba(0,0,0,.85);
}

/* Closing headline over the held final frame. */
.hero-outro {
  position: absolute; inset: 0; z-index: 4;
  display: grid; align-content: center;
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.hero-outro h2 {
  max-width: 12ch;
  font-family: var(--condensed);
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 8px 46px rgba(0,0,0,.8);
}
.hero-outro h2::after { display: block; width: 84px; height: 2px; margin-top: 22px; content: ""; background: var(--rust); }

/* Appears a beat after the headline, once the sequence has come to rest. */
.hero-prompt {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: clamp(28px, 5vh, 52px) 0 0;
  color: var(--cream);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
  opacity: 0;   /* render() drives this; keeps it from flashing before first paint */
  will-change: opacity, transform;
}
.hero-prompt i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rust-bright);
  border-radius: 50%;
  color: var(--cream);
  /* The terrain behind this is the same rust family, so an unfilled outline
     disappears against it. */
  background: rgba(11, 10, 9, .55);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
  font-style: normal;
  font-size: .8rem;
  animation: promptBob 1.9s var(--ease) infinite;
}
@keyframes promptBob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* Loading hairline. */
.hero-loader { position: absolute; right: 0; bottom: 0; left: 0; z-index: 6; height: 2px; background: rgba(236,228,214,.07); transition: opacity .6s .3s; }
.hero-loader span { display: block; width: 0; height: 100%; background: var(--rust-bright); box-shadow: 0 0 14px var(--rust); transition: width .25s var(--ease); }
.hero-loader.done { opacity: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */

/* Shared RFP download link — used in the About section and over the reel. */
.rfp-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 1.6rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(193, 68, 14, .4);
  color: var(--rust-bright);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, gap .2s;
}
.rfp-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rfp-link:hover { gap: 13px; color: var(--cream); border-color: var(--cream); }

/* ---- about ---- */
.about { border-top: 1px solid var(--line-soft); background: var(--ink); }
.about-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.about-head h2 { max-width: 14ch; font-family: var(--condensed); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: .98; text-transform: uppercase; }
.about-head p { max-width: 46ch; margin: 0; color: var(--cream-dim); font-size: .96rem; line-height: 1.75; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.about-col { padding: 32px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about-col-n { color: var(--rust-bright); font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; }
.about-col h3 { margin: 22px 0 14px; font-family: var(--condensed); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; }
.about-col p { margin: 0; max-width: 52ch; color: var(--cream-dim); font-size: .88rem; line-height: 1.75; }
.about-rfp-link { margin-top: 40px; }

/* ---- earth-was-only-the-beginning cinematic reel ----
   A second scroll-scrubbed frame sequence, structurally the same idea as the
   hero (pinned sticky stage, canvas frames, scroll-driven playhead) but
   simpler: no opening-still crossfade and no end hold, since it is a shorter
   supporting beat rather than the page's cinematic open. */
.reel-section { padding: 0; border-top: 1px solid var(--line-soft); }
.reel-track { position: relative; height: 340vh; height: 340svh; }
.reel-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.reel-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reel-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,10,9,.6) 0%, rgba(11,10,9,.05) 22%, rgba(11,10,9,0) 42%),
    linear-gradient(0deg, rgba(11,10,9,.88) 0%, rgba(11,10,9,.4) 30%, rgba(11,10,9,.08) 55%, rgba(11,10,9,0) 72%);
}
.reel-copy { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* Full-height positioning context so the three staged captions below can each
   anchor to "bottom" independently and occupy the same on-screen slot. */
.reel-copy-inner { position: relative; height: 100%; }
.reel-copy a { pointer-events: auto; }

/* Three captions stacked in the same spot, shown one at a time. JS drives
   opacity and a translateY drift per element in lockstep with scroll progress
   — each rises in, holds, and drifts on out as its own window passes, rather
   than the whole block fading as one static unit. */
.reel-stage-text {
  position: absolute;
  right: 0;
  bottom: clamp(56px, 9vh, 110px);
  left: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.reel-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 1.3rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
}
.reel-index { padding: 3px 8px; border: 1px solid rgba(236, 228, 214, .3); border-radius: 4px; color: var(--cream); }
.reel-coords { color: #a89f92; letter-spacing: .1em; }
.reel-copy h2 { max-width: 16ch; font-family: var(--condensed); font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 700; line-height: .98; text-transform: uppercase; text-shadow: 0 8px 40px rgba(0,0,0,.7); }
.reel-copy .lede { max-width: 54ch; margin-top: 1.5rem; color: #d8d2c8; font-size: .96rem; line-height: 1.8; text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.reel-copy .rfp-link { color: var(--cream); border-color: rgba(236,228,214,.4); }
.reel-copy .rfp-link:hover { color: var(--rust-bright); border-color: var(--rust-bright); }
.reel-loader { position: absolute; right: 0; bottom: 0; left: 0; z-index: 6; height: 2px; background: rgba(236,228,214,.07); transition: opacity .6s .3s; }
.reel-loader span { display: block; width: 0; height: 100%; background: var(--rust-bright); box-shadow: 0 0 14px var(--rust); transition: width .25s var(--ease); }
.reel-loader.done { opacity: 0; }

/* Programme — cream panel */
.programme { background: var(--cream-panel); color: var(--ink-3); }
.programme p { color: #6a6157; }
.programme .kicker { color: var(--rust); }
.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 58px; }
.week { position: relative; padding: 0 26px; border-left: 1px solid rgba(26,21,18,.14); }
.week:first-child { padding-left: 0; border-left: 0; }
.week .n { display: flex; align-items: center; gap: 14px; font-family: var(--condensed); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--rust); }
.week .n i { display: block; flex: 1; height: 1px; background: var(--rust); opacity: .5; }
.week h3 { margin: 22px 0 12px; font-family: var(--condensed); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.week p { margin: 0; font-size: .84rem; line-height: 1.75; }

/* Training cards */
.training { background: var(--ink); border-top: 1px solid var(--line-soft); }
.training-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.training-head h2 { font-family: var(--condensed); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; text-transform: uppercase; }
.training-head p { max-width: 44ch; margin: 0; font-size: .92rem; }
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  isolation: isolate;
}
/* Oversized with headroom above and below so the scroll parallax has somewhere
   to travel without ever exposing an edge. */
.tcard img {
  position: absolute;
  top: -12%; left: 0;
  z-index: -2;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
  transition: filter .6s var(--ease);
}
.tcard::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg, rgba(11,10,9,.94) 8%, rgba(11,10,9,.45) 48%, rgba(11,10,9,.2) 100%); }
/* Hover lift uses filter, not transform — transform is owned by the parallax. */
.tcard { transition: border-color .4s var(--ease); }
.tcard:hover { border-color: rgba(227, 90, 31, .42); }
.tcard:hover img { filter: brightness(1.09) saturate(1.06); }
.tcard .n { position: absolute; top: 24px; left: 28px; color: var(--rust-bright); font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; }
.tcard h3 { font-family: var(--condensed); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; text-transform: uppercase; }
.tcard p { margin: 12px 0 0; max-width: 30ch; font-size: .84rem; line-height: 1.7; }
.tcard .go { position: absolute; right: 28px; bottom: 30px; color: var(--rust-bright); font-size: 1.1rem; }

/* Rust statistics band */
.stats { background: var(--rust-band); color: #fff; }
.stats::before { position: absolute; inset: 0; content: ""; opacity: .13; background-image: radial-gradient(circle at 18% 30%, rgba(0,0,0,.5) 0 2px, transparent 2px), radial-gradient(circle at 72% 68%, rgba(0,0,0,.4) 0 1.5px, transparent 2px); background-size: 120px 120px, 90px 90px; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { padding: 0 40px; border-left: 1px solid rgba(255,255,255,.26); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .ico { margin-bottom: 26px; color: rgba(255,255,255,.75); font-size: 1.5rem; }
.stat strong { display: block; font-family: var(--condensed); font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.stat span { display: block; margin-top: 12px; color: rgba(255,255,255,.82); font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }

/* Who it's for */
.audience { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.audience-grid article { min-height: 200px; padding: 28px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.audience-grid .n { color: var(--rust-bright); font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; }
.audience-grid h3 { margin: 30px 0 12px; font-family: var(--condensed); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.audience-grid p { margin: 0; font-size: .84rem; }

/* FAQ */
.faq { background: var(--ink); border-top: 1px solid var(--line-soft); }
.faq-wrap { display: grid; grid-template-columns: .38fr .62fr; gap: 70px; }
.faq-intro h2 { font-family: var(--condensed); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; text-transform: uppercase; }
.faq-intro p { margin-top: 16px; font-size: .9rem; }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item button { display: flex; width: 100%; padding: 24px 0; align-items: center; justify-content: space-between; gap: 24px; color: var(--cream); border: 0; background: none; cursor: pointer; font-family: var(--condensed); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; text-align: left; text-transform: uppercase; }
.faq-item button i { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-item button i::before, .faq-item button i::after { position: absolute; top: 50%; left: 2px; width: 12px; height: 1px; content: ""; background: var(--rust-bright); transition: transform .3s; }
.faq-item button i::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-answer p { min-height: 0; margin: 0; overflow: hidden; font-size: .88rem; }
.faq-answer p a { color: var(--rust-bright); border-bottom: 1px solid rgba(193, 68, 14, .4); transition: color .2s, border-color .2s; }
.faq-answer p a:hover { color: var(--cream); border-color: var(--cream); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { padding: 0 40px 26px 0; }

/* Enlist */
.enlist { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.enlist-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(44px, 7vw, 100px); align-items: start; }
/* Standalone registration page only — the homepage teaser doesn't need it,
   since the header/footer already link home from there. */
.reg-page { padding-top: clamp(140px, 16vw, 200px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(36px, 5vw, 56px);
  color: var(--cream-dim);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s, gap .2s;
}
.back-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.back-link:hover { color: var(--cream); gap: 13px; }
.back-link:hover svg { transform: translateX(-2px); }
/* .reg-title is an <h1> on the standalone registration page, styled identically
   to the <h2> this copy block used inline on the homepage teaser. */
.enlist-copy h2, .enlist-copy .reg-title { max-width: 12ch; font-family: var(--condensed); font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.enlist-copy .lede { margin-top: 1.5rem; font-size: .98rem; line-height: 1.85; }
.enlist-points { display: grid; gap: 20px; margin-top: 2.2rem; }
.enlist-points > div { display: flex; gap: 16px; }
.enlist-points > div > span { flex: 0 0 30px; color: var(--rust-bright); font-family: var(--mono); font-size: .64rem; }
.enlist-points p { margin: 0; font-size: .82rem; }
.enlist-points strong { display: block; margin-bottom: 2px; color: var(--cream); font-family: var(--condensed); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }

.form-card { position: relative; border: 1px solid var(--line); background: rgba(18,15,13,.9); }
.form-head { display: flex; padding: 26px 30px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.form-head h3 { font-family: var(--condensed); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.form-code { color: #6d655c; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
form { padding: 28px 30px 32px; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 16px; padding-bottom: 9px; color: var(--rust-bright); border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #9d948a; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.field b, .consent b, .form-required b { color: var(--rust-bright); }
.field em { color: #6d655c; font-style: normal; }
input, textarea, select { width: 100%; color: var(--cream); border: 1px solid var(--line); border-radius: 0; outline: none; background: #0a0908; transition: border-color .25s, box-shadow .25s; }
input, select { height: 47px; padding: 0 14px; }
textarea { min-height: 100px; padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #574f47; }
input:focus, textarea:focus, select:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(193,68,14,.12); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--rust-bright); }
/* Native select arrow is unstyleable, so draw our own and hide it. */
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-dim) 50%), linear-gradient(135deg, var(--cream-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option { color: var(--cream); background: #0a0908; }
select:invalid { color: #574f47; }

/* Crew member rows — added and removed dynamically. */
legend { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.legend-count { color: #6d655c; letter-spacing: .12em; }
.member-list { display: grid; gap: 12px; }
.member-row { display: grid; grid-template-columns: 1fr 92px 44px; gap: 12px; align-items: end; }
.member-row .field { min-width: 0; }
.member-remove {
  display: grid; place-items: center;
  width: 44px; height: 47px;
  padding: 0;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  transition: color .25s, border-color .25s, background .25s;
}
.member-remove:hover:not(:disabled) { color: #fff; border-color: var(--rust); background: rgba(193,68,14,.16); }
.member-remove:disabled { opacity: .3; cursor: not-allowed; }
.btn-sm { min-height: 42px; padding-inline: 18px; gap: 14px; font-size: .64rem; }
.field-note { margin: 16px 0 0; color: #6d655c; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---- crew size selector ---- */
.crew-size {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 22px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(236, 228, 214, .03);
}

.crew-avatars { display: flex; }
.crew-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: -12px;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
  background: #221b16;
  color: #5f574e;
  font-family: var(--mono);
  font-size: .62rem;
  opacity: .4;
  transform: scale(.88);
  /* overshoot easing stands in for the source component's spring */
  transition: opacity .22s var(--ease), transform .34s cubic-bezier(.34, 1.56, .64, 1),
              background .3s, color .3s, border-color .3s;
}
.crew-avatar:first-child { margin-left: 0; }
.crew-avatar.on {
  opacity: 1;
  transform: scale(1);
  border-color: #2b211a;
  background: linear-gradient(150deg, #8a3610, var(--rust));
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.crew-avatar.lead.on { background: linear-gradient(150deg, #d8551d, var(--rust-bright)); }

.crew-stepper { display: flex; align-items: center; gap: 20px; }
.crew-step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(236, 228, 214, .04);
  color: var(--cream-dim);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .12s;
}
.crew-step svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.crew-step:hover:not([aria-disabled="true"]) { color: #fff; border-color: var(--rust); background: rgba(193, 68, 14, .2); }
.crew-step:active:not([aria-disabled="true"]) { transform: scale(.93); }
/* aria-disabled rather than the disabled attribute: a disabled button emits no
   click, so the limit-reached shake could never fire. */
.crew-step[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }

.crew-count { display: grid; justify-items: center; min-width: 66px; }
.crew-count-window { display: block; height: 40px; overflow: hidden; }
.crew-count-num {
  display: block;
  color: var(--cream);
  font-family: var(--condensed);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
}
.crew-count-label { color: #6d655c; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }

/* The counter enters from the direction it was travelling. */
@keyframes crewCountUp   { from { opacity: 0; transform: translateY(14px); }  to { opacity: 1; transform: none; } }
@keyframes crewCountDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.crew-count-num.is-up   { animation: crewCountUp .2s var(--ease); }
.crew-count-num.is-down { animation: crewCountDown .2s var(--ease); }

/* Refusal feedback when a limit is reached. */
@keyframes crewShake {
  0% { transform: translateX(-3px); } 25% { transform: translateX(3px); }
  50% { transform: translateX(-2px); } 75% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
.crew-stepper.is-shaking { animation: crewShake .28s var(--ease); }
.consent { display: flex; margin: 0 0 22px; gap: 11px; align-items: flex-start; color: #8b8278; font-size: .72rem; line-height: 1.6; }
.consent input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 16px; accent-color: var(--rust); }
.btn-submit { width: 100%; }
.form-required { margin: 12px 0 0; color: #6d655c; font-family: var(--mono); font-size: .6rem; text-align: right; }
.form-error { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(227, 90, 31, .4); background: rgba(227, 90, 31, .08); color: #e8b39c; font-size: .8rem; line-height: 1.6; }
.form-error a { color: var(--rust-bright); text-decoration: underline; }
.btn-submit[aria-busy="true"] { opacity: .7; cursor: wait; }

/* Homepage registration teaser — a portal into register.html, not the form
   itself. Reuses the .form-card frame for visual continuity with the previous
   embedded form. */
.portal-body { padding: 28px 30px 32px; }
.portal-lede { max-width: 42ch; margin: 0 0 22px; color: var(--cream-dim); font-size: .9rem; line-height: 1.7; }
.check-list { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 22px; color: #b9b1a6; font-size: .84rem; }
.check-list li::before { position: absolute; top: .6em; left: 0; width: 9px; height: 1px; content: ""; background: var(--rust-bright); box-shadow: 0 0 6px var(--rust); }
.portal-body .btn-submit { justify-content: space-between; gap: 18px; }
.form-confirmation { display: grid; min-height: 480px; padding: 54px; place-content: center; text-align: center; }
/* Any author `display` rule beats the UA's [hidden]{display:none}, so without
   this the confirmation panel renders before anything has been submitted. */
.form-confirmation[hidden], [hidden] { display: none !important; }
.confirmation-icon { display: grid; width: 66px; height: 66px; margin: 0 auto 24px; place-items: center; border: 1px solid rgba(227,90,31,.5); border-radius: 50%; color: var(--rust-bright); font-size: 1.4rem; }
.form-confirmation h3 { margin: 10px 0 14px; font-family: var(--condensed); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; }
.form-confirmation p { max-width: 42ch; margin-inline: auto; }
.form-confirmation .btn { margin: 18px auto 0; }

/* Final check */
.launch { position: relative; overflow: hidden; background: var(--ink); border-top: 1px solid var(--line-soft); }

/* ---- footer aurora ---- */
.aurora-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.aurora-canvas.is-ready { opacity: 1; }

/* Sits over the shader: warm bloom, plus a floor and ceiling fade so the
   section still joins cleanly to the neighbouring dark blocks. */
.aurora-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 30%, rgba(242, 215, 168, .10), transparent 26%),
    radial-gradient(circle at 16% 76%, rgba(210, 82, 26, .16), transparent 32%),
    linear-gradient(180deg, rgba(11, 10, 9, .72), rgba(11, 10, 9, .12) 34%, rgba(11, 10, 9, .1) 62%, rgba(11, 10, 9, .78));
}

/* If WebGL is unavailable the canvas never fades in; this stands in for it. */
.site-footer.no-webgl {
  background:
    radial-gradient(ellipse at 68% 26%, rgba(210, 82, 26, .2), transparent 52%),
    radial-gradient(ellipse at 22% 78%, rgba(242, 215, 168, .07), transparent 46%),
    linear-gradient(160deg, #180e07, #060505 64%);
}

.launch-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.launch h2 { font-family: var(--condensed); font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 700; text-transform: uppercase; }
.launch p { margin-top: 1.4rem; font-size: .96rem; line-height: 1.9; }
.launch .btn { justify-self: end; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 118px) 0 26px;
  border-top: 1px solid var(--line-soft);
  background: #060505;
}
.footer-inner { position: relative; z-index: 2; }

.footer-lead {
  display: grid;
  justify-items: start;
  gap: 26px;
  padding-bottom: clamp(44px, 6vw, 76px);
}
.footer-brand img { height: 40px; width: auto; }
.footer-statement {
  margin: 0;
  max-width: 16ch;
  color: var(--cream);
  font-family: var(--condensed);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: .98;
  text-transform: uppercase;
}
.footer-statement span { color: var(--rust-bright); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: clamp(36px, 4vw, 54px) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h3 {
  margin-bottom: 6px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-col a { color: var(--cream-dim); font-size: .84rem; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--cream); transform: translateX(3px); }
.footer-meta { color: #6d655c; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-meta em { display: block; margin-top: 3px; color: var(--cream-dim); font-style: normal; letter-spacing: .06em; }

.footer-social { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream-dim);
  font-family: var(--mono);
  font-size: .58rem;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.footer-social a:hover { color: #fff; border-color: var(--rust); background: rgba(193, 68, 14, .22); transform: translateY(-2px); }
.footer-tag { margin: 6px 0 0; color: #6d655c; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; line-height: 1.9; text-transform: uppercase; }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: #6d655c;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer-coords { color: #4f4841; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Elements driven continuously by scroll position rather than a one-shot
   reveal. JS writes the transform; declaring will-change here keeps them on
   their own compositor layer so scrolling stays smooth. */
[data-parallax] { will-change: transform; }

/* Scroll-linked section rule that draws itself in as the section arrives. */
.rule { position: relative; height: 1px; margin-bottom: 46px; background: var(--line-soft); overflow: hidden; }
.rule::after {
  position: absolute; inset: 0 auto 0 0; width: 100%; content: "";
  background: linear-gradient(90deg, var(--rust), var(--rust-bright));
  transform: scaleX(var(--draw, 0)); transform-origin: left;
}
.programme .rule { background: rgba(26,21,18,.14); }

@media (max-width: 1080px) {
  .week-grid { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .week:nth-child(4) { padding-left: 0; border-left: 0; }
  .card-row { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .about-head { grid-template-columns: 1fr; gap: 20px; }
}

/* Tablet: the wordmark can no longer clear the helmet at a readable size, so it
   stacks and the whole block moves to the bottom-left, as on phones. */
/* Desktop only: the wordmark breaks out of the shell and splits to the very
   edges of the viewport, with the astronaut framed in the gap between. */
@media (min-width: 1025px) {
  .hero-copy .hero-mid { width: 100%; padding-inline: clamp(18px, 3vw, 46px); }
  .hero-title { justify-content: space-between; gap: clamp(120px, 12vw, 260px); }
}

/* Below this the wordmark can no longer clear the helmet at a readable size, so
   it stacks and the whole block moves bottom-left, clear of the face. */
@media (max-width: 1024px) {
  .hero-copy { grid-template-rows: 1fr auto auto; align-content: end; }
  .hero-mid { grid-row: 2; align-self: end; text-align: left; }
  .hero-badge-row { grid-row: 1; align-self: end; margin-bottom: 14px; }
  .hero-bottom { grid-row: 3; grid-template-columns: 1fr; justify-content: start; gap: 18px; margin-top: clamp(16px, 3vh, 30px); }
  .hero-title { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; font-size: clamp(2.9rem, 12vw, 6.4rem); }
  .hero-tagline { padding-top: 10px; letter-spacing: .24em; line-height: 1.7; }
  .hero-b-right { justify-items: start; gap: 16px; }
  .hero-lede { max-width: 46ch; text-align: left; }
}

@media (max-width: 900px) {
  :root { --header-height: 66px; --shell: min(100% - 36px, 1240px); }
  .brand img { height: 26px; }
  /* Below this width the two solo header actions give way to one dropdown
     trigger, so the header stays two controls wide instead of three. */
  .nav-action-solo { display: none; }
  .nav-dropdown { display: block; }
  /* The copy block covers roughly the lower half here, and lands on the brightly
     lit suit — the desktop scrim is nowhere near enough to hold contrast. */
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(11,10,9,.7) 0%, rgba(11,10,9,.1) 20%, rgba(11,10,9,0) 38%),
      linear-gradient(0deg, rgba(11,10,9,.96) 0%, rgba(11,10,9,.84) 20%, rgba(11,10,9,.5) 40%, rgba(11,10,9,.14) 60%, rgba(11,10,9,0) 74%);
  }
  .menu-toggle { position: relative; z-index: 2; display: block; flex: 0 0 44px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: fixed; inset: var(--header-height) 0 auto; display: grid; max-height: 0; padding: 0 24px; gap: 0; overflow: hidden; background: rgba(11,10,9,.98); opacity: 0; transition: max-height .45s var(--ease), padding .35s, opacity .3s; }
  .nav-links.open {
    /* dvh tracks the mobile URL bar; without the vh fallback first, browsers
       that don't understand dvh drop the whole declaration and the menu never opens. */
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding-block: 16px 26px;
    opacity: 1;
  }
  .nav-links > a:not(.btn) { padding: 15px 2px; border-bottom: 1px solid var(--line-soft); font-size: .78rem; }
  .nav-links > a:not(.btn)::after { display: none; }
  .btn-nav { padding-inline: 16px; font-size: .6rem; letter-spacing: .16em; }
  .training-head, .faq-wrap, .enlist-grid, .launch-grid, .about-head { grid-template-columns: 1fr; gap: 34px; }
  .launch .btn { justify-self: start; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 26px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.26); }
  .stat:first-child { padding-top: 0; border-top: 0; }
  .stat .ico { margin-bottom: 14px; }
  .about-grid { grid-template-columns: 1fr; }
  /* Copy lands on brightly lit sky/suit here too — same reasoning as the hero. */
  .reel-veil {
    background:
      linear-gradient(180deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,.05) 20%, rgba(11,10,9,0) 36%),
      linear-gradient(0deg, rgba(11,10,9,.94) 0%, rgba(11,10,9,.7) 26%, rgba(11,10,9,.28) 50%, rgba(11,10,9,0) 70%);
  }
}

@media (max-width: 660px) {
  .section { padding: 74px 0; }
  .reel-stage-text { bottom: clamp(30px, 6vh, 60px); }
  .reel-kicker { gap: 6px 10px; }
  .reel-copy .lede { font-size: .86rem; }
  /* Copy sits under the astronaut's face, bottom-left, CTA full width. The
     footage is only 946px tall, so the face cannot be repositioned vertically —
     the block is kept compact instead so it clears the chin. */
  .hero-copy { padding-bottom: clamp(24px, 4.5vh, 48px); }
  .hero-badge-row { margin-bottom: 12px; }
  .hero-badge { padding: 6px 14px 6px 11px; font-size: .54rem; letter-spacing: .16em; }
  /* Closing headline and prompt drop to the bottom-left too, matching the hero. */
  .hero-outro { align-content: end; padding-bottom: clamp(34px, 8vh, 78px); }
  .hero-outro h2 { max-width: 9ch; font-size: clamp(2.4rem, 13vw, 3.8rem); }
  .hero-outro h2::after { margin-top: 16px; }
  .hero-prompt { margin-top: clamp(20px, 3.5vh, 34px); font-size: .58rem; letter-spacing: .18em; }
  .hero-title { font-size: clamp(2.6rem, 13.5vw, 4.2rem); line-height: .82; }
  .hero-tagline { padding-top: 9px; font-size: .55rem; letter-spacing: .2em; line-height: 1.75; }
  .hero-bottom { margin-top: 16px; gap: 14px; }
  .hero-b-right { width: 100%; gap: 14px; }
  .hero-b-right .btn { width: 100%; }
  .hero-lede { max-width: 32ch; font-size: .82rem; line-height: 1.65; }
  .week-grid { grid-template-columns: 1fr; row-gap: 34px; }
  .week { padding-left: 0; border-left: 0; }
  .card-row { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-head { padding: 22px; }
  form { padding: 24px 22px 26px; }
  /* Keep name/age/remove on one row even at 375px — stacking them makes the
     crew list read as unrelated fields rather than one member per row. */
  .member-row { grid-template-columns: 1fr 74px 44px; gap: 8px; }
  .member-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* At 12 seats the desktop 42px/12px-overlap sizing runs to 372px, wider than
     the card here — shrink so all 12 always sit on one row instead of
     clipping off the edge. 32px/10px-overlap keeps the full row to ~274px. */
  .crew-avatar { width: 32px; height: 32px; margin-left: -10px; font-size: .56rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand img { height: 32px; }
}

/* The sequence still tracks scroll, but the eased glide, the opening push and
   every entrance transition are removed, and the pin is much shorter. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-track { height: 200vh; height: 200svh; }
}

/* ============================================================
   MULTI-PAGE SHELL
   Sub-pages reuse the homepage header/footer verbatim; the active
   nav item is derived from body[data-page] so the markup stays
   identical on every page.
   ============================================================ */
body[data-page="build"]   .nav-links > a[href="build.html"],
body[data-page="faq"]     .nav-links > a[href="faq.html"],
body[data-page="rules"]   .nav-links > a[href="rules.html"],
body[data-page="awards"]  .nav-links > a[href="awards.html"] { color: var(--cream); }
body[data-page="build"]   .nav-links > a[href="build.html"]::after,
body[data-page="faq"]     .nav-links > a[href="faq.html"]::after,
body[data-page="rules"]   .nav-links > a[href="rules.html"]::after,
body[data-page="awards"]  .nav-links > a[href="awards.html"]::after { right: 0; }

.page-head-section, .idc-hero { padding-top: clamp(140px, 16vw, 200px); padding-bottom: clamp(50px, 6vw, 80px); }
.page-title {
  max-width: 18ch;
  font-family: var(--condensed);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.page-lede { max-width: 62ch; margin-top: 1.6rem; font-size: 1rem; line-height: 1.85; }
.page-head-section .kicker { margin-bottom: 18px; }

/* Shared end-of-page hand-off block. */
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: clamp(50px, 7vw, 80px);
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.page-cta > p { max-width: 40ch; margin: 0; font-size: .9rem; }
.page-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.page-cta-actions .rfp-link { margin-top: 0; }
.btn-quiet { color: var(--cream-dim); }

/* ---- IDC card inside the About section ---- */
.idc-col { position: relative; }
.idc-col-logo { position: absolute; top: 26px; right: 26px; width: 62px; height: 62px; opacity: .5; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.idc-col:hover .idc-col-logo { opacity: .95; transform: scale(1.04); }
.idc-col h3 { max-width: 18ch; }
.idc-discover-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid rgba(236, 228, 214, .22);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: gap .25s var(--ease), border-color .25s, background-color .25s;
}
.idc-discover-link:hover { gap: 14px; border-color: var(--rust-bright); background: rgba(193, 68, 14, .14); }

/* ---- Modelling Mars: specialisation tiles ---- */
.modelling-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.m-tile {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .3s var(--ease);
}
.m-tile:hover { background: rgba(193, 68, 14, .07); }
.m-tile .n { color: var(--rust-bright); font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; }
.m-tile h3 { margin: 26px 0 10px; font-family: var(--condensed); font-size: 1.05rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.m-tile p { margin: 0; font-size: .8rem; line-height: 1.65; }

/* ---- Materials ---- */
.materials-section { border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.materials { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.materials-media { overflow: hidden; border: 1px solid var(--line); }
.materials-media img { width: 100%; height: 100%; object-fit: cover; }
.materials-copy h2 { margin: 16px 0 18px; font-family: var(--condensed); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.materials-copy .lede { font-size: .95rem; }
.materials-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid var(--line-soft); }
.materials-facts > div { padding: 20px 18px 0 0; }
.materials-facts strong { display: block; color: var(--rust-bright); font-family: var(--condensed); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.materials-facts span { display: block; margin-top: 9px; color: var(--cream-dim); font-size: .76rem; line-height: 1.6; }

/* ---- Rules: do / do-not cards ---- */
.dos-donts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.dd-card { padding: clamp(26px, 3.4vw, 42px); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dd-card .kicker { margin-bottom: 26px; font-size: 1.3rem; letter-spacing: .18em; }
.dd-card .check-list { margin-bottom: 0; }
.dd-card .check-list li { font-size: .88rem; }
.dd-do { background: rgba(193, 68, 14, .05); }
.dd-dont .kicker { color: var(--cream-dim); }
/* Prohibitions get a cross rather than the dash used for affirmative lists. */
.check-list-dont li::before {
  top: .42em;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  content: "\00d7";
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1;
}

/* ---- Rules: numbered blocks ---- */
.rules-full { border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.rules-block { margin-top: clamp(34px, 4vw, 54px); padding-top: 30px; border-top: 1px solid var(--line-soft); }
.rules-block:first-of-type { margin-top: 0; }
.rules-block > h3 { margin-bottom: 24px; font-family: var(--condensed); font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rules-list { display: grid; gap: 16px; margin: 0; padding-left: 1.5em; }
.rules-list li { color: var(--cream-dim); font-size: .88rem; line-height: 1.75; }
.rules-list li::marker { color: var(--rust-bright); font-family: var(--mono); font-size: .78rem; }
.rules-list strong { color: var(--cream); font-weight: 600; }

/* ---- Awards ---- */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.award-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 30px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .35s var(--ease);
}
.award-card:hover { background: rgba(193, 68, 14, .08); }
.award-ico { color: var(--rust-bright); font-size: 1.5rem; line-height: 1; }
.award-card h3 { margin: 26px 0 12px; font-family: var(--condensed); font-size: 1.2rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.award-card p { margin: 0 0 20px; font-size: .82rem; line-height: 1.65; }
.prize-tbc {
  margin-top: auto;
  color: var(--cream-dim);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}
.award-card-lead { background: rgba(193, 68, 14, .12); }
.award-card-lead .award-ico { font-size: 2rem; }

/* ---- Judging criteria ---- */
.criteria-section { border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.criterion { min-height: 180px; padding: 28px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.criterion .n { color: var(--rust-bright); font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; }
.criterion h3 { margin: 26px 0 12px; font-family: var(--condensed); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }
.criterion p { margin: 0; font-size: .82rem; line-height: 1.65; }

/* ---- Mars facts ---- */
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.fact-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  transition: background-color .35s var(--ease);
}
.fact-card:hover { background: rgba(193, 68, 14, .07); }
.fact-num {
  display: block;
  color: var(--rust-bright);
  font-family: var(--condensed);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fact-unit { display: block; margin-top: 12px; color: var(--cream); font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.fact-label { display: block; margin-top: auto; padding-top: 22px; color: var(--cream-dim); font-size: .8rem; line-height: 1.6; }
.facts-extra-section { border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.facts-notes, .methods-grid { grid-template-columns: repeat(3, 1fr); }
.methods-grid article, .facts-notes article { min-height: 0; }
.methods-grid p, .facts-notes p { font-size: .84rem; line-height: 1.7; }
.methods-section { border-top: 1px solid var(--line-soft); }

/* ---- Survive ---- */
.survive-grid { grid-template-columns: repeat(3, 1fr); }
.survive-grid p { line-height: 1.7; }

/* ---- IDC page ---- */
.idc-hero-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.idc-hero-mark img { width: 100%; height: auto; }
.idc-hero .page-title { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.idc-story { border-top: 1px solid var(--line-soft); }
.idc-story .about-col-n { letter-spacing: .2em; }
.idc-brand { border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.idc-marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.idc-mark-card { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0; padding: 34px 24px; border: 1px solid var(--line-soft); }
.idc-mark-card img { width: 100%; max-width: 168px; height: auto; }
.idc-mark-icon { max-width: 132px; }
.idc-mark-light { background: var(--cream-panel); }
.idc-mark-card figcaption { color: var(--cream-dim); font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.idc-mark-light figcaption { color: #6b6157; }
.idc-symbols { margin-top: 0; }

.audience-h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

/* ============================================================
   RESPONSIVE — new page sections
   ============================================================ */
@media (max-width: 1080px) {
  .modelling-grid { grid-template-columns: repeat(3, 1fr); }
  .awards-grid, .criteria-grid, .survive-grid, .facts-notes, .methods-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .idc-marks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .materials { grid-template-columns: 1fr; }
  .idc-hero-grid { grid-template-columns: 1fr; justify-items: start; }
  .idc-hero-mark { max-width: 170px; }
  .dos-donts { grid-template-columns: 1fr; }
  .page-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 660px) {
  .modelling-grid { grid-template-columns: 1fr 1fr; }
  .m-tile { min-height: 0; padding: 20px; }
  .awards-grid, .criteria-grid, .survive-grid, .facts-notes, .methods-grid, .facts-grid { grid-template-columns: 1fr; }
  .award-card, .criterion, .fact-card { min-height: 0; }
  .materials-facts { grid-template-columns: 1fr; }
  .materials-facts > div { padding: 16px 0 0; }
  .idc-marks { grid-template-columns: 1fr; }
  .idc-col-logo { position: static; margin-bottom: 18px; }
  .page-cta-actions { width: 100%; }
  .page-cta-actions .btn { width: 100%; justify-content: center; }
}
