/* The HQ: a single deliberate dark look. Concrete-black ground, warm stone type, one brushed-copper accent.
   Layout: full-bleed cinematic chapters, each one idea per screen, few borders, lots of air.
   Type: headlines in large, tight, mixed-case Inter Tight (a club, not a gym flyer); Bebas Neue only for
   athletic data: temperatures, station names, counts, the countdown and the HYROX wordmark. */
:root {
  --nav-mid: 37px; /* centre line of the nav row: 18px padding + half its 38px controls */
  --ink: #0b0a09;
  --char: #151311;
  --line: #2a2622;
  --stone: #ece5d9;
  --mute: #9a9184;
  --copper: #c8834f;
  --copper-hi: #e6a877;
  --ice: #a9d3e0;
  --heat: #e9a052;
  --tint: var(--copper);

  --f-cond: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --fs-mega: clamp(5.5rem, 28vw, 26rem);
  --fs-display: clamp(2.5rem, 6vw, 6.4rem);
  --fs-quote: clamp(1.7rem, 3.4vw, 3.4rem);
  --fs-lede: clamp(1.1rem, 1.45vw, 1.4rem);
  --fs-small: 0.9rem;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--stone);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--copper); color: var(--ink); }
.skip { position: fixed; left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 300; padding: 0.7rem 1rem; border-radius: 999px; background: var(--stone); color: var(--ink); font-size: 0.8rem; transform: translateY(-160%); transition: transform 0.3s var(--ease); }
.skip:focus-visible { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared type ---------- */
.display {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
/* the second line steps back in tone instead of shouting in colour */
.display em, .manifesto em, .step-title em, .hero-title em {
  font-style: normal;
  color: color-mix(in oklab, var(--stone) 64%, var(--ink));
}
.manifesto em { color: var(--copper-hi); }
/* the one oversized word on the page: still Inter Tight, so Bebas stays for numbers */
.mega {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: var(--fs-mega);
  line-height: 0.84;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.kicker {
  display: flex;
  gap: 0.9em;
  align-items: baseline;
  margin: 0 0 1.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.kicker-num { color: var(--copper); font-variant-numeric: tabular-nums; }
.lede {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  font-size: var(--fs-lede);
  color: color-mix(in oklab, var(--stone) 82%, var(--ink));
  text-wrap: pretty;
}
.small { font-size: var(--fs-small); color: var(--mute); max-width: 30rem; }
.serif-quote {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: var(--fs-quote);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- chrome: grain, loader, nav ---------- */
.grain {
  position: fixed;
  inset: -10%; /* enough room for its drift; -50% painted 4x the screen */
  z-index: 90;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}


.loader { display: none; }
html.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2rem;
  background: var(--ink);
  animation: loader-failsafe 0.3s 2.5s forwards; /* if the scripts never arrive, the page still shows itself */
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-mark { width: min(34vw, 260px); color: var(--copper); }
.loader-mark svg { width: 100%; height: auto; overflow: visible; }
.loader-mark path { fill: transparent; stroke: var(--copper); stroke-width: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader-meta {
  display: flex;
  gap: 2.4rem;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 18px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--ink) 70%, transparent), transparent);
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav, .nav-end { pointer-events: none; } .nav a, .nav button { pointer-events: auto; } /* only real controls take clicks, never the bar or an empty group (the hero's pause sits beneath it) */
.nav.on-hero { background: none; } /* the hero's own top shade does this job; doubled, it dimmed the name beneath */
/* off the hero the nav carries its own ink, so it never sits on a headline */
.nav::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; background: linear-gradient(var(--ink) 35%, color-mix(in oklab, var(--ink) 0%, transparent)); opacity: 1; transition: opacity 0.5s var(--ease); pointer-events: none; }
.nav.on-hero::before { opacity: 0; }
.nav-cta { transition: opacity 0.4s var(--ease), border-color 0.3s, background 0.3s; }
.nav.on-hero .nav-cta { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s var(--ease), visibility 0s 0.4s; }
.nav-logo { transition: opacity 0.5s var(--ease); }
.nav.on-hero .nav-logo, .nav.mark-up .nav-logo { opacity: 0; visibility: hidden; pointer-events: none; } /* the hero already signs itself: THE HQ wordmark, then the metal mark */
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-menu { display: none; position: relative; width: 44px; height: 44px; border: 1px solid color-mix(in oklab, var(--stone) 28%, transparent); border-radius: 999px; background: none; color: var(--stone); cursor: pointer; }
.nav-menu i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease); }
.nav-menu i:first-of-type { top: 18px; } .nav-menu i:last-of-type { top: 24px; }
.nav-menu[aria-expanded="true"] i:first-of-type { transform: translateY(3px) rotate(45deg); }
.nav-menu[aria-expanded="true"] i:last-of-type { transform: translateY(-3px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 79;
  display: flex; flex-direction: column; gap: 2rem;
  padding: 96px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  background: color-mix(in oklab, var(--ink) 96%, transparent);
}
.menu[hidden] { display: none; }
/* the dialog's own close control: for keyboard and screen readers, visible once focused (the header toggle shows the X) */
.menu-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); right: var(--gutter); width: 44px; height: 44px; padding: 0; border: 1px solid color-mix(in oklab, var(--stone) 28%, transparent); border-radius: 999px; background: none; color: var(--stone); cursor: pointer; }
.menu-close i { position: absolute; left: 14px; right: 14px; top: 21px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.menu-close i + i { transform: rotate(-45deg); }
.menu-close:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.nav-menu[aria-expanded="true"] { visibility: hidden; } /* while open, the dialog's own X stands in its place */
.menu { z-index: 81; }
.menu { overflow-y: auto; overscroll-behavior: contain; }
.nav.at-form .nav-cta { opacity: 0; visibility: hidden; pointer-events: none; }
.nav.is-hidden:focus-within { transform: none; }
.menu nav { display: grid; margin-top: auto; } /* bottom-weighted when it fits, scrolls from the top when it doesn't */
.menu a { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-family: var(--f-text); font-weight: 600; font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--stone); }
.menu a span { font-family: var(--f-text); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--copper); }
.menu-meta { margin: 0; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 820px) { .nav-menu { display: block; } .nav-cta { padding: 0.62rem 0.95rem; min-height: 44px; display: inline-flex; align-items: center; } }
.nav-logo { width: 52px; color: var(--stone); }
.nav-logo svg { width: 100%; height: auto; display: block; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a { color: var(--mute); transition: color 0.3s; position: relative; padding-block: 6px; }
.nav-links a.is-active { color: var(--stone); }
@media (hover: hover) { .nav-links a:hover { color: var(--stone); } }
.nav-links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); }
.nav-cta {
  display: inline-flex;
  padding: 0.7rem 1.15rem;
  border: 1px solid color-mix(in oklab, var(--copper) 70%, transparent);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
@media (hover: hover) { .nav-cta:hover { background: var(--copper); color: var(--ink); } }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- hero: one cinematic reel, one line, one action. The copper mark arrives on scroll. ---------- */
.hero { position: relative; }
.hero-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.12) brightness(0.78) contrast(1.05); /* warmed to sit with the room photo, as one shoot */
  transform-origin: 50% 46%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, color-mix(in oklab, var(--ink) 88%, transparent) 0%, transparent 46%),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 55%, transparent) 0%, transparent 22%),
    radial-gradient(120% 90% at 50% 45%, transparent 45%, color-mix(in oklab, var(--ink) 60%, transparent) 100%);
}

.hero-copy {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 18px);
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
/* on the first screen the kicker and meta take the nav's empty logo and CTA slots, on the nav's own centre line */
.hero-top { position: absolute; z-index: 81; left: var(--gutter); right: calc(var(--gutter) + 52px); top: calc(env(safe-area-inset-top, 0px) + var(--nav-mid)); transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.hero-kicker, .hero-title-in { display: block; }
/* the name as a lockup in the headline voice: the club set firm, its maker quieter beside it */
.hero-kicker {
  margin: 0;
  font-family: var(--f-text);
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--copper-hi);
}
.hero-kicker b { font-weight: 600; letter-spacing: -0.03em; margin-right: 0.12em; }
.hero-kicker span, .hero-meta span { display: inline-block; }
.hero-main { grid-row: 2; align-self: end; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem clamp(32px, 5vw, 96px); padding-right: 0; }
.hero-title {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: color-mix(in oklab, var(--stone) 62%, var(--ink)); }
/* desktop: a soft local shade behind the headline only, so both lines hold up on the reel's brightest frames without
   dimming the footage as a whole; it fades out well before the CTA */
@media (min-width: 701px) {
  .hero-main { position: relative; }
  .hero-main::before { content: ""; position: absolute; z-index: 0; left: calc(-1 * var(--gutter)); top: -45%; bottom: -35%; width: min(64%, 900px); pointer-events: none;
    background: radial-gradient(ellipse 78% 70% at 30% 55%, color-mix(in oklab, var(--ink) 80%, transparent) 0%, color-mix(in oklab, var(--ink) 55%, transparent) 45%, transparent 100%); }
  .hero-title { text-shadow: 0 2px 28px rgba(8, 7, 6, 0.6); }
  .hero-title em { color: color-mix(in oklab, var(--stone) 70%, var(--ink)); }
  .hero-main > * { position: relative; z-index: 1; }
}
.hero-cta { margin: 0 0 0.5rem; flex: none; }
/* THE HQ, edge to edge along the foot of the hero, like a signature under the picture */
.hero-word { grid-row: 3; margin-top: clamp(1.6rem, 4.5vh, 3.4rem); clip-path: inset(-100vh -10vw 0 -10vw); color: var(--stone); }
.hero-word svg {
  display: block; width: 100%; height: auto;
  /* the top of the word melts into the footage, so it rises out of the floor instead of shouting; solid again in flight */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--wm-top, 0.1)) 0%, #000 56%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--wm-top, 0.1)) 0%, #000 56%);
}
.hero-word.is-flying svg { -webkit-mask-image: none; mask-image: none; }

/* the club itself, waiting on the far side of the Q */
.hero-dim { position: absolute; inset: 0; background: #050404; opacity: 0; pointer-events: none; }
.hero-room { position: absolute; inset: 0; opacity: 0; }
.hero-room img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86) sepia(0.12); transform: scale(1.12); } /* the arrival should read as a place; the payoff carries its own local shade */
.hero-pause {
  position: absolute; z-index: 3;
  right: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + var(--nav-mid)); transform: translateY(-50%);
  width: 44px; height: 44px; /* the tap area stays generous; what shows is only a small glyph */
  border: 0; border-radius: 50%; padding: 0;
  background: none; color: var(--stone); cursor: pointer;
  opacity: 0.42; transition: opacity 0.3s var(--ease);
}
.hero-pause i { position: absolute; inset: 0; margin: auto; width: 8px; height: 10px; border-inline: 2px solid currentColor; box-sizing: border-box; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.hero-pause[aria-pressed="true"] i { width: 0; height: 0; border-inline: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; transform: translateX(1px); }
.hero-pause:focus-visible { opacity: 1; outline: 2px solid var(--copper); outline-offset: 0; }
@media (hover: hover) { .hero-pause:hover { opacity: 0.85; } }
/* Below the header whenever the chapter menu is visible. */
@media (max-width: 820px) { .hero-pause { top: calc(env(safe-area-inset-top, 0px) + 76px); transform: none; } }
.hero-meta {
  display: flex;
  gap: 2.4rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--stone) 70%, transparent);
}
@media (min-width: 821px) and (max-width: 1180px) { .hero-meta { display: none; } .hero-main { flex-wrap: wrap; } .hero-main .hero-when { display: block; flex: 0 0 100%; margin: 0 0 -0.6rem; } }
.hero-flash { position: absolute; inset: 0; z-index: 3; background: linear-gradient(transparent 55%, var(--ink)); opacity: 0; pointer-events: none; }
.hero-pause { z-index: 4; }
.hero-when { display: none; margin: 0 0 1rem; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); opacity: 0.86; }
/* reduced motion: the room and its line as a still frame after the hero */
.hero-after { position: relative; min-height: 100svh; display: grid; overflow: hidden; }
.hero-after .hero-room { opacity: 1; }
.hero-after .hero-room img { transform: none; }
.hero-after .hero-inside { opacity: 1; }
/* the payoff once the camera is through the Q */
.hero-inside { position: absolute; inset: 0; z-index: 2; isolation: isolate; display: grid; place-content: center; justify-items: center; gap: 1.2rem; margin: 0; padding: 0 var(--gutter); text-align: center; opacity: 0; pointer-events: none; }
.hero-inside::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(ellipse 60% 52% at 50% 50%, color-mix(in oklab, var(--ink) 88%, transparent), transparent 100%); }
.hero-inside-k { margin: 0; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.hero-inside-t { margin: 0; font-family: var(--f-text); font-weight: 600; font-size: clamp(2.6rem, 6.6vw, 7rem); line-height: 0.96; letter-spacing: -0.045em; color: var(--stone); text-wrap: balance; }
.hero-inside-t em { font-style: normal; color: color-mix(in oklab, var(--stone) 60%, var(--ink)); }
.hero-inside-l { margin: 0.4rem 0 0; max-width: 30rem; font-size: var(--fs-lede); color: var(--stone); text-shadow: 0 1px 24px #000; text-wrap: balance; }
@media (max-width: 700px) {
  .hero-shade { background: linear-gradient(to top, color-mix(in oklab, var(--ink) 94%, transparent) 0%, color-mix(in oklab, var(--ink) 58%, transparent) 36%, transparent 62%), linear-gradient(to bottom, color-mix(in oklab, var(--ink) 55%, transparent) 0%, transparent 22%); }
  .hero-video { object-position: 50% 22%; filter: sepia(0.12) brightness(0.9) contrast(1.05); }
  .hero-title { font-size: max(2.2rem, min(9.6vw, 3.4rem)); }
  .hero-title em { color: color-mix(in oklab, var(--stone) 68%, var(--ink)); } /* the second line holds up over the brightest reel frames */
  .hero-inside-t em { color: color-mix(in oklab, var(--stone) 74%, var(--ink)); }
  .hero-top { right: calc(var(--gutter) + 56px); }
  .hero-kicker { font-size: 1.02rem; }
  .hero-meta { display: none; }
  .hero-main { flex-direction: column; align-items: flex-start; }
  .hero-when { display: block; }
}

/* ---------- manifesto ---------- */
.manifesto {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-content: center;
  grid-template-columns: minmax(0, calc(clamp(1.9rem, 4.4vw, 4.8rem) * 12.2)); /* the text's own 22ch measure, so the lead-in lines up with it */
  padding: 18vh var(--gutter);
}
.manifesto-kicker { margin: 0 0 2.2rem; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-hi); }
.manifesto-text {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 4.4vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.manifesto em { display: inline; }
.w { --p: 1; opacity: calc(0.58 + 0.42 * var(--p)); }
@media (min-width: 701px) { .manifesto { min-height: 80svh; padding-block: 12vh; } } /* read in passing, no hold: a pause, not a screen */
@media (max-width: 700px) { .manifesto { min-height: 78svh; padding: 10svh var(--gutter); } .manifesto-kicker { margin-bottom: 1.4rem; } }

/* ---------- chapter scaffolding ---------- */
.chapter { position: relative; }
.chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 112px);
  align-items: end;
  padding: 15vh var(--gutter) 9vh;
}
.chapter-head .kicker { grid-column: 1 / -1; }
#people .chapter-head { padding-top: 10vh; }
.chapter-head .lede { margin: 0; justify-self: end; max-width: 30rem; }
@media (max-width: 900px) {
  .chapter-head { grid-template-columns: minmax(0, 1fr); padding: clamp(88px, 14svh, 140px) var(--gutter) clamp(32px, 5svh, 56px); }
  #people .chapter-head { padding-top: clamp(72px, 10svh, 110px); }
  .chapter-head .lede { justify-self: start; margin-top: 1.6rem; }
}

/* frame reveal: a small window that opens to full bleed */
.frame-reveal { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.frame-reveal-window {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 0);
}
.frame-reveal-window img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.frame-reveal-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--ink) 92%, transparent) 0%, transparent 55%); }
.frame-reveal-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; }

/* photo-essay captions */
.cap {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 1;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--stone) 88%, transparent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.cap--frame { left: auto; right: var(--gutter); bottom: 9vh; z-index: 2; }
.sequence-frame { position: relative; }

/* sequence: sticky full-height photo bleeding off the left edge, steps scroll past on the right */
.sequence {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 clamp(32px, 6vw, 112px);
  padding-right: var(--gutter);
}
.sequence-media {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  overflow: hidden;
}
.sequence-frame {
  grid-area: 1 / 1;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 1.8s var(--ease);
}
.sequence-frame.is-active { opacity: 1; transform: none; }
.sequence-frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.1) contrast(1.04); } /* the same warm ink as the rest of the floor */
.sequence-frame img[src*="coach-retest"] { object-position: 66% 50%; }
@media (min-width: 901px) { .sequence-frame img[src*="coach-cue"] { object-position: 40% 100%; transform: scale(1.16); transform-origin: 40% 100%; } } /* in on the cue: the ceiling and its lamp fall away */
.sequence-frame .cap { left: var(--gutter); bottom: 28px; }
.sequence-steps { display: grid; }
.sequence-step {
  min-height: 98svh;
  max-width: 27rem;
  transition: opacity 0.8s var(--ease);
}
.sequence.is-live .sequence-step { opacity: 0; }
/* live: each step keeps its own photograph for assistive tech, in reading order; the eye sees the stage's copy */
.sequence.is-live .sequence-step > .sequence-frame { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); opacity: 1; transform: none; }
/* the plain document (reduced motion, or no script): each photo sits above its own step, in reading order */
.sequence:not(.is-live) { grid-template-columns: minmax(0, 1fr); max-width: calc(40rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sequence:not(.is-live) .sequence-media { display: none; }
.sequence:not(.is-live) .sequence-steps { grid-area: auto; }
.sequence:not(.is-live) .sequence-step { min-height: 0; max-width: none; padding: 0 0 8vh; opacity: 1; }
.sequence:not(.is-live) .sequence-frame { opacity: 1; transform: none; aspect-ratio: 4 / 5; margin: 0 0 1.4rem; border-radius: 3px; }
.sequence:not(.is-live) .step-inner { position: static; min-height: 0; display: block; }
/* each step is taller than the screen; its copy sticks, centred, while its photo is up */
.step-inner { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.sequence.is-live .sequence-step.is-active { opacity: 1; }
.sequence-step p { margin: 1.1rem 0 0; font-size: var(--fs-lede); color: color-mix(in oklab, var(--stone) 80%, var(--ink)); text-wrap: pretty; }
.step-title { margin: 0; font-family: var(--f-text); font-weight: 600; font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--stone); }
.sequence-step .step-num { margin: 0 0 1rem; font-family: var(--f-cond); font-weight: 400; font-size: 1rem; letter-spacing: 0.2em; color: var(--copper); }
@media (max-width: 900px) {
  /* phones: the same sticky stack, full screen; each step's copy rises over the foot of its photo */
  .sequence { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .sequence-media, .sequence-steps { grid-area: 1 / 1; }
  .sequence-media { align-self: start; }
  .sequence-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, color-mix(in oklab, var(--ink) 94%, transparent) 0%, color-mix(in oklab, var(--ink) 72%, transparent) 40%, transparent 72%); }
  .sequence-frame img[src*="coach-assess"] { object-position: 58% 50%; }
  .sequence-frame img[src*="coach-cue"] { object-position: 40% 50%; transform: scale(1.2); transform-origin: 38% 92%; } /* the hands and the athlete, not the pendant */
  .sequence-steps { position: relative; z-index: 2; }
  /* the copy holds on the lower half while its photo is up, then hands over to the next */
  /* --copy-top is measured per step, so longer or enlarged copy still sits clear of the screen's foot */
  .sequence-step { min-height: var(--step-h, 112svh); max-width: none; padding: var(--copy-top, 52svh) var(--gutter) 0; transition: none; }
  .sequence-frame { transition: opacity 0.5s var(--ease), transform 1s var(--ease); } /* photo and copy settle together */
  .step-inner { position: sticky; top: var(--copy-top, 52svh); min-height: 0; display: block; max-width: 30rem; }
  .step-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 120px);
  align-items: center;
  padding: 20vh var(--gutter);
}
.detail-media { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.detail-media img { width: 100%; height: 118%; object-fit: cover; }
.detail-copy { display: grid; gap: 1.6rem; max-width: 34rem; }
.detail-copy .lede { margin: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); padding-block: 12vh; } }

/* ---------- train ---------- */
.bleed { position: relative; height: 100svh; overflow: hidden; }
@media (max-width: 760px) { .bleed { height: 88svh; } }
.bleed-img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; filter: brightness(0.7); }
@media (max-width: 760px) { .bleed .bleed-img { filter: brightness(0.86) contrast(1.04); } } /* the athlete keeps his shape on a phone */
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 4%, transparent 50%, color-mix(in oklab, var(--ink) 60%, transparent) 88%, var(--ink) 100%); }
.bleed-copy { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 10vh; }
.bleed-copy .mega { margin-left: -0.04em; color: var(--stone); }

.stations { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 8vh 0; }
.stations.is-pinned { overflow: hidden; touch-action: pan-y pinch-zoom; } /* vertical pan and zoom stay native; sideways is ours */
.stations-lede { margin: 0; padding: 0 var(--gutter) clamp(24px, 4vh, 56px); max-width: calc(34rem + 2 * var(--gutter)); }
.stations-head {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter) 5vh;
}
.stations-progress { margin: 0; font-family: var(--f-cond); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stations-km { display: inline-block; min-width: 1ch; color: var(--copper-hi); }
.stations-sep { color: var(--mute); margin-inline: 0.2em; }
.stations-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.stations-bar span { position: absolute; inset: 0; background: var(--copper); transform-origin: left; transform: scaleX(0); }
.stations-track {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  /* by default a native swipe strip; the pinned lane takes over once its scene has started */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom; /* native swipe both ways, and zoom always available */
}
.stations-track::-webkit-scrollbar { display: none; }
.stations-track .station { flex: 0 0 auto; scroll-snap-align: start; }
/* wider screens show several stations, so steps are spread along the scroll rather than locked to card edges */
@media (min-width: 761px) { .stations-track { scroll-snap-type: none; } }
.stations.is-pinned .stations-track { width: max-content; overflow: visible; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
/* the lane: one continuous line, a copper tick at every station, the 1 km run written above it */
.station { position: relative; width: clamp(240px, 23vw, 360px); padding: 3.4rem 2rem 0 0; border-top: 1px solid var(--line); }
.station::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background 0.5s var(--ease); }
.station.is-current::before, .station.is-passed::before { background: var(--copper); }
.station.is-passed { border-top-color: color-mix(in oklab, var(--copper) 60%, var(--line)); }
.station.is-passed .station-n { color: color-mix(in oklab, var(--stone) 54%, var(--ink)); }
.station-run { position: absolute; top: 1.1rem; left: 0; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.station-n { display: block; font-family: var(--f-cond); font-size: clamp(5.6rem, 9.4vw, 10.4rem); line-height: 0.8; color: color-mix(in oklab, var(--stone) 42%, var(--ink)); transition: color 0.6s var(--ease); }
.station.is-current .station-n { color: var(--copper); }
.station h3 { margin: 1.4rem 0 0; font-family: var(--f-text); font-weight: 600; font-size: clamp(1.4rem, 2vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.station-std { margin: 0.5rem 0 0; font-family: var(--f-cond); font-size: 1.5rem; letter-spacing: 0.02em; color: var(--stone); font-variant-numeric: tabular-nums; }
.station--finish { width: 120px; border-top-color: var(--copper); }
.station--finish::before { background: var(--copper); }
.station--finish .station-run { color: var(--copper-hi); }
/* the route ends on a post, so the copper line visibly stops rather than trailing off */
.station--finish::after { content: ""; position: absolute; top: -13px; right: 0; width: 2px; height: 26px; background: var(--copper); }
.station--finish.is-passed { border-top-color: var(--copper); }
.stations-word { transition: color 0.4s var(--ease); }
.stations-progress.is-done .stations-word, .stations-progress.is-done [data-km-run] { color: var(--copper-hi); }
@media (max-width: 800px) {
  /* phones keep the pinned lane; a station is most of the screen so one owns the frame at a time */
  .stations { padding-block: 6svh; align-content: center; }
  .stations-head { gap: 0.8rem 1rem; padding-bottom: 5svh; flex-wrap: wrap; }
  .stations-progress { white-space: normal; }
  .stations-progress { font-size: 0.95rem; }
  .stations.is-pinned .stations-track { padding-right: 0; } /* the lane ends exactly when station 8 reaches the gutter */
  .station { flex: 0 0 auto; width: 76vw; padding: 3.2rem 1.4rem 0 0; }
  .station-n { font-size: clamp(7rem, 38vw, 10rem); }
  .station h3 { font-size: 2.3rem; margin-top: 1.4rem; line-height: 1.05; text-wrap: balance; }
  .station-std { margin-top: 0.7rem; }
  .station-std { font-size: 1.8rem; }
  .station--finish { width: calc(24vw - var(--gutter)); padding-right: 0; } /* exactly fills what's left beside station 8, so it can come to rest whole */
}
.rail-nav { display: none; gap: 8px; }
@media (max-width: 760px) { .stations.is-pinned .stations-head { align-items: center; flex-wrap: nowrap; } .stations.is-pinned .stations-bar { display: none; } }

.rail-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid color-mix(in oklab, var(--stone) 28%, transparent); border-radius: 999px; background: none; color: var(--stone); cursor: pointer; transition: opacity 0.3s, border-color 0.3s; }
.rail-nav button svg { width: 16px; height: 16px; }
.rail-nav button:disabled { opacity: 0.3; cursor: default; }
.rail-nav button:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.rail-nav.is-wired { display: flex; }
@media (min-width: 761px) { .rituals-wrap .rail-nav { display: none; } }
.stations-track:focus-visible { outline: 2px solid var(--copper); outline-offset: 8px; }

.strength {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 32px);
  align-items: center;
  padding: 8vh var(--gutter);
}
/* the whole frame, floor to dumbbell: the squat snatch only reads with the legs in it */
.strength-media { position: relative; grid-column: 7 / span 6; aspect-ratio: 3 / 4; justify-self: end; width: min(100%, calc(92svh * 3 / 4)); overflow: hidden; border-radius: 3px; }
.strength-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.22) contrast(1.0); } /* lifted so legs and floor read; the ink comes from the frame's own shadows */
.strength-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--ink) 34%, transparent), transparent 24%); pointer-events: none; }
.strength-copy { grid-column: 1 / span 5; grid-row: 1; max-width: 32rem; }
@media (max-width: 900px) {
  .strength { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: clamp(12px, 2svh, 24px) clamp(24px, 4svh, 40px); }
  #coaching .chapter-head { padding-top: clamp(72px, 11svh, 104px); }
  .strength-media, .strength-copy { grid-column: 1; grid-row: auto; }
  .strength-media { width: 89%; justify-self: end; max-height: 76svh; }
  .strength-media img { filter: brightness(1.28) contrast(1.0); } /* a phone screen in daylight needs the athlete's shape out of the shadows */
  /* the heading rides over the photo's dark foot, so photo, title and lede read as one frame */
  .strength-copy { position: relative; z-index: 1; margin-top: -6rem; }
  .strength-media::after { background: linear-gradient(to top, color-mix(in oklab, var(--ink) 55%, transparent), transparent 35%); } /* the dark foot the heading sits on */
}

/* ---------- recover ---------- */
.chapter--recover { --tint: var(--ice); }
.chapter--recover .display em { color: var(--tint); transition: color 0.6s; }
.thermal { position: relative; }
.thermal-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.thermal-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thermal-fallback--hot { opacity: 0; }
html.has-thermal-gl .thermal-fallback { opacity: 0 !important; }
html:not(.has-thermal-gl) .thermal-canvas { visibility: hidden; }
.thermal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.thermal-readout {
  position: absolute;
  left: var(--gutter);
  top: calc(env(safe-area-inset-top, 0px) + 12vh);
  display: flex;
  align-items: flex-start;
  font-family: var(--f-cond);
  font-weight: 400;
  line-height: 0.8;
  color: var(--tint);
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}
.thermal-temp { font-size: clamp(7rem, 19vw, 19rem); letter-spacing: -0.03em; }
.thermal-unit { font-size: clamp(2rem, 5vw, 5rem); margin: 0.12em 0 0 0.08em; }
.thermal-labels { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; display: grid; }
.thermal-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(8, 7, 6, 0.88)); pointer-events: none; }
.thermal-fallback--cold { filter: brightness(0.78) saturate(0.7); }
.thermal-stage::after { z-index: 1; }
.thermal-labels, .thermal-readout { z-index: 2; }
.thermal-label { grid-area: 1 / 1; max-width: 24rem; }
.thermal-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the big readout is decorative; this is what a screen reader hears */
.thermal:not(.is-live) .thermal-k { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin: 0 0 0.4rem; font-family: var(--f-cond); font-size: 2.4rem; line-height: 1; color: var(--stone); }
.thermal-label h3 { margin: 0; font-family: var(--f-text); font-weight: 600; font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; }
.thermal-label p { margin: 0.6rem 0 0; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); color: color-mix(in oklab, var(--stone) 86%, var(--ink)); text-wrap: pretty; }
.thermal-label--cold h3 { color: var(--ice); }
.thermal-label--hot { opacity: 0; }
.thermal-label--hot h3 { color: var(--heat); }

/* without the scrub (reduced motion, or the scene never started): ice and sauna as two captioned stills */
.thermal:not(.is-live) .thermal-stage { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.thermal:not(.is-live) .thermal-stage::after, .thermal:not(.is-live) .thermal-canvas, .thermal:not(.is-live) .thermal-readout { display: none; }
.thermal:not(.is-live) .thermal-stage > picture { position: relative; grid-column: 1; aspect-ratio: 16 / 9; max-height: 92svh; }
.thermal:not(.is-live) .thermal-stage > picture:nth-of-type(1) { grid-row: 1; }
.thermal:not(.is-live) .thermal-stage > picture:nth-of-type(2) { grid-row: 2; }
.thermal:not(.is-live) .thermal-stage > picture::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(8, 7, 6, 0.86)); }
.thermal:not(.is-live) .thermal-fallback { opacity: 1 !important; }
.thermal:not(.is-live) .thermal-labels { display: contents; }
.thermal:not(.is-live) .thermal-label { grid-column: 1; align-self: end; z-index: 1; padding: 0 var(--gutter) clamp(24px, 6svh, 56px); opacity: 1 !important; visibility: visible !important; transform: none !important; }
.thermal:not(.is-live) .thermal-label--cold { grid-row: 1; }
.thermal:not(.is-live) .thermal-label--hot { grid-row: 2; }
@media (max-width: 700px) { .thermal:not(.is-live) .thermal-stage > picture { aspect-ratio: 4 / 5; } }

/* three rituals as one triptych: equal panels, edge to edge, captions on one shared line */
.rituals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 12vh 0 6vh;
  list-style: none;
}
.ritual figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; max-height: 82svh; width: 100%; }
/* each photo is levelled to the same mean brightness, so no panel jumps forward: tone lives in the files
   (grade.py ritual / redlight / compression), and --b on each card is the only per-image adjustment here */
.ritual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s var(--ease); filter: brightness(var(--b, 0.9)); }
@media (hover: hover) { .ritual:hover img { transform: scale(1.04); filter: brightness(calc(var(--b, 0.9) * 1.1)); } }
.ritual:nth-child(1) img { object-position: 62% 70%; }
/* each ritual framed on its subject: red light whole (the panel and the person facing it, never a close-up of a face the
   source can't resolve), compression on the boot rather than the forearm */
.ritual:nth-child(2) img { object-position: 30% 50%; }
.ritual:nth-child(3) img { scale: 1.16; transform-origin: 58% 82%; }
.ritual h3, .ritual p { padding-inline: clamp(16px, 2vw, 28px); }
.ritual h3 { margin: 1.3rem 0 0.35rem; font-family: var(--f-text); font-weight: 600; font-size: clamp(1.25rem, 1.6vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.1; }
.ritual p { margin: 0; color: var(--mute); text-wrap: pretty; }
@media (min-width: 761px) { .thermal-label p, .ritual p { font-size: 1.125rem; line-height: 1.5; max-width: 30ch; } } /* the captions finish the picture, not footnote it */
.rituals-count { display: none; }
.rituals-label { display: none; }
@media (max-width: 760px) {
  /* phones: the triptych becomes a pinned rail; scrolling down walks through the three rituals, one per screen */
  .rituals-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.2rem; padding-block: 6svh; }
  .rituals { display: flex; gap: 10px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rituals::-webkit-scrollbar { display: none; }
  .ritual { position: relative; flex: 0 0 84vw; scroll-snap-align: start; }
  .rituals-wrap.is-pinned { min-height: 100svh; overflow: hidden; touch-action: pan-y pinch-zoom; }
  .rituals-wrap.is-pinned .rituals { width: max-content; gap: var(--gutter); overflow: visible; scroll-snap-type: none; }
  .rituals-wrap.is-pinned .ritual { flex-basis: 82vw; }
  .rituals-wrap.is-pinned .rituals { gap: 10px; }
  .ritual figure { aspect-ratio: 4 / 5; max-height: 72svh; border-radius: 3px; }
  .ritual figure::after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent, rgba(8, 7, 6, 0.55) 45%, rgba(8, 7, 6, 0.86)); pointer-events: none; } /* dark only where the caption sits */
  /* captions share one box inside their photo, so wrapped or enlarged text pushes upward instead of colliding */
  .ritual-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 18px 18px; }
  .ritual h3, .ritual p { padding-inline: 0; }
  .ritual h3 { margin: 0 0 0.3rem; font-size: 1.6rem; }
  .ritual p { font-size: 0.92rem; color: color-mix(in oklab, var(--stone) 84%, var(--ink)); }
  /* each ritual framed on its subject: red light whole (the panel and the person facing it, never a close-up of a face
     the source can't resolve), compression on the boot rather than the forearm */
  .rituals-label { display: block; margin: 0; padding: 0 var(--gutter); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-hi); }
  .rituals-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
  .rituals-count { display: block; margin: 0; font-family: var(--f-cond); font-size: 1.1rem; letter-spacing: 0.16em; color: var(--mute); font-variant-numeric: tabular-nums; }
  .rituals-count span { color: var(--copper-hi); }
}

/* ---------- people: the two founders, side by side, offset like a magazine spread ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0 var(--gutter) 10vh;
  list-style: none;
}
.founder { display: grid; gap: 0.4rem; align-content: start; }
.founder:nth-child(1) { grid-column: 2 / span 4; }
.founder:nth-child(2) { grid-column: 7 / span 4; margin-top: 14vh; }
.founder-photo { position: relative; margin: 0 0 1.2rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: radial-gradient(90% 70% at 50% 35%, #1f1c19, var(--ink)); }
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: brightness(0.94); }
.founder h3 { margin: 0; font-family: var(--f-text); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.founder p { margin: 0; font-size: var(--fs-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) {
  /* phones: the same offset spread, stacked, so each face gets most of the screen width */
  .founders { grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6svh, 64px); padding-bottom: clamp(16px, 3svh, 32px); }
  .founder:nth-child(1), .founder:nth-child(2) { grid-column: auto; width: min(80%, 420px); }
  .founder:nth-child(2) { margin-top: 0; justify-self: end; }
  .founder p { letter-spacing: 0.08em; font-size: 0.82rem; }
}

/* ---------- finale ---------- */
.finale { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 18vh var(--gutter); overflow: hidden; }
.finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42); }
.finale::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--ink), transparent 30%, transparent 70%, var(--ink)); }
.finale-inner { position: relative; z-index: 2; width: min(100%, 760px); text-align: center; display: grid; justify-items: center; }
.finale .kicker { justify-content: center; }
.finale .lede { margin-inline: auto; }
.countdown { display: flex; gap: clamp(14px, 3.6vw, 52px); margin-top: 2.4rem; font-variant-numeric: tabular-nums; }
.countdown div { display: grid; justify-items: center; }
.countdown span { font-family: var(--f-cond); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; }
/* no ticking seconds: days, hours and minutes are enough to look forward to */
@media (max-width: 700px) { .countdown span { font-size: 2.2rem; } .countdown { margin-top: 1.6rem; } }
.countdown small { margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }

.enquire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; width: 100%; margin-top: 3rem; text-align: left; }
.input--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* Brevo honeypot field, kept off-screen but not display:none */
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in oklab, var(--stone) 80%, var(--ink)); }
.field input:not([type="radio"]) {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid color-mix(in oklab, var(--stone) 40%, transparent);
  border-radius: 6px;
  background: rgba(11, 10, 9, 0.62);
  color: var(--stone);
  font: inherit;
  transition: border-color 0.3s;
}
.field input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 2px color-mix(in oklab, var(--copper) 55%, transparent); }
.field input[aria-invalid="true"] { border-color: #c4553a; }
.field--choice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; border: 0; }
.field--choice legend { width: 100%; margin-bottom: 8px; padding: 0; }
.field--choice label { cursor: pointer; }
.field--choice input { position: absolute; opacity: 0; pointer-events: none; }
.field--choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid color-mix(in oklab, var(--stone) 45%, transparent);
  background: rgba(11, 10, 9, 0.55);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--stone);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.field--choice input:checked + span { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.field--choice label:active span { transform: scale(0.96); transition: transform 0.1s; }
.field--choice input:focus-visible + span { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
.button {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 1.2rem;
  padding: 1.1rem 2.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink);
  font: 600 0.8rem/1 var(--f-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease);
}
@media (hover: hover) { .button:hover { background: var(--copper-hi); } }
.button:active, .rail-nav button:active, .nav-menu:active, .menu-close:active { transform: scale(0.96); transition: transform 0.1s; }
.hero-pause:active { scale: 0.92; } /* `scale`, not `transform`: its translateY(-50%) positioning stays put */
.hero-cta { display: inline-flex; justify-self: start; }
.enquire-note { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 0.78rem; color: var(--mute); }
.enquire-msg { grid-column: 1 / -1; min-height: 1.5em; margin: 0.6rem 0 0; text-align: center; color: var(--copper-hi); }
@media (max-width: 600px) { .enquire { grid-template-columns: minmax(0, 1fr); margin-top: 1.6rem; gap: 12px; } .finale { min-height: 0; padding-block: clamp(56px, 8svh, 88px) clamp(72px, 11svh, 120px); } .finale::before { background: linear-gradient(var(--ink), transparent 22%, color-mix(in oklab, var(--ink) 55%, transparent) 42%, color-mix(in oklab, var(--ink) 88%, transparent) 60%, var(--ink)); } }

/* ---------- footer (split: full-bleed map, numbered nav) ---------- */
.footer-split { background: var(--char); border-top: 1px solid var(--line); }
.footer-split-label { display: block; font-family: var(--f-cond); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-hi); }

.footer-split-map { position: relative; overflow: hidden; min-height: 360px; border-bottom: 1px solid var(--line); }
.footer-split-map-embed { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: grayscale(1) invert(0.92) contrast(0.85) brightness(0.85); }
.footer-split-visit { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; background: var(--char); border: 1px solid var(--line); padding: 1.5rem 1.6rem; }
.footer-split-visit-text { display: grid; gap: 0.6rem; min-width: 0; }
.footer-split-visit-text p { margin: 0; font-size: 1.1rem; line-height: 1.4; color: var(--stone); }
.footer-split-directions { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--copper); color: var(--ink); font-weight: 600; font-size: 0.86rem; padding: 0.75rem 1.1rem; white-space: nowrap; transition: background 0.3s; }
@media (hover: hover) { .footer-split-directions:hover { background: var(--copper-hi); } }

.footer-split-main { padding: clamp(32px, 6svh, 64px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5svh, 48px); }
.footer-split-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.footer-split-mark { width: clamp(72px, 9vw, 120px); color: color-mix(in oklab, var(--stone) 94%, var(--ink)); }
.footer-split-mark svg { width: 100%; height: auto; display: block; }
.footer-split-opening { display: grid; justify-items: end; gap: 0.5rem; text-align: right; }
.footer-split-date { font-family: var(--f-cond); font-size: 1rem; letter-spacing: 0.1em; color: var(--stone); }

.footer-split-nav { display: grid; border-top: 1px solid var(--line); }
.footer-split-nav a { display: flex; justify-content: space-between; align-items: center; padding: clamp(0.75rem, 2.4svh, 1.25rem) 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: clamp(1.8rem, 4.2vw, 3rem); letter-spacing: -0.02em; color: var(--stone); transition: color 0.3s; }
.footer-split-nav a em { font-style: normal; font-family: var(--f-cond); font-size: clamp(0.9rem, 1.4vw, 1.2rem); letter-spacing: 0.1em; color: var(--mute); }
@media (hover: hover) { .footer-split-nav a:hover { color: var(--copper-hi); } }

.footer-split-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--mute); }
.footer-split-join { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--copper-hi); font-size: 1rem; width: fit-content; }
.footer-split-meta { display: flex; align-items: center; gap: 1.8rem; }
.footer-top { color: var(--mute); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; white-space: nowrap; transition: color 0.3s; }
@media (hover: hover) { .footer-split-join:hover, .footer-top:hover { color: var(--stone); } }

/* desktop: map and nav share the screen side by side */
@media (min-width: 901px) {
  .footer-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
  .footer-split-map { min-height: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .footer-split-main { justify-content: space-between; }
}
/* phones and portrait tablets: map on top, nav stacked below, numbers shrink to fit */
@media (max-width: 900px) {
  .footer-split-map { min-height: 50svh; }
  .footer-split-visit { flex-direction: column; align-items: stretch; }
  .footer-split-directions { align-self: flex-start; }
  .footer-split-nav a { font-size: clamp(1.8rem, 9vw, 2.4rem); }
}
@media (max-width: 520px) {
  .footer-split-visit { left: calc(var(--gutter) / 1.5); right: calc(var(--gutter) / 1.5); bottom: calc(var(--gutter) / 1.5); padding: 1.2rem; }
  .footer-split-base { flex-direction: column; align-items: flex-start; }
}
@media (pointer: coarse) { .footer-split-join, .footer-top { padding-block: 0.6rem; } }
@media (max-width: 700px) { .station-run, .stations-progress { font-size: 0.78rem; } .stations-progress { font-size: 0.95rem; } .menu-meta, .hero-inside-k { font-size: 0.78rem; } }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .w { opacity: 1; }
  .sequence-frame, .sequence-step { transition: none; }
}

