/* LINC Racing #227. One stylesheet for every page.
   Rules of the house: body copy 16px or larger, nothing under 12px,
   every colour and size comes from the tokens below. */

@font-face {
  font-family: "Racing Sans One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/racing-sans-one.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}
/* Metric-matched stand-ins keep the layout still while the real fonts load. */
@font-face {
  font-family: "Racing Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 86.4%;
  ascent-override: 113%;
  descent-override: 32.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.4%;
  ascent-override: 91%;
  descent-override: 22.7%;
  line-gap-override: 0%;
}

:root {
  --paper: #f1eee6;
  --ink: #0b0b0b;
  --orange: #f54800;
  --surface: #0b0b0b;
  --deep: #080808;
  --panel: #151515;
  --panel-hover: #201d19;
  --muted: #bcb7af;
  --soft: #d4cfc6;
  --line: rgba(241, 238, 230, 0.22);
  --line-strong: rgba(241, 238, 230, 0.4);

  --display: "Racing Sans One", "Racing Fallback", Impact, sans-serif;
  --body: "Inter", "Inter Fallback", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-body: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --pad: clamp(20px, 5.2vw, 100px);
  --section: clamp(56px, 6.6vw, 108px);
  --header-h: 80px;
  --scene-header: var(--header-h);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --race-texture: url("/assets/brand/race-surface.svg");

  color-scheme: dark;
  accent-color: var(--orange);
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--paper);
  font: 400 var(--fs-body) / 1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
::selection { color: var(--ink); background: var(--orange); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
em { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; padding: 0; cursor: pointer; background: none; }
button:disabled { cursor: default; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 20px; z-index: 500; padding: 14px 18px;
  background: var(--orange); color: var(--ink); font-weight: 600; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.top-anchor { position: absolute; top: 0; }
.anchor-alias { display: block; height: 0; scroll-margin-top: var(--header-h); }
.accent { color: var(--orange); }

/* Small labels: used sparingly, never under 12px. */
.eyebrow {
  color: var(--orange);
  font: 600 var(--fs-label) / 1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow--tag {
  display: inline-block; padding: 8px 16px; color: var(--ink); background: var(--orange);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 54px; padding: 14px 22px; border: 1px solid transparent;
  font: 400 1.0625rem / 1.1 var(--display); text-transform: uppercase; letter-spacing: -0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.btn-outline { border-color: var(--paper); color: var(--paper); }
.btn-outline:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn .brand-arrow { font-size: 20px; }
.text-link {
  display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 8px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--orange); border-color: var(--orange); }
.text-link .brand-arrow { color: var(--orange); font-size: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover .brand-arrow { transform: translate(3px, -3px) rotate(var(--arrow-turn)); }
.text-link:hover .brand-arrow--down { transform: translateY(3px) rotate(var(--arrow-turn)); }

/* Drawn arrow and play mark, the same shape on every device. */
.brand-arrow {
  --arrow-turn: 0deg; position: relative; display: inline-block; flex: 0 0 auto;
  width: 1em; height: 1em; vertical-align: -0.12em; transform: rotate(var(--arrow-turn));
}
.brand-arrow::before {
  content: ""; position: absolute; width: 69%; height: 69%; top: 7%; right: 7%;
  border-top: max(1.5px, 0.075em) solid currentColor; border-right: max(1.5px, 0.075em) solid currentColor;
}
.brand-arrow::after {
  content: ""; position: absolute; width: 112%; top: 48%; left: -6%;
  border-top: max(1.5px, 0.075em) solid currentColor; transform: rotate(-45deg);
}
.brand-arrow--right { --arrow-turn: 45deg; }
.brand-arrow--left { --arrow-turn: 225deg; }
.brand-arrow--down { --arrow-turn: 135deg; }
.brand-arrow--up { --arrow-turn: -45deg; }
.brand-play {
  display: block; width: 0; height: 0;
  border-top: 0.4em solid transparent; border-bottom: 0.4em solid transparent; border-left: 0.62em solid currentColor;
}

/* The race number: one drawing, sized by the type around it. */
.brand-number {
  display: inline-block; flex: 0 0 auto; height: var(--number-size, 1em);
  width: calc(var(--number-size, 1em) * 2.4437); overflow: visible; fill: currentColor;
}
.brand-number use { pointer-events: none; }

/* Headlines rise into place once, when they arrive. */
.headline { font-family: var(--display); letter-spacing: -0.035em; line-height: 1; }
.headline-line { display: block; overflow: hidden; padding: 0.05em 0.08em 0.07em 0; margin: -0.05em -0.08em -0.07em 0; }
.headline-word { display: inline-block; transform-origin: left bottom; transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
.headline-line:nth-child(2) .headline-word { transition-delay: 0.1s; }
html.js .headline[data-reveal]:not(.is-visible) .headline-word { transform: translate3d(0, 118%, 0) rotate(2deg); }
/* Smaller pieces simply rise as they arrive. */
.rise { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .rise:not(.is-visible) { opacity: 0; transform: translate3d(0, 26px, 0); }
.rise:nth-child(2) { transition-delay: 0.06s; }
.rise:nth-child(3) { transition-delay: 0.12s; }
.rise:nth-child(4) { transition-delay: 0.18s; }
.rise:nth-child(5) { transition-delay: 0.24s; }
.rise:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--deep); border-bottom: 1px solid var(--orange); isolation: isolate;
}
.nav { position: relative; display: flex; align-items: center; gap: 24px; height: 100%; }
.brand-group { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo { display: block; flex: 0 0 auto; width: 176px; height: 64px; }
.brand-wordmark { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.header-tribute {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding-left: 16px; border-left: 1px solid #454545;
  font: 600 0.9375rem / 1.15 var(--mono); white-space: nowrap; transition: color 0.2s;
}
.header-tribute:hover { color: var(--orange); }
.header-tribute img { width: 38px; height: 43px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); margin-left: auto; font-size: 0.875rem; font-weight: 500; }
.nav-links > a { position: relative; padding-block: 14px; white-space: nowrap; }
.nav-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 2px; background: var(--orange);
  transform: scaleX(0) skewX(-24deg); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links > a:is(:hover, [aria-current="page"])::after { transform: scaleX(1) skewX(-24deg); }
.nav-links > .nav-partner { display: none; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto;
  min-width: 136px; min-height: 52px; padding: 8px 20px 8px 26px;
  color: var(--ink); background: var(--orange); clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  font: 400 1.0625rem / 1 var(--display); letter-spacing: -0.015em; transition: background 0.2s;
}
.header-cta:hover { background: #fff; }
.header-cta:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }
/* The Instagram mark, drawn as an outline in the button's own ink. */
.brand-instagram { flex: 0 0 auto; width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; stroke-width: 2.1; }
.brand-instagram-dot { fill: currentColor; stroke: none; }
.nav-toggle { display: none; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 4px; background: var(--orange); pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

@media (max-width: 1279px) {
  .nav { gap: 16px; }
  .logo { width: 160px; height: 58px; }
  .brand-group { gap: 12px; }
  .header-tribute { gap: 9px; padding-left: 12px; font-size: 0.875rem; }
  .header-tribute img { width: 34px; height: 38px; }
  .nav-links { gap: 16px; font-size: 0.8125rem; }
  .header-cta { min-width: 118px; padding-inline: 22px 16px; gap: 10px; font-size: 0.9375rem; }
}
/* Below 1100px the six links move into a menu. */
@media (max-width: 1099px) {
  .nav { gap: 10px; }
  .brand-group { flex: 1 1 auto; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto;
    width: 48px; height: 48px; border: 1px solid #5a5a5a;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform 0.25s var(--ease), opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--pad) 28px; background: var(--deep); border-bottom: 4px solid var(--orange);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > a {
    display: flex; align-items: center; min-height: 60px; padding-block: 10px; border-bottom: 1px solid #383838;
    font: 400 clamp(1.625rem, 6.4vw, 2.375rem) / 1.05 var(--display); text-transform: uppercase; letter-spacing: -0.02em;
  }
  .nav-links > a::after { display: none; }
  .nav-links > a[aria-current="page"] { color: var(--orange); }
  .nav-links > .nav-partner {
    display: flex; justify-content: space-between; margin-top: 22px; padding-inline: 20px;
    border: 0; background: var(--orange); color: var(--ink); font-size: 1.375rem;
  }
}
@media (max-width: 600px) {
  .nav { gap: 6px; padding-inline: 14px; }
  .brand-group { gap: 7px; }
  .logo { width: min(130px, calc(100vw - 262px)); height: 50px; }
  /* On a phone the words sit under the badge, so both can grow without squeezing the logo. */
  .header-tribute { flex-direction: column; justify-content: center; gap: 3px; padding-left: 8px; line-height: 1; }
  .header-tribute img { width: 30px; height: 34px; }
  .header-cta { min-width: 94px; min-height: 46px; padding: 7px 11px 7px 15px; gap: 6px; font-size: 0.8125rem; }
  .nav-toggle { width: 46px; height: 46px; }
}
@media (max-width: 359px) {
  .header-tribute { min-width: 44px; justify-content: center; padding-left: 8px; }
  .header-tribute span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-cta { min-width: 84px; padding-inline: 14px 9px; }
  .logo { width: min(120px, calc(100vw - 238px)); height: 44px; }
}

/* ---------- The opening: ALL IN / 227, then the gate drops ---------- */
.start-gate {
  --gate-height: calc(100svh - var(--header-h));
  /* Scroll distances, counted in frames: the whole pinned run, and where Lincoln has fully landed. */
  --gate-frames: 3.7;
  --gate-land: 1.98;
  --poster-opacity: 1;
  position: relative; background: var(--surface);
}
.gate-frame { position: relative; display: flex; flex-direction: column; }
.gate-poster {
  order: -1; position: relative; height: var(--gate-height); min-height: 420px;
  display: grid; grid-template-columns: 0.75fr 1.25fr; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "class class" "title digits" "rider digits" "cue cue";
  align-items: center; gap: clamp(10px, 2vh, 22px) 4vw;
  padding: clamp(20px, 4vh, 46px) var(--pad) 28px;
  background: var(--surface) var(--race-texture) center / cover no-repeat;
  border-bottom: 9px solid transparent;
  border-image: repeating-linear-gradient(120deg, #151710 0 18px, var(--orange) 18px 36px) 9;
}
.gate-class, .gate-cue { font: 600 clamp(0.75rem, 0.62rem + 0.36vw, 0.875rem) / 1.35 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.gate-class { grid-area: class; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; padding-block: 9px; }
.gate-class > span + span { padding-left: 18px; border-left: 1px solid rgba(241, 238, 230, 0.33); }
.gate-title { grid-area: title; font-size: clamp(76px, min(14vw, 24svh), 280px); line-height: 0.78; letter-spacing: -0.065em; }
.gate-title em { display: block; color: var(--orange); }
.gate-number { grid-area: digits; width: 100%; height: clamp(165px, 26vw, 54svh); }
.gate-signature { grid-area: rider; align-self: end; width: max-content; max-width: 100%; padding: 12px 16px; border-left: 3px solid var(--orange); background: rgba(11, 11, 11, 0.91); }
.gate-signature p { font: 400 clamp(20px, 2.5vw, 46px) / 1 var(--display); text-transform: uppercase; }
.gate-signature b { color: var(--orange); font-weight: 400; }
.gate-signature > span { display: block; margin-top: 5px; color: var(--orange); font: 400 clamp(17px, 2.15vw, 35px) / 1.15 var(--display); }
.gate-cue {
  grid-area: cue; justify-self: center; display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 12px 20px;
  border: 1px solid rgba(241, 238, 230, 0.33); background: rgba(11, 11, 11, 0.91); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gate-cue .brand-arrow { color: var(--orange); font-size: 18px; }
.gate-cue:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.gate-cue:hover .brand-arrow { color: var(--ink); }

/* Where the opening lands: Lincoln, edge to edge. */
.gate-media {
  --spot-x: 54%; --spot-y: 25%;
  position: relative; height: var(--gate-height); min-height: 420px; overflow: hidden; background: #101010;
}
.gate-media picture { display: block; }
.gate-media picture, .gate-media img { width: 100%; height: 100%; }
.gate-media img { object-fit: cover; object-position: 50% 16%; }
.gate-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.93) 0%, rgba(8, 8, 8, 0.72) 24%, rgba(8, 8, 8, 0) 52%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.42), rgba(8, 8, 8, 0) 26%);
}
.gate-rider { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(32px, 8vh, 84px); max-width: min(42%, 640px); }
.gate-rider-plate {
  display: inline-flex; margin-bottom: clamp(12px, 1.8vh, 20px); padding: 7px 18px 8px 15px; color: var(--ink); background: var(--orange);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); line-height: 0; transform-origin: left bottom;
}
.gate-rider-plate .brand-number { --number-size: clamp(22px, 2.5vw, 38px); }
.gate-rider-name { font-size: clamp(64px, 8.8vw, 156px); line-height: 0.88; letter-spacing: -0.04em; }
.gate-line { display: block; overflow: hidden; padding: 0.05em 0.1em 0.07em 0; margin: -0.05em -0.1em -0.07em 0; }
.gate-line > span { display: inline-block; transform-origin: left bottom; }
.gate-line--accent { color: var(--orange); }
.gate-rider-rule { display: block; width: min(100%, 420px); height: 4px; margin-top: clamp(14px, 2vh, 22px); background: var(--orange); transform-origin: left; }
.gate-rider-class { margin-top: clamp(12px, 1.7vh, 18px); font: 600 clamp(0.8125rem, 0.7rem + 0.3vw, 0.9375rem) / 1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.gate-rider-line { margin-top: 8px; color: var(--soft); font-size: var(--fs-lead); text-shadow: 0 1px 14px rgba(8, 8, 8, 0.85); }
.gate-rider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(18px, 3vh, 30px); }
.gate-footage, .gate-mask, .gate-drop { display: none; }
.gate-film-caption { display: none; }
.gate-end { position: absolute; left: 0; top: var(--gate-height); }

/* With motion on, one pinned frame carries the whole opening:
   through the numerals, across the pit sweep, then the gate drops and the frame holds on Lincoln. */
.start-gate.is-animated { height: calc(var(--gate-height) * (1 + var(--gate-frames))); }
.is-animated .gate-frame {
  --gate-edge: calc(var(--gate-drop, 0) * 122% - 5%);
  --gate-bar: clamp(8px, 1.05vw, 15px);
  position: sticky; top: var(--header-h); height: var(--gate-height); overflow: hidden; isolation: isolate;
}
.is-animated :is(.gate-media, .gate-footage, .gate-mask, .gate-drop) { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.is-animated .gate-media { z-index: 0; }
.is-animated:not(.is-armed) .gate-media { display: none; }
.is-animated .gate-media img { transform: scale(var(--lin-zoom, 1)); transform-origin: var(--spot-x) var(--spot-y); filter: brightness(calc(1 + var(--lin-spot, 0) * 0.16)); will-change: transform; }
/* A soft spotlight closes around him while the frame holds. */
.is-animated .gate-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--lin-spot, 0);
  background: radial-gradient(ellipse 60% 76% at var(--spot-x) var(--spot-y), rgba(8, 8, 8, 0) 46%, rgba(8, 8, 8, 0.6) 100%);
}
.is-animated .gate-rider-plate {
  opacity: var(--lin-plate, 0);
  transform: translate3d(calc((1 - var(--lin-plate, 0)) * -34px), 0, 0) rotate(calc((1 - var(--lin-plate, 0)) * -7deg)) scale(calc(1 + (1 - var(--lin-plate, 0)) * 0.7));
}
.is-animated .gate-line:nth-child(1) > span { transform: translate3d(0, calc((1 - var(--lin-name1, 0)) * 112%), 0) rotate(calc((1 - var(--lin-name1, 0)) * 3deg)); }
.is-animated .gate-line:nth-child(2) > span { transform: translate3d(0, calc((1 - var(--lin-name2, 0)) * 112%), 0) rotate(calc((1 - var(--lin-name2, 0)) * 3deg)); }
.is-animated .gate-rider-rule { transform: scaleX(var(--lin-rule, 0)); }
.is-animated .gate-rider-class { clip-path: inset(0 calc((1 - var(--lin-class, 0)) * 100%) 0 0); }
.is-animated .gate-rider-facts { opacity: var(--lin-facts, 0); transform: translate3d(0, calc((1 - var(--lin-facts, 0)) * 22px), 0); }
.is-animated .gate-rider-actions { opacity: var(--lin-cta, 0); transform: translate3d(0, calc((1 - var(--lin-cta, 0)) * 22px), 0); }
.is-animated:not(.is-landed) .gate-rider { pointer-events: none; }
.is-animated .gate-footage {
  display: block; z-index: 1; background: #181914; pointer-events: none;
  clip-path: polygon(0 var(--gate-edge), 100% calc(var(--gate-edge) - 13%), 100% 100%, 0 100%);
}
.gate-footage video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; filter: grayscale(var(--ink-strength, 1)); }
.gate-footage::after { content: ""; position: absolute; inset: 0; background: #fc590e; mix-blend-mode: multiply; opacity: var(--ink-strength, 1); }
/* The gate itself: a hazard bar that falls across the frame. */
.is-animated .gate-drop {
  display: block; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(120deg, #151710 0 18px, var(--orange) 18px 36px);
  clip-path: polygon(
    0 calc(var(--gate-edge) - var(--gate-bar)), 100% calc(var(--gate-edge) - 13% - var(--gate-bar)),
    100% calc(var(--gate-edge) - 13% + var(--gate-bar)), 0 calc(var(--gate-edge) + var(--gate-bar)));
}
.is-animated.is-dropped :is(.gate-footage, .gate-drop) { display: none; }
.is-animated .gate-mask { display: block; z-index: 3; pointer-events: none; }
.is-animated .gate-poster { z-index: 4; min-height: 0; background: transparent; opacity: var(--poster-opacity); }
.is-animated .gate-number { visibility: hidden; }
.is-animated .gate-poster.is-past { visibility: hidden; }
/* As the next chapter rises over the frame, the photograph falls back into shadow. */
.is-animated .gate-frame::after { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--deep); opacity: calc(var(--gate-cover, 0) * 0.6); pointer-events: none; }
.is-animated .gate-end { top: calc(var(--gate-height) * var(--gate-land)); }

/* Everything after the opening rises over the held frame like a curtain. */
.home main > :not(.start-gate) { position: relative; z-index: 2; }
.gate-exit::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(26px, 4.6vw, 72px); margin-bottom: -1px;
  background: repeating-linear-gradient(120deg, #151710 0 18px, var(--orange) 18px 36px);
  clip-path: polygon(0 100%, 100% 0, 100% 100%); pointer-events: none;
}
.start-gate.is-animated + .gate-exit { margin-top: calc(var(--header-h) - 100svh); }

@media (min-width: 861px) {
  .gate-footage video { width: 58%; margin-left: auto; }
  .is-animated .gate-film-caption {
    position: absolute; left: var(--pad); top: 50%; display: block; width: 34%; transform: translateY(-50%);
    font: 400 clamp(64px, 7.4vw, 145px) / 0.94 var(--display); opacity: calc(1 - var(--ink-strength, 1));
  }
}
@media (max-width: 860px) {
  .gate-media { --spot-x: 55%; --spot-y: 21%; }
  .gate-media img { object-position: 56% 30%; }
  .gate-media::after { background: linear-gradient(0deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.8) 32%, rgba(8, 8, 8, 0) 64%); }
  /* On a phone his lines stay in the lower part of the frame, so Lincoln himself is in clear view.
     Sizes follow the small viewport height, which does not change when the browser's bars slide away. */
  .gate-rider { right: var(--pad); bottom: 20px; max-width: none; }
  .gate-rider-plate { margin-bottom: 8px; padding: 5px 14px 6px 12px; }
  .gate-rider-plate .brand-number { --number-size: 20px; }
  .gate-rider-name { font-size: clamp(40px, min(15vw, 8svh), 84px); }
  .gate-rider-rule { width: min(62%, 300px); margin-top: 10px; }
  .gate-rider-class { margin-top: 10px; }
  .gate-rider-line { margin-top: 6px; font-size: var(--fs-body); }
  .gate-rider-actions { margin-top: 14px; padding-right: 64px; }
  /* The header's Follow button is on screen for the whole hold. */
  .is-animated .gate-rider-actions .text-link { display: none; }
}
@media (max-width: 650px) and (orientation: portrait) {
  .gate-poster {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "class" "title" "digits" "rider" "cue";
    gap: clamp(8px, 2svh, 20px); padding: clamp(14px, 3svh, 30px) var(--pad) 10px;
  }
  .gate-title { justify-self: start; font-size: min(29vw, 15svh); line-height: 0.8; transform: scaleX(1.48); transform-origin: left; }
  .gate-number { height: min(56vw, 29svh); }
  .gate-signature { align-self: center; }
  .gate-cue { align-self: end; }
}
@media (max-width: 650px) and (max-height: 700px) and (orientation: portrait) {
  .gate-poster { gap: 6px; padding-top: 10px; }
  .gate-class { padding-block: 3px; gap: 4px 12px; }
  .gate-class > span + span { padding-left: 12px; }
  .gate-title { font-size: min(29vw, calc(var(--gate-height) * 0.2)); }
  .gate-number { height: min(54vw, calc(var(--gate-height) * 0.27)); }
  .gate-signature { padding: 8px 12px; }
  .gate-signature p { font-size: 18px; }
  .gate-signature > span { margin-top: 3px; font-size: 15px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .gate-poster { min-height: 0; padding-block: 6px; gap: 4px; }
  .gate-title { font-size: min(14vw, 21svh); }
  .gate-number { height: 45svh; }
  .gate-cue { min-height: 44px; padding-block: 6px; }
  .gate-rider { bottom: 14px; }
  .gate-rider-name { font-size: clamp(40px, 13svh, 72px); }
  .gate-rider-line { display: none; }
}

/* ---------- Racing bar: drifts on its own, and runs with the scroll ---------- */
.race-strip { overflow: hidden; padding-block: 13px; background: var(--orange); color: var(--deep); border-block: 3px solid var(--deep); }
.race-strip-shift { transform: translate3d(var(--strip-shift, 0px), 0, 0) skewX(var(--strip-skew, 0deg)); will-change: transform; }
.race-strip-track { display: flex; width: max-content; animation: race-marquee 34s linear infinite; }
.race-strip-set { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.race-strip-set > span { font: 400 clamp(26px, 3vw, 40px) / 0.95 var(--display); letter-spacing: -0.02em; white-space: nowrap; text-transform: uppercase; }
.race-slash { display: block; flex: 0 0 35px; width: 35px; height: 24px; background: repeating-linear-gradient(110deg, var(--deep) 0 7px, transparent 7px 13px); transform: skewX(-12deg); }
@keyframes race-marquee { to { transform: translateX(calc(-100% / 6)); } }

/* One plain sentence about the season, straight under the opening. */
.status-bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.status-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 14px; }
.status-bar p:not(.eyebrow) { flex: 1 1 300px; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section--texture {
  background-color: var(--surface);
  background-image: linear-gradient(180deg, rgba(11, 11, 11, 0.5), var(--surface) 78%), var(--race-texture);
  background-position: center top, right top; background-size: 100% 100%, max(100%, 1440px) auto; background-repeat: no-repeat;
}
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head .eyebrow { margin-bottom: clamp(14px, 1.8vw, 24px); }
.section-head .headline { font-size: clamp(48px, 7.4vw, 132px); }
.section-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 34ch; color: var(--soft); }
.prose { max-width: 60ch; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-size: clamp(30px, 3.2vw, 52px); line-height: 1.02; }
.prose p { color: var(--soft); }
.prose .text-link { margin-top: 1.4em; }
.prose .eyebrow { color: var(--orange); }

/* Photographs arrive behind a diagonal shutter. */
.shutter { overflow: hidden; }
[data-scroll-scene="photo"] > picture { display: block; }
html.scroll-scenes-on [data-scroll-scene="photo"] > :is(picture, img) {
  clip-path: polygon(0 0, calc(100% - var(--scene-cut, 0%)) 0, 100% 100%, var(--scene-cut, 0%) 100%);
  transform: scale(var(--scene-zoom, 1));
}

/* ---------- The program: one run. The heading leads and the photographs follow ---------- */
.program { background: var(--surface); }
.run { --run-frame: calc(100svh - var(--header-h)); position: relative; }
.run-track {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px);
  max-width: 1920px; margin-inline: auto; padding: var(--section) var(--pad) clamp(24px, 3vw, 44px);
}
.run-head { grid-column: 1 / -1; margin-bottom: clamp(12px, 2vw, 32px); }
.run-head .eyebrow { margin-bottom: clamp(14px, 1.8vw, 24px); }
.run-head .headline { font-size: clamp(48px, 7.4vw, 132px); }
.run-lead { margin-top: clamp(14px, 1.6vw, 22px); max-width: 30ch; color: var(--soft); font-size: var(--fs-lead); }
.run-head .text-link { margin-top: 12px; }
.run-card { display: block; min-width: 0; margin: 0; }
.run-card--wide { grid-column: span 6; }
.run-sheet { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.run-small { min-width: 0; margin: 0; }
.run-photo { position: relative; overflow: hidden; background: var(--panel); }
.run-photo picture { display: block; width: 100%; height: 100%; }
.run-photo img { width: 100%; height: 100%; object-fit: cover; }
.run-card--wide .run-photo { aspect-ratio: 3 / 2; }
.run-small .run-photo { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.run-card--wide figcaption {
  display: flex; align-items: center; gap: 0.4em; margin-top: clamp(12px, 1.4vw, 20px);
  font: 400 clamp(28px, 3.5vw, 60px) / 1 var(--display); letter-spacing: -0.025em; text-transform: uppercase;
}
.run-card--wide figcaption::before { content: ""; flex: 0 0 auto; width: 0.42em; height: 0.72em; background: var(--orange); clip-path: polygon(46% 0, 100% 0, 54% 100%, 0 100%); }
.run-small figcaption { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.run-link {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; align-self: start; aspect-ratio: 4 / 3; padding: clamp(14px, 1.6vw, 24px);
  border: 1px solid var(--orange); color: var(--paper); transition: background 0.2s, color 0.2s;
}
.run-link strong { font: 400 clamp(24px, 2.6vw, 44px) / 1 var(--display); text-transform: uppercase; letter-spacing: -0.025em; }
.run-link span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-small); font-weight: 600; }
.run-link .brand-arrow { color: var(--orange); font-size: 20px; }
.run-link:hover { background: var(--orange); color: var(--ink); }
.run-link:hover .brand-arrow { color: var(--ink); }
.run-line { display: none; }
@media (max-width: 760px) {
  .run-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-card--wide { grid-column: 1 / -1; }
  .run-card--wide .run-photo { aspect-ratio: 4 / 5; }
  .run-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  /* "The inTech" has to hold one line of the half-width tile down to a 320px screen. */
  .run-link strong { font-size: clamp(18px, 5.6vw, 24px); }
}

/* With motion on, the run is one pinned frame: scrolling down carries the track sideways. */
.run.is-scroll-pinned { height: calc(var(--run-frame) + var(--run-travel, 0px)); }
.is-scroll-pinned .run-frame { position: sticky; top: var(--header-h); height: var(--run-frame); overflow: hidden; overflow: clip; touch-action: pan-y; }
.is-scroll-pinned .run-track {
  display: flex; align-items: center; gap: clamp(24px, 3.4vw, 64px); width: max-content; max-width: none; height: 100%; margin: 0;
  padding: 0 max(var(--pad), 8vw) 0 var(--pad);
  transform: translate3d(var(--run-x, 0px), 0, 0) skewX(var(--run-lean, 0deg)); will-change: transform;
}
.is-scroll-pinned .run-head { flex: 0 0 auto; margin: 0; transform: translate3d(var(--run-head-x, 0px), 0, 0); }
.is-scroll-pinned .run-head .headline { font-size: clamp(72px, 10.6vw, 204px); line-height: 0.86; letter-spacing: -0.045em; white-space: nowrap; }
.is-scroll-pinned .run-head .headline span { display: block; color: var(--orange); }
.is-scroll-pinned .run-card { flex: 0 0 auto; }
.is-scroll-pinned .run-track { --run-card: min(62vw, calc((var(--run-frame) - 170px) * 1.5)); --run-caption: calc(clamp(12px, 1.4vw, 20px) + clamp(28px, 3.5vw, 60px)); }
.is-scroll-pinned .run-card--wide { width: var(--run-card); }
/* A photograph with no caption grows into the room a caption would have taken, so both cards stand the same height. */
.is-scroll-pinned .run-card--bare { width: calc(var(--run-card) + var(--run-caption) * 1.5); }
.is-scroll-pinned .run-card--wide .run-photo { clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); }
.is-scroll-pinned .run-card--wide .run-photo img { width: 116%; max-width: none; margin-left: -8%; transform: translate3d(var(--card-shift, 0px), 0, 0); will-change: transform; }
.is-scroll-pinned .run-card--wide figcaption { padding-left: 1.5%; }
.is-scroll-pinned .run-sheet { width: min(46vw, calc((var(--run-frame) - 150px) * 1.24)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.is-scroll-pinned .run-line {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange);
  transform: scaleX(var(--run-progress, 0)); transform-origin: left; pointer-events: none;
}
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .is-scroll-pinned .run-track { --run-card: min(78vw, calc(var(--run-frame) - 220px)); }
  .is-scroll-pinned .run-card--bare { width: var(--run-card); }
  .is-scroll-pinned .run-card--wide .run-photo { aspect-ratio: 1; }
  .is-scroll-pinned .run-card--bare .run-photo { aspect-ratio: auto; height: calc(var(--run-card) + var(--run-caption)); }
  .is-scroll-pinned .run-sheet { width: min(74vw, calc((var(--run-frame) - 150px) * 1.24)); }
}
@media (max-width: 760px) {
  .is-scroll-pinned .run-track { gap: 6vw; padding-right: 7vw; padding-bottom: 52px; --run-card: min(86vw, calc((var(--run-frame) - 150px) * 0.72)); --run-caption: calc(12px + clamp(32px, 10.5vw, 52px)); }
  .is-scroll-pinned .run-head .headline { font-size: clamp(56px, 18.4vw, 104px); }
  .is-scroll-pinned .run-card--bare { width: var(--run-card); }
  .is-scroll-pinned .run-card--wide .run-photo { aspect-ratio: 5 / 7; }
  .is-scroll-pinned .run-card--bare .run-photo { aspect-ratio: auto; height: calc(var(--run-card) * 1.4 + var(--run-caption)); }
  .is-scroll-pinned .run-card--wide figcaption { font-size: clamp(32px, 10.5vw, 52px); white-space: nowrap; }
  .is-scroll-pinned .run-sheet { width: min(86vw, calc((var(--run-frame) - 170px) * 1.1)); gap: 16px 12px; }
}

/* The film: a short pin opens it from a slashed window to the full frame, then its title lands. */
.film-runway { --film-frame: calc(100svh - var(--header-h)); position: relative; background: var(--surface); }
.film {
  position: relative; isolation: isolate; overflow: hidden;
  height: min(84svh, 800px); min-height: 520px; background: #101010; scroll-margin-top: var(--header-h);
}
.film-runway.is-scroll-pinned { height: calc(var(--film-frame) + 78svh); }
.film-runway.is-scroll-pinned .film { position: sticky; top: var(--header-h); height: var(--film-frame); min-height: 0; }
.film-media { position: absolute; inset: 0; z-index: -2; background: #101010 center / cover no-repeat; }
.film-media video { width: 100%; height: 100%; object-fit: cover; }
html.scroll-scenes-on .film-media {
  clip-path: polygon(
    calc(var(--film-inset, 0%) + var(--film-slant, 0%)) var(--film-inset, 0%),
    calc(100% - var(--film-inset, 0%)) var(--film-inset, 0%),
    calc(100% - var(--film-inset, 0%) - var(--film-slant, 0%)) calc(100% - var(--film-inset, 0%)),
    var(--film-inset, 0%) calc(100% - var(--film-inset, 0%)));
  transform: scale(var(--film-zoom, 1));
}
.film-shade { position: absolute; inset: 0; z-index: -1; opacity: var(--film-shade, 1); background: linear-gradient(0deg, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.1) 70%), linear-gradient(90deg, rgba(8, 8, 8, 0.5), rgba(8, 8, 8, 0) 55%); }
.film-content { height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; padding-block: clamp(28px, 5vw, 64px); }
.film-copy .eyebrow { display: inline-block; padding: 7px 12px; background: rgba(8, 8, 8, 0.86); }
/* "inTech stacker." is the long line: from 761px up it holds one row and ends short of the play control. */
.film-copy .headline { margin-block: clamp(12px, 1.6vw, 22px); font-size: clamp(60px, 8.4vw, 160px); line-height: 0.95; }
.film-copy .headline-line:last-child { color: var(--orange); }
.film-copy > p:last-child { max-width: 40ch; color: var(--soft); font-size: var(--fs-lead); }
.film-play {
  position: absolute; left: 78%; top: 44%; display: grid; place-content: center; justify-items: center; gap: 14px;
  width: clamp(132px, 12vw, 168px); aspect-ratio: 1; margin: calc(clamp(132px, 12vw, 168px) / -2) 0 0 calc(clamp(132px, 12vw, 168px) / -2);
  border: 1px solid var(--paper); border-radius: 50%; background: rgba(8, 8, 8, 0.46); backdrop-filter: blur(3px);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.film-play .brand-play { font-size: 30px; margin-left: 6px; }
.film-play-label { max-width: 8ch; text-align: center; font: 600 var(--fs-label) / 1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.film-play:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.film-line { display: none; }
html.scroll-scenes-on .film-line {
  display: block; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 5px; background: var(--orange);
  transform: scaleX(var(--film-line, 1)); transform-origin: left; pointer-events: none;
}
html.scroll-scenes-on .film .headline-word { transition: none; }
html.scroll-scenes-on .film .headline-line:nth-child(1) .headline-word { transform: translate3d(0, calc((1 - var(--film-type1, 1)) * 118%), 0) rotate(calc((1 - var(--film-type1, 1)) * 2deg)); }
html.scroll-scenes-on .film .headline-line:nth-child(2) .headline-word { transform: translate3d(0, calc((1 - var(--film-type2, 1)) * 118%), 0) rotate(calc((1 - var(--film-type2, 1)) * 2deg)); }
html.scroll-scenes-on .film-copy > :is(.eyebrow, p:last-child) { opacity: var(--film-copy, 1); }
html.scroll-scenes-on .film-play { opacity: var(--film-play, 1); transform: scale(calc(0.72 + var(--film-play, 1) * 0.28)); }
@media (max-width: 760px) {
  .film { height: auto; min-height: min(80svh, 580px); }
  .film-content { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: min(80svh, 580px); }
  .film-runway.is-scroll-pinned .film-content { min-height: 0; }
  /* On a phone "Inside the" sets the size and the name breaks into "inTech" and "stacker." */
  .film-copy .headline { font-size: clamp(52px, 16.6vw, 96px); }
  .film-play { position: static; width: auto; aspect-ratio: auto; margin: 0; grid-auto-flow: column; align-items: center; gap: 14px; min-height: 56px; padding: 12px 24px 12px 20px; border-radius: 0; }
  .film-play .brand-play { font-size: 20px; margin: 0; }
  .film-play-label { max-width: none; }
  html.scroll-scenes-on .film-play { transform: translate3d(0, calc((1 - var(--film-play, 1)) * 18px), 0); transform-origin: left center; }
}

/* Section headings draw across the page as their chapter arrives; plates lift into place. */
html.scroll-scenes-on [data-scroll-scene="heading"] .headline-line { clip-path: inset(-14% var(--head-cut, 0%) -14% -3%); }
html.scroll-scenes-on [data-scroll-scene="heading"] .headline-word { transition: none; transform: translate3d(calc(var(--head-off, 0) * -0.22em), 0, 0); }
html.scroll-scenes-on [data-scroll-scene="heading"] :is(.headline-plate, .brand-number-lockup) { transform: translate3d(0, calc(var(--head-off, 0) * 0.5em), 0) rotate(calc(var(--head-off, 0) * -5deg)); }
html.scroll-scenes-on [data-scroll-scene="heading"] .headline-small { opacity: calc(1 - var(--head-off, 0)); }
html.scroll-scenes-on [data-scroll-scene="heading"] :is(.section-aside, .section-head > .text-link, .eyebrow) { opacity: calc(1 - var(--head-off, 0)); transform: translate3d(0, calc(var(--head-off, 0) * 22px), 0); }

/* ---------- Trackside: the latest posts as a contact sheet ---------- */
.trackside { padding-block: var(--section); border-top: 1px solid var(--line); }
.headline-lockup { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); margin-top: 0.1em; }
.headline-small { font: 400 0.3em / 1 var(--display); letter-spacing: -0.02em; }
.headline-plate {
  display: inline-flex; align-items: center; padding: 0.08em 0.3em 0.1em 0.24em; color: var(--ink); background: var(--orange);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}
.headline-plate .brand-number { --number-size: 0.66em; }
.sheet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); margin: 0; padding: 0; list-style: none; }
.sheet-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.sheet-photo:hover img { transform: scale(1.045); }
.sheet-open { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); background: var(--paper); font-size: 16px; transition: background 0.2s; }
.sheet-photo:hover .sheet-open { background: var(--orange); }
.sheet-meta { margin-top: 14px; color: var(--muted); font: 500 var(--fs-label) / 1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.sheet-item h3 { margin-top: 6px; font-size: clamp(1.125rem, 0.9rem + 0.62vw, 1.5rem); line-height: 1.08; }
.sheet-source { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: var(--fs-small); font-weight: 600; transition: color 0.2s; }
.sheet-source .brand-arrow { color: var(--orange); font-size: 13px; }
.sheet-source:hover { color: var(--orange); }
.sheet-follow a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; aspect-ratio: 1; padding: clamp(12px, 1.3vw, 20px);
  color: var(--ink); background: var(--orange); font: 400 clamp(1.25rem, 0.9rem + 1vw, 1.875rem) / 1.02 var(--display);
  letter-spacing: -0.02em; text-transform: uppercase; transition: background 0.2s;
}
.sheet-follow a:hover { background: var(--paper); }
.sheet-follow .brand-arrow { align-self: flex-end; font-size: 26px; }
.sheet-follow small { display: block; margin-top: 6px; font: 600 var(--fs-label) / 1.3 var(--mono); letter-spacing: 0.04em; text-transform: none; overflow-wrap: anywhere; }
.more-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; margin-top: clamp(28px, 3.4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); }
.more-links .eyebrow { color: var(--muted); margin-right: 8px; }
@media (max-width: 1099px) { .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 600px) {
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .sheet-source { display: none; }
}

/* ---------- Partners ---------- */
.partner-showcase { padding-block: var(--section); border-top: 1px solid var(--line); }
.headline-crew { font-size: clamp(64px, 11vw, 200px); letter-spacing: -0.05em; }
.brand-number-lockup { display: inline-block; color: var(--orange); line-height: 0; vertical-align: 0.02em; }
.brand-number-lockup .brand-number { --number-size: 0.66em; }
.home-partner-wall, .partner-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-partner, .partner-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel);
  transition: background 0.2s, box-shadow 0.2s;
}
:is(a.home-partner, a.partner-logo):hover { background: var(--panel-hover); box-shadow: inset 0 0 0 1px var(--orange); }
/* The homepage wall carries 21 brands: seven across on a wide screen, three across below 1000px. Keep the count a multiple of both. */
.home-partner-wall { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.home-partner { min-height: clamp(104px, 8.4vw, 148px); padding: clamp(12px, 1.4vw, 26px); }
.home-partner img { width: auto; max-width: min(100%, 190px); max-height: clamp(40px, 3.8vw, 66px); object-fit: contain; }
/* Compact marks (a badge, a square, a crest) are sized by height so they carry the same weight as the wide wordmarks. */
.home-partner img.lg-mark { height: clamp(52px, 4.8vw, 84px); max-height: none; }
.partner-logo { min-height: 190px; padding: 24px 16px 18px; }
.partner-logo-image { display: grid; place-items: center; flex: 1 1 auto; width: 100%; min-height: 88px; }
.partner-logo img { width: auto; max-width: min(100%, 210px); max-height: 78px; object-fit: contain; }
.partner-logo img.lg-tall { max-height: 96px; max-width: min(100%, 150px); }
.partner-logo img.lg-xtall { max-height: 112px; max-width: min(100%, 200px); }
.partner-name { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; text-align: center; }
.partner-name .brand-arrow { color: var(--orange); font-size: 12px; }
a.partner-logo:hover .partner-name { color: var(--paper); }
/* Genuine artwork, shown on one dark mat. Each treatment only reverses or blends the supplied file. */
.lg-invert { filter: brightness(0) invert(1); }
.lg-screen { mix-blend-mode: screen; }
.lg-invert-screen { filter: invert(1); mix-blend-mode: screen; }
.lg-contrast-screen { filter: contrast(1.2); mix-blend-mode: screen; }
.lg-bright { filter: brightness(1.7); }
.partner-tier + .partner-tier { margin-top: clamp(44px, 5.5vw, 80px); }
.partner-tier-title { margin-bottom: clamp(18px, 2vw, 28px); font-size: clamp(26px, 3vw, 46px); line-height: 1.05; }
/* The lettered tile closes the race-day wall after nine logos: it fills the rest of the row on four columns,
   takes a row of its own on three, and is the tenth tile on two. Change the spans if the count changes. */
.partner-logo--wordmark { grid-column: span 3; flex-direction: row; justify-content: space-between; min-height: 104px; padding-inline: clamp(18px, 2.4vw, 32px); }
.partner-logo--wordmark strong { font: 400 clamp(24px, 3vw, 44px) / 1 var(--display); text-transform: uppercase; }
.partner-logo--wordmark span { color: var(--muted); font-size: var(--fs-small); }
.partner-footnote { margin-top: 22px; color: var(--muted); }
html.scroll-scenes-on [data-scroll-scene="crew"] > * { transform: translate3d(0, var(--decal-lift, 0px), 0) rotate(var(--decal-turn, 0deg)); }
@media (max-width: 1000px) {
  .home-partner-wall, .partner-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-partner { min-height: clamp(84px, 13vw, 128px); padding: clamp(12px, 2.2vw, 22px); }
  .home-partner img { max-width: min(100%, 200px); max-height: clamp(40px, 6.2vw, 58px); }
  .home-partner img.lg-mark { height: clamp(48px, 8vw, 76px); }
  .partner-logo--wordmark { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .partner-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo { min-height: 164px; padding: 18px 12px 14px; }
  .partner-logo-image { min-height: 72px; }
  .partner-logo img { max-height: 62px; }
  .partner-logo img.lg-tall { max-height: 76px; max-width: min(100%, 120px); }
  .partner-logo img.lg-xtall { max-height: 92px; max-width: min(100%, 160px); }
  .partner-logo--wordmark { grid-column: auto; flex-direction: column; justify-content: center; gap: 14px; text-align: center; }
  .partner-logo--wordmark strong { font-size: clamp(18px, 5.4vw, 24px); }
}

/* ---------- Two ways in: partner, or join ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
html.scroll-scenes-on .doors { overflow: hidden; overflow: clip; }
html.scroll-scenes-on .door--partner { transform: translate3d(calc(var(--door-off, 0) * -16%), 0, 0); }
html.scroll-scenes-on .door--join { transform: translate3d(calc(var(--door-off, 0) * 16%), 0, 0); }
.door { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); min-height: clamp(340px, 34vw, 480px); padding: clamp(40px, 6vw, 96px) var(--pad); }
.door h2 { font-size: clamp(44px, 5.6vw, 100px); line-height: 0.94; letter-spacing: -0.035em; }
.door > p:not(.eyebrow) { max-width: 30ch; font-size: var(--fs-lead); line-height: 1.45; }
.door .btn { margin-top: auto; }
.door--partner { color: var(--ink); background: var(--orange); }
.door--partner .eyebrow { color: var(--ink); }
.door--join {
  background-color: var(--panel);
  background-image: linear-gradient(110deg, rgba(21, 21, 21, 0.94), rgba(21, 21, 21, 0.8)), var(--race-texture);
  background-position: center, right bottom; background-size: cover;
}
.door--join > p:not(.eyebrow) { color: var(--soft); }
.door-contact { display: flex; flex-wrap: wrap; gap: 2px 24px; font-size: 0.9375rem; font-weight: 600; }
.door-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.door-contact a:hover { text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .door .btn { margin-top: 10px; width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(48px, 6vw, 80px); overflow: hidden; border-top: 4px solid var(--orange);
  background-color: var(--deep);
  background-image: linear-gradient(105deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.79)), var(--race-texture);
  background-position: center, right bottom; background-size: cover;
}
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 36px 60px; }
.footer-lead .eyebrow { margin-bottom: 16px; }
.footer-title { display: block; font: 400 clamp(36px, 4.6vw, 80px) / 1.02 var(--display); letter-spacing: -0.025em; text-transform: uppercase; }
a.footer-title:hover { color: var(--orange); }
.footer-title .brand-arrow { color: var(--orange); font-size: 0.62em; margin-left: 0.18em; }
.footer-lead .text-link { margin-top: 18px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0 clamp(28px, 4vw, 64px); font-size: 0.9375rem; }
.footer-links a, .motion-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-links .brand-arrow { color: var(--orange); font-size: 12px; }
.motion-toggle { color: var(--muted); font: 500 var(--fs-label) / 1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.motion-toggle span { padding: 3px 8px; border: 1px solid var(--orange); color: var(--paper); }
.footer-wordmark { margin-top: clamp(40px, 5vw, 72px); font: 400 clamp(60px, 11.6vw, 215px) / 0.86 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  margin-top: clamp(28px, 3vw, 44px); padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small);
}
.footer-bottom a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom .brand-arrow { color: var(--orange); font-size: 13px; }
@media (max-width: 600px) { .footer-links { grid-template-columns: 1fr 1fr; width: 100%; } }
@media (max-width: 860px) { .has-track-map .footer-bottom { padding-right: 68px; } }

/* ---------- Film and photo viewers ---------- */
.media-dialog { width: min(1120px, 94vw); max-height: 94svh; padding: 0; overflow: auto; border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper); }
.media-dialog::backdrop { background: rgba(8, 8, 8, 0.92); backdrop-filter: blur(8px); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 10px 8px 20px; border-bottom: 1px solid var(--line); }
.dialog-bar p { font: 600 var(--fs-label) / 1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.dialog-close { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; font-size: var(--fs-small); font-weight: 600; }
.dialog-close span { font-size: 26px; line-height: 1; }
.dialog-close:hover { color: var(--orange); }
.film-player { width: 100%; max-height: 73svh; aspect-ratio: 16 / 9; background: #000; }
.dialog-note { padding: 14px 20px; color: var(--muted); font-size: var(--fs-small); }
.photo-display { position: relative; display: flex; justify-content: center; min-height: 250px; background: var(--deep); }
.photo-full { width: auto; max-width: 100%; height: 58svh; object-fit: contain; }
.photo-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; color: var(--ink); background: var(--orange); font-size: 22px; }
.photo-nav:hover { background: var(--paper); }
.photo-nav.prev { left: 14px; }
.photo-nav.next { right: 14px; }
.photo-details { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 30px; padding: 20px; }
.photo-details h2 { font-size: clamp(26px, 3vw, 38px); }
.photo-details p { max-width: 60ch; margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Your lap: page chapters drawn as a circuit ---------- */
.linc-track-map {
  --track-map-panel-space: 110px;
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 258px; color: var(--paper); background: rgba(11, 11, 11, 0.96); border: 1px solid var(--line-strong);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); isolation: isolate; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.track-map-dock { display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; }
.track-map-circuit { grid-area: 1 / 1; width: 62px; height: 44px; overflow: visible; }
.track-map-base, .track-map-done { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.track-map-base { stroke: #55514b; }
.track-map-done { stroke: var(--orange); }
.track-map-checkpoints circle { display: none; fill: var(--ink); stroke: #c9c4bb; stroke-width: 1.4; }
.track-map-checkpoints .is-passed { fill: var(--orange); stroke: var(--ink); }
.track-map-checkpoints .is-current { fill: var(--paper); stroke: var(--orange); }
.track-map-marker { r: 7px; fill: var(--paper); stroke: var(--orange); stroke-width: 4; }
.track-map-summary { grid-area: 1 / 2; min-width: 0; }
.track-map-summary p { margin: 0; }
.track-map-eyebrow { color: var(--orange); font: 600 var(--fs-label) / 1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.track-map-current { overflow: hidden; font: 400 1rem / 1.35 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.track-map-readout { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.track-map-toggle, .track-map-close { position: relative; display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid transparent; }
.track-map-toggle { grid-area: 1 / 3; }
.track-map-toggle::before {
  content: ""; display: block; width: 11px; height: 11px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(3px) rotate(-45deg);
}
.is-open .track-map-toggle::before { transform: translateY(-3px) rotate(135deg); }
.track-map-toggle:hover, .track-map-close:hover { color: var(--orange); border-color: currentColor; }
.linc-track-map :focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.track-map-details {
  position: absolute; right: -1px; bottom: calc(100% + 8px); display: flex; flex-direction: column; width: 272px;
  max-height: min(460px, calc(100svh - var(--header-h) - var(--track-map-panel-space)));
  border: 1px solid var(--line-strong); background: var(--ink); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.track-map-nav-heading { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-left: 16px; border-bottom: 1px solid var(--line); }
.track-map-nav-heading p { margin: 0; color: var(--orange); font: 600 var(--fs-label) / 1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.track-map-close::before, .track-map-close::after { content: ""; position: absolute; width: 17px; height: 2px; background: currentColor; transform: rotate(45deg); }
.track-map-close::after { transform: rotate(-45deg); }
.track-map-details nav { overflow-y: auto; overscroll-behavior: contain; }
.track-map-links { margin: 0; padding: 5px 0; list-style: none; }
.track-map-links a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 16px; font-size: 0.9375rem; line-height: 1.3; }
.track-map-links a::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border: 1px solid #c9c4bb; border-radius: 50%; }
.track-map-links .is-passed::before { background: var(--orange); border-color: var(--orange); }
.track-map-links .is-current { color: var(--orange); background: rgba(245, 72, 0, 0.1); }
.track-map-links .is-current::before { background: var(--paper); border-color: var(--paper); }
.track-map-links a:hover { color: var(--orange); background: rgba(255, 255, 255, 0.07); }
.track-map-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.track-map-no-circuit .track-map-circuit { visibility: hidden; }
.linc-track-map.is-announcing { border-color: var(--orange); }
.is-announcing .track-map-current { color: var(--orange); }
.track-map-current { transition: color 0.4s; }
body.nav-open .linc-track-map, body:has(dialog[open]) .linc-track-map { visibility: hidden; pointer-events: none; }
/* On phones the lap is one round button; the header's line shows progress. */
@media (max-width: 860px) {
  .linc-track-map {
    --track-map-panel-space: 100px;
    right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 56px; height: 56px; border-radius: 50%; border-color: var(--orange);
  }
  html:not(.is-scrolled) .linc-track-map:not(.is-open) { opacity: 0; transform: translateY(14px); pointer-events: none; }
  .track-map-dock { position: relative; display: block; width: 100%; height: 100%; padding: 0; }
  .track-map-circuit { position: absolute; inset: 11px 8px 11px 8px; width: auto; height: auto; }
  .track-map-base, .track-map-done { stroke-width: 9; }
  .track-map-marker { r: 9px; stroke-width: 5; }
  .track-map-summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .track-map-toggle { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
  .track-map-toggle::before { display: none; }
  .track-map-toggle:hover { border-color: transparent; }
  .track-map-details { position: fixed; right: 12px; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; }
  /* Crossing into a new chapter, the button opens into a pill that names it, then tucks away again. */
  .linc-track-map { transition: opacity 0.25s, transform 0.25s var(--ease), width 0.45s var(--ease), border-radius 0.45s var(--ease); }
  .linc-track-map.is-announcing:not(.is-open) { width: min(236px, calc(100vw - 24px)); border-radius: 28px; }
  .is-announcing:not(.is-open) .track-map-circuit { inset: 11px auto 11px 8px; width: 40px; }
  .is-announcing:not(.is-open) .track-map-summary { left: 60px; right: 16px; top: 50%; width: auto; height: auto; overflow: hidden; clip-path: none; transform: translateY(-50%); white-space: nowrap; }
  .is-announcing:not(.is-open) .track-map-toggle { border-radius: 28px; }
}

/* ---------- Inner pages ---------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  background-image: linear-gradient(110deg, rgba(11, 11, 11, 0.95), rgba(11, 11, 11, 0.66)), var(--race-texture);
  background-position: center, right center; background-size: cover;
}
.page-hero .eyebrow { margin-bottom: clamp(16px, 2vw, 26px); }
.page-title { font-size: clamp(64px, 12vw, 216px); line-height: 0.9; letter-spacing: -0.045em; }
.page-intro { max-width: 46ch; margin-top: clamp(18px, 2.2vw, 30px); color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(22px, 2.6vw, 34px); }
.page-cover { position: relative; overflow: hidden; background: var(--panel); }
.page-cover picture { display: block; }
.page-cover img { width: 100%; }
.page-cover figcaption { padding: 12px var(--pad); color: var(--muted); font-size: var(--fs-small); background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.figure-small { max-width: 520px; }
.figure-small img { width: 100%; border: 1px solid var(--line); }
.figure-small figcaption { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); }
.subpage .section-head .headline { font-size: clamp(48px, 6.8vw, 124px); }
.subpage .section-head .headline-line:nth-child(2) { color: var(--orange); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Facts set large enough to read from the fence line. */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 0.42fr) 1fr; align-items: baseline; gap: 6px 24px; padding-block: clamp(14px, 1.6vw, 22px); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font: 500 var(--fs-label) / 1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { font: 400 clamp(24px, 2.7vw, 44px) / 1.04 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.facts dd .brand-number { --number-size: 0.74em; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; } }

.card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 3vw, 44px); border: 1px solid var(--line); background: var(--panel); }
.card h3 { font-size: clamp(28px, 3vw, 48px); line-height: 1.02; }
.card p:not(.eyebrow) { color: var(--soft); }
.card .btn, .card .text-link { margin-top: auto; }
@media (min-width: 1001px) { .card-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .card-trio { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .card-pair { grid-template-columns: 1fr; } }

/* For Sam */
/* His badge stands behind the tribute the way it does on the trailer: one tone, drawn in close on the 227. */
.for-sam {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding-block: clamp(64px, 8.5vw, 140px); border-top: 1px solid var(--line); scroll-margin-top: var(--header-h);
  background-color: var(--deep);
  background-image: linear-gradient(105deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.8)), var(--race-texture);
  background-position: center, right center; background-size: cover;
}
.for-sam-ghost { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.for-sam-ghost::before {
  content: ""; position: absolute; left: 68%; top: 52%; width: clamp(780px, 104vw, 1900px); aspect-ratio: 1760 / 1140; opacity: 0.1;
  background: center / 100% 100% no-repeat;
  transform: translate3d(-50%, -40%, 0) scale(1.06); transform-origin: 50% 40%;
}
/* The artwork is fetched when the section comes near (the script marks it). Without script, the page's own
   noscript style names the same files. */
.for-sam.is-near .for-sam-ghost::before {
  background-image: url("/assets/img/badge-ghost-1760.webp");
  background-image: image-set(url("/assets/img/badge-ghost-1760.avif") type("image/avif"), url("/assets/img/badge-ghost-1760.webp") type("image/webp"));
}
/* With motion on it draws closer and lifts a little for as long as the section is on screen. */
html.scroll-scenes-on .for-sam-ghost::before {
  transform: translate3d(-50%, calc(-40% + var(--ghost-rise, 0px)), 0) scale(var(--ghost-zoom, 1.06)); will-change: transform;
}
.for-sam-inner { display: flex; align-items: center; gap: clamp(24px, 4.5vw, 72px); }
.for-sam-inner > img { flex: 0 0 auto; width: clamp(104px, 13vw, 184px); }
.for-sam h2 { margin-block: clamp(10px, 1.2vw, 16px) clamp(14px, 1.6vw, 22px); font-size: clamp(52px, 7.4vw, 132px); letter-spacing: -0.035em; }
.for-sam p:not(.eyebrow) { max-width: 36ch; color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; }
.for-sam p:not(.eyebrow) + p { margin-top: 0.5em; color: var(--muted); font-size: var(--fs-body); }
.for-sam .text-link { margin-top: clamp(16px, 2vw, 24px); }
@media (max-width: 600px) {
  .for-sam-inner { flex-direction: column; align-items: flex-start; }
  .for-sam-ghost::before { left: 50%; top: 58%; width: 200vw; opacity: 0.085; }
  .for-sam.is-near .for-sam-ghost::before {
    background-image: url("/assets/img/badge-ghost-960.webp");
    background-image: image-set(url("/assets/img/badge-ghost-960.avif") type("image/avif"), url("/assets/img/badge-ghost-960.webp") type("image/webp"));
  }
}

.band {
  padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); background-color: var(--surface);
  background-image: linear-gradient(110deg, rgba(11, 11, 11, 0.95), rgba(11, 11, 11, 0.62)), var(--race-texture);
  background-position: center, right center; background-size: cover;
}
.band .headline { margin-block: clamp(12px, 1.6vw, 22px); font-size: clamp(56px, 8.6vw, 152px); }
.band .page-intro { margin-top: 0; }
.band .btn { margin-top: clamp(20px, 2.4vw, 32px); }

/* ---------- Rider page ---------- */
.rider-intro { --rider-frame-height: calc(100svh - var(--header-h)); position: relative; isolation: isolate; border-bottom: 1px solid var(--line); background: var(--surface); }
.rider-intro-frame { position: relative; display: flex; flex-direction: column; }
.rider-intro-photo { position: relative; overflow: hidden; background: var(--panel); }
.rider-intro-photo picture { display: block; }
.rider-intro-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rider-intro-caption { position: absolute; z-index: 2; right: var(--pad); top: 16px; padding: 6px 12px; border-left: 2px solid var(--orange); background: rgba(11, 11, 11, 0.88); color: var(--paper); font-size: var(--fs-small); }
.rider-intro-titleplate {
  order: -1; display: grid; grid-template-columns: minmax(0, auto) auto 1fr; align-items: end; gap: 14px 20px;
  padding: clamp(28px, 4vw, 56px) var(--pad);
  background-image: linear-gradient(90deg, rgba(11, 11, 11, 0.95), rgba(11, 11, 11, 0.72)), var(--race-texture); background-size: cover; background-position: center;
}
.rider-intro-titleplate .eyebrow { grid-column: 1 / -1; }
.rider-intro-name { font-size: clamp(60px, 9vw, 150px); line-height: 0.86; letter-spacing: -0.045em; }
.rider-intro-name > span { display: block; }
.rider-intro-name > span:last-child { color: var(--orange); }
.rider-intro-number { align-self: end; margin-bottom: 0.35em; padding: 9px 13px 10px; color: var(--ink); background: var(--orange); font-size: clamp(30px, 3.4vw, 52px); line-height: 0; transform: skew(-7deg); }
.rider-intro-number .brand-number { --number-size: 0.7em; }
.rider-intro-deck { grid-column: 1 / -1; color: var(--soft); font: 600 clamp(0.8125rem, 0.7rem + 0.3vw, 0.9375rem) / 1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.rider-action-title { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(20px, 5vh, 64px); font: 400 clamp(48px, 7.4vw, 132px) / 0.92 var(--display); letter-spacing: -0.04em; text-transform: uppercase; }
.rider-action-title span { display: block; }
.rider-action-title span:last-child { color: var(--orange); }
.rider-intro-photo--gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(75deg, rgba(8, 8, 8, 0.82), rgba(8, 8, 8, 0) 58%); pointer-events: none; }
.rider-intro-cue {
  display: flex; align-items: center; gap: 18px; min-height: 56px; padding: 14px var(--pad); border-top: 1px solid var(--line);
  background: var(--surface); font: 600 var(--fs-label) / 1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.rider-intro-cue .brand-arrow { color: var(--orange); font-size: 20px; }
.rider-intro-cue:hover { color: var(--orange); }
/* With motion on, the two photographs share one pinned frame and the second sweeps across the first. */
@media (prefers-reduced-motion: no-preference) {
  html.scroll-scenes-on .rider-intro.is-scroll-pinned { height: calc(var(--rider-frame-height) + 90svh); }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-frame { position: sticky; top: var(--header-h); display: block; height: var(--rider-frame-height); overflow: hidden; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo { position: absolute; inset: 0 0 56px; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo :is(picture, img) { width: 100%; height: 100%; aspect-ratio: auto; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--front img { transform: scale(var(--rider-front-scale, 1.04)); object-position: 34% 60%; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0) 62%), linear-gradient(0deg, rgba(8, 8, 8, 0.6), rgba(8, 8, 8, 0) 40%); pointer-events: none; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--gate { z-index: 1; clip-path: polygon(calc(109% - var(--rider-reveal, 0%)) 0, 110% 0, 110% 100%, calc(100% - var(--rider-reveal, 0%)) 100%); }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--gate img { object-position: 50% 42%; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-titleplate {
    position: absolute; z-index: 2; left: 0; bottom: 56px; width: min(64%, 900px); padding: clamp(24px, 4vh, 48px) var(--pad); background: none;
    opacity: var(--rider-title-opacity, 1); transform: translate3d(0, var(--rider-title-shift, 0px), 0);
  }
  html.scroll-scenes-on .is-scroll-pinned .rider-action-title { z-index: 3; bottom: calc(56px + clamp(20px, 5vh, 64px)); opacity: var(--rider-action-copy, 0); transform: translateY(calc((1 - var(--rider-action-copy, 0)) * 18px)); }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--front .rider-intro-caption { opacity: var(--rider-title-opacity, 1); }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-cue { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 56px; }
}
@media (max-width: 760px) {
  .rider-intro-photo img { aspect-ratio: 4 / 5; }
  .rider-intro-titleplate { grid-template-columns: minmax(0, auto) auto; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--front img { object-position: 50% 50%; }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--front::after { background: linear-gradient(0deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.8) 30%, rgba(8, 8, 8, 0) 58%); }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-photo--gate::after { background: linear-gradient(0deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0) 52%); }
  html.scroll-scenes-on .is-scroll-pinned .rider-intro-titleplate { width: 100%; padding-bottom: 18px; }
}
.rider-portrait { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rider-portrait-photo { position: relative; }
.rider-portrait-photo img { width: 100%; border: 1px solid var(--line); }
.rider-portrait-photo figcaption { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); }
.rider-portrait .facts { margin-top: clamp(28px, 3.4vw, 48px); }
.rider-work { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.rider-work figure img { width: 100%; border: 1px solid var(--line); }
.rider-work figcaption { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); }
.rider-detail { display: flex; align-items: center; gap: 18px; margin-top: clamp(26px, 3vw, 40px); padding-top: clamp(20px, 2.4vw, 30px); border-top: 1px solid var(--line); }
.rider-detail img { flex: 0 0 auto; width: clamp(96px, 12vw, 148px); aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.rider-detail figcaption { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 860px) {
  .rider-portrait { grid-template-columns: 1fr; }
  .rider-portrait-photo { max-width: 520px; }
  .rider-work { grid-template-columns: 1fr; }
  .rider-work figure { max-width: 320px; }
}

/* ---------- Trailer page ---------- */
.trailer-scene { background: var(--deep); }
.trailer-scene-visual { overflow: hidden; }
.trailer-scene-visual picture { display: block; }
.trailer-scene-visual img { width: 100%; max-height: calc(100svh - var(--header-h) - 120px); object-fit: cover; }
.trailer-scene-caption {
  padding-block: clamp(22px, 3vw, 44px); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, rgba(11, 11, 11, 0.95), rgba(11, 11, 11, 0.72)), var(--race-texture); background-size: cover; background-position: center, right center;
}
/* "The inTech stacker." holds one line from 761px up; on a phone the orange word drops to a second line. */
.trailer-scene-caption h1 { font-size: clamp(56px, 8.6vw, 164px); line-height: 0.9; letter-spacing: -0.045em; white-space: nowrap; }
.trailer-scene-caption h1 span { color: var(--orange); }
.trailer-showcase { padding: 18px 0 clamp(48px, 6vw, 88px); background: var(--deep); }
.trailer-wrap-details { scroll-margin-top: calc(var(--header-h) + 6px); border-block: 1px solid var(--line-strong); }
.trailer-wrap-details summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 16px 0;
  list-style: none; cursor: pointer; font: 400 clamp(1.375rem, 1rem + 1.2vw, 2.25rem) / 1 var(--display); text-transform: uppercase; letter-spacing: -0.02em;
}
.trailer-wrap-details summary::-webkit-details-marker { display: none; }
.trailer-wrap-details summary:hover { color: var(--orange); }
.trailer-summary-meta { display: flex; align-items: center; gap: 22px; color: var(--muted); font: 500 var(--fs-small) / 1.4 var(--body); text-transform: none; letter-spacing: 0; }
.trailer-summary-meta b { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--orange); color: var(--orange); font-size: 26px; font-weight: 400; transition: transform 0.25s var(--ease); }
.trailer-wrap-details[open] .trailer-summary-meta b { transform: rotate(45deg); }
.trailer-wrap-content { padding: 6px 0 28px; }
.trailer-legacy-anchor { position: absolute; top: 0; scroll-margin-top: calc(var(--header-h) + 6px); }
.trailer-view-navigation { display: flex; gap: 4px; margin-bottom: 26px; padding: 8px 0; border-block: 1px solid var(--line); }
.trailer-view-navigation a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-bottom: 2px solid transparent; font-size: var(--fs-small); font-weight: 600; }
.trailer-view-navigation a:hover { color: var(--orange); }
.trailer-view-navigation a[aria-current="true"] { color: var(--ink); background: var(--orange); }
.trailer-gallery { display: grid; gap: 34px; }
.trailer-elevation { background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 30px); }
.trailer-elevation figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; color: var(--paper); background: var(--panel); border-bottom: 1px solid var(--line); }
.trailer-elevation h3 { font-size: clamp(22px, 2.2vw, 34px); }
.trailer-inspect { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: var(--fs-small); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.trailer-inspect .brand-arrow { color: var(--orange); font-size: 18px; }
.trailer-elevation picture { display: block; }
.trailer-elevation img { width: 100%; max-height: 78svh; object-fit: contain; background: #fff; }
.trailer-dialog { width: min(1400px, 96vw); max-height: 94svh; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); background: var(--surface); color: var(--paper); }
.trailer-dialog::backdrop { background: rgba(8, 8, 8, 0.94); backdrop-filter: blur(5px); }
.trailer-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.trailer-dialog-bar .eyebrow { margin-bottom: 6px; }
.trailer-dialog-bar h2 { font-size: clamp(20px, 3vw, 32px); line-height: 1.1; }
.trailer-close, .trailer-zoom { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; font-size: var(--fs-small); font-weight: 600; }
.trailer-close span { font-size: 26px; line-height: 1; }
.trailer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.trailer-dialog-views { display: flex; flex-wrap: wrap; gap: 4px; }
.trailer-dialog-views button { min-height: 44px; padding: 10px 14px; border: 1px solid transparent; font-size: var(--fs-small); font-weight: 600; }
.trailer-dialog-views button[aria-pressed="true"] { color: var(--ink); background: var(--orange); }
.trailer-dialog-views button:hover, .trailer-zoom:hover, .trailer-close:hover { border-color: currentColor; color: var(--orange); }
.trailer-dialog-views button[aria-pressed="true"]:hover { color: var(--ink); }
.trailer-zoom { border: 1px solid var(--line); }
.trailer-zoom[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); }
.trailer-zoom span { font-size: 18px; }
.trailer-dialog :focus-visible, .trailer-showcase a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.trailer-inspection { height: min(62svh, 700px); overflow: auto; overscroll-behavior: contain; outline-offset: -4px; background: #fff; }
.trailer-inspection img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
.trailer-inspection.is-zoomed img { width: auto; max-width: none; height: auto; min-width: 100%; min-height: 100%; }
.trailer-dialog-caption { padding: 12px 20px; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 760px) {
  .trailer-scene-caption h1 { font-size: clamp(50px, 15.5vw, 92px); }
  .trailer-scene-caption h1 span { display: block; }
  .trailer-scene-visual img { max-height: none; }
  .trailer-view-navigation a { flex: 1; padding: 10px 6px; text-align: center; }
  .trailer-elevation figcaption { padding: 10px 14px; }
  .trailer-summary-meta > span { display: none; }
}
@media (max-width: 540px) {
  .trailer-toolbar { padding: 10px 12px; gap: 8px; }
  .trailer-dialog-views { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .trailer-dialog-views button { padding: 10px 2px; font-size: var(--fs-label); }
  .trailer-inspection { height: 55svh; }
  .trailer-inspection:not(.is-zoomed) { height: auto; }
  .trailer-inspection:not(.is-zoomed) img { height: auto; max-height: 55svh; }
}

/* ---------- Join the team ---------- */
.join-hero {
  overflow: hidden; border-bottom: 1px solid var(--line); background-color: var(--surface);
  background-image: linear-gradient(110deg, rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0.42)), var(--race-texture); background-size: cover;
}
.join-hero-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; align-items: center; gap: clamp(30px, 4vw, 60px); padding-block: clamp(44px, 6vw, 88px); }
.join-hero h1 { margin: 22px 0; font-size: clamp(64px, 8.4vw, 136px); line-height: 0.86; letter-spacing: -0.045em; }
.join-hero h1 > span { color: var(--orange); white-space: nowrap; }
.join-hero-deck { max-width: 30ch; color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; }
.join-hero .btn { margin-top: 26px; }
.join-hero-photo { position: relative; min-width: 0; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: 13px 13px 0 var(--orange); }
.join-hero-photo picture { display: block; overflow: hidden; }
.join-hero-photo img { width: 100%; height: clamp(360px, 42vw, 600px); object-fit: cover; object-position: 53% 50%; }
.join-hero-photo figcaption { padding: 12px 16px; background: var(--surface); color: var(--paper); font-size: var(--fs-small); font-weight: 500; }
.join-application { padding-block: var(--section); scroll-margin-top: var(--header-h); }
.join-application-grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.4fr); align-items: start; gap: clamp(35px, 7vw, 110px); }
.join-application-intro h2 { margin: 18px 0 24px; font-size: clamp(60px, 6.8vw, 108px); line-height: 0.88; letter-spacing: -0.035em; }
.join-application-intro h2 span { color: var(--orange); }
.join-application-intro > p:not(.eyebrow) { max-width: 34ch; color: var(--soft); }
.join-route-notes { margin-top: 30px; border-top: 1px solid var(--line); }
.join-route-notes > div { padding-block: 20px; border-bottom: 1px solid var(--line); }
.join-route-notes h3 { margin-bottom: 8px; font-size: 1.75rem; }
.join-route-notes p { max-width: 36ch; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.join-application-intro .join-contact-note { margin-top: 26px; font-size: 1rem; }
.join-contact-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.join-form-panel { min-width: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.join-form { position: relative; padding: clamp(20px, 3vw, 42px); border: 1px solid var(--line); border-top: 4px solid var(--orange); background: #131313; }
.join-form-note { margin-bottom: 26px; color: var(--muted); font-size: var(--fs-small); }
.join-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.join-form legend, .join-field > label { display: block; margin-bottom: 9px; padding: 0; color: var(--paper); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.join-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.join-type-option { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 14px; border: 1px solid #666057; background: var(--surface); cursor: pointer; }
.join-type-option:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 -3px 0 var(--orange); background: #27170f; }
.join-type-option strong { display: block; margin-bottom: 4px; font: 400 clamp(22px, 2vw, 31px) / 1.1 var(--display); text-transform: uppercase; }
.join-type-option small { color: var(--muted); font-size: var(--fs-small); }
.join-type-option input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }
.join-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; margin-top: 26px; }
.join-field { min-width: 0; }
.join-field--wide { grid-column: 1 / -1; }
.join-optional { margin-left: 6px; color: var(--muted); font-size: var(--fs-label); font-weight: 500; }
.join-field input:not([type="file"]), .join-field textarea {
  display: block; width: 100%; min-width: 0; min-height: 50px; margin: 0; padding: 12px 13px;
  border: 1px solid #666057; border-radius: 0; background: #090909; color: var(--paper); font: 400 1rem / 1.5 var(--body); caret-color: var(--orange);
}
.join-field textarea { min-height: 168px; resize: vertical; }
.join-field input::placeholder { color: #aaa39a; opacity: 1; }
.join-field :is(input, textarea):focus-visible, .join-checkbox input:focus-visible, .join-type-option input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.join-type-option:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.join-form [aria-invalid="true"] { border-color: #ff9b79 !important; }
.join-field-help { margin: -3px 0 10px; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.join-field input + .join-field-help { margin: 8px 0 0; }
.join-form .join-guardian-fieldset { margin-top: 30px; padding-block: 24px; border-block: 1px solid var(--line); }
.join-checkbox { display: flex; align-items: flex-start; gap: 12px; padding-block: 6px; color: var(--soft); font-size: 0.9375rem; line-height: 1.55; cursor: pointer; }
.join-checkbox input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); }
.join-guardian-details { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.join-guardian-details .join-fields { margin-top: 16px; }
.join-upload-field { margin-top: 28px; }
.join-upload { padding: 16px; border: 1px dashed #877366; background: var(--surface); }
.join-upload:focus-within { border-color: var(--orange); }
.join-upload input { display: block; width: 100%; min-width: 0; overflow: hidden; color: var(--paper); font-size: var(--fs-small); }
.join-upload input::file-selector-button { min-height: 44px; margin-right: 12px; padding: 10px 14px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font: 400 0.9375rem / 1 var(--display); text-transform: uppercase; cursor: pointer; }
.join-upload input:hover::file-selector-button { background: var(--orange); }
.join-file-details { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); overflow-wrap: anywhere; }
.join-consent { margin-top: 24px; }
.join-submit-row { margin-top: 28px; }
.join-submit { width: 100%; min-height: 60px; }
.join-submit:disabled { cursor: wait; opacity: 0.7; }
.join-submit-status { min-height: 1.5em; margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.join-field-error { margin-top: 8px; color: #ffb298; font-size: var(--fs-small); line-height: 1.5; }
.join-alert { margin-bottom: 24px; padding: 20px; border: 1px solid #ff9b79; border-left-width: 4px; background: #291711; font-size: 0.9375rem; line-height: 1.6; }
.join-alert-title { margin-bottom: 6px; font-weight: 600; }
.join-alert ul { margin: 10px 0 0; padding-left: 18px; }
.join-alert ul:empty { display: none; }
.join-alert a { text-decoration: underline; text-underline-offset: 3px; }
.join-alert:focus { outline: 2px solid var(--paper); outline-offset: 4px; }
.join-success { padding: clamp(24px, 4vw, 50px); border: 1px solid var(--orange); background: #141414; }
.join-success h3 { margin: 20px 0; font-size: clamp(48px, 5vw, 80px); line-height: 0.92; }
.join-success h3 span { color: var(--orange); }
.join-success > p:not(.eyebrow) { color: var(--soft); }
.join-success .join-reference { margin-block: 18px; color: var(--paper); font: 500 var(--fs-small) / 1.6 var(--mono); overflow-wrap: anywhere; }
.join-success .btn { margin-top: 24px; }
.join-sr-only, .join-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1100px) { .join-application-intro { position: sticky; top: calc(var(--header-h) + 36px); } }
@media (max-width: 1000px) {
  .join-application-grid { grid-template-columns: 1fr; gap: 34px; }
  .join-application-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .join-application-intro > :is(.eyebrow, h2, p) { grid-column: 1; }
  .join-route-notes { grid-column: 2; grid-row: 1 / 5; align-self: center; margin-top: 0; }
}
@media (max-width: 700px) {
  .join-hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .join-hero h1 { font-size: clamp(60px, 18vw, 96px); }
  .join-hero-photo { margin-right: 8px; box-shadow: 8px 8px 0 var(--orange); }
  .join-hero-photo img { height: clamp(300px, 86vw, 440px); }
  .join-application-intro { display: block; }
  .join-route-notes { margin-top: 24px; }
  .join-form { padding: 22px 16px; }
  .join-fields { grid-template-columns: 1fr; }
  .join-type-options { grid-template-columns: 1fr; }
  .join-type-option { min-height: 76px; }
}

/* ---------- Motion off: everything is simply there ---------- */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] :is(.headline-word, .rise, .race-strip-track, .gate-cue .brand-arrow) { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
html[data-motion="off"] [data-scroll-scene] :is(picture, img, .film-media) { clip-path: none !important; transform: none !important; }
html[data-motion="off"] [data-scroll-scene="crew"] > * { transform: none !important; }
[data-scroll-scene]:focus-within :is(picture, img, .film-media) { clip-path: none !important; transform: none !important; }
@keyframes gate-cue-motion {
  0%, 65%, 100% { transform: translateY(0) rotate(var(--arrow-turn)); }
  35% { transform: translateY(4px) rotate(var(--arrow-turn)); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .gate-cue .brand-arrow { animation: gate-cue-motion 2.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .race-strip-track { animation: none; }
  .headline-word, .rise { transform: none !important; transition: none !important; opacity: 1 !important; }
  [data-scroll-scene] :is(picture, img, .film-media) { clip-path: none !important; transform: none !important; }
  [data-scroll-scene="crew"] > * { transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}
