/* =========================================================
   Dayna Deeble — "Rescue Speed"
   Design system: ../../design-system/dayna-deeble/MASTER.md
   Website & photography: PROFarazzi Media
   ========================================================= */

:root {
  --navy-950: #060f1e;
  --navy-900: #0a192f;
  --navy-800: #112440;
  --navy-700: #16304f;
  --navy-600: #1e3a5f;
  --white: #ffffff;
  --mist: #b8c4d6;
  --sand: #f4efe6;
  --sand-ink: #4a5568;
  --orange: #ff5a1f;
  --orange-ink: #ea4c14;   /* orange for large type on sand (3.3:1) */
  --orange-text: #c2410c;  /* orange for small type on sand (4.5:1) */
  --orange-deep: #e8470e;
  --yellow: #ffd100;
  --sa-green: #007749; /* South African flag green (Pantone 3415 C) */

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --w-display: 800;
  --f-label: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
  --dur-micro: 200ms;

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1440px;
  --section-y: clamp(88px, 13vh, 168px);
  --radius: 20px;

  --z-media: 10;
  --z-nav: 30;
  --z-cursor: 40;
  --z-wipe: 50;
  --z-preloader: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy-900); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.text-link { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: color var(--dur-micro); }
.text-link:hover { color: var(--orange); }
.section--sand .text-link:hover { color: var(--orange-text); }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--navy-900); }
html { scrollbar-color: var(--orange) var(--navy-950); }
input, textarea { caret-color: var(--orange); }
a, button, summary, [data-cursor] { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
/* Yellow vanishes on sand and orange: use navy focus rings there */
.section--sand :focus-visible, .cta-band :focus-visible, .kit a:focus-visible { outline-color: var(--navy-900); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--navy-900); padding: 10px 16px; border-radius: 8px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; line-height: .9; letter-spacing: .005em; margin: 0; }
h1, h2, h3, .say blockquote { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(4.5rem, 15vw, 15rem); }
h2 { font-size: clamp(3rem, 7.2vw, 7.5rem); }
h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: .95; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--mist); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-label); font-weight: 500; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
  margin-bottom: 22px;
}
.eyebrow b { color: var(--orange); font-weight: 600; }
.accent { color: var(--orange); }
.accent-y { color: var(--yellow); }
.accent-g { color: var(--sa-green); }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; }
.section--sand { background: var(--sand); color: var(--navy-900); }
.section--sand .lead, .section--sand .eyebrow { color: var(--sand-ink); }
.section--sand .accent, .section--sand .centenary__num { color: var(--orange-ink); }
.section--sand .eyebrow b { color: var(--orange-text); }
.section--deep { background: var(--navy-950); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.section-head p { margin: 0; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0;
  font-family: var(--f-label); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color var(--dur-micro), background-color var(--dur-micro), border-color var(--dur-micro);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: var(--navy-900); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow);
  transform: translateY(101%); transition: transform .45s var(--ease-out); border-radius: inherit;
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--navy-900); }
.section--sand .btn--ghost { color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--navy-900); }
.section--sand .btn--ghost:hover { background: var(--navy-900); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: var(--gutter); right: var(--gutter); z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(10, 25, 47, .62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: inline-block; padding: 9px 0; margin: -9px 0; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: 26px; letter-spacing: .04em; text-decoration: none; line-height: 1; white-space: nowrap; }
.nav__brand span { color: var(--orange); }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-family: var(--f-label); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--mist);
  transition: color var(--dur-micro), background-color var(--dur-micro);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: 8px; }
.nav .btn { min-height: 46px; padding: 0 22px; font-size: 13px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1); background: var(--navy-950);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 50px) 40px); visibility: hidden;
  transition: clip-path .7s var(--ease-inout), visibility 0s .7s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 50px) 40px); visibility: visible; transition: clip-path .7s var(--ease-inout), visibility 0s; }
.mobile-menu a { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(3rem, 14vw, 5rem); line-height: 1.05; text-decoration: none; display: block; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; font-family: var(--f-label); font-size: 15px; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 480px) { .nav .btn { display: none; } }

/* ---------- Progress, cursor, wipe, preloader ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); z-index: calc(var(--z-nav) + 1); pointer-events: none; }

.cursor { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; display: none; }
.cursor__ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.75); display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor__label { font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-900); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--yellow); border-color: var(--yellow); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--orange); }
@media (hover: hover) and (pointer: fine) { html.motion .cursor { display: block; } }

.wipe { position: fixed; inset: 0; z-index: var(--z-wipe); pointer-events: none; visibility: hidden; }
.wipe__panel { position: absolute; inset: -10vh 0; background: var(--navy-950); transform: translateY(110%); }
.wipe__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--orange); }
.wipe__panel svg { position: absolute; left: 0; width: 100%; height: 10vh; }
.wipe__panel .wave-top { top: calc(-10vh + 1px); }
.wipe__mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: .04em; color: var(--white); opacity: 0; }
.wipe__mark span { color: var(--orange); }
html.is-covered .wipe { visibility: visible; }
html.is-covered .wipe__panel { transform: translateY(0); }

.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader); background: var(--navy-950);
  display: none; place-items: center; overflow: hidden;
}
html.show-preloader .preloader { display: grid; }
.preloader__name { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(4rem, 16vw, 14rem); line-height: .85; text-align: center; overflow: hidden; }
.preloader__name .row { display: block; overflow: hidden; }
.preloader__name .row > span { display: inline-block; }
.preloader__name .row:last-child { color: var(--orange); }
.preloader__rope { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.preloader__meta { position: absolute; bottom: 32px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.preloader__skip { background: none; border: 0; cursor: pointer; color: var(--mist); font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 44px; }

/* ---------- Motion primitives (hidden only when motion is on) ---------- */
.split-line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.split-char { display: inline-block; will-change: transform; }
.split-word { display: inline-block; white-space: nowrap; }
#sp-title { font-size: clamp(3.4rem, 8.4vw, 9.5rem); }
html.motion [data-split] { visibility: hidden; }
html.motion [data-split].is-split { visibility: visible; }

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media__credit { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(6,15,30,.72); color: rgba(255,255,255,.85); font-family: var(--f-label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.media--wide { aspect-ratio: 16 / 9; }
/* Two portraits side by side in one frame (Story > Coaching) */
.media--split { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--navy-950); }
.media--split figure { position: relative; margin: 0; overflow: hidden; min-width: 0; }
.media__tag { position: absolute; left: 8px; right: 8px; bottom: 10px; z-index: 2; width: fit-content; max-width: calc(100% - 16px); padding: 5px 10px; border-radius: 10px; background: rgba(6,15,30,.72); color: #fff; font-family: var(--f-label); font-size: 11px; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.media--square { aspect-ratio: 1; }
html.motion [data-reveal] { clip-path: inset(100% 0 0 0 round var(--radius)); }
html.motion [data-fade] { opacity: 0; transform: translateY(40px); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--navy-950); }
.hero__media { position: absolute; inset: 0; will-change: clip-path; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media .hero__video--mobile { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
  .hero__media .hero__video--desktop { display: none; }
  .hero__media .hero__video--mobile { display: block; }
}
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6,15,30,.55) 0%, rgba(6,15,30,0) 26%, rgba(6,15,30,0) 42%, rgba(6,15,30,.88) 100%),
  linear-gradient(90deg, rgba(6,15,30,.55) 0%, rgba(6,15,30,0) 55%); }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 72px); }
.hero__title { font-size: clamp(5rem, 17vw, 17rem); line-height: .82; }
.hero__title .accent { display: block; }
.hero__sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.hero__tag { font-family: var(--f-label); font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .14em; text-transform: uppercase; max-width: 34ch; margin: 0; }
.hero__tag strong { color: var(--yellow); font-weight: 500; }
.hero__scroll { position: absolute; right: var(--gutter); top: 50%; writing-mode: vertical-rl; font-family: var(--f-label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); display: flex; align-items: center; gap: 14px; }
.hero__scroll::after { content: ""; width: 1.5px; height: 70px; background: linear-gradient(var(--orange), transparent); animation: drip 2.2s var(--ease-inout) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

.page-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(40px, 7vh, 88px); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img, .page-hero__bg video { width: 100%; height: 115%; object-fit: cover; }
.page-hero .hero__shade { z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(4rem, 12vw, 12rem); }
.page-hero .lead { margin-top: 22px; color: rgba(255,255,255,.86); }
/* Story hero: Dayna sits right of centre, so the copy takes the open left side (desktop) or sits under the photo (phone) */
.page-hero--beside { align-items: center; }
.page-hero--beside .page-hero__bg img { object-position: 60% 50%; }
.page-hero--beside .hero__shade { background:
  linear-gradient(90deg, rgba(6,15,30,.82) 0%, rgba(6,15,30,.55) 32%, rgba(6,15,30,0) 56%),
  linear-gradient(180deg, rgba(6,15,30,.5) 0%, rgba(6,15,30,0) 24%, rgba(6,15,30,0) 76%, rgba(6,15,30,.6) 100%); }
.page-hero--beside .wrap > * { max-width: min(46%, 640px); }
.page-hero--beside h1 { font-size: clamp(3.6rem, 7.4vw, 8.6rem); }
@media (max-width: 860px) {
  .page-hero--beside { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; background: var(--navy-950); }
  .page-hero--beside .page-hero__bg { position: relative; inset: auto; height: 62vh; height: 62svh; min-height: 380px; overflow: hidden; }
  .page-hero--beside .page-hero__bg img { height: 100%; object-position: 61% 50%; }
  .page-hero--beside .hero__shade { inset: auto 0 auto 0; top: 0; height: 62vh; height: 62svh; min-height: 380px; background: linear-gradient(180deg, rgba(6,15,30,.55) 0%, rgba(6,15,30,0) 30%, rgba(6,15,30,0) 70%, rgba(6,15,30,1) 100%); }
  .page-hero--beside .wrap { padding-top: 8px; padding-bottom: clamp(40px, 7vh, 72px); }
  .page-hero--beside .wrap > * { max-width: none; }
  .page-hero--beside h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
}

/* ---------- Stat bar ---------- */
.stats { background: var(--navy-800); border-top: 1px solid var(--navy-600); border-bottom: 1px solid var(--navy-600); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 52px) clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--navy-600); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--f-body); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__num small { font-size: .5em; margin-left: 2px; }
.stat__label { font-family: var(--f-label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; }
.stat__ctx { font-size: 14px; color: var(--mist); margin-top: 4px; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--navy-600); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(24px, 4vw, 48px) 0; white-space: nowrap; border-bottom: 1px solid var(--navy-600); }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(4rem, 11vw, 10rem); line-height: 1; padding-right: .3em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); }
.marquee__item i { font-style: normal; color: var(--orange); -webkit-text-stroke: 0; }
.section--sand .marquee__item { -webkit-text-stroke-color: rgba(10,25,47,.4); }

/* ---------- Flipbook (scroll-scrubbed burst) ---------- */
.flip { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--navy-950); }
.flip__frames { position: absolute; inset: 0; }
.flip__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.flip__frames img:first-child { opacity: 1; }
.flip__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,30,.85), rgba(6,15,30,0) 55%), linear-gradient(90deg, rgba(6,15,30,.5), rgba(6,15,30,0) 50%); }
.flip__ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 7vh, 80px); }
.flip__steps { position: relative; height: clamp(4rem, 11vw, 10rem); }
.flip__step { position: absolute; left: 0; bottom: 0; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(4rem, 11vw, 10rem); line-height: .9; opacity: 0; }
.flip__step:first-child { opacity: 1; }
.flip__step small { display: block; font-family: var(--f-label); font-size: 14px; letter-spacing: .2em; color: var(--yellow); margin-bottom: 10px; }
.flip__meter { display: flex; gap: 6px; margin-top: 28px; }
.flip__meter span { height: 3px; flex: 1; max-width: 80px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.flip__meter span::after { content: ""; display: block; height: 100%; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; }
.flip__counter { position: absolute; top: 110px; right: var(--gutter); font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; color: var(--mist); font-variant-numeric: tabular-nums; }

/* Logo plate that drops onto the board */
.logo-plate {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  display: grid; place-items: center; text-align: center;
  width: clamp(120px, 14vw, 210px); aspect-ratio: 2.4 / 1; border-radius: 10px;
  background: rgba(255,90,31,.92); color: var(--navy-900);
  font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(1.2rem, 1.8vw, 1.8rem); line-height: 1; letter-spacing: .04em;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.4);
  opacity: 0; pointer-events: none;
}
.logo-plate small { display: block; font-family: var(--f-label); font-size: 10px; letter-spacing: .2em; }

/* ---------- Cards ---------- */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.world { position: relative; display: block; aspect-ratio: 3 / 4.4; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--navy-800); isolation: isolate; cursor: pointer; }
.world img, .world video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .5s; }
.world video { opacity: 0; }
.world:hover video, .world.is-playing video { opacity: 1; }
.world:hover img, .world:hover video { transform: scale(1.06); }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,30,.92) 0%, rgba(6,15,30,0) 55%); z-index: 1; }
.world__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 34px); z-index: 2; }
.world__num { font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; color: var(--yellow); }
.world h3 { font-size: clamp(3rem, 5.4vw, 5.6rem); margin: 6px 0 8px; }
.world p { color: var(--mist); font-size: 15px; margin: 0; max-width: 32ch; }
.world__line { display: block; height: 2px; background: var(--orange); margin-top: 18px; transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out); }
.world:hover .world__line { transform: scaleX(1); }
@media (max-width: 900px) { .worlds { grid-template-columns: 1fr; } .world { aspect-ratio: 4 / 3.6; } }

/* ---------- Quote split ---------- */
.quote-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.quote-split blockquote { margin: 0; font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(3.4rem, 7.6vw, 8rem); line-height: .9; text-transform: uppercase; }
.quote-split blockquote .accent { display: block; }
.quote-split figcaption { margin-top: 28px; }
@media (max-width: 900px) { .quote-split { grid-template-columns: 1fr; } }

/* ---------- Partner slots ---------- */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slot { aspect-ratio: 2 / 1; border-radius: 14px; border: 1.5px dashed rgba(255,255,255,.28); display: grid; place-items: center; font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); text-decoration: none; transition: border-color .3s, color .3s, background-color .3s; }
.slot:hover { border-color: var(--orange); color: var(--white); background: rgba(255,90,31,.08); }
html.motion .slot { animation: slotpulse 3.6s ease-in-out infinite; }
.slot:nth-child(2) { animation-delay: .6s; } .slot:nth-child(3) { animation-delay: 1.2s; } .slot:nth-child(4) { animation-delay: 1.8s; }
@keyframes slotpulse { 0%, 100% { border-color: rgba(255,255,255,.22); } 50% { border-color: rgba(255,209,0,.7); } }
@media (max-width: 700px) { .slots { grid-template-columns: 1fr 1fr; } }

/* ---------- Social strip ---------- */
.drag-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; cursor: grab; }
.drag-strip::-webkit-scrollbar { display: none; }
.drag-strip > * { flex: 0 0 clamp(220px, 24vw, 340px); scroll-snap-align: start; }
.drag-strip a { display: block; text-decoration: none; }
.drag-strip .media { aspect-ratio: 4 / 5; }

/* ---------- Story chapters ---------- */
.chapter { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.chapter__sticky { position: sticky; top: 110px; }
.chapter__text p { font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.chapter__text h2 { margin-bottom: 30px; }
@media (max-width: 900px) { .chapter { grid-template-columns: 1fr; } .chapter__sticky { position: relative; top: 0; } }

.centenary { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); margin: -6px 0 34px; padding: 18px 0; border-top: 1px solid rgba(10,25,47,.15); border-bottom: 1px solid rgba(10,25,47,.15); }
.centenary__num { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(4.4rem, 8vw, 7rem); line-height: .8; color: var(--orange); flex: none; }
.centenary p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--navy-900); max-width: 40ch; }
.centenary strong { font-weight: 700; }
.say { margin: 34px 0; padding-left: clamp(18px, 2vw, 26px); border-left: 1px solid rgba(10,25,47,.18); }
.say blockquote { margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.02; color: var(--navy-900); }
.say figcaption { margin-top: 12px; font-family: var(--f-label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-text); }
.centenary__mark { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); flex: none; }
.centenary__logo { display: block; width: auto; height: clamp(68px, 7.4vw, 104px); filter: drop-shadow(0 6px 14px rgba(10,25,47,.18)); }
@media (max-width: 520px) { .centenary { flex-wrap: wrap; } .centenary p { flex-basis: 100%; } }
.placeholder-note { display: inline-block; font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; border: 1px dashed currentColor; opacity: .7; margin-top: 8px; }

/* Athlete / Lifesaver divider */
.duo { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--navy-950); }
.duo__side { position: absolute; inset: 0; }
.duo__side img, .duo__side video { width: 100%; height: 100%; object-fit: cover; }
.duo__side--b { clip-path: inset(0 0 0 50%); }
.duo__label { position: absolute; bottom: clamp(32px, 7vh, 80px); font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(3.4rem, 9vw, 9rem); line-height: .9; z-index: 2; text-shadow: 0 6px 40px rgba(0,0,0,.4); }
.duo__label small { display: block; font-family: var(--f-label); font-size: 14px; letter-spacing: .2em; color: var(--yellow); margin-bottom: 8px; text-shadow: none; }
.duo__label--a { left: var(--gutter); }
.duo__label--b { right: var(--gutter); text-align: right; }
.duo__bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--orange); z-index: 2; }
.duo__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,30,.7), rgba(6,15,30,0) 50%); pointer-events: none; }

/* ---------- Horizontal track ---------- */
.htrack { position: relative; overflow: hidden; }
.htrack__inner { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hpanel { width: clamp(300px, 34vw, 520px); flex: none; }
.hpanel .media { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.hpanel h3 { margin-bottom: 10px; }
.hpanel p { color: var(--mist); }
.htrack__intro { width: clamp(280px, 30vw, 460px); flex: none; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .htrack { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .htrack::-webkit-scrollbar { display: none; }
  .hpanel, .htrack__intro { scroll-snap-align: start; width: min(82vw, 420px); }
}
html.no-motion .htrack { overflow-x: auto; }

/* ---------- Values ---------- */
.values { list-style: none; margin: 0; padding: 0; }
.value { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: clamp(14px, 2vw, 28px) 0; border-top: 1px solid rgba(10,25,47,.15); }
.value:last-child { border-bottom: 1px solid rgba(10,25,47,.15); }
.value__word { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(3.4rem, 10vw, 10rem); line-height: .9; color: rgba(10,25,47,.52); transition: color .5s var(--ease-out); }
.no-motion .value__word { color: var(--orange-ink); }
.value.is-active .value__word { color: var(--orange); }
.value p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--sand-ink); }
@media (max-width: 700px) { .value { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Medals ---------- */
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); perspective: 1200px; }
.medal { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(26px, 3vw, 44px); background: var(--navy-800); border: 1px solid var(--navy-600); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; }
.medal__disc { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: 40px; color: var(--navy-900); position: relative; overflow: hidden; }
.medal__disc::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%); transform: translateX(-100%); }
.medal.is-in .medal__disc::after { animation: sheen 1.4s .4s var(--ease-out) forwards; }
@keyframes sheen { to { transform: translateX(100%); } }
.medal--gold .medal__disc { background: linear-gradient(140deg, #ffe680, #ffd100 45%, #c99a00); }
.medal--silver .medal__disc { background: linear-gradient(140deg, #ffffff, #c9d2dd 45%, #8d9aab); }
.medal--bronze .medal__disc { background: linear-gradient(140deg, #f3b98a, #cd7f32 45%, #a8682c); }
.medal h3 { margin: 26px 0 8px; }
.medal p { color: var(--mist); margin: 0; font-size: 15px; }
.medal__event { font-family: var(--f-label); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
@media (max-width: 900px) { .medals { grid-template-columns: 1fr; } .medal { min-height: 0; } }

/* Timeline (horizontal track variant) */
.tl-panel { width: clamp(300px, 40vw, 620px); flex: none; padding-right: 20px; display: flex; flex-direction: column; }
.tl-panel > p { margin-bottom: 0; padding-bottom: 22px; }
/* Push every image to the bottom so they line up across the track, whatever the text length */
.tl-panel > .media { margin-top: auto; flex: none; }
.tl-year { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(6rem, 16vw, 16rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); transition: color .6s, -webkit-text-stroke-color .6s; }
.tl-panel.is-active .tl-year { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.tl-panel h3 { margin: 18px 0 10px; }
.tl-panel p { color: var(--mist); max-width: 44ch; }
.tl-panel .media { aspect-ratio: 16 / 10; margin-top: auto; flex: none; }
/* Phones swipe one panel at a time: the photo follows its own text instead of lining up with the longest panel */
@media (max-width: 900px), (prefers-reduced-motion: reduce) { .tl-panel > .media { margin-top: 0; } }
.tl-line { position: relative; height: 2px; background: var(--navy-600); margin: 0 var(--gutter) 48px; }
.tl-line span { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }
/* Pinned horizontal tracks (desktop): every panel fits one screen below the nav, whatever the window height. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) .pin-fit { height: 100vh; height: 100svh; padding: 104px 0 clamp(20px, 4vh, 44px) !important; padding: 104px 0 clamp(20px, 4svh, 44px) !important; display: flex; flex-direction: column; }
  html:not(.no-motion) .pin-fit .htrack { flex: 1; min-height: 0; }
  html:not(.no-motion) .pin-fit .htrack__inner { height: 100%; }
  html:not(.no-motion) .pin-fit .media { flex: 1 1 0; min-height: 120px; aspect-ratio: auto; }
  /* Training cards keep close to their portrait shape on short screens */
  html:not(.no-motion) .pin-fit .hpanel { height: 100%; display: flex; flex-direction: column; width: clamp(300px, min(34vw, calc((100vh - 300px) * .8)), 520px); width: clamp(300px, min(34vw, calc((100svh - 300px) * .8)), 520px); }
  html:not(.no-motion) .pin-fit .hpanel .media { margin-bottom: clamp(14px, 2.4vh, 22px); margin-bottom: clamp(14px, 2.4svh, 22px); }
  html:not(.no-motion) .pin-fit .hpanel p { line-height: 1.6; min-height: 4.8em; margin-bottom: 0; }
  /* Timeline */
  html:not(.no-motion) .pin-fit .tl-line { flex: none; margin-bottom: clamp(18px, 3.5vh, 48px); margin-bottom: clamp(18px, 3.5svh, 48px); }
  html:not(.no-motion) .pin-fit .tl-panel { height: 100%; min-height: 0; }
  html:not(.no-motion) .pin-fit .tl-year { font-size: min(16vw, 19vh); font-size: min(16vw, 19svh); line-height: .92; padding-bottom: .14em; }
  html:not(.no-motion) .pin-fit .tl-panel h3 { margin: clamp(16px, 2.8vh, 26px) 0 clamp(6px, 1.2vh, 10px); margin: clamp(16px, 2.8svh, 26px) 0 clamp(6px, 1.2svh, 10px); }
  /* Same text height in every timeline panel so the photos line up */
  html:not(.no-motion) .pin-fit .tl-panel > p { line-height: 1.6; min-height: calc(8em + clamp(12px, 2.4vh, 22px)); min-height: calc(8em + clamp(12px, 2.4svh, 22px)); padding-bottom: clamp(12px, 2.4vh, 22px); padding-bottom: clamp(12px, 2.4svh, 22px); }
  html:not(.no-motion) .pin-fit .tl-panel > .media { margin-top: 0; }
  html:not(.no-motion) .pin-fit .tl-panel > .btn { align-self: flex-start; }
}

/* Disciplines */
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.disc { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy-800); aspect-ratio: 3 / 4; isolation: isolate; }
.disc img, .disc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .4s; }
.disc video { opacity: 0; }
.disc:hover video { opacity: 1; }
.disc:hover img { transform: scale(1.06); }
.disc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,30,.92), rgba(6,15,30,0) 60%); }
.disc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; }
.disc__body span { font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.disc-grid--3 .disc__body span { display: block; font-size: 13px; letter-spacing: .12em; line-height: 1.35; }
.disc h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); margin: 4px 0 6px; }
.disc p { font-size: 14px; color: var(--mist); margin: 0; line-height: 1.45; }
/* Same text block height on every card so labels and headings line up across a row */
.disc p { min-height: calc(3 * 1.45em); }
.disc-grid--3 .disc__body span { min-height: calc(2 * 1.35em); }
@media (max-width: 1000px) { .disc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .disc-grid { grid-template-columns: 1fr; } .disc { aspect-ratio: 4 / 3.4; } }

.disc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.disc-grid--3 .disc { aspect-ratio: 4 / 4.6; }
@media (max-width: 1000px) { .disc-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .disc-grid--3 { grid-template-columns: 1fr; } }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); counter-reset: none; }
.step { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--navy-600); overflow: hidden; transition: border-color .3s, transform .5s var(--ease-out); }
.step:hover { border-color: var(--yellow); transform: translateY(-4px); }
.step__num { display: block; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(4rem, 7vw, 6.5rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--mist); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Calendar */
.cal { border-top: 1px solid var(--navy-600); }
.cal__row { display: grid; grid-template-columns: 160px 1fr 1fr 140px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--navy-600); }
.cal__date { font-family: var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.cal__event { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; }
.cal__venue { color: var(--mist); }
.cal__row { transition: opacity .4s; }
.cal__row[hidden] { display: none; }
.cal__date small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .18em; color: var(--mist); }
.cal__row[data-type="club"] .cal__date small { color: var(--orange); }
.chips--dark .chip { color: var(--white); border-color: var(--navy-600); }
.chips--dark .chip:hover { border-color: var(--mist); }
.chips--dark .chip[aria-pressed="true"] { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); }
.cal__row.is-past { opacity: .5; }
.cal__row.is-next { background: linear-gradient(90deg, rgba(255,90,31,.12), transparent 70%); border-bottom-color: var(--orange); }
.cal__row.is-past:has(.pill--win) { opacity: 1; }
.pill.pill--win { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); text-decoration: none; }
.pill.pill--win:hover, .pill.pill--win:focus-visible { color: var(--navy-900);  background: var(--white); border-color: var(--white); }

.res-rounds { border-top: 1px solid var(--navy-600); margin-bottom: 8px; }
.res-round { border-bottom: 1px solid var(--navy-600); }
.res-round__head {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto 44px; align-items: center; gap: 6px 24px;
  min-height: 84px; padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left; color: inherit;
  transition: background-color .3s;
}
.res-round__head:hover { background: linear-gradient(90deg, rgba(255,209,0,.06), transparent 70%); }
.res-round__name { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; color: var(--white); transition: color .25s; }
.res-round__head:hover .res-round__name, .res-round__head[aria-expanded="true"] .res-round__name { color: var(--yellow); }
.res-round__meta { font-size: 14px; color: var(--mist); }
.res-round__tally { font-family: var(--f-label); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-900); background: var(--yellow); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.res-round__chev { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--navy-600); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.res-round__chev svg { width: 20px; height: 20px; }
.res-round__head:hover .res-round__chev { border-color: var(--yellow); }
.res-round__head[aria-expanded="true"] .res-round__chev { transform: rotate(180deg); background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.res-round__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.res-round__body > div { overflow: hidden; }
.res-round.is-open .res-round__body { grid-template-rows: 1fr; }
.res-round__body .res { border-top: 0; margin: 0 0 22px; padding: 0 clamp(0px, 2vw, 20px); background: rgba(255,255,255,.02); border-radius: 14px; }
.res-round__body .res__row:last-child { border-bottom: 0; }
.res-round__story { margin: -6px 0 26px; color: var(--mist); font-size: 15px; }
.res-round__story::before { content: "Race note"; display: block; margin-bottom: 4px; font-family: var(--f-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.res__place.res__place--muted { color: var(--mist); }
@media (max-width: 760px) {
  .res-round__head { grid-template-columns: 1fr 44px; }
  .res-round__meta { grid-column: 1; grid-row: 2; }
  .res-round__tally { grid-column: 1; grid-row: 3; justify-self: start; }
  .res-round__chev { grid-column: 2; grid-row: 1 / span 3; }
}
.res__place.res__place--bronze { color: #cd7f32; }
.res__place.res__place--silver { color: #c9d2dd; }
.res__time.res__time--field { font-family: var(--f-label); font-weight: 500; font-size: clamp(12px, 1.1vw, 14px); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.res { border-top: 1px solid var(--navy-600); }
.res__row { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: clamp(16px, 2vw, 24px) 0; border-bottom: 1px solid var(--navy-600); }
.res__place { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; color: var(--yellow); }
.res__place sup { font-size: .4em; vertical-align: top; margin-left: 2px; }
.res__event { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; }
.res__time { font-family: var(--f-body); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2.2rem); font-variant-numeric: tabular-nums; color: var(--white); }
@media (max-width: 560px) { .res__row { grid-template-columns: 64px 1fr; } .res__time { grid-column: 2; font-size: 1.2rem; color: var(--mist); } }

.cal__tag { display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--f-label); font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); border: 1px solid rgba(255,209,0,.5); border-radius: 999px; padding: 3px 9px; }
.cal__note { margin-top: 22px; font-size: 14px; color: var(--mist); }
.next-race { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(22px, 3vw, 36px); margin-bottom: 28px; border-radius: var(--radius); background: var(--orange); color: var(--navy-900); }
.next-race[hidden] { display: none; }
.next-race__label { display: block; font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.next-race__name { display: block; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .95; }
.next-race__clock { display: flex; gap: clamp(10px, 2vw, 24px); }
.next-race__clock span { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.next-race__clock b { font-family: var(--f-body); font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.next-race__clock small { font-family: var(--f-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; }
.pill { justify-self: start; font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--navy-600); color: var(--mist); }
.pill--hot { background: var(--orange); color: var(--navy-900); border-color: var(--orange); }
@media (max-width: 800px) { .cal__row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Media page ---------- */
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(6,15,30,.55), rgba(6,15,30,.1)); border: 0; cursor: pointer; transition: opacity .4s; }
.reel__play span { width: clamp(84px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transition: transform .4s var(--ease-out), background-color .3s; }
.reel__play:hover span { transform: scale(1.08); background: var(--yellow); }
.reel__play svg { width: 34%; height: 34%; color: var(--navy-900); margin-left: 6%; }
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }

.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kit--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .kit--2 { grid-template-columns: 1fr; } }
.kit a { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 28px; border-radius: var(--radius); background: var(--white); color: var(--navy-900); text-decoration: none; border: 1px solid rgba(10,25,47,.1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s; }
.kit a:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(10,25,47,.14); }
.kit a.is-pending { background: transparent; border-style: dashed; cursor: default; }
.kit a.is-pending:hover { transform: none; box-shadow: none; }
.kit__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: var(--yellow); display: grid; place-items: center; }
.kit__icon svg { width: 24px; height: 24px; transition: transform .4s var(--ease-out); }
/* Sponsorship: partnership deck download */
.deck-cta { display: grid; grid-template-columns: 176px 1fr auto; align-items: center; gap: clamp(18px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); padding: 16px clamp(18px, 3vw, 32px) 16px 16px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--navy-600); color: var(--white); text-decoration: none; transition: transform .5s var(--ease-out), border-color .3s, background-color .3s; }
.deck-cta:hover, .deck-cta:focus-visible { transform: translateY(-4px); border-color: var(--orange); background: var(--navy-700); }
.deck-cta__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy-950); }
.deck-cta__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; opacity: .7; }
.deck-cta__thumb b { position: absolute; left: 10px; bottom: 8px; font-family: var(--f-display); font-weight: var(--w-display); font-size: 20px; line-height: .9; text-transform: uppercase; color: var(--white); }
.deck-cta__text { display: grid; gap: 6px; }
.deck-cta__text small { font-family: var(--f-label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.deck-cta__text strong { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(26px, 3vw, 38px); line-height: .95; text-transform: uppercase; }
.deck-cta__text > span { color: var(--mist); font-size: 15px; }
.deck-cta__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; }
.deck-cta__icon svg { width: 24px; height: 24px; transition: transform .4s var(--ease-out); }
.deck-cta:hover .deck-cta__icon svg { transform: translateY(3px); }
@media (max-width: 700px) {
  .deck-cta { grid-template-columns: 1fr auto; padding: 14px 18px 18px 14px; }
  .deck-cta__thumb { grid-column: 1 / -1; }
}
.kit a:hover .kit__icon svg { transform: translateY(3px); }
.kit h3 { font-size: 2rem; margin: 18px 0 4px; }
.kit small { font-family: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-ink); }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(10,25,47,.25); background: transparent; color: var(--navy-900); cursor: pointer; font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--navy-900); }
.chip[aria-pressed="true"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.gallery { columns: 3 300px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; background: #ddd; }
.gallery img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(6,15,30,.96); display: none; align-items: center; justify-content: center; padding: 70px 16px; }
.lightbox.is-open { display: flex; }
.lightbox__stage { width: 100%; max-width: 1400px; height: 100%; display: grid; place-items: center; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); cursor: pointer; display: grid; place-items: center; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); cursor: pointer; display: grid; place-items: center; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }

/* ---------- Sponsorship ---------- */
.hotspot-stage { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--navy-800); }
.hotspot-stage > img { width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: var(--navy-900); cursor: pointer; display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 0 rgba(255,90,31,.6); }
html.motion .hotspot { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.6); } 80%, 100% { box-shadow: 0 0 0 22px rgba(255,90,31,0); } }
.hotspot svg { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.hotspot[aria-expanded="true"] { background: var(--yellow); }
.hotspot[aria-expanded="true"] svg { transform: rotate(45deg); }
.spots-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.spot-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.spot-list li { border-top: 1px solid var(--navy-600); }
.spot-list li:last-child { border-bottom: 1px solid var(--navy-600); }
.spot-list button { width: 100%; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1; transition: color .25s; }
.spot-list button::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; color: var(--yellow); width: 28px; }
.spot-list button:hover, .spot-list button[aria-expanded="true"] { color: var(--orange); }
.spot-list .spot-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.spot-list .spot-detail > div { overflow: hidden; }
.spot-list .spot-detail p { color: var(--mist); font-size: 15px; padding: 0 0 18px 44px; margin: 0; }
.spot-list li.is-open .spot-detail { grid-template-rows: 1fr; }
@media (max-width: 900px) { .spots-layout { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__card { border-radius: var(--radius); padding: 28px; background: var(--navy-800); border: 1px solid var(--navy-600); min-height: 280px; display: flex; flex-direction: column; }
.why__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,90,31,.14); color: var(--orange); margin-bottom: auto; }
.why__icon svg { width: 26px; height: 26px; }
.why__card h3 { font-size: 2rem; margin: 26px 0 8px; }
.why__card p { color: var(--mist); font-size: 15px; margin: 0; }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } .why__card { min-height: 0; } }

.fit-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.fit-chips span { font-family: var(--f-display); font-weight: var(--w-display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--navy-600); transition: background-color .4s, color .4s, border-color .4s; }
.fit-chips span.is-lit { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { position: relative; border-radius: 24px; padding: clamp(28px, 3vw, 44px); background: var(--navy-800); border: 1px solid var(--navy-600); display: flex; flex-direction: column; transition: transform .5s var(--ease-out), border-color .3s; }
.tier:hover { border-color: var(--mist); }
.tier--featured { border: 2px solid var(--orange); background: linear-gradient(180deg, rgba(255,90,31,.12), var(--navy-800) 40%); }
.tier__badge { position: absolute; top: -14px; left: 28px; background: var(--orange); color: var(--navy-900); font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tier__kind { font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.tier h3 { font-size: clamp(2.4rem, 3.4vw, 3.4rem); margin: 10px 0 12px; }
.tier > p { color: var(--mist); font-size: 15px; }
.tier ul { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; gap: 12px; }
.tier li { display: flex; gap: 12px; font-size: 15px; }
.tier li svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 2px; }
.tier .btn { margin-top: auto; }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr; } }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { border-radius: var(--radius); padding: 28px; background: var(--navy-800); border: 1px solid var(--navy-600); }
.metric .stat__num { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.metric.is-pending .stat__num { color: var(--yellow); }
.metric .stat__num:not(:has([data-count])):not([data-count]) { font-size: clamp(2rem, 3.4vw, 3rem); overflow-wrap: anywhere; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .metric { padding: 22px 18px; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.check-list svg { width: 26px; height: 26px; flex: none; color: var(--orange); }
.check-list svg path { stroke-dasharray: 30; stroke-dashoffset: 0; }
html.motion .check-list li:not(.is-in) svg path { stroke-dashoffset: 30; }
.check-list li svg path { transition: stroke-dashoffset .8s var(--ease-out); }
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* Form */
.contact { position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .14; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--white); background: rgba(255,255,255,.04);
  border: 0; border-bottom: 1.5px solid var(--navy-600); border-radius: 10px 10px 0 0; padding: 14px 14px; min-height: 52px;
  background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--ease-out), border-color .3s;
}
.field select { appearance: none; background-color: rgba(255,255,255,.04); }
.field select option { color: var(--navy-900); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-size: 100% 2px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.field .err { color: var(--orange); font-size: 14px; display: none; align-items: center; gap: 6px; }
.field.has-error .err { display: flex; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--orange); }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__foot p { font-size: 14px; color: var(--mist); margin: 0; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(10,25,47,.3); border-top-color: var(--navy-900); animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: 60px 0; }
.form-success.is-on { display: block; }
.form-success h3 { font-size: clamp(3rem, 6vw, 5rem); color: var(--yellow); }
.form-status { grid-column: 1 / -1; color: var(--orange); margin: 0; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* ---------- Waves ---------- */
.wave-div { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave-div path { will-change: d; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--orange); color: var(--navy-900); padding: clamp(70px, 10vw, 140px) 0; }
.cta-band h2 { font-size: clamp(3.4rem, 9vw, 9rem); }
.cta-band .btn--primary { background: var(--navy-900); color: var(--white); }
.cta-band .btn--primary::before { background: var(--white); }
.cta-band .btn--primary:hover { color: var(--navy-900); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); padding-top: clamp(60px, 9vw, 120px); overflow: hidden; }
.footer__big { display: block; font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(4rem, 13vw, 14rem); line-height: .85; text-transform: uppercase; white-space: nowrap; will-change: transform; }
.footer__big span { color: var(--orange); }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 40px 0 70px; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 50px 0; border-top: 1px solid var(--navy-600); }
.footer__cols h2, .footer__cols h4 { font-family: var(--f-label); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); margin: 0 0 16px; }
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer__cols a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; transition: color .2s; }
.footer__cols a:hover { color: var(--orange); }
.footer__about p { color: var(--mist); max-width: 38ch; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0 36px; border-top: 1px solid var(--navy-600); flex-wrap: wrap; }
.credit { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.credit__logo { width: 84px; height: 84px; flex: none; transition: transform 1.2s var(--ease-out); }
.credit:hover .credit__logo { transform: rotate(-12deg) scale(1.05); }
.credit__text { font-family: var(--f-label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); line-height: 1.6; }
.credit__text strong { color: var(--white); font-weight: 500; display: block; font-size: 15px; }
.footer__legal { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--mist); flex-wrap: wrap; }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--navy-600); border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; color: var(--mist); font-family: var(--f-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.motion-toggle i { width: 28px; height: 16px; border-radius: 999px; background: var(--navy-600); position: relative; }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease-out); }
.motion-toggle[aria-pressed="true"] i { background: var(--orange); }
.motion-toggle[aria-pressed="true"] i::after { transform: translateX(12px); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (min-width: 601px) { .br-sm { display: none; } }

h3 { font-weight: 700; }
.nowrap { white-space: nowrap; }

/* 404 page */
.page-hero--404 { min-height: 100vh; min-height: 100svh; }
.page-hero--404 .lead { max-width: 46ch; }

/* ---------- Older Safari (14 and earlier): no aspect-ratio ----------
   A padding spacer gives each photo box its height; the photo fills it absolutely. */
@supports not (aspect-ratio: 1 / 1) {
  .media, .world, .slot, .disc, .reel, .deck-cta__thumb, .hotspot-stage { position: relative; }
  .media > img, .media > video, .media > .media--split, .world > img, .world > video, .disc > img, .disc > video,
  .reel > video, .reel > img, .deck-cta__thumb > img, .hotspot-stage > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .media--tall::before, .drag-strip .media::before, .hpanel .media::before, .media--wide::before, .media--square::before,
  .tl-panel .media::before, .world::before, .slot::before, .disc::before, .reel::before, .deck-cta__thumb::before, .hotspot-stage::before { content: ""; display: block; }
  .media--tall::before, .drag-strip .media::before, .hpanel .media::before { padding-top: 125%; }
  .media--wide::before, .reel::before, .deck-cta__thumb::before { padding-top: 56.25%; }
  .media--square::before { padding-top: 100%; }
  .tl-panel .media::before { padding-top: 62.5%; }
  .world::before { padding-top: 146.7%; }
  .slot::before { padding-top: 50%; }
  .disc::before { padding-top: 133.3%; }
  .disc-grid--3 .disc::before { padding-top: 115%; }
  .hotspot-stage::before { padding-top: 80%; }
  @media (max-width: 900px) { .world::before { padding-top: 90%; } }
  @media (max-width: 520px) { .disc::before { padding-top: 85%; } }
  /* The two-coach card: the spacer can't sit inside its grid, so the grid gets a fixed portrait height */
  .hpanel .media--split::before { display: none; }
  .hpanel .media--split { height: min(105vw, 520px); }
  /* Pinned tracks size their photos by flex height instead */
  html:not(.no-motion) .pin-fit .media::before { display: none; }
}
