/* VANHAUEN RACING / 903 alternative prototype
   Layout: full-bleed cinematic bands over carbon; timing-screen data layer in mono;
   tall condensed caps display type; livery yellow as the single accent. Dark only. */

/* Fonts, served from this site (no third-party requests). SIL Open Font License 1.1;
   licences in fonts/LICENSES/. Latin and Latin Extended subsets, as Google Fonts serves them. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Extra Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/saira-extra-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira Extra Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/saira-extra-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Extra Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/saira-extra-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira Extra Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/saira-extra-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arial scaled to the web fonts' widths: the swap from fallback to web font no longer reflows text */
@font-face { font-family: "Saira fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700; size-adjust: 57.8%; }
@font-face { font-family: "Saira fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 600; size-adjust: 57.8%; }
@font-face { font-family: "Archivo fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 600; size-adjust: 97.9%; }

:root {
  --bg: #0C0B09;        /* carbon, warm bias */
  --bg-2: #141311;      /* raised surface */
  --bg-3: #1B1915;      /* panel */
  --ink: #F2EFE7;       /* warm white */
  --muted: #A69F90;     /* warm grey */
  --faint: #8A8273;     /* captions, fine print (about 5:1 on --bg) */
  --line: #2B2721;      /* hairline */
  --yellow: #FFD400;    /* livery yellow, UI accent only */
  --chart-1: #B68E07;   /* validated chart gold (marks) */
  --chart-2: #9C5630;   /* validated sienna (earlier benchmark) */
  --display: "Saira Extra Condensed", "Saira fallback", "Arial Narrow", sans-serif;
  --body: "Archivo", "Archivo fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 5vw, 76px);
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
/* smooth scrolling only for in-page clicks: on arrival at a #fragment Safari cuts a smooth scroll short */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}
/* paint the band above the sticky header on notched phones */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 60;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; } /* WebP wrappers (tools/add-srcset.py) leave the layout untouched */
picture > source { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
p + p { margin-top: 1em; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

::selection { background: var(--yellow); color: #171405; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 99;
  background: var(--yellow); color: #171405;
  padding: 10px 18px; font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* side gutter, safe-area aware */
.wrap {
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

/* ---------- mono data language ---------- */
.data, .chip, .tick-label, nav a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.data { color: var(--muted); }
.data b { color: var(--ink); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

.sector-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-bottom: 34px;
}
.sector-head .data { flex-shrink: 0; font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sector-head .data::before {
  content: ""; display: inline-block;
  width: 10px; height: 10px; margin-right: 10px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
  vertical-align: -1px;
}
.sector-head .rule { flex: 1; min-width: 40px; border-top: 1px dashed var(--line); align-self: center; }
.sector-head .data.right { color: var(--muted); font-weight: 400; font-size: 15px; flex-shrink: 1; min-width: 0; }
.sector-head .data.right::before { content: none; }
.sector-head a.data.right { color: var(--yellow); text-decoration: underline; text-decoration-color: rgba(255,212,0,.45); text-underline-offset: 3px; }
.sector-head a.data.right:hover { text-decoration-color: var(--yellow); }

.chip {
  display: inline-block;
  padding: 5px 9px 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.chip.win { border-color: var(--yellow); color: var(--yellow); }
.chip.flag { border-color: #7a4a3a; color: #c98a6e; }
.chip.dim { color: var(--faint); }
/* workshop status chips, kept apart from race-result colours */
.chip.wait { border-color: #6b5e1a; color: #d9b640; }
.chip.open { border-color: #3f5a6b; color: #8fb9d0; }
a.chip { color: var(--yellow); border-style: solid; }
a.chip:hover { border-color: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-num {
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1;
  color: #171405; background: var(--yellow);
  padding: 2px 8px 4px;
}
.brand-word { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--ink); }
.brand-word span { color: var(--faint); }

.site-header nav { display: flex; gap: 26px; margin-left: auto; }
.site-header nav a { color: var(--muted); padding: 8px 0; position: relative; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--yellow); }
.site-header nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 14px; height: 2px; background: var(--yellow);
}
.menu-toggle { display: none; }

/* in-page chapter bar (story, machine, racing, series) */
.chapter-nav {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.chapter-nav::-webkit-scrollbar { display: none; }
.chapter-nav a {
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--muted); padding: 15px 14px 12px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.chapter-nav a:hover { color: var(--ink); }
.chapter-nav a.current { color: var(--yellow); border-bottom-color: var(--yellow); }
.chapter-nav .data { margin-left: auto; align-self: center; padding-left: 20px; color: var(--faint); white-space: nowrap; }
/* adds to the page's scroll-padding (header + 12px): a section lands just under the chapter bar */
.anchor { scroll-margin-top: 52px; }

/* scroll progress */
.progress {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; z-index: 55;
  height: 2px; width: 0; background: var(--yellow);
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
}
.js .hero-media img { animation: heroDrift 26s ease-out forwards; }
@keyframes heroDrift {
  from { transform: scale(1.07) translateX(1.5%); }
  to   { transform: scale(1); translate: none; }
}
@media (prefers-reduced-motion: reduce) { .js .hero-media img { animation: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,9,.86) 0%, rgba(12,11,9,.28) 34%, rgba(12,11,9,.22) 62%, rgba(12,11,9,.94) 100%),
    linear-gradient(90deg, rgba(12,11,9,.55) 0%, rgba(12,11,9,0) 45%);
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: min(86svh, 880px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 90px; padding-bottom: 0;
}
.hero-eyebrow { color: var(--muted); margin-bottom: 22px; }
.hero-eyebrow b { color: var(--yellow); font-weight: 500; }
.hero h1 {
  font-size: clamp(68px, 13.5vw, 196px);
  max-width: 11ch;
}
.hero h1 .accent { color: var(--yellow); }
.hero-sub {
  max-width: 54ch; color: #D8D3C6;
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 26px 0 40px;
}
.hero-ghost {
  position: absolute; right: var(--pad); top: 84px; z-index: 0;
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(90px, 16vw, 230px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,239,231,.28);
  pointer-events: none;
}
.hero-strip {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(242,239,231,.18);
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  padding-top: 16px; padding-bottom: 18px;
  background: linear-gradient(180deg, rgba(12,11,9,.1), rgba(12,11,9,.55));
}
.hero-strip .data { color: #C9C3B4; }
.hero-strip .data b { color: var(--ink); }
.hero-scroll { color: var(--yellow); margin-left: auto; }

/* ---------- stat band ---------- */
.stat-band {
  background: var(--yellow);
  color: #171405;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 26px; padding-bottom: 28px;
}
.stat-band > div { border-left: 1px solid rgba(23,20,5,.25); padding-left: 22px; min-width: 0; }
.stat-band > div:first-child { border-left: 0; padding-left: 0; }
.stat-band .data { color: #4b4007; }
.stat-band strong {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 4.6vw, 62px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-band small { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.stat-band .note { font-size: 12.5px; color: #5d510e; font-family: var(--mono); letter-spacing: .05em; display: block; margin-top: 6px; text-transform: none; }

/* ---------- what's new (home) ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li {
  display: grid; grid-template-columns: 140px minmax(0,1fr) auto; gap: 10px 22px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.news .data { color: var(--yellow); }
.news p { font-size: 16px; color: var(--muted); }
.news p b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- keep exploring (page end) ---------- */
.next-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.next-card {
  display: grid; grid-template-columns: 200px minmax(0,1fr);
  background: var(--bg-2); border: 1px solid var(--line); min-width: 0;
}
.next-card img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.next-card > div { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.next-card .data { color: var(--faint); }
.next-card h3 { font-size: 36px; font-weight: 600; }
.next-card .go { margin-top: 4px; }
.next-card:hover h3 { color: var(--yellow); }
@media (max-width: 800px) {
  .next-cards { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: 130px minmax(0,1fr); }
  .next-card h3 { font-size: 28px; }
}

/* ---------- disclosure (details) ---------- */
details.fold { border: 1px solid var(--line); background: var(--bg-2); }
details.fold > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 2.4vw, 24px);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-family: var(--mono); font-size: 20px; line-height: 1; color: var(--yellow); flex-shrink: 0; }
details.fold[open] > summary::after { content: "\2212"; }
details.fold > summary:hover { color: var(--yellow); }
details.fold > .fold-body { padding: 0 clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px); }
details.note > summary { cursor: pointer; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
details.note > summary:hover { color: var(--yellow); }

/* ---------- generic section ---------- */
.section { padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(52px, 7vw, 92px); }
.section.tight { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.section-title { font-size: clamp(46px, 6.5vw, 104px); margin-bottom: 18px; }
.section-title .accent { color: inherit; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.split .sticky { position: sticky; top: calc(var(--header-h) + 28px); }

/* ---------- chart panel ---------- */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 34px);
}
.panel .data { display: block; margin-bottom: 14px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--mono); letter-spacing: .06em; }
.chart .ax { fill: var(--muted); font-size: 14px; }
.chart .val { fill: var(--ink); font-size: 17px; font-weight: 500; }
.chart .era { fill: var(--muted); font-size: 12px; letter-spacing: .2em; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .trace { stroke: var(--chart-1); stroke-width: 2; fill: none; }
.chart .dot { fill: var(--chart-1); stroke: var(--bg-2); stroke-width: 2; }
.chart .ring { fill: none; stroke: var(--chart-1); stroke-width: 1.5; }
.chart .band { fill: rgba(242,239,231,.025); }
.js .trace.draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js .in .trace.draw { animation: traceDraw 1.6s ease-out forwards; }
@keyframes traceDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .trace.draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .in .trace.draw { animation: none; }
}
.chart-foot { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* bar rows (seconds found) */
.bars { display: grid; gap: 18px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 14px; align-items: center; }
.bar-row .tick-label { color: var(--ink); line-height: 1.5; }
.bar-row .tick-label small { display: block; color: var(--faint); font-size: 12px; letter-spacing: .06em; }
.bar-track { position: relative; height: 30px; background: var(--bg-3); min-width: 0; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: var(--chart-1);
  border-radius: 0 4px 4px 0;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.js .reveal:not(.in) .bar-fill { width: 0; }
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
  .js .reveal:not(.in) .bar-fill { width: var(--w); }
}
.bar-val {
  position: absolute; left: calc(var(--w) + 10px); top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap;
}
.bar-val.in-bar { left: calc(var(--w) - 10px); transform: translate(-100%, -50%); color: #171405; }
.bar-fill.you { background: var(--yellow); }

/* ---------- feature (latest race) ---------- */
.feature {
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: var(--bg-2); border: 1px solid var(--line);
}
.feature-media { position: relative; min-height: 420px; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.feature:hover .feature-media img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .feature-media img { transition: none; } a.feature:hover .feature-media img { transform: none; } }
.feature-media .chip { position: absolute; left: 18px; top: 18px; background: var(--bg); }
.feature-copy { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.feature-copy h3 { font-size: clamp(42px, 4.8vw, 74px); }
.feature-copy p { color: var(--muted); font-size: 16px; }
.feature-data {
  display: flex; flex-wrap: wrap; gap: 26px;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto;
}
.feature-data span { display: block; }
.feature-data .data { margin-bottom: 4px; }
.feature-data strong { font-family: var(--display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.go { color: var(--yellow); font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; text-decoration-color: rgba(255,212,0,.45); text-underline-offset: 4px; }
.go:hover { text-decoration-color: var(--yellow); }

/* ---------- season tracker ---------- */
.tracker { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; }
.round {
  color: inherit;
  background: var(--bg-2); border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.round.raced { border-top-color: var(--yellow); }
.round .data { color: var(--faint); }
.round h3 { font-size: 30px; font-weight: 600; }
.round .laptime { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.round .laptime span { color: var(--faint); }
.round .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.round p { font-size: 14px; color: var(--muted); line-height: 1.55; }
a.round:hover { border-color: var(--muted); }
a.round:hover h3 { color: var(--yellow); }

/* ---------- chapters strip (home) ---------- */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chapter-card { position: relative; display: block; border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.chapter-card img { height: 200px; width: 100%; object-fit: cover; filter: saturate(.9); }
.chapter-card > div { padding: 18px; }
.chapter-card .data { color: var(--faint); display: block; margin-bottom: 8px; }
.chapter-card h3 { font-size: 32px; font-weight: 600; }
.chapter-card p { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.chapter-card:hover h3 { color: var(--yellow); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.team-photo { position: relative; }
.team-photo .chip { position: absolute; left: 16px; bottom: 16px; background: var(--bg); }
.roles { margin-top: 26px; border-top: 1px solid var(--line); }
.roles > div {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.roles strong { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.roles em { font-style: normal; display: block; color: var(--muted); font-size: 14px; }
.roles .data { color: var(--faint); text-align: right; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-top: 52px; padding-bottom: 40px;
}
.footer-grid h2 { font-size: clamp(44px, 5vw, 72px); }
.footer-grid .data { margin-bottom: 12px; color: var(--yellow); }
.footer-grid h2 .accent { color: var(--yellow); }
.footer-links a {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-links a:hover { color: var(--yellow); }
.footer-legal {
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding-top: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- masthead (inner pages) ---------- */
.masthead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.masthead .hero-media img { object-position: 50% 55%; }
.masthead-inner {
  position: relative; z-index: 1;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 80px; padding-bottom: 28px;
}
.masthead h1 { font-size: clamp(60px, 10vw, 150px); }
.masthead .hero-sub { margin-bottom: 26px; }

/* ---------- data plate (car) ---------- */
.plate { border: 1px solid var(--line); background: var(--bg-2); }
.plate-section { border-top: 1px solid var(--line); }
.plate-section:first-child { border-top: 0; }
.plate-section > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 200px minmax(0,1fr) auto; gap: 20px; align-items: baseline;
  padding: clamp(16px, 2.6vw, 24px) clamp(18px, 3vw, 30px);
}
.plate-section > summary::-webkit-details-marker { display: none; }
.plate-section > summary::after { content: "+"; font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--yellow); }
.plate-section[open] > summary::after { content: "\2212"; }
.plate-section > summary:hover h3 { color: var(--yellow); }
.plate-section h3 { font-size: 28px; font-weight: 600; color: var(--ink); }
.plate-section h3 small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); margin-top: 6px; font-weight: 500; }
.plate-section .gist { font-size: 15px; color: var(--muted); }
.plate-section > dl { padding: 0 clamp(18px, 3vw, 30px) clamp(18px, 3vw, 28px); }
.plate dl { display: grid; gap: 0; }
.plate dl > div { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0,1fr); gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.plate dl > div:last-child { border-bottom: 0; }
.plate dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.plate dd { font-size: 15.5px; line-height: 1.6; color: #D8D3C6; }
.plate dd b { color: var(--ink); font-weight: 600; }

/* status board (car) */
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.job { border: 1px solid var(--line); background: var(--bg-2); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.job h3 { font-size: 24px; font-weight: 600; }
.job p { font-size: 15px; color: var(--muted); }
.job p b { color: var(--ink); font-weight: 600; }
.job .chip { align-self: flex-start; }
.job .stamp { margin-top: auto; color: var(--faint); }

/* records table */
.records-table { width: 100%; border-collapse: collapse; }
.records-table th {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line);
}
.records-table td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: baseline; }
.records-table .circuit { font-weight: 600; color: var(--ink); white-space: nowrap; }
.records-table .circuit a { border-bottom: 1px dashed var(--line); }
.records-table .circuit a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.records-table .layout { color: var(--muted); }
.records-table .time { font-family: var(--mono); font-size: 16px; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.records-table .when { color: var(--faint); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }

/* ---------- story timeline ---------- */
.era-block { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.era-year {
  font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5vw, 68px); line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--muted);
  position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
}
.era-body h2 { font-size: clamp(36px, 4.5vw, 60px); margin-bottom: 18px; }
.era-body p { color: var(--muted); max-width: 68ch; font-size: 16px; }
.era-body p b { color: var(--ink); font-weight: 600; }
.era-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 26px; }
.era-figs figure { min-width: 0; }
.era-figs img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.era-figs figcaption { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--faint); margin-top: 8px; text-transform: uppercase; }
.era-figs.pair { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.era-figs.pair img { aspect-ratio: 3/4; }
.era-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- racing page ---------- */
/* one row per round: number | circuit and date | teaser | result, with films on a quiet line beneath.
   Fixed columns so the text blocks line up down the page; a raced row is one link to its weekend page. */
.race-row {
  position: relative;
  display: grid; grid-template-columns: 64px 270px minmax(0,1fr) 230px;
  gap: 4px 28px; align-items: start;
  padding: 22px 16px; margin: 0 -16px;
  border-top: 1px solid var(--line);
}
.rows > .race-row:last-child { border-bottom: 1px solid var(--line); }
.race-row .rno { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--faint); line-height: 1; padding-top: 2px; }
.race-row.raced .rno { color: var(--yellow); }
.race-meta h3 { font-size: 26px; font-weight: 600; line-height: 1; }
.race-meta h3 a { color: inherit; }
.race-meta small { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--faint); font-weight: 500; margin-top: 6px; text-transform: uppercase; }
.race-row .teaser { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 58ch; padding-top: 3px; }
.race-row .result { display: grid; gap: 8px; align-content: start; justify-items: start; padding-top: 2px; }
.race-row .laptime { font-family: var(--mono); font-size: 18px; color: var(--ink); line-height: 1; }
.race-row .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.race-row .go { font-size: 14px; margin-top: 2px; }
.race-row .row-films { grid-column: 3 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; position: relative; z-index: 1; }
.race-row .row-films .data { color: var(--faint); margin-right: 6px; }
.race-row .row-films .film-link { min-height: 40px; padding: 6px 12px 5px; font-size: 12px; color: var(--muted); background: transparent; border-color: var(--line); }
.race-row .row-films .film-link::before { border-left-color: var(--faint); border-top-width: 4px; border-bottom-width: 4px; border-left-width: 6px; }
.race-row .row-films .film-link:hover { color: var(--yellow); border-color: var(--yellow); }
.race-row .row-films .film-link:hover::before { border-left-color: var(--yellow); }
/* the whole raced row is the link to its weekend */
.race-row.linked .race-meta h3 a::after { content: ""; position: absolute; inset: 0; }
.race-row.linked:hover { background: var(--bg-2); }
.race-row.linked:hover .race-meta h3 { color: var(--yellow); }
.race-row.linked:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.race-row.linked .race-meta h3 a:focus-visible { outline: none; }
.race-row.linked:focus-within { outline: 2px solid var(--yellow); outline-offset: -2px; }
.season-block { margin-top: 0; padding-top: 0; }
.season-block.section.tight { padding-top: 0; padding-bottom: clamp(36px, 5vw, 56px); }
#s2026.section { padding-bottom: clamp(36px, 5vw, 56px); }
.season-block .lede { margin-bottom: 14px; }
details.season-story { margin: 0 0 22px; max-width: 1100px; }
details.season-story .fold-body p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 72ch; }
details.season-story .fold-body p + p { margin-top: 1em; }
.season-link { color: var(--yellow); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,212,0,.45); text-underline-offset: 3px; }

/* ---------- pull quote (story) ---------- */
.pullquote {
  border-left: 3px solid var(--yellow);
  padding: 6px 0 6px clamp(18px, 3vw, 30px);
  margin: 30px 0 4px; max-width: 780px;
}
.pullquote p {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.04; color: var(--ink);
  text-wrap: balance; max-width: none;
}
.pullquote cite {
  display: block; margin-top: 14px; font-style: normal;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- films ---------- */
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play-badge span {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(12,11,9,.72); border: 1px solid rgba(242,239,231,.4);
  display: grid; place-items: center; transition: transform .3s ease, background .3s ease;
}
.play-badge span::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 19px solid var(--yellow);
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
a.feature:hover .play-badge span { background: rgba(12,11,9,.92); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { a.feature:hover .play-badge span { transform: none; } }

.films { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.film-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--bg-2); border: 1px solid var(--line);
  padding: 5px 11px 4px; white-space: nowrap;
}
.film-link::before {
  content: ""; width: 0; height: 0;
  border-left: 8px solid var(--yellow); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.film-link:hover { color: var(--yellow); border-color: var(--yellow); }

.film-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,4,3,.92);
  display: grid; place-items: center;
  padding: clamp(10px, 4vw, 48px);
}
.film-box { width: min(1100px, 100%); }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.film-head h2 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.film-head h2 b { color: var(--ink); font-weight: 500; }
.film-close {
  background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px;
}
.film-close:hover { border-color: var(--yellow); color: var(--yellow); }
.film-box .frame { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.film-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- arithmetic: pulley ledger & fact strip (car) ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px dashed var(--line); vertical-align: baseline; }
.ledger thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px solid var(--line); font-weight: 500;
}
.ledger thead th small { display: block; font-size: 11px; letter-spacing: .1em; margin-top: 3px; }
.ledger tbody th { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ledger td { font-family: var(--mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .hot { color: var(--yellow); }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 0; }

/* procurement / build log */
.log { display: grid; gap: 0; margin: 0; }
.log > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.log > div:last-child { border-bottom: 0; }
.log dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--yellow); padding-top: 2px; text-transform: uppercase; }
.log dd { font-size: 15px; line-height: 1.6; color: #D8D3C6; }
.log dd b { color: var(--ink); font-weight: 600; }
@media (max-width: 540px) {
  .log > div { grid-template-columns: 1fr; gap: 2px; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
.fact { border: 1px solid var(--line); background: var(--bg-2); padding: 18px; min-width: 0; }
.fact .data { display: block; margin-bottom: 10px; color: var(--yellow); }
.fact p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.fact p b { color: var(--ink); font-weight: 600; }

/* ---------- weekend pages ---------- */
.site-header nav a.here { color: var(--yellow); }
.site-header nav a.here::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 14px; height: 2px; background: var(--yellow);
}
.timing {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--line); background: var(--bg-2);
}
.timing > div { padding: 16px 18px 18px; border-left: 1px solid var(--line); min-width: 0; }
.timing > div:first-child { border-left: 0; }
.timing .data { display: block; margin-bottom: 6px; color: var(--faint); }
.timing strong { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; display: block; }
.timing .wide { grid-column: span 2; }
.timing .lap strong { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--yellow); line-height: 1; font-variant-numeric: tabular-nums; }
.timing .lap .note { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-top: 8px; line-height: 1.5; }
.timing .res .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.timing > div:nth-child(5) { border-left: 0; }
.timing > div:nth-child(n+5) { border-top: 1px solid var(--line); }

.report-body { max-width: 68ch; }
.report-body p { color: #D8D3C6; font-size: 16.5px; line-height: 1.7; }
.report-body p + p { margin-top: 1.1em; }
.report-body h3 { font-size: 30px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.report-body strong { color: var(--ink); font-weight: 600; }
.report-body a { color: var(--yellow); border-bottom: 1px dashed var(--line); }
.report-body a:hover { border-bottom-color: var(--yellow); }
.sources { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.sources a { font-weight: 600; color: var(--yellow); border: 0; text-decoration: underline; text-decoration-color: rgba(255,212,0,.45); text-underline-offset: 3px; }
.films.more { justify-content: flex-start; align-items: center; gap: 8px; margin-top: 14px; }
.films.more .data { margin-right: 8px; }
.film-note { max-width: 68ch; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 14px; }
.gallery figure { min-width: 0; }
.gallery .shot { display: block; position: relative; overflow: hidden; background: var(--bg-3); }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s ease; }
.gallery .shot:hover img { transform: scale(1.03); }
.gallery figure.map img { object-fit: contain; background: #000; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.gallery .credit { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery .shot:hover img { transform: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,4,3,.95);
  display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 12px;
  padding: clamp(10px, 3vw, 32px);
}
.lightbox-head, .lightbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox-head .data { color: var(--muted); }
.lightbox-stage { display: grid; place-items: center; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-foot p { font-size: 14px; color: #D8D3C6; max-width: 72ch; line-height: 1.5; }
.lightbox button {
  background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 16px; white-space: nowrap;
}
.lightbox button:hover { border-color: var(--yellow); color: var(--yellow); }
.lightbox .nav { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- latest (news feed) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 11px 14px 10px;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.feed { display: grid; gap: 14px; }
.feed .sector-head { margin: 26px 0 6px; }
.feed .sector-head:first-child { margin-top: 0; }
.entry { display: grid; grid-template-columns: 280px minmax(0,1fr); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.entry img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.entry > div { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.entry .data { color: var(--faint); }
.entry .data b { color: var(--yellow); font-weight: 500; }
.entry h3 { font-size: 32px; font-weight: 600; }
.entry > div > p { font-size: 15.5px; color: var(--muted); }
.entry .full { display: none; }
.entry.open .full { display: block; }
.entry .full p { color: #D8D3C6; font-size: 15px; line-height: 1.65; }
.entry .full a { color: var(--yellow); border-bottom: 1px dashed var(--line); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; padding-top: 10px; }
.entry-actions button.go { background: none; border: 0; padding: 0; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.person { border: 1px solid var(--line); background: var(--bg-2); min-width: 0; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.person > div { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.person h3 { font-size: 30px; font-weight: 600; }
.person .data { display: block; margin: 6px 0 12px; color: var(--faint); }
.person p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.person .go { display: inline-block; margin-top: auto; padding-top: 16px; }
.thanks { border-left: 3px solid var(--yellow); padding: 4px 0 4px clamp(18px, 3vw, 30px); max-width: 72ch; }
.thanks p { color: #D8D3C6; font-size: 15.5px; }
.thanks p b { color: var(--ink); font-weight: 600; }
.thanks cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- forms (get in touch) ---------- */
.email-panel { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(24px, 4vw, 44px); }
.email-panel .data { color: var(--faint); margin-bottom: 10px; }
.email-address {
  display: inline-block; font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(34px, 7vw, 72px); color: var(--yellow); text-decoration: none; overflow-wrap: anywhere;
}
.email-address:hover, .email-address:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.email-panel > p:last-child { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- reveal ---------- */
.js .reveal { transform: translateY(16px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: none; } }

/* ---------- responsive ---------- */
/* the menu folds behind a button once the seven links no longer fit on one line */
@media (max-width: 1180px) {
  .site-header nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 18px;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .menu-toggle {
    display: block; margin-left: auto;
    background: none; border: 1px solid var(--line); color: var(--ink);
    font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    padding: 10px 14px;
  }
  /* without JavaScript the menu button cannot open anything, so the links stay inline */
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; gap: 10px 20px; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding: 0; border: 0; background: none; width: 100%; }
  html:not(.js) .site-header nav a { padding: 6px 0; border: 0; }
}

@media (max-width: 1060px) {
  .split { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 320px; }
  .tracker { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .race-row { grid-template-columns: 56px 220px minmax(0,1fr) 200px; gap: 4px 20px; }
}

@media (max-width: 800px) {
  .stat-band { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .stat-band > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .era-block { grid-template-columns: 1fr; gap: 14px; }
  .era-year { position: static; }
  .race-row { grid-template-columns: 48px minmax(0,1fr); gap: 8px 16px; padding: 18px 0; margin: 0; }
  .race-row .rno { font-size: 26px; }
  .race-row .teaser, .race-row .result, .race-row .row-films { grid-column: 2; }
  .race-row .result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 4px; }
  .race-row .result .go { margin: 0; }
  .race-row .row-films { margin-top: 4px; }
  .team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .plate-section > summary { grid-template-columns: minmax(0,1fr) auto; gap: 6px 16px; }
  .plate-section .gist { grid-column: 1 / -1; }
  .bar-row { grid-template-columns: 110px minmax(0,1fr); }
  .tracker { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timing { grid-template-columns: 1fr 1fr; }
  .timing > div:nth-child(odd) { border-left: 0; }
  .timing > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .entry { grid-template-columns: 1fr; }
  .entry img { height: 220px; min-height: 0; }
  .people { grid-template-columns: 1fr; }
  .lightbox-foot { flex-direction: column; align-items: flex-start; }
}

/* phones: headline above the photograph instead of over it */
@media (max-width: 720px) {
  .hero, .masthead { display: flex; flex-direction: column; }
  .hero-media { position: static; order: 2; height: 62vw; min-height: 220px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(12,11,9,.35) 0%, rgba(12,11,9,0) 40%, rgba(12,11,9,.5) 100%); }
  .hero-ghost { display: none; }
  .hero-inner, .masthead-inner { order: 1; min-height: 0; padding-top: 34px; padding-bottom: 26px; }
  .hero h1 { font-size: clamp(58px, 17.5vw, 96px); }
  .hero-sub { margin: 20px 0 0; }
  .hero-strip { order: 3; background: var(--bg-2); border-top: 1px solid var(--line); }
  .masthead .hero-sub { margin-bottom: 0; }
}

@media (max-width: 540px) {
  .hero-inner { min-height: 0; }
  .chapters { grid-template-columns: 1fr; }
  .tracker { grid-template-columns: 1fr; }
  .chapter-card img { height: 190px; }
  .plate dl > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-val { font-size: 11px; }
  .stat-band strong { font-size: 38px; }
  .timing { grid-template-columns: 1fr; }
  .timing > div { border-left: 0; border-top: 1px solid var(--line); }
  .timing > div:first-child { border-top: 0; }
  .timing .wide { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery figcaption { font-size: 13.5px; }
}

/* ---------- design review, November 2026 ---------- */
/* menu: Contact as the one button */
.site-header nav { align-items: center; gap: 22px; }
.site-header nav a.nav-cta { color: var(--yellow); border: 1px solid var(--yellow); padding: 8px 12px; }
.site-header nav a.nav-cta:hover { background: var(--yellow); color: #171405; }
.site-header nav a.nav-cta[aria-current="page"]::after { content: none; }
@media (max-width: 1180px) {
  .site-header nav { align-items: stretch; }
  .site-header nav a.nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
}

/* footer: one compact block */
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-top: 34px; padding-bottom: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { display: inline-block; padding: 8px 0; border: 0; font-family: var(--body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.footer-links a:hover { color: var(--yellow); }

/* home hero: headline on the open tarmac, the car clear of it */
.hero .hero-media img { object-position: 50% 100%; }
/* wide screens: words in the open sky of tarmac at the top, the car below them */
@media (min-width: 721px) {
  .hero .hero-inner { justify-content: flex-start; padding-top: clamp(56px, 9vh, 110px); min-height: min(78svh, 820px); }
  .hero h1 { font-size: clamp(64px, min(7.8vw, 13vh), 128px); max-width: none; }
  .hero .hero-sub { max-width: 44ch; margin-bottom: 30px; }
  .hero .hero-media::after {
    background:
      linear-gradient(180deg, rgba(12,11,9,.7) 0%, rgba(12,11,9,.12) 30%, rgba(12,11,9,.12) 70%, rgba(12,11,9,.85) 100%),
      linear-gradient(90deg, rgba(12,11,9,.78) 0%, rgba(12,11,9,.35) 38%, rgba(12,11,9,0) 55%);
  }
}
.hero-media::after {
  background:
    linear-gradient(180deg, rgba(12,11,9,.7) 0%, rgba(12,11,9,.12) 30%, rgba(12,11,9,.12) 70%, rgba(12,11,9,.85) 100%),
    linear-gradient(90deg, rgba(12,11,9,.6) 0%, rgba(12,11,9,0) 50%);
}
.masthead-plain { border-bottom: 1px solid var(--line); }
.masthead-plain .masthead-inner { min-height: 0; padding-top: 56px; }

/* home: the latest weekend, with its film inside */
div.feature .feature-media { display: block; }
.feature-copy h3 a:hover { color: var(--yellow); }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* home: season strip */
.season-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 10px; }
.season-strip a { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; height: 100%; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--line); }
.season-strip .raced a { border-top-color: var(--yellow); }
.season-strip b { font-family: var(--display); font-size: 26px; font-weight: 600; text-transform: uppercase; line-height: 1; }
.season-strip .num { font-family: var(--mono); font-size: 15px; }
.season-strip .chip { margin-top: auto; }
.season-strip .chip + .chip { margin-top: 0; }
.season-strip a:hover b { color: var(--yellow); }
@media (max-width: 1060px) { .season-strip { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 560px) { .season-strip { grid-template-columns: 1fr 1fr; } }

/* home: seconds found */
.gains { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.gains a { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.gains strong { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--yellow); }
.gains span:last-child { color: var(--muted); font-size: 15px; }
.gains a:hover { border-color: var(--yellow); }
@media (max-width: 700px) { .gains { grid-template-columns: 1fr; } }

/* racing: lap times, circuit by circuit */
.lapcards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.lapcard { background: var(--bg-2); border: 1px solid var(--line); padding: 20px 20px 18px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lapcard h3 { font-size: 30px; font-weight: 600; }
.lap-gain { color: var(--muted); font-size: 15px; }
.lap-gain strong { color: var(--yellow); font-family: var(--display); font-size: 34px; font-weight: 700; margin-right: 4px; }
.lapchart { width: 100%; height: auto; display: block; }
.lapchart text { font-family: var(--mono); }
.lapchart .ax { fill: var(--muted); font-size: 13px; }
.lapchart .val { fill: var(--ink); font-size: 14px; }
.lapchart .base { stroke: var(--line); }
.lapchart .trace { stroke: var(--chart-1); stroke-width: 2; fill: none; }
.lapchart .dot { fill: var(--chart-1); stroke: var(--bg-2); stroke-width: 2; }
.lapchart .dot.best { fill: var(--yellow); }
.lapchart .dot.wet { fill: var(--bg-2); stroke: var(--chart-1); stroke-width: 2; }
.lap-note { color: var(--muted); font-size: 14px; line-height: 1.55; }
.lap-note a { color: var(--yellow); text-decoration: underline; text-decoration-color: rgba(255,212,0,.45); text-underline-offset: 3px; }
.lap-singles { margin-top: 22px; }
.lap-singles ul { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lap-singles li { display: grid; grid-template-columns: minmax(0,1fr) auto 56px; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lap-singles a { color: var(--muted); }
.lap-singles a b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.lap-singles a:hover b { color: var(--yellow); }
.lap-singles .num { font-family: var(--mono); color: var(--yellow); font-size: 16px; }
.lap-singles li > span:last-child { color: var(--faint); font-family: var(--mono); font-size: 13px; text-align: right; }
@media (max-width: 1060px) { .lapcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .lapcards { grid-template-columns: 1fr; } }

/* racing: what changed, and the rounds not raced */
.race-row .changed { grid-column: 3 / 4; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; max-width: 58ch; }
.race-row .changed span { display: block; margin-bottom: 2px; color: var(--yellow); font-weight: 600; }
.missed { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 4px 28px; }
.missed .data { grid-column: 2; color: var(--faint); }
.missed ul { grid-column: 2; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.missed li { color: var(--muted); font-size: 15px; line-height: 1.5; }
.missed li b { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
  .race-row .changed { grid-column: 2; }
  .missed { grid-template-columns: 48px minmax(0,1fr); gap: 4px 16px; }
}

/* the machine: dyno steps as a list on phones, the chart above that width */
.power-split { margin-top: 34px; margin-bottom: 14px; }
.sub-title { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 16px; }
.power-steps { display: none; list-style: none; margin: 0; padding: 0; }
.power-steps li { display: grid; grid-template-columns: 96px auto minmax(0,1fr); gap: 4px 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.power-steps strong { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); }
.power-steps li:last-child strong { color: var(--yellow); }
.power-steps li > span:last-child { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .power-steps { display: block; }
  .power-chart { display: none; }
  .power-steps li { grid-template-columns: auto minmax(0,1fr); }
  .power-steps li > span:last-child { grid-column: 1 / -1; }
}

/* the machine: lap records on phones, time always in view */
@media (max-width: 600px) {
  .table-scroll table { min-width: 0; }
  .records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .records-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .records-table td { border: 0; padding: 0; }
  .records-table .circuit { grid-column: 1; grid-row: 1; white-space: normal; }
  .records-table .layout { grid-column: 1; grid-row: 2; font-size: 14px; }
  .records-table .time { grid-column: 2; grid-row: 1; text-align: right; }
  .records-table .when { grid-column: 2; grid-row: 2; text-align: right; }
}

/* the series: bars in the classes' own sticker colours */
.bar-fill.sticker-orange { background: #E8892B; }
.bar-fill.sticker-yellow { background: #F2C230; }
.bar-fill.sticker-red { background: #D64541; }
.bar-fill.sticker-blue { background: #3B7DD8; }
.bar-fill.sticker-silver { background: #C9CDD2; box-shadow: inset 0 0 0 2px var(--yellow); }

/* weekend reports: photographs inside the text */
.inline-shot { margin: 28px 0; }
.inline-shot img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.inline-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.inline-shot .credit { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

/* inner-page heroes on wide screens: the photograph on the right, the headline beside it, so the car shows */
@media (min-width: 1061px) {
  .masthead .hero-media { left: 42%; overflow: hidden; }
  .masthead .hero-media::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(12,11,9,.55) 22%, rgba(12,11,9,0) 50%),
      linear-gradient(180deg, rgba(12,11,9,.35) 0%, rgba(12,11,9,0) 30%, rgba(12,11,9,0) 70%, rgba(12,11,9,.6) 100%);
  }
  .masthead h1 { font-size: clamp(56px, 6.6vw, 112px); max-width: 38vw; text-shadow: 0 2px 24px rgba(12,11,9,.6); }
  .masthead .hero-sub { max-width: min(44ch, 36vw); }
}

/* photos page */
.photo-weekend { padding: 30px 0 10px; border-top: 1px solid var(--line); }
.photo-weekend:first-child { border-top: 0; padding-top: 0; }
.photo-weekend-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.photo-weekend-head h2 { font-size: clamp(32px, 4vw, 52px); }
.photo-weekend-head h2 span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.photos .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* people rows: on phones the role sits under the name instead of squeezing it */
@media (max-width: 560px) {
  .roles > div { grid-template-columns: 1fr; gap: 4px; }
  .roles .data { text-align: left; }
}

/* films page: one card per weekend, playing in the site's own player */
.films-page { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.film-weekend { background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.film-poster { position: relative; display: block; overflow: hidden; }
.film-poster img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s ease; }
.film-poster:hover img { transform: scale(1.025); }
.film-poster:hover .play-badge span { background: rgba(12,11,9,.92); }
.film-weekend-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.film-weekend-body h2 { font-size: clamp(30px, 3vw, 40px); }
.film-weekend-body h2 span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.films-list { display: flex; flex-wrap: wrap; gap: 8px; }
.film-note-small { color: var(--muted); font-size: 14px; line-height: 1.55; }
.film-weekend-body .go { margin-top: auto; }
@media (max-width: 900px) { .films-page { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .film-poster img { transition: none; } .film-poster:hover img { transform: none; } }

/* in-page bars: a fade at the edge says there is more to scroll to */
@media (max-width: 900px) {
  .chapter-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); padding-right: 40px; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
