/* ==========================================================================
   HYPERFLUID · site.css
   Layout: white wind-tunnel pages. Giant Syne titles hold the left edge of a
   12-column grid; full-bleed sky and navy bands carry the flow; streamlines
   and the cover's oversized arcs are the only ornament.
   Colours and type roles follow the Hyperfluid design document (draft).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Primary palette (design document 1.1) */
  --navy: #160072;      /* foundation: titles, headings, dark bands */
  --blue: #0081ff;      /* attraction only: actions, markers, active states */
  --sky: #deefff;       /* highlights and backgrounds, never text */
  --ink: #000000;       /* normal text */
  --paper: #ffffff;     /* backgrounds; text on navy */

  /* Secondary palette (design document 1.2) */
  --graphite: #434343;  /* weak text, long descriptions */
  --purple: #985aff;    /* extra colour, only beside blue */
  --green: #25ad6b;     /* success */
  --mint: #ccffdd;      /* success, light */
  --red: #ff4545;       /* warnings and errors */

  /* Derived from the palette above: no new hues */
  --navy-raised: #2d1a80;
  --on-navy-muted: #c7c2dd;
  --blue-press: #036eea;
  --rule: rgba(22, 0, 114, 0.14);
  --rule-strong: rgba(22, 0, 114, 0.3);
  --rule-on-navy: rgba(255, 255, 255, 0.2);
  --crop: rgba(22, 0, 114, 0.38);

  /* Type roles (design document 2.1) */
  --font-display: "Syne", "Arial Black", Arial, sans-serif;           /* titles */
  --font-heading: "Xmind", "Figtree", "Helvetica Neue", Arial, sans-serif; /* headings */
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;  /* text */

  --fs-title: clamp(2.5rem, 1rem + 6.6vw, 7rem);
  --fs-h2: clamp(2rem, 1.15rem + 3.2vw, 3.75rem);
  --fs-h3: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  --fs-lead: clamp(1.1875rem, 1.06rem + 0.5vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* Spacing (design document 4.2: 4–16px inside groups, 24–64px between) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(72px, 4rem + 6vw, 152px);
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1312px;
  --header-h: 72px;

  /* Shape: one radius for surfaces, one for controls; forward lean of 14° */
  --r: 16px;
  --r-sm: 8px;
  --skew: -14deg;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--sky); color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--navy); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Layout -------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--section); }
.band-sky { background: var(--sky); }
.band-navy { background: var(--navy); color: var(--paper); }
.band:not(.band-sky):not(.band-navy) + .band:not(.band-sky):not(.band-navy) { padding-top: 0; }
.band-tight { padding-block: calc(var(--section) * 0.6); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
}
.grid > * { min-width: 0; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: var(--s5) var(--s7);
}
.section-head > .lead { max-width: 26rem; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head > .link { justify-self: start; }
}
.stack > * + * { margin-top: var(--s5); }

/* ---------- Typography ---------------------------------------------------- */

.title, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums;
}
.title { font-size: var(--fs-title); line-height: 0.92; letter-spacing: -0.012em; }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.008em; }

/* The document's title device: a short blue bar before the title, leaning forward. */
.marked::before {
  content: "";
  display: inline-block;
  width: 0.15em;
  height: 0.72em;
  margin-right: 0.32em;
  border-radius: 2px;
  background: var(--blue);
  transform: skewX(var(--skew));
}

.h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
}
/* Subheading role: Figtree with underline (design document 2.1). */
.sub {
  font-weight: 600;
  font-size: var(--fs-body);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  color: var(--ink);
}
.label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
}
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 38ch; text-wrap: pretty; }
.prose { max-width: 62ch; text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose a, .inline-link {
  color: var(--navy); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
.muted { color: var(--graphite); }
.small { font-size: var(--fs-small); line-height: 1.55; }
.tabular { font-variant-numeric: tabular-nums; }

.on-navy { color: var(--paper); }
.on-navy .title, .on-navy .h2, .on-navy .h3, .on-navy .label { color: var(--paper); }
.on-navy .muted { color: var(--on-navy-muted); }
.on-navy .prose a, .on-navy .inline-link { color: var(--paper); }

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--rule); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  padding-block: var(--s2); text-decoration: none; flex: none;
}
.brand-mark { height: 30px; width: auto; }
.brand-word { height: 15px; width: auto; }
/* The wordmark only shows at the top of the page. Once the page scrolls it
   wipes back into the mark (clip, never squashed); hovering the mark brings it back. */
.brand-word {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.55s var(--ease), opacity 0.4s var(--ease), translate 0.55s var(--ease);
}
.site-header[data-scrolled] .brand-word { clip-path: inset(0 100% 0 0); opacity: 0; translate: -10px 0; }
.site-header[data-scrolled] .brand:hover .brand-word,
.site-header[data-scrolled] .brand:focus-visible .brand-word { clip-path: inset(0 0 0 0); opacity: 1; translate: 0 0; }
.brand-mark { transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: translateX(3px); }

.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.nav-link {
  position: relative; display: inline-block; padding-block: 8px;
  font-weight: 600; font-size: 1.0625rem; color: var(--navy); text-decoration: none;
}
.nav-link { transition: color 0.25s var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--blue); border-radius: 1px;
  transform: skewX(var(--skew)) scaleX(0); transform-origin: right center;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: skewX(var(--skew)) scaleX(1); transform-origin: left center; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px; margin-right: -4px;
  border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--navy);
}
.menu-toggle .i { font-size: 1.25rem; }

.menu {
  position: fixed; z-index: 49;
  inset: calc(env(safe-area-inset-top, 0px) + var(--header-h)) 0 0 0;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy); color: var(--paper);
  padding-block: var(--s6) calc(var(--s7) + env(safe-area-inset-bottom, 0px));
}
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding-block: 14px; border-bottom: 1px solid var(--rule-on-navy);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.75rem, 8vw, 2.75rem); line-height: 1.1;
  color: var(--paper); text-decoration: none;
}
.menu-link .i { color: var(--blue); font-size: 0.7em; }
.menu-link[aria-current="page"] { color: var(--on-navy-muted); }
.menu-foot { margin-top: var(--s7); }
html.menu-open { overflow: hidden; }

@media (max-width: 940px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  :root { --header-h: 64px; }
  .header-inner { gap: var(--s4); }
  .brand { gap: 10px; }
  /* Scales with the screen so the lockup and the Menu button fit side by side
     on 360px and 375px phones (fixed sizes overflowed below about 380px). */
  .brand-mark { height: min(24px, 5.9vw); }
  .brand-word { height: min(12px, 2.95vw); }
}
@media (max-width: 359px) {
  /* Narrowest phones: icon-only toggle; the word stays for screen readers. */
  .menu-toggle { min-width: 44px; justify-content: center; margin-right: -12px; }
  .menu-toggle [data-menu-label] {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- Actions ------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) var(--s6); }

/* Primary action: a forward-leaning parallelogram (design document 3.2).
   Label is 19px bold so white on brand blue meets large-text contrast. */
.btn {
  --btn-bg: var(--blue);
  --btn-wipe: var(--navy);  /* the colour that sweeps in on hover */
  --lean: var(--skew);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.55em;
  margin-inline: 0.45rem;
  padding: 1rem 1.6rem;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; line-height: 1.1;
  color: var(--paper); text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--r-sm);
  transform: skewX(var(--lean));
}
.btn::before {
  background: var(--btn-bg);
  transition: transform 0.35s var(--ease), box-shadow 0.2s var(--ease);
}
/* Hover: a second parallelogram sweeps in from the left, leaning the same way. */
.btn::after {
  background: var(--btn-wipe);
  transform: skewX(var(--lean)) scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: skewX(var(--lean)) scaleX(1); }
/* Press: the button squeezes and leans further forward, like a launch. */
.btn:active { transform: scale(0.95); --lean: -20deg; transition-duration: 0.12s; }
.btn .i { transition: transform 0.35s var(--ease); }
.btn:hover .i, .btn:focus-visible .i { animation: arrow-loop 0.6s var(--ease); }
.btn:active .i { transform: translateX(6px); }
@keyframes arrow-loop {
  0% { transform: none; }
  40% { transform: translateX(16px); opacity: 0; }
  41% { transform: translateX(-12px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue); }
.on-navy .btn { --btn-wipe: var(--paper); }
.on-navy .btn:hover, .on-navy .btn:focus-visible { color: var(--navy); }
.on-navy .btn:focus-visible::before { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--paper); }
.btn-compact { padding: 0.7rem 1.2rem; }

.link {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding-block: 0.3em;
  font-weight: 600; font-size: 1.0625rem; color: var(--navy); text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) right bottom / 0 2px no-repeat;
  -webkit-tap-highlight-color: transparent;
  transition: background-size 0.45s var(--ease), transform 0.2s var(--ease);
}
/* The underline draws in from the left and leaves to the right. */
.link:hover, .link:focus-visible { background-size: 100% 2px; background-position: left bottom; }
.link:active { transform: translateY(1px); }
.link .i { color: var(--blue); transition: transform 0.35s var(--ease); }
.link:hover .i, .link:focus-visible .i { animation: arrow-loop 0.6s var(--ease); }
.on-navy .link { color: var(--paper); }

/* ---------- Placeholders -------------------------------------------------- */
/* Text that still has to be supplied by the team. Search the source for class="ph". */
.ph {
  padding: 0 0.28em;
  border-radius: 4px;
  background: var(--sky);
  color: var(--navy);
  text-decoration: underline dashed var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.band-sky .ph, .slot-frame .ph { background: var(--paper); }
.on-navy .ph { background: var(--navy-raised); color: var(--paper); }

/* Image slots: art-direction frames that say which photo or render belongs here. */
.slot { position: relative; margin: 0; min-width: 0; }
.slot-frame {
  --c: var(--crop);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  width: 100%; max-width: 100%;
  aspect-ratio: var(--ratio, 3 / 2);
  padding: var(--s5);
  border-radius: var(--r);
  text-align: center; color: var(--navy);
  container-type: inline-size;
  background:
    linear-gradient(var(--c), var(--c)) left 14px top 14px / 18px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) left 14px top 14px / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) right 14px top 14px / 18px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) right 14px top 14px / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) left 14px bottom 14px / 18px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) left 14px bottom 14px / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) right 14px bottom 14px / 18px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) right 14px bottom 14px / 1.5px 18px no-repeat,
    var(--sky);
}
.slot-frame::after {
  content: ""; position: absolute; z-index: -1;
  right: -16%; bottom: -12%; width: 72%; aspect-ratio: 814 / 298;
  background: var(--navy); opacity: 0.05;
  -webkit-mask: url("../img/brand/watermark-mask.png") center / contain no-repeat;
  mask: url("../img/brand/watermark-mask.png") center / contain no-repeat;
  pointer-events: none;
}
.slot-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-micro);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
}
.slot-label .i { font-size: 1.125rem; color: var(--blue); }
.slot-note { max-width: 32ch; font-size: var(--fs-small); line-height: 1.4; color: var(--graphite); }
@container (max-width: 230px) { .slot-note { display: none; } }
.slot img.media { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: var(--ratio, 3 / 2); }
.caption { margin-top: var(--s3); font-size: var(--fs-small); line-height: 1.5; color: var(--graphite); }
.on-navy .slot-frame { --c: rgba(255, 255, 255, 0.45); background-color: var(--navy-raised); color: var(--paper); }
.on-navy .slot-frame::after { background: var(--paper); opacity: 0.06; }
.on-navy .slot-note, .on-navy .caption { color: var(--on-navy-muted); }
.band-sky .slot-frame { background-color: var(--paper); }

/* ---------- Home hero ----------------------------------------------------- */

.hero { padding-top: clamp(24px, 3.4vw, 56px); }
.hero-head { container-type: inline-size; }
.hero-type { position: relative; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6.4cqi;
  line-height: 0.86;
  letter-spacing: -0.004em;
  text-transform: uppercase;
  color: var(--navy);
  font-variant-numeric: lining-nums;
}
.hero-title .line { display: block; }
.dot {
  display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.07em;
  border-radius: 50%; background: var(--blue);
}
.hero-lead { margin-top: var(--s5); max-width: 34ch; }
.hero-actions { margin-top: var(--s6); }
@container (min-width: 1080px) {
  .hero-lead {
    position: absolute; right: 0; bottom: 0.15em; margin: 0;
    width: 38cqi; max-width: none; font-size: min(var(--fs-lead), 1.62cqi);
  }
}
@container (max-width: 700px) {
  .hero-title { font-weight: 700; font-size: 10.4cqi; line-height: 0.92; }
}

.tunnel {
  --foot: 64px;
  position: relative; overflow: hidden;
  margin-top: clamp(32px, 3.6vw, 56px);
  height: clamp(300px, 30vw, 500px);
  background: var(--sky);
}
.tunnel-flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.tunnel-flow .line { fill: none; stroke: url(#flow-grad); stroke-width: 1.3; stroke-linecap: round; }
.tunnel-flow .body { fill: none; stroke: var(--crop); stroke-width: 1.5; stroke-dasharray: 5 6; }
.tunnel-flow .ground { stroke: var(--navy); stroke-width: 1.5; opacity: 0.55; }
.tunnel-flow .pulse {
  fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 9 120; stroke-dashoffset: 10;
  animation: whoosh 1.6s var(--ease) var(--d, 0s) both;
}
@keyframes whoosh { to { stroke-dashoffset: -100; } }
.tunnel-car {
  position: absolute;
  left: var(--car-x, 30%); top: var(--car-y, 30%);
  width: var(--car-w, 40%); height: var(--car-h, 40%);
  object-fit: contain; object-position: center bottom;
}
.tunnel-car.is-slot {
  display: grid; align-content: center; justify-items: center; gap: 4px;
  padding-top: calc(var(--car-h, 120px) * 0.22); text-align: center; color: var(--navy);
}
.tunnel-car.is-slot .slot-note { font-size: var(--fs-micro); }
.tunnel-foot {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--foot);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
}
.tunnel-foot p { white-space: nowrap; }
@media (max-width: 560px) {
  .tunnel { --foot: 56px; height: 300px; }
  .tunnel-foot .label:last-child { display: none; }
  .tunnel-car.is-slot .slot-note { display: none; }
}

/* ---------- Page heads (inner pages) -------------------------------------- */

.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 88px);
}
.page-head::after {
  content: ""; position: absolute; z-index: -1;
  right: -9vw; top: 50%; translate: 0 -46%;
  width: min(66vw, 940px); aspect-ratio: 814 / 298;
  background: var(--navy); opacity: 0.055;
  -webkit-mask: url("../img/brand/watermark-mask.png") center / contain no-repeat;
  mask: url("../img/brand/watermark-mask.png") center / contain no-repeat;
  pointer-events: none;
}
.page-head .title { max-width: 11ch; }
.page-head .lead { margin-top: var(--s6); }
.page-head-media { margin-top: clamp(40px, 5vw, 72px); }
.page-head .actions { margin-top: var(--s7); }
/* 404: the only content on the page, so give it the room of a full screen. */
.page-404 { min-height: min(72vh, 760px); display: flex; align-items: center; }
.page-404 > .wrap { width: 100%; }

/* ---------- Content patterns ---------------------------------------------- */

/* Two-part split on the 12-column grid. */
.split { align-items: center; row-gap: var(--s7); }
.split-copy { grid-column: 1 / span 5; }
.split-media { grid-column: 7 / -1; }
.split-rev .split-copy { grid-column: 8 / -1; grid-row: 1; }
.split-rev .split-media { grid-column: 1 / span 6; grid-row: 1; }
.split-copy > .h2 + * { margin-top: var(--s6); }
.split-copy > * + .link, .split-copy > * + .actions { margin-top: var(--s6); }
@media (max-width: 860px) {
  .split-copy, .split-media, .split-rev .split-copy, .split-rev .split-media { grid-column: 1 / -1; grid-row: auto; }
}

/* Rows divided by thin rules (dividers stay minimal: design document 4.3). */
.rows { margin-top: var(--s6); }
.rows > li { display: grid; gap: 6px; padding-block: var(--s5); border-top: 1px solid var(--rule); }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }
.on-navy .rows > li { border-color: var(--rule-on-navy); }
.rows-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); }
.rows-2 > li:last-child { border-bottom: 0; }
@media (max-width: 720px) { .rows-2 { grid-template-columns: 1fr; } }

/* Forces diagram */
.forces { --surface: var(--paper); margin: 0; }
.on-navy .forces { --surface: var(--navy); }
.forces svg { width: 100%; height: auto; overflow: visible; color: inherit; }
.forces .car { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.forces .wheel { fill: var(--surface); stroke: currentColor; stroke-width: 2.2; }
.forces .hidden { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 6 5; opacity: 0.65; }
.forces .track { stroke: currentColor; stroke-width: 1.6; opacity: 0.5; }
.forces .tether { stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.6; }
.forces .thrust { stroke: var(--blue); fill: var(--blue); }
.forces .resist { stroke: var(--purple); fill: var(--purple); }
.forces .plume { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; }
.forces .arrow { stroke-width: 3; stroke-linecap: round; }
.forces .com-fill { fill: currentColor; }
.forces .com-ring { fill: var(--surface); stroke: currentColor; stroke-width: 2; }
.forces text {
  font-family: var(--font-heading); font-weight: 700; font-size: 21px;
  letter-spacing: 0.08em; fill: currentColor;
}
@media (max-width: 560px) { .forces text { font-size: 30px; letter-spacing: 0.04em; } }
.forces .caption { margin-top: var(--s4); }
/* Status chips: text always carries the meaning, colour supports it. */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: var(--fs-micro); font-weight: 600; line-height: 1.4; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.status.is-done { background: var(--mint); border-color: transparent; }
.status.is-done::before { background: var(--green); }
.status.is-next { background: var(--sky); border-color: transparent; }
.status.is-next::before { background: var(--blue); }
.band-sky .status.is-next { background: var(--paper); }

/* Logo wall */
.logo-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.logo-wall > li {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: var(--s5);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small); text-align: center;
}
.logo-wall img { max-height: 48%; width: auto; max-width: 72%; object-fit: contain; }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* People */
.people {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s8) clamp(16px, 2.2vw, 32px); margin-top: var(--s8);
}
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: grid; gap: 6px; align-content: start; }
.person .slot { margin-bottom: var(--s3); }
.person .role { font-weight: 600; color: var(--navy); }
.person .resp { font-size: var(--fs-small); line-height: 1.5; color: var(--graphite); }
@media (max-width: 560px) {
  .people { grid-template-columns: 1fr; gap: var(--s6); }
  .person { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s4); align-items: start; }
  .person .slot { grid-row: 1 / span 4; margin: 0; }
  .person .slot-frame { padding: var(--s3); }
}

/* Logo story (team page) */
.story {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) clamp(16px, 3vw, 48px);
  margin-top: var(--s8);
}
.story > li { display: grid; align-content: start; gap: var(--s3); }
.story-imgs { display: flex; margin-bottom: var(--s4); }
.story-imgs img {
  width: clamp(96px, 11vw, 150px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--paper);
}
.story-imgs img + img { margin-left: clamp(-56px, -4vw, -32px); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue); font-variant-numeric: lining-nums; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* Process (engineering page) */
.process {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s7) clamp(16px, 3vw, 48px); margin-top: var(--s8);
}
.process > li { display: grid; align-content: start; gap: 10px; padding-top: var(--s5); border-top: 2px solid var(--navy); }
.process .step-num { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1; color: var(--navy); }
.on-navy .process > li { border-top-color: var(--paper); }
.on-navy .process .step-num { color: var(--paper); }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; gap: var(--s6); } }

/* View switcher (engineering page) */
.views-tabs { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-bottom: var(--s5); }
.view-tab {
  position: relative; min-height: 44px; padding: 8px 2px;
  border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 1.0625rem; color: var(--graphite);
}
.view-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px;
  background: var(--blue); transform: skewX(var(--skew)) scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.view-tab { transition: color 0.25s var(--ease); -webkit-tap-highlight-color: transparent; }
.view-tab[aria-selected="true"] { color: var(--navy); }
.view-tab[aria-selected="true"]::after { transform: skewX(var(--skew)) scaleX(1); }
.view-tab:hover { color: var(--navy); }
/* With JavaScript, one underline slides from tab to tab instead. */
.views-tabs { position: relative; }
.views-tabs.has-ink .view-tab::after { display: none; }
.tab-ink {
  position: absolute; left: 0; top: 0; height: 3px; width: var(--ink-w, 0);
  translate: var(--ink-x, 0) var(--ink-y, 0);
  background: var(--blue); border-radius: 1px; transform: skewX(var(--skew));
  transition: translate 0.5s var(--ease), width 0.5s var(--ease);
  pointer-events: none;
}
[role="tabpanel"].is-entering { animation: panel-in 0.5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateX(18px); } }

/* Spec sheet */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); margin-top: var(--s7); }
.spec > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s4);
  align-items: baseline; padding-block: var(--s4); border-top: 1px solid var(--rule);
}
.spec dt { color: var(--graphite); font-size: var(--fs-small); }
.spec dd { font-weight: 600; }
@media (max-width: 720px) { .spec { grid-template-columns: 1fr; } }

/* Fleet (engineering page) */
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) clamp(16px, 3vw, 48px); margin-top: var(--s8); }
.fleet-group { display: grid; gap: var(--s4); align-content: start; }
.fleet-group .slot { margin-top: var(--s2); }
@media (max-width: 820px) { .fleet { grid-template-columns: 1fr; } }

/* Mosaic of three images */
.mosaic {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px); margin-top: var(--s8); align-items: start;
}
.mosaic > :nth-child(1) { grid-column: 1 / span 7; }
.mosaic > :nth-child(2) { grid-column: 8 / -1; }
.mosaic > :nth-child(3) { grid-column: 8 / -1; }
.mosaic > :nth-child(2) .slot-frame, .mosaic > :nth-child(3) .slot-frame { --ratio: 16 / 9; }
.mosaic > :nth-child(1) { grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; }
.mosaic > :nth-child(1) .slot-frame { flex: 1; aspect-ratio: auto; min-height: 320px; }
@media (max-width: 720px) {
  .mosaic > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .mosaic > :nth-child(1) .slot-frame { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
}

/* Definition list of facts (journey page) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s7); margin-top: var(--s8); }
.facts > div { display: grid; gap: 8px; align-content: start; padding-block: var(--s5) var(--s6); border-top: 1px solid var(--rule-strong); }
.facts dd { max-width: 36ch; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Table (results) */
.table-wrap { overflow-x: auto; margin-top: var(--s7); -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); padding: 0 var(--s4) var(--s3) 0; }
.table td { padding: var(--s4) var(--s4) var(--s4) 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.table tr:last-child td { border-bottom: 1px solid var(--rule); }

/* CTA band */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; z-index: -1;
  left: -12vw; bottom: -18%; width: min(70vw, 980px); aspect-ratio: 814 / 298;
  background: var(--paper); opacity: 0.05;
  -webkit-mask: url("../img/brand/watermark-mask.png") center / contain no-repeat;
  mask: url("../img/brand/watermark-mask.png") center / contain no-repeat;
  pointer-events: none;
}
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s7) clamp(24px, 6vw, 96px); align-items: end; }
.cta .h2 { font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4.25rem); }
.cta-side > * + * { margin-top: var(--s5); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* Next page */
.next { border-top: 1px solid var(--rule); }
.next-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding-block: clamp(40px, 6vw, 88px); text-decoration: none; color: var(--navy);
}
.next-link .label { display: block; margin-bottom: var(--s3); color: var(--graphite); }
.next-title {
  display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 1rem + 4vw, 4.5rem); line-height: 0.95; font-variant-numeric: lining-nums;
}
.next-arrow { font-size: clamp(2rem, 1rem + 3vw, 3.5rem); color: var(--blue); transition: transform 0.5s var(--ease); }
.next-title { transition: transform 0.6s var(--ease); }
.next-link:hover .next-arrow { transform: translateX(14px); }
.next-link:hover .next-title { transform: translateX(8px); }
.next-link:focus-visible { outline-offset: -3px; }

/* ---------- Contact ------------------------------------------------------- */

.contact-grid { align-items: start; row-gap: var(--s8); }
.contact-lines { grid-column: 1 / span 5; }
.contact-form-wrap { grid-column: 7 / -1; }
@media (max-width: 900px) { .contact-lines, .contact-form-wrap { grid-column: 1 / -1; } }

.lines > li { display: grid; gap: 6px; padding-block: var(--s5); border-top: 1px solid var(--rule); }
.lines > li:last-child { border-bottom: 1px solid var(--rule); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.copy-value { font-weight: 600; font-size: 1.125rem; color: var(--navy); user-select: all; overflow-wrap: anywhere; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); cursor: pointer;
  font-size: var(--fs-small); font-weight: 600; color: var(--navy);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.copy-btn:hover { border-color: var(--navy); }
.copy-btn:active { transform: scale(0.95); }
.copy-btn[data-copied] { background: var(--mint); border-color: transparent; animation: chip-pop 0.4s var(--ease); }
.social { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.social a, .social span { display: inline-flex; align-items: center; gap: 8px; }
.social .i { font-size: 1.125rem; color: var(--navy); }

.form { display: grid; gap: var(--s5); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-small); color: var(--ink); padding: 0; }
.field .hint { font-weight: 400; color: var(--graphite); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--paper);
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea.input { min-height: 168px; resize: vertical; }
.input:hover { border-color: var(--navy); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 129, 255, 0.25); }
.input[aria-invalid="true"] { border-color: var(--red); }
.error { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--ink); }
.error::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--rule-strong); border-radius: 999px;
  font-weight: 600; font-size: var(--fs-small); color: var(--navy);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.chip input:hover + span { border-color: var(--navy); }
.chip input:active + span { transform: scale(0.95); }
.chip input:checked + span { background: var(--sky); border-color: var(--blue); animation: chip-pop 0.4s var(--ease); }
@keyframes chip-pop { 40% { transform: scale(1.06); } }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.form-result { padding: var(--s5); border-radius: var(--r); background: var(--sky); }
.form-result > * + * { margin-top: var(--s3); }
.form-result pre {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: var(--s4);
  border-radius: var(--r-sm); background: var(--paper); font-family: var(--font-body); font-size: var(--fs-small);
}

/* ---------- Footer -------------------------------------------------------- */

.site-footer { margin-top: 0; }
.footer-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s8) var(--s7); padding-block: clamp(56px, 7vw, 104px);
}
.lockup { display: grid; justify-items: center; gap: 14px; width: max-content; max-width: 100%; text-decoration: none; }
.lockup-mark { width: clamp(96px, 9vw, 132px); }
.lockup-word { width: clamp(220px, 22vw, 320px); }
.lockup-tag {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(0.875rem, 0.7rem + 0.5vw, 1.125rem); letter-spacing: 0.01em; color: var(--ink);
}
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.footer-nav .label { margin-bottom: var(--s4); color: var(--graphite); }
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a {
  color: var(--navy); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) right bottom / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.footer-nav a:hover { background-size: 100% 2px; background-position: left bottom; }
.footer-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.footer-band {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 18%, var(--blue) 100%);
  color: var(--paper);
}
.footer-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6);
  min-height: 96px; padding-block: var(--s5) calc(var(--s5) + env(safe-area-inset-bottom, 0px));
}
.footer-band p { font-size: var(--fs-small); }
.footer-band a { color: var(--paper); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-badge { width: 52px; height: 52px; flex: none; border-radius: 50%; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 4px var(--s6); }
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; }
  .lockup { justify-items: start; }
}
@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-nav > div:last-child { grid-column: 1 / -1; }
  .footer-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy) 45%, var(--blue) 140%); }
}

/* ---------- Season progress (journey page, home) -------------------------- */
/* A horizontal race lane from the season start to the qualifying event. The
   car sits at today's date; site.js sets --pf (0 to 1) and the month ticks. */

.season { --track: var(--navy); --ring: transparent; --cl: 56px; --pf: 0; margin-top: var(--s8); }
.on-navy .season { --track: var(--navy-raised); --ring: var(--rule-on-navy); }
.season-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: var(--s5) var(--s7);
}
.season-event { display: grid; gap: var(--s3); justify-items: start; }
.season-name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 0.8rem + 3.6vw, 4.5rem); line-height: 0.92; letter-spacing: -0.01em;
  color: var(--navy); font-variant-numeric: lining-nums;
}
.season-count { display: grid; justify-items: end; gap: 8px; text-align: right; }
.season-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.25rem, 1.6rem + 6vw, 7.5rem); line-height: 0.82;
  color: var(--navy); font-variant-numeric: lining-nums;
}
.on-navy .season-name, .on-navy .season-num { color: var(--paper); }
.season-bar { position: relative; margin-top: var(--s7); padding-bottom: 40px; }
.season-lane {
  position: relative; height: 26px; overflow: hidden;
  border-radius: 999px; background: var(--track); box-shadow: 0 0 0 1.5px var(--ring);
}
/* Tether line down the middle of the lane, and the start line. */
.season-lane::before {
  content: ""; position: absolute; left: calc(var(--cl) / 2); right: 14px; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.45) 0 8px, transparent 8px 16px);
}
.season-lane::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: calc(var(--cl) / 2 - 1px); width: 2px;
  border-radius: 1px; background: var(--paper);
}
.season-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--cl) / 2 + (100% - var(--cl)) * var(--pf));
  background: var(--blue);
  transition: width 1.8s var(--ease);
}
.season-finish {
  position: absolute; top: 0; bottom: 0; right: calc(var(--cl) / 2 - 7px); width: 14px;
  background: repeating-conic-gradient(var(--paper) 0 25%, var(--ink) 0 50%) 0 0 / 6.5px 6.5px;
}
.season-car {
  position: absolute; top: 0; height: 26px; width: var(--cl);
  left: calc((100% - var(--cl)) * var(--pf));
  transition: left 1.8s var(--ease);
}
.season-car .car-glyph {
  position: absolute; left: 50%; top: 50%; width: 21px; height: 52.5px;
  translate: -50% -50%; rotate: -90deg;
}
.season-ticks { position: absolute; left: 0; right: 0; top: 34px; height: 24px; margin: 0; }
.season-ticks li {
  position: absolute; top: 0; left: calc(var(--cl) / 2 + (100% - var(--cl)) * var(--t, 0));
  translate: -50% 0; display: grid; justify-items: center; gap: 4px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--graphite); white-space: nowrap;
}
.season-ticks li::before { content: ""; width: 1.5px; height: 8px; background: var(--rule-strong); }
.on-navy .season-ticks li { color: var(--on-navy-muted); }
.on-navy .season-ticks li::before { background: var(--rule-on-navy); }
.season-ends { display: flex; justify-content: space-between; gap: var(--s5); margin-top: var(--s3); }
.season-ends p { display: grid; gap: 4px; }
.season-ends p + p { text-align: right; }
.season-date { font-weight: 600; font-size: 1.125rem; }
.season-compact .season-name { font-size: clamp(1.875rem, 0.9rem + 2.6vw, 3.5rem); }
.season-compact .season-num { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.5rem); }
@media (max-width: 700px) {
  .season-top { grid-template-columns: minmax(0, 1fr); }
  .season-count { justify-items: start; text-align: left; }
  .season { --cl: 46px; }
  .season-car .car-glyph { width: 18px; height: 45px; }
  .season-ticks li { font-size: 0.6875rem; }
}

/* ---------- Race track (fixed, right edge) -------------------------------- */
/* A 20-metre lane with a tether line. The car follows the scroll position:
   top of the page at the start line, bottom at the finish. */

.race {
  --w: clamp(8px, calc(var(--gutter) - 16px), 22px);
  --cw: calc(var(--w) * 0.8);
  position: fixed; z-index: 40;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 18px);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  right: max(3px, calc((var(--gutter) - var(--w)) / 2));
  width: var(--w);
  pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.race.is-ready { opacity: 1; }
html.menu-open .race { opacity: 0; }
.race-track {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 999px; background: var(--navy);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}
.race-track::before {
  content: ""; position: absolute; left: 50%; top: 12px; bottom: 14px; width: 1.5px; margin-left: -0.75px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0 6px, transparent 6px 12px);
}
.race-track::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px;
  border-radius: 1px; background: var(--paper);
}
.race-trail {
  position: absolute; left: 0; right: 0; top: 0; height: var(--trail, 0px);
  background: var(--blue); opacity: 0.6;
}
.race-finish {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: repeating-conic-gradient(var(--paper) 0 25%, var(--ink) 0 50%) 0 0 / 6px 6px;
}
.race-car {
  position: absolute; left: 50%; top: 0;
  width: var(--cw); height: calc(var(--cw) * 2.5); margin-left: calc(var(--cw) / -2);
  translate: 0 var(--y, 14px); rotate: var(--rot, 0deg);
  transition: rotate 0.5s var(--ease);
}
.race-car .car-glyph { width: 100%; height: 100%; }
@media print { .race { display: none; } }

/* Car pictogram (top view, nose down), used by the race track and the season lane. */
.car-glyph { overflow: visible; }
.car-body { fill: var(--paper); }
.car-wing, .car-can { fill: var(--blue); }
.car-wheel { fill: var(--sky); }
.car-axle { fill: none; stroke: var(--sky); stroke-width: 1.2; }
.car-burst { opacity: var(--burst, 0); transition: opacity 0.5s var(--ease); }
.car-burst path { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; }
.car-burst path:nth-child(2) { opacity: 0.6; }
.car-burst path:nth-child(3) { opacity: 0.32; }
.season.is-launching { --burst: 1; }

/* ---------- Motion -------------------------------------------------------- */
/* Entrances on load (hero, page heads, menu), reveals on scroll (site.js marks
   content below the fold with [data-reveal]) and page-to-page fades. All of it
   is switched off by prefers-reduced-motion (next block). */

@keyframes rise { from { opacity: 0; transform: translateY(0.45em); } }
@keyframes rise-px { from { opacity: 0; transform: translateY(26px); } }
@keyframes dot-pop { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } }
@keyframes menu-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

.hero-title .line, .page-head .title { animation: rise 1s var(--ease) both; }
.hero-title .line + .line { animation-delay: 0.12s; }
.hero-title .dot, .page-head .title .dot { animation: dot-pop 0.7s var(--ease) 0.55s both; }
.hero-lead, .page-head .lead { animation: rise-px 0.9s var(--ease) 0.28s both; }
.hero-actions, .page-head .actions, .page-head-media { animation: rise-px 0.9s var(--ease) 0.4s both; }

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(min(var(--i, 0), 6) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* Image slots wipe open in the direction of the airflow. */
[data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round var(--r)); transition: clip-path 1.1s var(--ease); }
[data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0 round var(--r)); }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

.menu:not([hidden]) { animation: menu-in 0.45s var(--ease) both; }
.menu:not([hidden]) .menu-link, .menu:not([hidden]) .menu-foot { animation: rise-px 0.6s var(--ease) both; }
.menu li:nth-child(1) .menu-link { animation-delay: 0.06s; }
.menu li:nth-child(2) .menu-link { animation-delay: 0.1s; }
.menu li:nth-child(3) .menu-link { animation-delay: 0.14s; }
.menu li:nth-child(4) .menu-link { animation-delay: 0.18s; }
.menu li:nth-child(5) .menu-link { animation-delay: 0.22s; }
.menu li:nth-child(6) .menu-link { animation-delay: 0.26s; }
.menu:not([hidden]) .menu-foot { animation-delay: 0.32s; }
.menu-toggle[data-toggled] .i { animation: spin-in 0.4s var(--ease); }

/* Page-to-page: the header stays put while the page fades through. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.race { view-transition-name: race; }
::view-transition-old(root) { animation: vt-out 0.2s ease both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease) both; }

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- Small additions ----------------------------------------------- */
.menu-toggle .icon-open, .menu-toggle .icon-close { display: inline-flex; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.footer-band .ph { background: rgba(255, 255, 255, 0.16); color: var(--paper); text-decoration-color: var(--paper); }
.footer-nav .social { gap: 10px; }
.footer-nav .social span { display: inline-flex; align-items: center; gap: 8px; }
.nav .btn[aria-current="page"] { --btn-bg: var(--blue-press); }

.statement { max-width: none; }
.statement + .grid { margin-top: clamp(40px, 5vw, 72px); }
.story-head { margin-top: clamp(64px, 8vw, 120px); }
.viewer { padding-bottom: var(--section); }
.partners-current { padding-bottom: var(--section); }
.partners-current .h3 { margin-bottom: var(--s5); }
.logo-wall-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .logo-wall-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact { padding-bottom: var(--section); }
.contact-lines > .h3, .contact-form-wrap > .h3 { margin-bottom: var(--s5); }

/* Wide frames become 4:3 on phones so the label keeps room to breathe. */
.ratio-wide { --ratio: 21 / 9; }
@media (max-width: 640px) { .ratio-wide { --ratio: 4 / 3; } }

/* Results table: stacked rows on phones */
@media (max-width: 600px) {
  .table { min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding-block: var(--s4); border-top: 1px solid var(--rule); }
  .table tr:last-child { border-bottom: 1px solid var(--rule); }
  .table td, .table tr:last-child td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s3); }
  .table td::before {
    content: attr(data-label); font-family: var(--font-heading); font-weight: 700;
    font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
  }
}
