/* ---- 00-tokens ---- */
/* ==========================================================================
   BEDROCK — design tokens
   Two chapters only: ink (dark) and bone (light). Every component reads the
   chapter-scoped variables at the bottom of this file, never a raw palette
   value, so a section can be flipped between chapters without touching it.
   ========================================================================== */

/* --- typefaces ---------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- palette ---------------------------------------------------------- */
  --ink: #0d0d0e;
  --ink-raise: #16161a;
  --ink-sunk: #08080a;
  --ink-line: #26262b;
  --ink-line-soft: #1c1c21;
  --bone: #efebe3;
  --bone-raise: #e4ded3;
  --bone-sunk: #d9d2c5;
  --bone-line: #cdc5b6;
  --bone-line-soft: #ded8cc;

  --oxide: #e2603a;        /* accent on ink — 5.5:1 */
  --oxide-deep: #a83a16;   /* accent on bone — 5.4:1 */

  /* every text token clears 4.5:1 on the ground it is used against, including
     the 11px mono labels — the quiet voice is not an excuse to fail */
  --mute-on-ink: #a29d93;  /* 7.2:1 on ink */
  --mute-on-bone: #635e56; /* 5.4:1 on bone */
  --faint-on-ink: #8b867d; /* 5.4:1 on ink, 5.0:1 on the raised surface */

  /* --- type ------------------------------------------------------------- */
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --step--2: clamp(0.6875rem, 0.668rem + 0.098vw, 0.75rem);
  --step--1: clamp(0.8125rem, 0.789rem + 0.117vw, 0.875rem);
  --step-0: clamp(1rem, 0.961rem + 0.195vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.047rem + 0.391vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.266rem + 1.172vw, 2.25rem);
  --step-3: clamp(2rem, 1.531rem + 2.344vw, 3.5rem);
  --step-4: clamp(2.375rem, 1.5rem + 4.4vw, 5.25rem);
  /* step-5 is sized so the longest hard-broken hero line still fits its column
     at every breakpoint from 320px up — the lines are nowrap by design */
  --step-5: clamp(2.75rem, 0.1rem + 10.2vw, 10.25rem);

  /* display width axis — the signature. Type opens up as it arrives. */
  --wdth-tight: 76%;
  --wdth-open: 118%;

  /* --- space ------------------------------------------------------------ */
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --section-y: clamp(4.5rem, 9.4vw, 10.5rem);
  --section-y-tight: clamp(3rem, 6vw, 6.5rem);
  --measure: 34ch;
  --measure-wide: 46ch;
  --shell: 1560px;

  /* --- motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-in-out: cubic-bezier(0.66, 0, 0.24, 1);
  --dur-fast: 200ms;
  --dur: 420ms;
  --dur-slow: 760ms;
  --dur-reveal: 880ms;

  --hair: 1px;
  --header-h: 76px;
}

@media (min-width: 64rem) {
  :root { --header-h: 92px; }
}

/* --- chapters ------------------------------------------------------------
   Applied to a section (or the page shell). Components below only ever use
   these six variables, which is why the same card works on both grounds.     */

.chapter,
[data-chapter='ink'] {
  --bg: var(--ink);
  --bg-raise: var(--ink-raise);
  --bg-sunk: var(--ink-sunk);
  --fg: var(--bone);
  --fg-mute: var(--mute-on-ink);
  --fg-faint: var(--faint-on-ink);
  --line: var(--ink-line);
  --line-soft: var(--ink-line-soft);
  --accent: var(--oxide);
  --on-accent: var(--ink);
}

[data-chapter='bone'] {
  --bg: var(--bone);
  --bg-raise: var(--bone-raise);
  --bg-sunk: var(--bone-sunk);
  --fg: #151517;
  --fg-mute: var(--mute-on-bone);
  --fg-faint: var(--mute-on-bone);
  --line: var(--bone-line);
  --line-soft: var(--bone-line-soft);
  --accent: var(--oxide-deep);
  --on-accent: var(--bone);
}

/* ---- 01-base ---- */
/* ==========================================================================
   base — reset, elements, focus, small utilities
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* stop the sticky header from covering anchored headings */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden — keeps position:sticky working */
}

img,
picture,
video,
svg { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* --- focus ---------------------------------------------------------------
   Never removed, only restyled. Keyboard users get a 2px accent ring with an
   offset ring in the ground colour so it reads on photographs too.           */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

:focus:not(:focus-visible) { outline: none; }

/* --- typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.92;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); line-height: 0.84; letter-spacing: -0.04em; }
h2 { font-size: var(--step-4); line-height: 0.88; letter-spacing: -0.034em; }
h3 { font-size: var(--step-2); line-height: 1.02; letter-spacing: -0.02em; }
h4 { font-size: var(--step-1); line-height: 1.15; letter-spacing: -0.012em; font-weight: 700; }

p { text-wrap: pretty; }

strong { font-weight: 600; }

/* small uppercase metadata — the mono utility voice, used for anything the
   gym would actually write on a whiteboard: times, loads, counts, indexes */
.label {
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.label--accent { color: var(--accent); }
.label--fg { color: var(--fg); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: var(--measure-wide);
}

.prose > * + * { margin-top: 1.15em; }
.prose { color: var(--fg-mute); max-width: var(--measure-wide); }
.prose strong { color: var(--fg); font-weight: 500; }

/* --- utilities ------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* photographs sit on their own average colour so a lazy image never flashes */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--tone, var(--bg-raise));
}
.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--fill { height: 100%; }

/* ---- 02-layout ---- */
/* ==========================================================================
   layout — shell, grid, chapters, section headers, rules
   ========================================================================== */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.shell--wide { width: min(100% - (var(--gutter) * 2), 1860px); }
.shell--flush { width: 100%; }

/* a chapter is one continuous ground colour; the site alternates between them
   rather than tinting individual blocks */
.chapter {
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

.chapter__inner { padding-block: var(--section-y); }
.chapter__inner--tight { padding-block: var(--section-y-tight); }
.chapter__inner--top { padding-block: var(--section-y) 0; }
.chapter__inner--bottom { padding-block: 0 var(--section-y); }

/* --- grid ---------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

@media (min-width: 48rem) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* --- section header ------------------------------------------------------
   The kicker sits on a hairline that runs the full width — the rule is the
   structural device, the kicker is what is filed against it.                 */

.sec-head {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-top: 1.1rem;
  border-top: var(--hair) solid var(--line);
  position: relative;
}

.sec-head__index {
  position: absolute;
  top: 1.1rem;
  right: 0;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  color: var(--fg-faint);
}

.sec-head__kicker { display: block; }

.sec-head__title {
  margin-top: clamp(0.75rem, 1.6vw, 1.5rem);
  max-width: 18ch;
}

.sec-head__title span { display: block; }

.sec-head__body {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

@media (min-width: 64rem) {
  .sec-head__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: end;
  }
  .sec-head__aside { padding-bottom: 0.45rem; }
}

/* --- rules ---------------------------------------------------------------
   The plate rule. A hairline with a heavier accent segment whose length is
   set from data (--fill, 0-1): programme intensity, session length, plan
   depth. It encodes a number, so it is never decorative.                     */

.rule {
  position: relative;
  height: var(--hair);
  background: var(--line);
  overflow: hidden;
}

.rule__fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: calc(var(--fill, 0) * 100%);
  background: var(--accent);
  transform: scaleX(var(--fill-scale, 1));
  transform-origin: left center;
}

.rule--plate { height: 3px; background: var(--line-soft); }

/* --- misc layout ---------------------------------------------------------- */

.stack { display: grid; align-content: start; }
.stack--xs { gap: 0.4rem; }
.stack--sm { gap: 0.9rem; }
.stack--md { gap: clamp(1.25rem, 2.4vw, 2rem); }
.stack--lg { gap: clamp(2rem, 4.6vw, 4rem); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  align-items: center;
}

.divider {
  height: var(--hair);
  background: var(--line);
  border: 0;
}

/* ---- 03-nav ---- */
/* ==========================================================================
   navigation — sticky header, desktop bar, full-screen mobile menu
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--bone);
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  border-bottom: var(--hair) solid transparent;
}

/* the header adopts whichever chapter it is currently over */
.site-header[data-over='bone'] { color: #151517; }
.site-header[data-over='bone'] .site-header__inner { --hdr-line: var(--bone-line); }
.site-header__inner { --hdr-line: var(--ink-line); }

.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--ink-line);
}
.site-header.is-stuck[data-over='bone'] {
  background: color-mix(in srgb, var(--bone) 90%, transparent);
  border-bottom-color: var(--bone-line);
}

.site-header.is-hidden { transform: translateY(-100%); }
.site-header {
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- wordmark ------------------------------------------------------------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: font-stretch var(--dur) var(--ease-out);
}
.wordmark:hover { font-stretch: 125%; }

.wordmark__mark {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--oxide);
  transform: translateY(-0.75em);
}
.site-header[data-over='bone'] .wordmark__mark { color: var(--oxide-deep); }

/* --- desktop nav ---------------------------------------------------------- */

.nav-desktop { display: none; }

@media (min-width: 64rem) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.4vw, 2.25rem);
  }

  .nav-desktop__link {
    position: relative;
    font-family: var(--mono);
    font-size: var(--step--2);
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding-block: 0.4rem;
  }

  /* underline grows from the left on hover, and stays put when current */
  .nav-desktop__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease-out);
  }
  .nav-desktop__link:hover::after,
  .nav-desktop__link:focus-visible::after { transform: scaleX(1); }

  .nav-desktop__link[aria-current='page'] { color: var(--oxide); }
  .site-header[data-over='bone'] .nav-desktop__link[aria-current='page'] { color: var(--oxide-deep); }
  .nav-desktop__link[aria-current='page']::after { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.header-actions .btn { display: none; }
@media (min-width: 48rem) { .header-actions .btn { display: inline-flex; } }

/* --- menu button ---------------------------------------------------------- */

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0;
}
@media (min-width: 64rem) { .menu-toggle { display: none; } }

.menu-toggle__bars {
  position: relative;
  width: 26px;
  height: 12px;
  flex: none;
}
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-in-out),
              opacity 120ms linear;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 10.5px; }

[aria-expanded='true'] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
[aria-expanded='true'] .menu-toggle__bars span:nth-child(2) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* --- full-screen menu -----------------------------------------------------
   Overlay fades, then the items arrive in sequence, then the call to action.
   Nothing here is a dropdown.                                                */

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--bone);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + clamp(1.5rem, 5vw, 3rem)) var(--gutter)
           clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out),
              visibility 0s linear var(--dur);
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}

.menu__list { display: grid; align-content: center; }

.menu__item { border-top: var(--hair) solid var(--ink-line); }
.menu__item:last-child { border-bottom: var(--hair) solid var(--ink-line); }

.menu__link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: clamp(0.7rem, 2.2vw, 1.15rem);
}

.menu__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 104%;
  font-size: clamp(2rem, 9.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  transition: font-stretch var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.menu__link:hover .menu__name,
.menu__link:focus-visible .menu__name { font-stretch: 118%; color: var(--oxide); }
.menu__link[aria-current='page'] .menu__name { color: var(--oxide); }

.menu__hint {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--faint-on-ink);
  text-align: right;
  max-width: 14ch;
}

.menu__foot {
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.menu__secondary { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }
.menu__secondary a {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute-on-ink);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.menu__secondary a:hover { color: var(--bone); border-bottom-color: var(--oxide); }

/* staggered arrival — only when scripting is on, so the menu is complete
   without JS and only ever animates when it can also be closed */
.js .menu__item,
.js .menu__foot > * {
  opacity: 0;
  transform: translateY(14px);
}
.js .menu.is-open .menu__item,
.js .menu.is-open .menu__foot > * {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease-out) var(--stagger, 0ms),
              transform 520ms var(--ease-out) var(--stagger, 0ms);
}

body.menu-open { overflow: hidden; }

/* ---- 04-components ---- */
/* ==========================================================================
   components — buttons, links, cards, accordion, forms, marquee
   ========================================================================== */

/* --- buttons -------------------------------------------------------------- */

.btn {
  --btn-fg: var(--fg);
  --btn-bg: transparent;
  --btn-line: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--hair) solid var(--btn-line);
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

/* the ground wipes up from the bottom rather than cross-fading */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform var(--dur) var(--ease-in-out);
}

.btn:hover,
.btn:focus-visible { color: var(--on-accent); border-color: var(--accent); }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }

.btn__arrow {
  flex: none;
  width: 0.9em;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  --btn-fg: var(--on-accent);
  --btn-bg: var(--accent);
  --btn-line: var(--accent);
}
.btn--primary::before { background: var(--fg); }
.btn--primary:hover,
.btn--primary:focus-visible { color: var(--bg); border-color: var(--fg); }

.btn--ghost { --btn-line: transparent; padding-inline: 0; }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--accent); }

.btn--block { width: 100%; justify-content: space-between; }

/* --- text link ------------------------------------------------------------ */

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(0);
  transform-origin: right center;
}
.link--accent { color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg,
a:hover .link-arrow svg { transform: translateX(5px); }

/* --- programme card -------------------------------------------------------
   One card component, two weights. The large variant is not a different
   component — it is the same markup asked to hold more space.                */

.pcard {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.1rem;
  padding-top: 1rem;
  border-top: var(--hair) solid var(--line);
  color: var(--fg);
}

.pcard__media {
  position: relative;
  overflow: hidden;
  background: var(--tone, var(--bg-raise));
  aspect-ratio: 3 / 4;
}
.pcard--large .pcard__media { aspect-ratio: 4 / 5; }

@media (min-width: 48rem) {
  .pcard--large .pcard__media { aspect-ratio: 16 / 11; }
}

.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) var(--ease-out);
}
.pcard:hover .pcard__media img { transform: scale(1.045); }

.pcard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--ink) 62%, transparent) 0%,
    color-mix(in srgb, var(--ink) 8%, transparent) 46%,
    transparent 72%);
  opacity: 0.9;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.pcard:hover .pcard__scrim { opacity: 1; }

.pcard__n {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  color: var(--bone);
  mix-blend-mode: difference;
}

.pcard__reveal {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  color: var(--bone);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.pcard__meta {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.pcard:hover .pcard__meta,
.pcard:focus-within .pcard__meta { opacity: 0.85; transform: none; }

.pcard__arrow {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: var(--hair) solid color-mix(in srgb, var(--bone) 45%, transparent);
  color: var(--bone);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.pcard:hover .pcard__arrow {
  background: var(--oxide);
  border-color: var(--oxide);
  color: var(--ink);
  transform: translate(4px, -4px);
}

.pcard__body { display: grid; gap: 0.55rem; }

.pcard__title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -0.025em;
  transition: font-stretch var(--dur-slow) var(--ease-out);
}
.pcard--large .pcard__title { font-size: var(--step-3); }
.pcard:hover .pcard__title { font-stretch: 120%; }

.pcard__blurb {
  color: var(--fg-mute);
  font-size: var(--step--1);
  line-height: 1.55;
  max-width: 38ch;
}

/* whole card is one hit target, but only the title is the real link */
.pcard__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pcard__rule { margin-top: 0.35rem; }

/* --- coach card ----------------------------------------------------------- */

.ccard {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: var(--hair) solid var(--line);
}

.ccard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--tone, var(--bg-raise));
}
.ccard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.005);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.ccard:hover .ccard__media img,
.ccard:focus-within .ccard__media img { transform: scale(1.04); filter: grayscale(0) contrast(1); }

.ccard__body {
  display: grid;
  gap: 0.3rem;
  transition: transform var(--dur-slow) var(--ease-out);
}
.ccard:hover .ccard__body { transform: translateY(-4px); }

.ccard__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 106%;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -0.025em;
  transition: font-stretch var(--dur-slow) var(--ease-out);
}
.ccard:hover .ccard__name { font-stretch: 118%; }

.ccard__role { color: var(--fg-mute); font-size: var(--step--1); }

.ccard__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: var(--hair) solid var(--line-soft);
}

.ccard__social {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.ccard:hover .ccard__social,
.ccard:focus-within .ccard__social { opacity: 1; transform: none; }
@media (hover: none) { .ccard__social { opacity: 1; transform: none; } }

.ccard__link::after { content: ''; position: absolute; inset: 0; }

/* --- pricing -------------------------------------------------------------- */

.plan {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem) 0 clamp(1.5rem, 2.6vw, 2rem);
  border-top: 2px solid var(--line);
  position: relative;
}

.plan--featured { border-top-color: var(--accent); }

.plan__flag {
  position: absolute;
  top: -0.75rem;
  left: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.plan__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(3.25rem, 6vw, 4.75rem);
  line-height: 0.85;
  letter-spacing: -0.045em;
}
.plan__currency { font-size: 0.4em; font-stretch: 100%; }
.plan__period {
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.plan__summary { color: var(--fg-mute); font-size: var(--step--1); max-width: 30ch; }

.plan__features { display: grid; gap: 0.7rem; }
.plan__features li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  font-size: var(--step--1);
  line-height: 1.45;
  padding-top: 0.7rem;
  border-top: var(--hair) solid var(--line-soft);
}
.plan__features li:first-child { border-top: 0; padding-top: 0; }
.plan__features svg { margin-top: 0.35em; color: var(--accent); }
.plan__features li[data-state='out'] { color: var(--fg-faint); }
.plan__features li[data-state='out'] svg { color: var(--fg-faint); }

.plan__note {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--fg-faint);
}

/* --- comparison table ----------------------------------------------------- */

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--step--1);
}
.compare th,
.compare td {
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: var(--hair) solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  border-bottom-color: var(--fg);
}
.compare tbody th { font-weight: 400; color: var(--fg); }
.compare td { color: var(--fg-mute); font-family: var(--mono); font-size: var(--step--2); }
.compare [data-col='featured'] { color: var(--fg); }
.compare thead th[data-col='featured'] { color: var(--accent); }

/* --- accordion ------------------------------------------------------------ */

.acc__item { border-top: var(--hair) solid var(--line); }
.acc__item:last-child { border-bottom: var(--hair) solid var(--line); }

.acc__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: var(--step-1);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--fg);
  transition: color var(--dur) var(--ease-out);
}
.acc__trigger:hover { color: var(--accent); }

.acc__sign {
  flex: none;
  position: relative;
  width: 14px; height: 14px;
  margin-top: 0.45em;
}
.acc__sign::before,
.acc__sign::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--dur) var(--ease-in-out), opacity var(--dur) var(--ease-in-out);
}
.acc__sign::before { inset: 6px 0 auto; height: 1.5px; }
.acc__sign::after { inset: 0 6px auto; width: 1.5px; height: 14px; }
[aria-expanded='true'] .acc__sign::after { transform: scaleY(0); opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-in-out);
}
.acc__panel[data-open='true'] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body {
  padding-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
  max-width: 62ch;
  color: var(--fg-mute);
  font-size: var(--step--1);
  line-height: 1.62;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.acc__panel[data-open='true'] .acc__body { opacity: 1; transition-delay: 90ms; }
.acc__body > * + * { margin-top: 0.9em; }

/* --- marquee -------------------------------------------------------------- */

.marquee {
  --marquee-dur: 38s;
  overflow: hidden;
  border-block: var(--hair) solid var(--line);
  padding-block: clamp(0.9rem, 1.8vw, 1.35rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee var(--marquee-dur) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}
.marquee__word {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--fg);
  white-space: nowrap;
}
.marquee__dot { color: var(--accent); font-size: 0.8em; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* --- forms ---------------------------------------------------------------- */

.field { display: grid; gap: 0.5rem; }

.field__label {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field__req { color: var(--accent); }

.field__control {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: var(--hair) solid var(--line);
  padding: 0.75rem 0;
  font-size: var(--step-0);
  color: var(--fg);
  transition: border-color var(--dur) var(--ease-out);
}
.field__control::placeholder { color: var(--fg-faint); }
.field__control:hover { border-bottom-color: var(--fg-mute); }
.field__control:focus {
  outline: none;
  border-bottom-color: var(--accent);
  border-bottom-width: 2px;
  padding-bottom: calc(0.75rem - 1px);
}
.field__control:focus-visible { outline: none; }
textarea.field__control { resize: vertical; min-height: 8rem; }
select.field__control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 0.7rem center, right 0.35rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 1.75rem;
}

.field__error {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.form-status {
  border: var(--hair) solid var(--accent);
  border-left-width: 3px;
  padding: 1rem 1.25rem;
  font-size: var(--step--1);
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* --- tags ----------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: var(--hair) solid var(--line);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.tag--accent { border-color: var(--accent); color: var(--accent); }

/* ---- 05-sections ---- */
/* ==========================================================================
   sections — hero, statement, stats, programmes, method, facility, quotes,
   call to action, footer
   ========================================================================== */

/* --- hero -----------------------------------------------------------------
   Asymmetric: type holds the left three quarters, the photograph is cropped
   tall and runs off the right edge and past the bottom rule.                 */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: var(--hair) solid var(--line);
}

.hero__mid {
  position: relative;
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 100%;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line:nth-child(2) { padding-left: 0.08em; }
.hero__line:nth-child(3) { color: var(--accent); }

.hero__media {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tone, var(--bg-raise));
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero__foot {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-top: 1.1rem;
  border-top: var(--hair) solid var(--line);
}

.hero__lead { max-width: 42ch; color: var(--fg-mute); font-size: var(--step-0); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}
.hero__meta div { display: grid; gap: 0.2rem; }
.hero__meta dt {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hero__meta dd {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

@media (min-width: 64rem) {
  .hero__mid { align-items: end; }
  .hero__media {
    position: absolute;
    top: 50%;
    right: calc(var(--gutter) * -1);
    width: min(34vw, 480px);
    height: min(78vh, 720px);
    margin: 0;
    transform: translateY(-46%);
    aspect-ratio: auto;
    z-index: 1;
  }
  /* the headline is allowed to overlap the photograph — the foot is not, so it
     stops short of it and its rule ends where the picture starts */
  .hero__title { max-width: 76%; }
  .hero__foot {
    position: relative;
    z-index: 2;
    /* padding rather than max-width: the shell keeps its own width and left
       edge, and only the content is held clear of the photograph */
    padding-right: calc(min(34vw, 480px) - var(--gutter) + 2rem);
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .hero__meta { justify-content: flex-end; }
  .hero__meta dd { font-size: var(--step-1); }
}

@media (min-width: 90rem) {
  .hero__media { width: min(30vw, 520px); }
  .hero__foot { padding-right: calc(min(30vw, 520px) - var(--gutter) + 2.5rem); }
}

/* --- statement -------------------------------------------------------------
   Oversized editorial paragraph, revealed a line at a time.                   */

.statement { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }

.statement__title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 106%;
  /* the lines are authored breaks, so this is sized to the widest of them */
  font-size: clamp(2.125rem, 4.6vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.036em;
}
.statement__title span { display: block; }
.statement__title em { font-style: normal; color: var(--accent); }

.statement__body { display: grid; gap: 1.25rem; }

@media (min-width: 64rem) {
  .statement {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .statement__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.statement__media { aspect-ratio: 2 / 3; overflow: hidden; background: var(--tone, var(--bg-raise)); }
.statement__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- stats -----------------------------------------------------------------
   Four numbers, each on its own rule. The number is the loudest thing in the
   block; the label is deliberately quiet.                                     */

.stats { display: grid; gap: 0; }

.stat {
  display: grid;
  gap: 0.35rem;
  padding-block: clamp(1.4rem, 2.8vw, 2.2rem);
  border-top: var(--hair) solid var(--line);
}
.stat:last-child { border-bottom: var(--hair) solid var(--line); }

.stat__value {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  /* sized so "2,400" — the widest value — clears its column at every step */
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat__value sup {
  font-size: 0.28em;
  vertical-align: super;
  color: var(--accent);
  letter-spacing: 0;
}
.stat__label { font-size: var(--step-0); color: var(--fg); }
.stat__note { font-size: var(--step--1); color: var(--fg-mute); }

@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.25rem, 2.6vw, 2.5rem); }
  .stat:nth-child(2) { border-bottom: 0; }
  .stat:nth-child(3) { border-bottom: 0; }
  .stat:last-child { border-bottom: var(--hair) solid var(--line); }
  .stat:nth-last-child(2) { border-bottom: var(--hair) solid var(--line); }
}
@media (min-width: 64rem) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-bottom: 0 !important; }
  .stats { border-bottom: var(--hair) solid var(--line); }
}

/* --- programmes grid -------------------------------------------------------
   Deliberately uneven: a wide card, then two, then reversed. The rhythm is
   set in the markup by data-span, not by nth-child guesswork.                 */

.pgrid { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); }

@media (min-width: 48rem) {
  .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pgrid > * { grid-column: span 3; }
  .pgrid > [data-span='wide'] { grid-column: span 6; }
}
@media (min-width: 64rem) {
  .pgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pgrid > * { grid-column: span 4; }
  .pgrid > [data-span='wide'] { grid-column: span 8; }
  .pgrid > [data-span='wide'] + * { grid-column: span 4; align-self: end; }
}

/* an even row of related programmes — same card, no asymmetry */
.pstrip {
  display: grid;
  gap: clamp(2rem, 3vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

/* --- the method ------------------------------------------------------------
   Sticky image column on the left, four stages scrolling past on the right.
   The stage that is level with the viewport middle is the emphasised one.     */

.method { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.method__media { display: none; }

@media (min-width: 64rem) {
  .method {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .method__media {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + clamp(2rem, 5vh, 4rem));
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-raise);
  }
  .method__shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity var(--dur-slow) var(--ease-out), transform 1.4s var(--ease-out);
  }
  .method__shot[data-active='true'] { opacity: 1; transform: scale(1); }
  .method__shot img { width: 100%; height: 100%; object-fit: cover; }
}

.method__stages { display: grid; }

.stage {
  display: grid;
  gap: 0.9rem;
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-top: var(--hair) solid var(--line);
  transition: opacity var(--dur-slow) var(--ease-out);
}
.stage:last-child { border-bottom: var(--hair) solid var(--line); }

.stage__head {
  display: flex;
  align-items: baseline;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.stage__n {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  transition: color var(--dur-slow) var(--ease-out);
}

.stage__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 104%;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: font-stretch var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}

.stage__summary { font-size: var(--step-1); color: var(--fg); max-width: 34ch; }
.stage__body { color: var(--fg-mute); font-size: var(--step--1); max-width: 52ch; line-height: 1.62; }
.stage__detail {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* The active stage is emphasised through colour and width rather than by
   fading the others out — dropping a whole stage to 40% opacity would push its
   body copy below 4.5:1, and the text has to stay readable whether or not it
   is the one currently level with the sticky image. */
.js .method__stages[data-tracking='true'] .stage__name { color: var(--fg-mute); }
.js .method__stages[data-tracking='true'] .stage[data-active='true'] .stage__name {
  color: var(--fg);
}
.stage[data-active='true'] .stage__n { color: var(--accent); }
.stage[data-active='true'] .stage__name { font-stretch: 118%; }

/* --- facility rail ---------------------------------------------------------
   On wide screens the rail slides horizontally while the section is pinned —
   for a bounded distance, so the page never feels hijacked. Below 64rem it is
   an ordinary swipeable row.                                                  */

.facility { position: relative; }

.rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* padding, not margin, so the last card can reach the right gutter */
  padding-inline: var(--gutter);
  padding-bottom: 1.25rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }

.rail-card {
  flex: 0 0 min(78vw, 340px);
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.rail-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tone, var(--bg-raise));
}
.rail-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.rail-card:hover .rail-card__media img { transform: scale(1.04); }
.rail-card__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.rail-card__note { font-size: var(--step--1); color: var(--fg-mute); }

@media (min-width: 64rem) {
  .facility__pin { position: relative; }
  .js .facility--track .facility__pin { height: var(--pin-height, 300vh); }
  .js .facility--track .facility__viewport {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .js .facility--track .rail {
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    will-change: transform;
  }
  .rail-card { flex: 0 0 clamp(300px, 26vw, 420px); }
  .facility__progress {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    margin-inline: var(--gutter);
    height: var(--hair);
    background: var(--line);
    position: relative;
  }
  .facility__progress i {
    position: absolute;
    inset-block: -1px;
    left: 0;
    width: 100%;
    background: var(--accent);
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
  }
}

/* --- quotes ----------------------------------------------------------------
   One quote at a time, set as a display statement rather than a card. Dots
   are the only chrome.                                                        */

.quotes { position: relative; }

.quote {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              visibility 0s linear var(--dur-slow);
  pointer-events: none;
}
.quote[data-active='true'] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out), visibility 0s;
  pointer-events: auto;
}
.quote:first-child { position: relative; }

.quotes--static .quote { position: relative; opacity: 1; visibility: visible; transform: none; }

.quote__text {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 106%;
  font-size: var(--step-3);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.quote__text span { display: block; }
.quote blockquote { margin: 0; }

.quote__by {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  border-top: var(--hair) solid var(--line);
}
.quote__name { font-size: var(--step-0); }
.quote__meta {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.quotes__nav { display: flex; gap: 0.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.quotes__dot {
  width: 34px; height: 22px;
  display: grid;
  place-items: center;
}
.quotes__dot i {
  display: block;
  width: 100%; height: 2px;
  background: var(--line);
  transition: background var(--dur) var(--ease-out);
}
.quotes__dot[aria-selected='true'] i { background: var(--accent); }
.quotes__dot:hover i { background: var(--fg-mute); }

/* --- call to action --------------------------------------------------------- */

.cta { position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--ink) 0%,
    color-mix(in srgb, var(--ink) 78%, transparent) 46%,
    color-mix(in srgb, var(--ink) 40%, transparent) 100%);
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--step-4);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.cta__title span { display: block; }

/* --- footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink-sunk); color: var(--bone); }
.site-footer [data-chapter] { background: none; }

/* Mobile pairs the categories two to a row rather than stacking all four —
   the brand block keeps the full width because its paragraph and social row
   need it. Tablet and desktop are unchanged. */
.footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 2rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer__top > .footer__col:first-child { grid-column: 1 / -1; }

/* "Find us" is the odd category out. Rather than leave it stranded in half a
   row, it spans the full width and splits its own contents across the same two
   columns, so every row of the mobile footer reads as a pair. */
.footer__col--contact {
  grid-column: 1 / -1;
  /* auto-fit rather than a fixed pair: below roughly 360px there is not enough
     room for the address beside the hours, and it stacks on its own */
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr));
  column-gap: clamp(1.25rem, 5vw, 2rem);
  align-items: start;
}
.footer__col--contact > .footer__heading { grid-column: 1 / -1; }
.footer__col--contact > * { min-width: 0; }

@media (min-width: 48rem) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  .footer__top > .footer__col:first-child { grid-column: auto; }
  .footer__col--contact { grid-column: auto; grid-template-columns: none; }
}
@media (min-width: 64rem) {
  .footer__top { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); }
}

.footer__col { display: grid; gap: 0.9rem; align-content: start; }
.footer__heading {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint-on-ink);
  padding-bottom: 0.75rem;
  border-bottom: var(--hair) solid var(--ink-line);
}
.footer__list { display: grid; gap: 0.55rem; }
.footer__list a,
.footer__list span { font-size: var(--step--1); color: var(--mute-on-ink); }
.footer__list a {
  transition: color var(--dur-fast) var(--ease-out);
  display: inline-block;
}
.footer__list a:hover { color: var(--oxide); }

.footer__hours { display: grid; gap: 0.4rem; }
.footer__hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--mute-on-ink);
}
/* in the paired mobile layout the column is half as wide, so the day and its
   hours sit on separate lines instead of being squeezed onto one */
@media (max-width: 47.999rem) {
  .site-footer .footer__hours { gap: 0.65rem; }
  .site-footer .footer__hours div {
    display: grid;
    gap: 0.05rem;
    justify-items: start;
  }
}
.footer__hours time { font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.04em; }

.footer__statement {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.5rem, 11vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: var(--hair) solid var(--ink-line);
  color: var(--bone);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: var(--hair) solid var(--ink-line);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--faint-on-ink);
}
.footer__bottom a { transition: color var(--dur-fast) var(--ease-out); }
.footer__bottom a:hover { color: var(--oxide); }

.social {
  display: flex;
  gap: 0.5rem;
}
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: var(--hair) solid var(--ink-line);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  color: var(--mute-on-ink);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.social a:hover { color: var(--ink); background: var(--oxide); border-color: var(--oxide); }

/* ---- 06-pages ---- */
/* ==========================================================================
   pages — inner page headers and the layouts unique to a single template
   ========================================================================== */

/* --- inner page header ------------------------------------------------------ */

.page-head {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem));
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-head__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: var(--hair) solid var(--line);
}

.page-head__title {
  margin-top: clamp(1.5rem, 3.5vw, 2.75rem);
  font-size: var(--step-4);
}
.page-head__title span { display: block; }

.page-head__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 64rem) {
  .page-head__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.breadcrumb a { transition: color var(--dur-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: '/'; color: var(--fg-faint); }

/* --- about ------------------------------------------------------------------ */

.about-split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 64rem) {
  .about-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
  }
  .about-split--flip > :first-child { order: 2; }
}
.about-split__media { overflow: hidden; background: var(--tone, var(--bg-raise)); }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }

.rules-list { display: grid; }
.rule-item {
  display: grid;
  gap: 0.6rem;
  padding-block: clamp(1.4rem, 2.8vw, 2rem);
  border-top: var(--hair) solid var(--line);
}
.rules-list .rule-item:last-child { border-bottom: var(--hair) solid var(--line); }
@media (min-width: 48rem) {
  .rule-item {
    grid-template-columns: minmax(0, 4rem) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: start;
  }
}
.rule-item__n { font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.12em; color: var(--accent); }
.rule-item__title { font-size: var(--step-1); font-family: var(--display); font-weight: 700; font-stretch: 104%; letter-spacing: -0.015em; line-height: 1.14; }
.rule-item__body { color: var(--fg-mute); font-size: var(--step--1); line-height: 1.62; }

/* --- programme + coach detail ------------------------------------------------ */

.detail-hero { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 64rem) {
  .detail-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
  }
}
.detail-hero__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--tone, var(--bg-raise)); }
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.spec {
  display: grid;
  gap: 0;
  border-top: var(--hair) solid var(--line);
}
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.85rem;
  border-bottom: var(--hair) solid var(--line-soft);
}
.spec__key {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.spec__val { font-size: var(--step--1); text-align: right; }

.detail-body { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 64rem) {
  .detail-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }
  .detail-body__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.checklist { display: grid; gap: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  padding-block: 0.85rem;
  border-top: var(--hair) solid var(--line-soft);
  font-size: var(--step--1);
  line-height: 1.5;
}
.checklist li:last-child { border-bottom: var(--hair) solid var(--line-soft); }
.checklist svg { margin-top: 0.3em; color: var(--accent); }

/* featured coach block */
.feature-coach { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
@media (min-width: 64rem) {
  .feature-coach { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); }
}
.feature-coach__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tone, var(--bg-raise)); }
.feature-coach__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-coach__quote {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: var(--step-4);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.feature-coach__quote span { display: block; }

.coach-grid { display: grid; gap: clamp(2rem, 3.5vw, 3rem); }
@media (min-width: 34rem) { .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .coach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- membership -------------------------------------------------------------- */

.plans { display: grid; gap: clamp(2.5rem, 4vw, 3rem); }
@media (min-width: 60rem) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3.5rem); }
}

/* --- schedule ----------------------------------------------------------------
   Real timetable on desktop; day-by-day cards on small screens. Both read from
   the same markup — the table simply becomes blocks.                            */

.sched-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}
.sched-filter button {
  padding: 0.5rem 0.9rem;
  border: var(--hair) solid var(--line);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.sched-filter button:hover { color: var(--fg); border-color: var(--fg-mute); }
.sched-filter button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.sched-days { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.sched-day__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: var(--hair) solid var(--fg);
}
.sched-day__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 114%;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.slot {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.6rem 1rem;
  align-items: baseline;
  padding-block: 0.95rem;
  border-bottom: var(--hair) solid var(--line-soft);
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.slot:hover { background: var(--bg-raise); }
.slot--empty { color: var(--fg-faint); }

.slot__time {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.slot--empty .slot__time { color: var(--fg-faint); }
.slot__name { font-size: var(--step-0); }
.slot__name a { transition: color var(--dur-fast) var(--ease-out); }
.slot__name a:hover { color: var(--accent); }
.slot__coach {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.slot__len {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-align: right;
}

/* the base rule has to come first — an unqualified declaration after a media
   query wins over it at equal specificity, which hides the table everywhere */
.sched-table-wrap { display: none; }

@media (min-width: 64rem) {
  .sched-days { display: none; }
  .sched-table-wrap { display: block; overflow-x: auto; }
}

.sched-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
.sched-table th,
.sched-table td { border-bottom: var(--hair) solid var(--line); vertical-align: top; }
.sched-table thead th {
  padding: 0 0.75rem 0.85rem;
  text-align: left;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 114%;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border-bottom-color: var(--fg);
}
.sched-table thead th:first-child { padding-left: 0; }
.sched-table tbody th {
  width: 5.5rem;
  padding: 1.1rem 0.75rem 1.1rem 0;
  text-align: left;
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sched-table td { padding: 0.5rem 0.4rem; }

.sess {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem;
  border: var(--hair) solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  position: relative;
  height: 100%;
}
a.sess:hover { background: var(--bg-raise); border-color: var(--line); }
.sess__name { font-size: var(--step--1); line-height: 1.2; }
.sess__coach {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
a.sess:hover .sess__name { color: var(--accent); }
.sess__rule { margin-top: 0.35rem; }
.sess--empty { color: var(--fg-faint); font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.1em; padding: 0.7rem 0.75rem; }

.sched-table [data-dim='true'] { opacity: 0.24; }
.slot[data-dim='true'] { opacity: 0.24; }

/* --- contact ------------------------------------------------------------------ */

.contact-split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 64rem) {
  .contact-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
}

.form-grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
/* the submit sizes to its label rather than stretching across the column */
[data-form] button[type='submit'] { justify-self: start; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > [data-full] { grid-column: 1 / -1; }
}

.info-block { display: grid; gap: 0.5rem; padding-block: clamp(1.1rem, 2.2vw, 1.5rem); border-top: var(--hair) solid var(--line); }
.info-block:last-of-type { border-bottom: var(--hair) solid var(--line); }
.info-block__value { font-size: var(--step-1); }
.info-block__value a { transition: color var(--dur-fast) var(--ease-out); }
.info-block__value a:hover { color: var(--accent); }

.map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-raise);
  border: var(--hair) solid var(--line);
  overflow: hidden;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin {
  position: absolute;
  top: 46%; left: 52%;
  transform: translate(-50%, -100%);
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}
.map__dot {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}
.map__label {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border: var(--hair) solid var(--line);
}
.map__note {
  position: absolute;
  left: 0.85rem; bottom: 0.85rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

/* --- journal -------------------------------------------------------------------- */

.jgrid { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 48rem) { .jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.jcard { position: relative; display: grid; gap: 1rem; align-content: start; padding-top: 0.9rem; border-top: var(--hair) solid var(--line); }
.jcard--lead { grid-column: 1 / -1; }
.jcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tone, var(--bg-raise)); }
.jcard--lead .jcard__media { aspect-ratio: 16 / 9; }
.jcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.jcard:hover .jcard__media img { transform: scale(1.04); }
.jcard__title {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 102%;
  font-size: var(--step-2);
  line-height: 1.06;
  letter-spacing: -0.025em;
  transition: color var(--dur) var(--ease-out);
  max-width: 24ch;
}
.jcard--lead .jcard__title { font-size: var(--step-3); }
.jcard:hover .jcard__title { color: var(--accent); }
.jcard__stand { color: var(--fg-mute); font-size: var(--step--1); max-width: 52ch; }
.jcard__link::after { content: ''; position: absolute; inset: 0; }
.jcard__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

.article { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 64rem) {
  .article { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .article__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
.article__body { max-width: 68ch; }
.article__body > * + * { margin-top: 1.15em; }
.article__body h2 {
  font-size: var(--step-2);
  margin-top: 2em;
  padding-top: 0.8em;
  border-top: var(--hair) solid var(--line);
  text-transform: uppercase;
  font-stretch: 106%;
}
.article__body h2:first-child { margin-top: 0; }
.article__body p { color: var(--fg-mute); line-height: 1.68; }
.article__body p:first-of-type { color: var(--fg); font-size: var(--step-1); line-height: 1.5; }

.article__figure { margin: 0; }
.article__figure img { width: 100%; }
.article__figure figcaption {
  padding-top: 0.7rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

/* --- credits / 404 --------------------------------------------------------------- */

.credits { display: grid; gap: 0; }
.credits__row {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding-block: 0.8rem;
  border-top: var(--hair) solid var(--line-soft);
  font-size: var(--step--1);
  color: var(--fg-mute);
}
@media (min-width: 48rem) {
  .credits__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: baseline; }
}
.credits__row:last-child { border-bottom: var(--hair) solid var(--line-soft); }

.error-page {
  min-height: 82svh;
  display: grid;
  align-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}
.error-page__code {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 122%;
  font-size: clamp(5rem, 22vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--accent);
}

/* an even row of related articles at the foot of a piece */
.jgrid--even {
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}

/* ---- 07-motion ---- */
/* ==========================================================================
   motion — one reveal system, used everywhere
   Every rule below is scoped to .js so that without scripting the page is
   simply the finished state. Nothing is ever hidden behind an animation.
   ========================================================================== */

/* --- page arrival --------------------------------------------------------- */

.js body { opacity: 0; }
.js body.is-ready {
  opacity: 1;
  transition: opacity 320ms var(--ease-out);
}

/* leaving: a short dip, not a curtain */
.js body.is-leaving {
  opacity: 0;
  transition: opacity 220ms var(--ease-in-out);
}

/* --- reveal --------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transition-property: opacity, transform, font-stretch, clip-path;
  transition-duration: var(--dur-reveal);
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}

.js [data-reveal='rise'] { transform: translateY(26px); }
.js [data-reveal='rise-sm'] { transform: translateY(14px); }
.js [data-reveal='fade'] { transform: none; }

/* the signature: display type arrives narrow and opens to full width */
.js [data-reveal='width'] {
  font-stretch: var(--wdth-tight);
  transform: translateY(0.12em);
}
.js [data-reveal='width'].is-in { font-stretch: var(--wdth-open); }

/* Image containers reveal behind a curtain that wipes upward while the
   photograph settles from 1.08 back to 1.
   The curtain is a pseudo-element on purpose. Clipping the observed element
   itself (clip-path / overflow) zeroes its intersection rectangle, so
   IntersectionObserver never reports it as visible and the reveal never
   fires — the image would stay hidden forever. */
.js [data-reveal='frame'] {
  position: relative;
  opacity: 1;
}
.js [data-reveal='frame']::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--bg, var(--ink));
  transform: scaleY(1);
  transform-origin: top center;
  transition: transform var(--dur-reveal) var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js [data-reveal='frame'] > img,
.js [data-reveal='frame'] > picture > img,
.js [data-reveal='frame'] > figure > img { transform: scale(1.08); }

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal='frame'].is-in::after { transform: scaleY(0); }
.js [data-reveal='frame'].is-in > img,
.js [data-reveal='frame'].is-in > picture > img {
  transform: scale(1);
  transition: transform 1.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}

/* --- parallax -------------------------------------------------------------
   JS writes --shift in pixels; the element only ever translates.             */

.js [data-parallax] { will-change: transform; }
.js [data-parallax] > img { transform: translate3d(0, var(--shift, 0px), 0) scale(1.06); }

.js .hero__media > img {
  transform: translate3d(0, var(--shift, 0px), 0) scale(var(--zoom, 1.06));
  transition: none;
}

/* --- counters -------------------------------------------------------------- */

.stat__value[data-count] { font-variant-numeric: tabular-nums; }

/* --- reduced motion --------------------------------------------------------
   Everything above collapses to its finished state. Marquee and the pinned
   rail stop entirely; the rail becomes a normal scrolling row.                */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .js [data-reveal='width'] { font-stretch: var(--wdth-open); }
  .js [data-reveal='frame']::after { display: none; }
  .js [data-reveal='frame'] > img,
  .js [data-reveal='frame'] > picture > img { transform: none !important; }

  .js .hero__media > img,
  .js [data-parallax] > img { transform: none !important; }

  .marquee__track { animation: none; transform: none; }

  .js .facility--track .facility__pin { height: auto !important; }
  .js .facility--track .facility__viewport { position: static; height: auto; }
  .js .facility--track .rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none !important;
  }
  .facility__progress { display: none; }

  .js body { opacity: 1; }
}
