/* ==========================================================================
   Kiano Blum — design tokens
   Dark studio, bone-white type, racing red from the suit, visor blue as a rare accent.
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../assets/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: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../assets/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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-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;
}

:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --bone: #eeece7;
  --bone-dim: rgba(238, 236, 231, 0.58);
  --bone-faint: rgba(238, 236, 231, 0.16);
  --red: #e1141b;
  --red-text: #ff3d43; /* the same red, lifted for small text on ink (AA 5.5:1; --red is 4.0:1) */
  --visor: #2f7bff;
  --gold: #d4af37; --silver: #c9cdd2; --bronze: #cd7f32;
  --purple: #A855F7; /* a fastest lap, as a fastest sector on the timing screens */ /* podium: the list and the detail view (outside .calendar) */

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  /* spacing: one system for the whole page (README: Spacing) */
  --space-section: clamp(160px, 22vh, 220px); /* between sections and big scenes */
  --space-block: clamp(64px, 10vh, 120px); /* between blocks within a section */
  --space-element: clamp(24px, 4vh, 48px); /* a headline to its content */
  --space-frame: clamp(20px, 2.4vw, 40px); /* inner padding of every framed element */
  --header-h: clamp(64px, 8vw, 96px);
  --route-foot: 6vh;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}
@media (max-width: 760px) {
  :root { --space-section: clamp(96px, 15vh, 120px); --space-block: 8vh; --space-element: 3vh; --space-frame: 20px; --route-foot: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.skip-link {
  position: fixed; left: var(--gutter); top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--bone); color: var(--ink);
  font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.eyebrow {
  margin: 0;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 4px; }
/* Scroll targets (#kiano, #kiano-profile) take focus so screen readers continue there; they are
   not controls. Without this, a jump after keyboard use drew the ring around the full-width
   section: two bright lines across the page at its top and bottom edge. */
[tabindex='-1']:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Header + menu toggle
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand img { width: clamp(84px, 8.5vw, 124px); height: auto; }

.site-header__actions { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); }
/* SHOP: the MENU label's type, a fine bag icon; on phones the icon alone */
.shop-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; color: var(--bone-dim); text-decoration: none; transition: color .3s;
}
.shop-link:hover, .shop-link[aria-current='page'] { color: var(--bone); }
.shop-link__icon {
  width: 17px; height: 17px; flex: none; transform: translateY(-1px);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.shop-link__label { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }

.menu-toggle {
  display: flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 0 0 0 12px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle__label {
  font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-dim); transition: color .3s;
}
.menu-toggle:hover .menu-toggle__label { color: var(--bone); }
.menu-toggle__lines { position: relative; width: 30px; height: 14px; }
.menu-toggle__lines i {
  position: absolute; right: 0; height: 1.5px; width: 100%; background: var(--bone);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.menu-toggle__lines i:nth-child(1) { top: 0; }
.menu-toggle__lines i:nth-child(2) { top: 6px; width: 70%; }
.menu-toggle__lines i:nth-child(3) { top: 12px; width: 40%; }
.menu-toggle:hover .menu-toggle__lines i { width: 100%; }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines i:nth-child(3) { width: 100%; transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Menu overlay
   ========================================================================== */
.menu { position: fixed; inset: 0; z-index: 40; contain: strict; }
/* laid out and painted ahead, so opening costs no layout; hidden from pointer, focus and screen readers all the same */
.menu[hidden] { visibility: hidden; pointer-events: none; display: block; }
/* the layers exist only while the menu moves */
.menu.is-moving .menu__backdrop, .menu.is-moving .menu__photo { will-change: clip-path; }
.menu.is-moving :is(.menu__label, .menu__index, .menu__soon, .menu__socials) { will-change: transform; }
/* nothing keeps moving behind it */
.menu-open :is(.hero__grain, .shop__marquee-track), .menu-open :is(.hero__cue i, .k-station__dot, .s-card--skeleton)::after { animation-play-state: paused; }
.menu__backdrop { position: absolute; inset: 0; background: var(--ink); clip-path: inset(0 0 100% 0); }
.menu__panel {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px var(--gutter);
  padding: calc(var(--header-h) + 3vh) var(--gutter) var(--gutter);
}
.menu__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: center;
  counter-reset: menu;
}
.menu__item { overflow: hidden; border-top: 1px solid var(--bone-faint); }
.menu__item:last-child { border-bottom: 1px solid var(--bone-faint); }
.menu__link {
  position: relative; display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px);
  width: 100%; padding: clamp(8px, 1.6vh, 16px) 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--bone); text-decoration: none;
}
.menu__index { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--bone-dim); min-width: 2.4em; }
.menu__label {
  font-weight: 800; font-variation-settings: 'wdth' 125;
  font-size: clamp(34px, 6.4vh, 76px); line-height: .95; letter-spacing: -0.01em; text-transform: uppercase;
  transition: color .3s;
}
/* the label itself belongs to the timeline; a CSS transition on it would chase every frame of it */
.menu__label-text { display: block; transition: transform .6s var(--ease-out); }
.menu__soon {
  margin-left: auto; align-self: center;
  font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim);
  border: 1px solid var(--bone-faint); padding: 6px 8px; border-radius: 99px;
}
.menu__link::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.menu__link:hover .menu__label-text, .menu__link:focus-visible .menu__label-text { transform: translateX(clamp(8px, 1.4vw, 22px)); }
.menu__link:hover::after, .menu__link:focus-visible::after { transform: scaleX(1); }
.menu__link:focus-visible { outline: none; }
.menu__link[aria-current='page'] .menu__index { color: var(--red-text); }
.menu__link[aria-disabled='true'] { cursor: default; }
.menu__link[aria-disabled='true'] .menu__label { color: var(--bone-dim); }
.menu__link[aria-disabled='true']:hover .menu__label-text { transform: none; }
.menu__link[aria-disabled='true']::after { display: none; }

.menu__socials { display: flex; gap: 8px; margin: 0 0 0 -10px; padding: 0; list-style: none; }
.menu__aside { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 0; }
.menu__photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; max-height: 70vh; clip-path: inset(100% 0 0 0); }
.menu__photo picture { display: contents; }
.menu__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; } /* the ceiling goes, Kiano and every trophy stay */
.menu__meta { display: flex; justify-content: space-between; margin: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }

@media (max-width: 760px) {
  .menu__panel { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + 2vh); }
  .menu__aside { display: none; }
  .menu__label { font-size: clamp(30px, 9.4vw, 46px); }
}

/* ==========================================================================
   Hero: a black stage, the name behind, Kiano and the 3D helmet in one WebGL layer in front.
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.hero__stage { position: absolute; inset: 0; overflow: hidden; }
.hero-track { position: relative; }
.hero.is-sticky { position: sticky; top: 0; }

/* Quiet charcoal key light behind the upper body; the stage itself stays black. */
.hero__backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 46% at 50% 40%, rgba(64, 64, 68, .42), transparent 72%),
    radial-gradient(70% 60% at 50% 45%, #121214, var(--ink) 80%);
}

/* Floor: a soft pool of light the feet stand in, with a tight contact shadow at its centre. */
.hero__floor {
  position: absolute; left: 0; top: 0; width: 900px; aspect-ratio: 5 / 1; pointer-events: none; will-change: transform; transform-origin: 0 0;
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, .78) 0, rgba(0, 0, 0, .5) 26%, transparent 48%),
    radial-gradient(closest-side, rgba(150, 150, 156, .16), transparent 100%);
}

/* Background KB mark: a contour only slightly lighter than the stage, found rather than seen. */
.hero__mark { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.hero__mark-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero__mark-art--base { opacity: .085; }
/* Red hover: the same contour in racing red, visible only inside a soft circle at the cursor
   (--mx/--my are in the mark's own rotated frame, set by hero.js). */
.hero__mark-art--red {
  opacity: calc(var(--glow, 0) * .95);
  -webkit-mask-image: radial-gradient(circle 120px at var(--mx, -999px) var(--my, -999px), #000 0, #000 30%, transparent 100%);
          mask-image: radial-gradient(circle 120px at var(--mx, -999px) var(--my, -999px), #000 0, #000 30%, transparent 100%);
}

.hero__type {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: var(--type-top, 30vh);
  pointer-events: none; opacity: 0; transform-origin: 50% var(--type-top, 30vh); will-change: transform, opacity;
}
.hero__word {
  display: flex; overflow: hidden;
  font-weight: 900; font-variation-settings: 'wdth' 125;
  font-size: var(--type-size, 19vw); line-height: .78; letter-spacing: -0.035em;
  color: var(--bone);
  padding-top: .04em;
}
.hero__word .char { display: inline-block; transform: translateY(100%); will-change: transform; }

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* No WebGL / cutout failed: Photo B as a plain, dimmed still. */
.hero__fallback { display: none; }
.hero.no-webgl .hero__fallback {
  display: block; position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%);
  filter: brightness(.8) contrast(1.05);
}
.hero.no-webgl .hero__type { opacity: .9 !important; mix-blend-mode: overlay; z-index: 1; }
/* Touch: the baked cut-out, placed by hero.js where the 3D stage would draw the photo. */
.hero.is-flat .hero__fallback {
  display: block; position: absolute; left: 0; top: 0; width: 1333px; height: 2000px; max-width: none;
  transform-origin: 0 0; will-change: transform; pointer-events: none;
}

.hero__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11,11,12,.6), rgba(11,11,12,0) 16%),
    radial-gradient(130% 100% at 50% 45%, transparent 60%, rgba(0,0,0,.5) 100%);
}
.hero__grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* --- Loading: nothing of the shot shows until its first frame is composed ---- */
.js .hero:not(.is-ready) .hero__stage,
.js .hero:not(.is-ready) .hero__ui { opacity: 0; }
.hero__loader {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 1px; margin-left: -36px;
  background: var(--bone-faint); overflow: hidden; transition: opacity .6s;
}
.hero__loader i { position: absolute; inset: 0; width: 40%; background: var(--bone); animation: loader 1.1s var(--ease-in-out) infinite; }
@keyframes loader { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.hero.is-ready .hero__loader, html:not(.js) .hero__loader { opacity: 0; pointer-events: none; }

/* --- UI layer: restrained, the person carries the screen ------------------ */
.hero__ui {
  position: absolute; inset: 0; pointer-events: none;
  padding: var(--header-h) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
}
.hero__intro { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); will-change: transform, opacity; }
/* Version 1 lockup: solid KIANO over outlined BLUM, with the line above it. */
.hero__title {
  margin: 14px 0 0;
  font-weight: 800; font-variation-settings: 'wdth' 125;
  font-size: clamp(40px, 6.2vw, 116px); line-height: .86; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title span + span { color: transparent; -webkit-text-stroke: 1.2px var(--bone); }

.hero__progress {
  position: absolute; right: var(--gutter); top: 50%; width: 1px; height: 22vh; transform: translateY(-50%);
  background: var(--bone-faint);
}
.hero__progress i { position: absolute; inset: 0; background: var(--bone); transform-origin: top; transform: scaleY(0); }

.hero__cue {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font: 500 10px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim);
}
.hero__cue i { position: relative; width: 1px; height: 36px; background: var(--bone-faint); overflow: hidden; }
.hero__cue i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--bone);
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

@media (max-width: 760px) {
  .hero__progress { display: none; }
}

/* ==========================================================================
   01 — KIANO
   Editorial: heavy condensed caps over a smaller outline line (the hero lockup's system), Kiano's
   red signature as the only gesture, data in numbered rows with hairlines, and his car on the
   racing line. Motion lives in js/sections/kiano.js.
   ========================================================================== */
.kiano { position: relative; background: var(--ink); color: var(--bone); overflow-x: clip; }
.kiano :where(h2, h3, p, figure, dl, dd, ol, ul) { margin: 0; }
.kiano :where(ol, ul) { padding: 0; list-style: none; }
.kiano img { width: 100%; height: 100%; object-fit: cover; }

/* solid line on top, a smaller outline line below (~55% of it), as in the hero lockup */
.k-sans, .k-outline {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62;
  text-transform: uppercase; letter-spacing: -0.012em; line-height: 0.84;
}
.k-outline {
  color: transparent; letter-spacing: 0;
  -webkit-text-stroke: clamp(1px, 0.016em, 2.5px) var(--bone);
}
.k-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.k-mask > span { display: inline-block; }
.kiano mark { background: none; color: var(--red-text); }

/* --- 4.1 Opener ---------------------------------------------------------- */
.k-open {
  /* the section gap above the eyebrow; --sign-tail: what the signature hangs below the headline */
  --sign-tail: min(17.5vw, 305px);
  position: relative; display: grid; justify-items: center;
  padding: var(--space-section) var(--gutter) var(--sign-tail);
  margin-bottom: var(--space-block); /* clear of the profile photo */
}
.k-open__eyebrow { justify-self: start; align-self: end; margin-bottom: var(--space-element); }
/* one block as wide as its widest line ("More than"); the lines keep their offset inside it */
.k-open__title { position: relative; z-index: 1; width: max-content; max-width: 100%; }
.k-open__title .k-sans { font-size: clamp(76px, 17vw, 300px); }
.k-open__outline { margin-left: clamp(40px, 16vw, 300px); margin-top: 0.08em; }
.k-open__title .k-outline { font-size: clamp(42px, 9.4vw, 165px); }
/* the signature, ~51% as wide as "More than" (revision 4: 85% of the earlier ~60%): the centre of its box sits on the centre of the
   headline block, horizontally, and on the line break (64% down the block), vertically. Its ~7°
   rise is in the SVG itself. */
.k-sign {
  position: absolute; z-index: 2; pointer-events: none;
  left: 50%; top: 64%; width: clamp(170px, 40.8vw, 705px); height: auto; overflow: visible;
  transform: translate(-50%, -50%);
}
.k-sign__ink { fill: var(--red); }
.k-sign__pen { fill: none; stroke: #fff; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }

/* --- 4.2 Driver profile -------------------------------------------------- */
.k-profile {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: center;
  padding: 0 var(--gutter) var(--space-section);
}
/* 4:5 from a 1086 × 724 frame: at most 580 px wide, so it's never shown much above its pixels at 1×;
   framed on Kiano (face, suit, crossed arms), not on the pale reflection in the glass */
.k-profile__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; width: 100%; max-width: 580px; }
.k-profile__photo img { object-position: 39% 50%; }
.k-rows { counter-reset: row; }
.k-row {
  --rule: 1; position: relative; counter-increment: row;
  display: grid; grid-template-columns: 4.5ch minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(12px, 2vw, 32px);
  padding: clamp(14px, 2vw, 24px) 0;
}
.k-row::before {
  content: counter(row, decimal-leading-zero); grid-row: 1 / 3; align-self: start; padding-top: 0.2em;
  font: 500 12px/1 var(--font-mono); color: var(--bone-dim); letter-spacing: 0.08em;
}
.k-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone-faint);
  transform: scaleX(var(--rule)); transform-origin: left;
}
.k-row dt { font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.k-row dd {
  display: flex; align-items: center; gap: 0.3em; margin-top: 6px;
  font-weight: 800; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 76px); line-height: 0.92; letter-spacing: -0.005em;
}
.k-row dt, .k-row dd > * { will-change: transform; }
.k-age { font-variant-numeric: tabular-nums; } /* the row's own type: counting up changes nothing but the digits */
.k-flag { width: 0.62em; height: auto; border-radius: 2px; flex: none; transform: translateY(-0.04em); }

/* --- 4.3 Story ----------------------------------------------------------- */
.k-story {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px);
  padding: 0 var(--gutter);
}
.k-chapter {
  position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 2.6vw, 36px); padding: var(--space-block) 0;
}
.k-chapter__no {
  position: absolute; z-index: 0; left: -0.04em; top: 50%; transform: translateY(-50%);
  font-weight: 900; font-variation-settings: 'wdth' 62; font-size: clamp(220px, 34vw, 560px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px var(--bone); opacity: 0.085; pointer-events: none; user-select: none;
}
.k-chapter__title, .k-chapter__text, .k-chapter__media { position: relative; z-index: 1; }
.k-chapter__title .k-sans { display: block; font-size: clamp(56px, 8vw, 132px); }
.k-chapter__title .k-outline { display: block; font-size: clamp(32px, 4.4vw, 73px); margin-top: 0.12em; }
.k-chapter__text {
  max-width: 40ch; font-weight: 400; font-variation-settings: 'wdth' 100;
  font-size: clamp(18px, 1.55vw, 23px); line-height: 1.5; color: var(--bone);
}
.k-chapter__media { display: none; }
.k-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.k-w > span { display: inline-block; }

.k-story__sticky { position: relative; }
.k-story__media {
  position: sticky; top: 12vh; height: 76vh; max-height: 900px; overflow: hidden; border-radius: 6px;
  margin-top: 8vh; background: var(--ink-2);
}
.k-story__frame { position: absolute; inset: 0; overflow: hidden; }
.k-story__frame img { transform-origin: 50% 50%; }
/* 02: both drivers and the car roof in frame; 03: face and the signing hand */
.k-story__frame:nth-child(1) img, .k-chapter:nth-child(1) .k-chapter__media img { object-position: 50% 20%; }
.k-story__frame:nth-child(2) img, .k-chapter:nth-child(2) .k-chapter__media img { object-position: 50% 36%; }
.k-story__frame:nth-child(3) img, .k-chapter:nth-child(3) .k-chapter__media img { object-position: 50% 24%; }

/* --- 4.4 Route: Kiano's car on the racing line ----------------------------- */
.k-route { --lane: 14px; --car-l: 156px; position: relative; padding: var(--space-section) 0 0; }
.k-route__head { padding: 0 var(--gutter); display: grid; gap: 18px; }
.k-route__title .k-sans { display: block; font-size: clamp(52px, 7vw, 120px); }
.k-route__title .k-outline { display: block; font-size: clamp(29px, 3.9vw, 66px); margin-top: 0.12em; }
/* clips sideways only: the track moves under it, the station labels below the line stay whole */
.k-route__viewport { overflow-x: clip; }
.k-route__track { position: relative; width: 190vw; height: clamp(380px, 54vh, 540px); margin-top: var(--space-element); }
.k-route__line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.k-route__line path { stroke-width: var(--lane); stroke-linecap: round; stroke-linejoin: round; }
.k-route__ahead { stroke: rgba(238, 236, 231, 0.1); }
.k-route__trail { stroke: var(--red); }
.k-route__line--v { display: none; }

/* the car: one anchor moved along the line (translate), body and shadow turned with it (rotate) */
.k-car { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; will-change: transform; pointer-events: none; }
.k-car__body, .k-car__shadow {
  position: absolute; left: calc(var(--car-l) / -2); top: calc(var(--car-l) / -4.9);
  width: var(--car-l); height: calc(var(--car-l) / 2.45); will-change: transform;
}
.k-car__body { display: block; }
.k-car__body img { object-fit: contain; }
.k-car__shadow { border-radius: 38% / 50%; background: rgba(0, 0, 0, 0.6); filter: blur(calc(var(--car-l) * 0.055)); transform-origin: 50% 50%; }

/* labels clear of the car (half its width + its shadow) when it passes or stops at a station */
.k-station {
  --st-title: clamp(36px, 4.2vw, 72px); --label-gap: calc(var(--car-l) * 0.32 + 20px);
  position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 1px; height: 1px;
}
.k-station__dot {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 2px solid rgba(238, 236, 231, 0.3);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
/* number, title, subtitle in normal flow, one below the other */
.k-station__label {
  position: absolute; left: 0; top: var(--label-gap); display: block; white-space: nowrap;
  opacity: 0.28; transition: opacity 0.5s var(--ease-out);
}
.k-station__no, .k-station__title, .k-station__sub { display: block; }
.k-station__no { font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; color: var(--bone-dim); }
.k-station__title {
  margin-top: 9px; font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: var(--st-title); line-height: 0.86;
}
/* ~0.2 × the title size between the letters (the margin plus both line boxes' spare room) */
.k-station__sub {
  margin-top: calc(var(--st-title) * 0.08);
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: calc(var(--st-title) * 0.55); line-height: 0.86;
  color: transparent; -webkit-text-stroke: clamp(1px, 0.016em, 2.5px) var(--bone);
}
.k-station.is-lit .k-station__dot { background: var(--bone); border-color: var(--bone); }
.k-station.is-lit .k-station__label { opacity: 1; }
.k-station--vision .k-station__title { color: var(--red); }
.k-station--vision .k-station__sub { -webkit-text-stroke-color: var(--red); }
/* the vision: at the end of the line, its labels end at the dot and stand above it */
.k-station--vision .k-station__label { left: auto; right: 0; top: auto; bottom: var(--label-gap); text-align: right; }
.k-station--vision .k-station__dot, .k-station--vision.is-lit .k-station__dot { background: var(--red); border-color: var(--red); }
.k-station--vision .k-station__dot::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--red);
  animation: k-pulse 2.2s var(--ease-out) infinite;
}
@keyframes k-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

@media (min-width: 761px) {
  /* a full-screen pinned scene, its foot --route-foot above the screen's edge; Racing takes that off its gap */
  .k-route { min-height: 100vh; min-height: 100svh; display: grid; align-content: end; padding: var(--space-block) 0 var(--route-foot); }
}
.kiano.is-static .k-route__track { width: auto; margin-left: var(--gutter); margin-right: calc(var(--gutter) + var(--car-l) / 2); }
.kiano.is-static .k-station { --st-title: clamp(28px, 2.8vw, 44px); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .k-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shop-link { color: var(--bone); }
  .shop-link__label { display: none; }
  .shop-link__icon { width: 20px; height: 20px; }
  .k-sign { width: 47.6vw; }
  .k-profile { grid-template-columns: minmax(0, 1fr); }
  .k-profile__photo { max-width: none; }
  .k-row dd { font-size: clamp(34px, 10vw, 48px); }
  .k-story { grid-template-columns: minmax(0, 1fr); }
  .k-story__sticky { display: none; }
  .k-chapter { min-height: 0; padding: var(--space-block) 0 var(--space-element); }
  .k-chapter__media { margin-right: 12vw; } /* every photo on the left edge, with the titles and the text */
  .k-chapter__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
  .k-chapter__no { top: 4vh; transform: none; font-size: 56vw; }

  /* route: top to bottom; the vertical line is built in JS through the station dots */
  .k-route { --lane: 9px; --car-l: min(105px, 22vw); }
  .k-route__track { width: auto; height: auto; margin: var(--space-element) var(--gutter) 0; }
  .k-route__line--h { display: none; }
  .k-route__line--v { display: block; width: 44px; } /* = its viewBox width: the line isn't distorted */
  .k-route__stations { display: grid; gap: 11vh; padding: 6vh 0 4vh 64px; }
  .k-station { position: relative; transform: none; width: auto; height: auto; left: auto !important; top: auto !important; display: grid; gap: 10px; }
  .k-station__label, .k-station--vision .k-station__label { position: static; text-align: left; }
  .k-station__dot { left: -51px; top: 0; width: 18px; height: 18px; }
  .k-station { --st-title: clamp(34px, 10.5vw, 56px); }
  .k-station__title { white-space: normal; }
  .k-station__sub { white-space: normal; }
}

/* ==========================================================================
   02 — RACING
   The KIANO system continued: a solid line over a smaller outline line, mono labels, huge condensed
   numbers, hairlines, red as the only accent. The season panel (a framed track panel with the year
   up its edge), the evolution (his vehicles driving down the timeline), the journey.
   Motion lives in js/sections/racing.js; the data in js/data/racing.js.
   ========================================================================== */
.racing {
  --r-gap: var(--space-block); /* "Since 2017" → fan → panel: the same gap above and below the fan */
  position: relative; background: var(--ink); color: var(--bone); overflow-x: clip;
}
.racing :where(h2, h3, p, figure, dl, dd, ol, ul) { margin: 0; }
.racing :where(ol, ul) { padding: 0; list-style: none; }
.racing mark { background: none; color: var(--red-text); }

/* --- 5.1 Opener: as the KIANO opener, centred, without the signature --- */
.r-open {
  position: relative; display: grid; justify-items: center;
  padding: calc(var(--space-section) - var(--route-foot)) var(--gutter) 0;
}
.r-open__eyebrow { justify-self: start; align-self: end; margin-bottom: var(--space-element); }
/* both lines on one axis; "Successful" ~58% of the former "Racing", "Since 2017" ~58% of that */
.r-open__title { width: max-content; max-width: 100%; outline: none; text-align: center; }
.r-open__title .k-sans { font-size: clamp(52px, 12.2vw, 210px); }
.r-open__outline { margin-top: 0.08em; }
.r-open__title .k-outline { font-size: clamp(30px, 7.1vw, 122px); }

/* the podium fan under the headline: tall cards on an arc, the centre one straight (positions in JS).
   The list is exactly as tall as the fan's visible extent (--fan-h, --fan-lift: js/sections/racing.js),
   so --r-gap alone sets the space from the baseline of "Since 2017" (--r-descent) and to the panel. */
.r-fan { --card-w: clamp(150px, 14.6vw, 230px); margin-top: calc(var(--r-gap) - var(--r-descent, 0px)); width: 100%; }
.r-fan__list { position: relative; height: var(--fan-h, calc(var(--card-w) * 1.5 + 100px)); }
.r-fan__card {
  position: absolute; left: 50%; top: var(--fan-lift, 0px); width: var(--card-w); margin-left: calc(var(--card-w) / -2);
  aspect-ratio: 2 / 3; overflow: hidden; border-radius: clamp(18px, 1.7vw, 26px);
  border: 1px solid var(--bone-faint); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.75);
  transform-origin: 50% 90%; will-change: transform; background: var(--ink-2);
}
.r-fan__card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- 5.2 The season panel -------------------------------------------------- */
.r-stats { padding: var(--r-gap) var(--gutter) 0; } /* the gap to the timeline is .r-evo's */
.r-panel {
  --tab-size: clamp(20px, 2.5vw, 40px); /* the tabs' type, both the same */
  --year-w: calc(var(--tab-size) * 0.82 + 2 * clamp(10px, 0.9vw, 16px)); /* the tabs' column: as wide as the type needs */
  --pad: var(--space-frame);
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: var(--pad) var(--pad) var(--pad) calc(var(--year-w) + var(--pad)); /* the same above and below */
}
.r-panel__frame, .r-panel__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.r-panel__frame path { fill: none; stroke: var(--bone-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.r-panel__line { z-index: -1; }
.r-panel__line path { fill: none; stroke: var(--red); stroke-width: 1; stroke-linecap: round; opacity: 0.55; }
.r-panel__frame .r-panel__tab-behind { stroke: rgba(238, 236, 231, 0.1); }
/* folder tabs: stacked up the left edge, text turned to read upwards; the open one is joined to
   the panel by the frame path (js/sections/racing.js), the other sits a little in and behind */
.r-panel__tabs { position: absolute; left: 0; top: 0; width: var(--year-w); display: flex; flex-direction: column; gap: 10px; }
.r-tab {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: clamp(10px, 1.1vw, 16px) 0; background: none; border: 0; cursor: pointer;
  color: var(--bone-dim); transition: color 0.35s var(--ease-out), transform 0.5s var(--ease-out);
  transform: translateX(8px); /* = TAB_INSET */
}
.r-tab > span {
  display: block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 70; text-transform: uppercase;
  font-size: var(--tab-size); line-height: 0.82; letter-spacing: 0.01em;
}
.r-tab:hover { color: rgba(238, 236, 231, 0.8); }
.r-tab.is-active { color: var(--bone); transform: none; cursor: default; }
.r-tab:focus-visible { outline: 1.5px solid var(--bone); outline-offset: -6px; }
.r-panel__body:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 8px; }
.r-panel__body { flex: 1; display: flex; flex-direction: column; }
.r-panel__label { margin-bottom: clamp(24px, 3.4vh, 40px); }
/* each stat: the label over its hairline, the number centred between that line and the panel's
   bottom edge (the panel's bottom padding = the gap under the line; any extra height splits evenly) */
.r-panel__stats { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-stat { --rule: 1; position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0 clamp(14px, 2vw, 32px); }
.r-stat:first-child { padding-left: 0; }
.r-stat + .r-stat::before { /* the hairline between two stats */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--bone-faint);
  transform: scaleY(var(--rule)); transform-origin: top;
}
.r-stat dt {
  --rule: 1; position: relative; display: flex; gap: 14px; padding-bottom: 14px; margin-bottom: var(--pad);
  font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
}
.r-stat dt::after { /* the hairline under the label */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone-faint);
  transform: scaleX(var(--rule)); transform-origin: left;
}
.r-stat__no { color: var(--bone-dim); }
.r-stat dd {
  align-self: center;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; /* bold, condensed: as the headlines */
  font-size: clamp(60px, 9.3vw, 164px); line-height: 0.8; letter-spacing: -0.01em; /* 6% under revision 3's size: the weight reads larger */
  font-variant-numeric: tabular-nums;
  /* a rim in the panel's ink round every digit: the racing line passes behind, never through */
  -webkit-text-stroke: 0.07em var(--ink); paint-order: stroke fill;
}
.r-stat--accent dd { color: var(--red); }
/* the odometer: one window per digit, a reel of digits rolled through it */
.r-odo { display: inline-flex; }
/* clipped above and below for the roll, open at the sides: a stroke or a wide digit may reach past its window */
.r-odo__digit { display: block; height: 0.8em; clip-path: inset(0 -0.15em); }
.r-odo__reel { display: flex; flex-direction: column; will-change: transform; }
.r-odo__reel > span { display: block; height: 0.8em; line-height: 0.8; }
/* a window that doesn't hold all ten digits: invisible, they still give it the width of the widest */
.r-odo__sizer { display: grid; height: 0; visibility: hidden; overflow: hidden; }
.r-odo__sizer > span { grid-area: 1 / 1; }
.r-odo__reel:has(+ .r-odo__sizer) > span { text-align: center; }

/* --- 5.3 The evolution -----------------------------------------------------
   The racing line down the middle (js/sections/racing-evolution.js), the vehicle driving it, a node and
   a fine connector per year. Entries left and right of the rail, never over it; about half a viewport
   apart, room for a change between two of them. */
.r-evo {
  --rail: 38vw; /* the column the entries keep clear of: the line, the vehicle and the connectors */
  --evo-l: min(clamp(264px, 26.4vw, 423px), 44vh); /* the Mustang's length; the others are a share of it */
  --evo-gap: var(--space-section); /* from the stats panel to the waiting vehicle's tail: two separate scenes */
  position: relative; padding: var(--evo-gap) var(--gutter) 0;
}
.r-evo__track { position: relative; }
.r-evo__rail { position: absolute; inset: 0; pointer-events: none; }
.r-evo__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* the line: two fine bars (left, top, height set by the script). The red one is revealed from the
   top with a clip-path, a 2 px wide repaint; the grey one runs out softly past the last year. */
.r-evo__ahead, .r-evo__trail { position: absolute; left: 0; top: 0; width: 2px; margin-left: -1px; border-radius: 1px; }
.r-evo__ahead { background: linear-gradient(rgba(238, 236, 231, 0.1) calc(100% - var(--evo-l) * 0.8), transparent calc(100% - 16px)); }
.r-evo__trail { background: var(--red); clip-path: inset(0 0 100% 0); }
/* the vehicle's holder: sticky at the middle of the screen (--evo-mid, set by the script) between
   the line's start (its margin-top) and where the vehicle stops (the rail's padding-bottom) */
.r-evo__stick { position: -webkit-sticky; position: sticky; top: var(--evo-mid, 50vh); height: 0; }
.r-evo__node { fill: var(--ink); stroke: rgba(238, 236, 231, 0.3); stroke-width: 1.5; transition: fill 0.35s, stroke 0.35s; }
.r-evo__node.is-on { fill: var(--red); stroke: var(--red); }
.r-evo__link { stroke: var(--red); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.55s var(--ease-out); }
.r-evo__link.is-on { stroke-dashoffset: 0; }
/* the car: an anchor moved along the line, its width the Mustang's length (read by the script) */
.r-evo__car { position: absolute; left: 0; top: 0; z-index: 2; width: var(--evo-l); height: 0; margin-left: 0; will-change: transform; }
.r-evo__turn { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.r-evo__vehicle { position: absolute; will-change: transform; }
.r-evo__vehicle img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.r-evo__strip { visibility: hidden; will-change: transform, opacity; }
.r-evo__shadow { /* a soft ellipse from a gradient: no blur filter to redraw while it scales */
  position: absolute; left: calc(var(--evo-l) * -0.56); top: calc(var(--evo-l) / -4.2); width: calc(var(--evo-l) * 1.12); height: calc(var(--evo-l) / 2.1);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.45) 70%, transparent); will-change: transform;
}
/* the light gate: a fine bar across the vehicle, white into red, in the vehicle's own frame */
.r-evo__gate {
  position: absolute; left: -1px; top: calc(var(--evo-l) / -2); width: 2px; height: var(--evo-l); opacity: 0;
  background: linear-gradient(transparent, #fff 18%, var(--red) 50%, #fff 82%, transparent); will-change: transform, opacity;
}
.r-evo__speed { position: absolute; left: calc(var(--evo-l) * -0.75); top: calc(var(--evo-l) / -2); width: calc(var(--evo-l) * 1.2); height: var(--evo-l); opacity: 0; will-change: transform, opacity; }
.r-evo__speed i { position: absolute; left: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--bone)); }
.r-evo__speed i:nth-child(1) { top: 6%; width: 62%; }
.r-evo__speed i:nth-child(2) { top: 16%; left: 22%; width: 54%; }
.r-evo__speed i:nth-child(3) { top: 84%; left: 12%; width: 58%; }
.r-evo__speed i:nth-child(4) { top: 94%; left: 30%; width: 48%; }
.r-evo__name {
  position: absolute; left: 0; top: 0; width: max-content; max-width: calc(var(--rail) * 0.8); padding: 3px 7px; background: var(--ink); text-align: center;
  font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
}
/* reduced motion: no car on the line; each year with its vehicle, small */
.r-evo.is-still .r-evo__car { display: none; }
.r-evo__still { display: block; width: calc(clamp(112px, 10.5vw, 164px) * var(--scale)); height: auto; margin-top: 10px; }
.r-entry:nth-child(odd) .r-evo__still { margin-left: auto; }
.r-evo__list { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) var(--rail) minmax(0, 1fr); padding: calc(var(--evo-l) * 1.1) 0 calc(var(--evo-l) * 1.3); } /* the first year below the waiting vehicle, room to stop after the last */
.r-evo.is-still .r-evo__list { padding: 0; }
.r-entry { position: relative; grid-column: 1; min-height: 54vh; padding: 4vh 0; text-align: right; }
.r-entry:nth-child(even) { grid-column: 3; text-align: left; }
.r-entry:last-child { min-height: 0; padding-bottom: 0; }
.r-entry__head { position: relative; display: block; }
.r-entry__year {
  display: block; font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62;
  /* never wider than its column (a year is ~1.7em): (100vw − 2 gutters − rail) / 2, with room to spare */
  font-size: clamp(56px, min(8.4vw, (50vw - var(--rail) / 2 - var(--gutter)) / 2), 150px); line-height: 0.82; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: clamp(1px, 0.014em, 2px) var(--bone);
  transition: color 0.5s var(--ease-out);
}
.r-entry.is-active .r-entry__year { color: var(--bone); }
.r-entry__now { /* above the year, so the year's middle stays the node's height */
  position: absolute; right: 0; bottom: calc(100% + 10px);
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-text);
}
.r-entry__reveal.r-entry__titles { display: grid; gap: 10px; } /* a year with several titles: one below the other */
.r-entry__titles > .r-entry__title { display: block; }
.r-entry:nth-child(even) .r-entry__now { right: auto; left: 0; }
.r-entry__body { display: flex; gap: 18px; align-items: flex-start; justify-content: flex-end; margin-top: 16px; }
.r-entry:nth-child(even) .r-entry__body { justify-content: flex-start; }
.r-entry__title {
  max-width: 15em; font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 62;
  font-size: clamp(22px, 2.3vw, 40px); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.005em;
}
.r-entry__reveal { display: block; will-change: opacity, transform; }
.r-entry__card { flex: none; width: clamp(96px, 9vw, 150px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; }
.r-entry__card img { width: 100%; height: 100%; object-fit: cover; }
.r-entry:nth-child(odd) .r-entry__card { order: 2; }

/* --- 5.4 The journey ----------------------------------------------------
   The title, then a pinned scene (js/sections/racing-journey.js): on the left the year counter (an
   outline odometer, the station in mono, a red progress line with a marker per year), on the right the
   text revealed word by word inside a window that follows the line being read. Then the Mustang photo,
   opening from a card to a wide frame, centred, and the two awards across the full width. */
.r-journey { padding: var(--space-section) var(--gutter) 0; }
.r-journey__title { display: grid; justify-items: center; text-align: center; margin-bottom: var(--space-element); }
.r-journey__title .k-sans { display: block; font-size: clamp(56px, 7vw, 120px); }
.r-journey__title .k-outline { display: block; font-size: clamp(31px, 3.9vw, 66px); margin-top: 0.12em; }
.r-journey__scene {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center;
  height: 100vh; height: 100svh; padding: calc(var(--header-h) + 3vh) 0 7vh;
}
.r-journey__count { display: grid; justify-items: start; align-content: center; gap: 3vh; }
.r-journey__year { /* as "Since 2017": heavy, condensed, outline */
  display: block; font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62;
  font-size: min(19vw, 44vh); line-height: 0.8; letter-spacing: -0.01em; /* as wide as the column allows (a year is ~1.7em) */
  color: transparent; -webkit-text-stroke: clamp(1px, 0.012em, 2.5px) var(--bone);
}
.r-journey__station {
  min-height: 1.2em; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
}
.r-journey__progress { position: relative; width: 1px; height: 30vh; margin-left: 5px; background: var(--bone-faint); }
.r-journey__fill { position: absolute; inset: 0; background: var(--red); transform: scaleY(var(--p, 0)); transform-origin: top; }
.r-journey__mark { position: absolute; left: -3px; top: calc(var(--at) * 100%); width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px var(--bone-dim); transition: background-color 0.3s, box-shadow 0.3s; }
.r-journey__mark i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 500 10px/1 var(--font-mono); font-style: normal; letter-spacing: 0.12em; color: var(--bone-dim); transition: color 0.3s; }
.r-journey__mark.is-on { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.r-journey__mark.is-on i { color: var(--bone); }
.r-journey__read {
  align-self: stretch; display: flex; flex-direction: column; justify-content: safe center; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
}
.r-journey__text {
  position: relative; flex: none; padding: 4vh 0;
  font-family: var(--font-display); font-weight: 560; font-size: clamp(20px, 2.2vw, 40px); line-height: 1.24; letter-spacing: -0.01em;
  color: var(--bone);
}
.r-journey__text.is-split mark { color: inherit; }
.r-w { color: rgba(238, 236, 231, 0.15); transition: color 0.35s var(--ease-out); }
.r-w.is-on { color: var(--bone); }
.r-w--key.is-on { color: var(--red-text); }
/* reduced motion: the years as a still list, the text in full */
.r-journey__list { display: grid; gap: 14px; }
.r-journey__list li { display: grid; gap: 4px; }
.r-journey__list li > span:first-child {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; font-size: clamp(36px, 3.6vw, 64px); line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1px var(--bone);
}
.r-journey__list li > span:last-child { font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.r-journey.is-still .r-journey__scene { height: auto; padding: 4vh 0; align-items: start; }
.r-journey.is-still .r-journey__read { overflow: visible; -webkit-mask-image: none; mask-image: none; }
/* the photo: centred, at most 1100 px, opening up from a card (clip-path, JS) */
/* --scene-tail: what the pinned scene leaves empty under its last line (racing-journey.js), so the gap above the photo is the one below it */
.r-journey__photo { max-width: 1100px; margin: calc(var(--space-block) - var(--scene-tail, 0px)) auto 0; }
.r-journey__frame { aspect-ratio: 21 / 9; overflow: hidden; border-radius: 10px; }
.r-journey__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: var(--space-block); }
.r-award {
  display: grid; gap: 14px; align-content: start; padding: var(--space-frame);
  border: 1px solid var(--bone-faint); border-radius: 14px 14px 14px 0;
}
.r-award__label { font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-text); }
.r-award__title {
  font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 40px); line-height: 0.92;
}
.r-awards__note { max-width: 40em; margin: var(--space-block) auto 0; text-align: center; font-size: clamp(15px, 1vw, 17px); line-height: 1.6; color: var(--bone-dim); }

@media (max-width: 760px) {
  .r-fan { --card-w: 30vw; }
  .r-fan__card[data-desktop-only] { display: none; }
  .r-panel { --tab-size: 16px; padding: var(--pad) var(--pad) var(--pad) calc(var(--year-w) + 16px); }
  .r-panel__stats { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .r-stat { padding: 0; }
  .r-stat + .r-stat::before { display: none; }
  .r-stat dt { margin-bottom: 18px; }
  .r-stat dd { font-size: 19vw; }
  /* the line and the vehicle on the left edge, narrower; every entry to their right */
  .r-evo { --rail: 26vw; --evo-l: 170px; }
  .r-evo__name { font-size: 8px; letter-spacing: 0.08em; max-width: 86px; padding: 2px 3px; }
  .r-evo__list { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .r-entry, .r-entry:nth-child(even) { grid-column: 2; text-align: left; min-height: 0; padding: 6vh 0 6vh 12px; }
  .r-entry__now, .r-entry:nth-child(even) .r-entry__now { right: auto; left: 0; }
  .r-entry__year { font-size: min(22vw, (100vw - 2 * var(--gutter) - var(--rail) - 12px) / 2); }
  .r-entry__body, .r-entry:nth-child(even) .r-entry__body { justify-content: flex-start; }
  .r-entry:nth-child(odd) .r-entry__card { order: 0; }
  .r-entry:nth-child(odd) .r-evo__still { margin-left: 0; }
  /* the journey: no columns; the year rides along at the top as a sticky bar, the text below it */
  .r-journey__scene { display: block; height: auto; padding: 0; }
  .r-journey__title { margin-bottom: calc(var(--header-h) + 3vh); } /* room for the bar's band (below) */
  .r-journey__count {
    position: sticky; top: var(--header-h); z-index: 2; display: flex; align-items: flex-end; gap: 14px;
    padding: 10px 0 14px; background: var(--ink);
  }
  .r-journey__count::before { /* ink up to the top of the screen: the text never shows between header and bar */
    content: ''; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: 0;
    height: calc(100% + var(--header-h)); background: var(--ink); z-index: -1;
  }
  .r-journey__year { font-size: 18vw; }
  .r-journey__station { padding-bottom: 0.3em; font-size: 10px; }
  .r-journey__progress { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 1px; margin: 0; }
  .r-journey__fill { transform: scaleX(var(--p, 0)); transform-origin: left; }
  .r-journey__mark { left: calc(var(--at) * 100%); top: 0; margin: -3px 0 0 -3px; }
  .r-journey__mark i { display: none; }
  .r-journey__read { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .r-journey__text { padding: 3vh 0 0; font-size: clamp(20px, 6vw, 26px); }
  .r-journey.is-still .r-journey__count { display: none; }
  .r-journey.is-still .r-journey__title { margin-bottom: 4vh; }
  .r-awards { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   03 — RACE CALENDAR
   The 2026 season, finished: an opener as Racing's, folder tabs (the stats panel's, lying down) and the
   results, one row per race weekend with a chip per race. Every number struck through in red: raced.
   Gold, silver, bronze for the podium; DNF dimmed; pole in red. A row opens the weekend's detail view (below).
   Motion in js/sections/calendar.js; the data in js/data/calendar.js.
   ========================================================================== */
.calendar {
  position: relative; background: var(--ink); color: var(--bone);
}
.calendar :where(h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; }
.calendar :where(ol, ul) { padding: 0; list-style: none; }

.c-open { display: grid; justify-items: center; padding: var(--space-section) var(--gutter) 0; }
.c-open__eyebrow { justify-self: start; margin-bottom: var(--space-element); }
.c-open__title { width: max-content; max-width: 100%; outline: none; text-align: center; }
.c-open__title .k-sans { font-size: clamp(46px, 10.4vw, 180px); } /* "Race calendar" on Racing's scale */
.c-open__outline { margin-top: 0.08em; }
.c-open__title .k-outline { font-size: clamp(30px, 7.1vw, 122px); }
.c-open__meta { margin-top: clamp(18px, 3vh, 32px); font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }

.c-results { --c-inset: clamp(4px, 0.8vw, 12px); padding: var(--space-block) var(--gutter) 0; } /* --c-inset: the rows' content edge */
/* folder tabs: one height, standing on one hairline that runs the full width and is the list's top
   edge. The closed ones end on it; the open one covers it, joined to the list below. */
.c-tabs {
  display: flex; align-items: flex-end; gap: 10px; padding: 0 var(--c-inset);
  background: linear-gradient(var(--bone-faint), var(--bone-faint)) left bottom / 100% 1px no-repeat;
}
.c-tab {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; margin-bottom: 1px; padding: 0 clamp(14px, 1.4vw, 20px);
  border: 1px solid var(--bone-faint); border-bottom: 0; border-radius: 10px 10px 0 0; background: none;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim);
  cursor: pointer; transition: color 0.3s;
}
.c-tab.is-active { height: 41px; margin-bottom: 0; background: var(--ink); color: var(--bone); cursor: default; }
.c-tab:hover { color: rgba(238, 236, 231, 0.8); }
.c-tab.is-active:hover { color: var(--bone); }
.c-tab:focus-visible { outline: 1.5px solid var(--bone); outline-offset: -5px; }
.c-tab__count { font-size: 10px; letter-spacing: 0.08em; color: rgba(238, 236, 231, 0.4); }
.c-tab.is-active .c-tab__count { color: var(--bone-dim); }

.c-list-wrap { overflow: hidden; }
.c-row { position: relative; border-bottom: 1px solid var(--bone-faint); }
.c-row__button {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; overflow: hidden;
}
.c-row__button:focus-visible { outline: 1.5px solid var(--bone); outline-offset: -3px; }
.c-row__inner {
  /* the results grid: every size here, the same in every row */
  --pole-w: clamp(76px, 5.6vw, 92px); /* the pole column */
  --chip-w: clamp(90px, 7vw, 122px); /* a race slot */
  --class-w: clamp(92px, 7.2vw, 116px); /* the class column */
  --chip-pad: clamp(10px, 0.9vw, 14px); /* from a slot's hairline to its content */
  --label-size: 10px; --label-h: 12px; --label-gap: 8px; /* "Race 1" and the gap down to the number */
  --pos-size: clamp(30px, 2.6vw, 44px); --pos-h: calc(var(--pos-size) * 0.8);
  --trophy-w: clamp(13px, 1.05vw, 16px); --trophy-gap: 6px; /* reserved in every chip, trophy or not */
  display: grid; align-items: center; column-gap: clamp(14px, 1.2vw, 28px);
  grid-template-columns: clamp(110px, 10vw, 190px) clamp(120px, 9vw, 180px) minmax(0, 1fr) clamp(130px, 11vw, 190px) auto 24px;
  min-height: clamp(84px, 6.6vw, 104px); padding: 10px var(--c-inset);
  transition: background-color 0.35s var(--ease-out);
}
/* hover: a little lighter, a red line drawn along the foot, the logo in colour, an arrow */
.c-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); pointer-events: none;
}
@media (hover: hover) {
  .c-row:hover .c-row__inner { background: rgba(238, 236, 231, 0.035); }
  .c-row:hover::after { transform: scaleX(1); }
  .c-row:hover .c-logo__mono { opacity: 0; }
  .c-row:hover .c-logo__colour { opacity: 1; }
  .c-row:hover .c-row__arrow { opacity: 1; transform: none; }
}
.c-row__button:focus-visible .c-row__arrow { opacity: 1; transform: none; }

.c-logo { position: relative; display: block; height: calc(clamp(22px, 1.75vw, 32px) * var(--logo-scale, 1)); aspect-ratio: var(--ratio); max-width: 100%; }
.c-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity 0.35s; }
.c-logo__colour { opacity: 0; }
.c-badge { /* a series without a logo yet: its short name, framed */
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid rgba(238, 236, 231, 0.35); border-radius: 4px;
  font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone);
}

.c-row__round { display: flex; align-items: center; gap: 14px; }
.c-row__no {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; font-size: clamp(34px, 3.2vw, 52px);
  line-height: 0.85; color: var(--bone-dim); font-variant-numeric: tabular-nums;
}
.c-strike { position: absolute; left: -8%; top: 4%; width: 116%; height: 92%; overflow: visible; pointer-events: none; }
.c-strike path { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.c-row__race { font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; }

.c-row__place { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-row__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(30px, 3vw, 50px); line-height: 0.9;
}
.c-flag { flex: none; width: clamp(20px, 1.6vw, 26px); height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(238, 236, 231, 0.12); }
.c-row__date {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(22px, 2vw, 34px); line-height: 0.9; white-space: nowrap; color: var(--bone);
}

/* the results: one grid, the same in every row: pole · Race 1 · Race 2 · Race 3 · class. Each race in
   its own slot (an empty slot keeps its width); a label row and a number row on fixed lines; hairlines
   only between filled slots */
.c-row__result {
  display: grid; grid-template-columns: var(--pole-w) repeat(3, var(--chip-w)) var(--class-w);
  grid-template-rows: var(--label-h) var(--pos-h); row-gap: var(--label-gap); align-items: center;
}
.c-row__pole { grid-column: 1; grid-row: 2; justify-self: center; display: flex; }
.c-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border: 1px solid rgba(225, 20, 27, 0.65); border-radius: 11px;
  font: 600 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-text); white-space: nowrap;
}
.c-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.c-chip {
  grid-row: 1 / span 2; display: grid; grid-template-rows: var(--label-h) var(--pos-h); row-gap: var(--label-gap); align-items: center;
  height: 100%; min-width: 0; padding-left: var(--chip-pad); border-left: 1px solid transparent;
}
.c-chip--1 { grid-column: 2; } .c-chip--2 { grid-column: 3; } .c-chip--3 { grid-column: 4; }
.c-chip.has-rule { border-left-color: var(--bone-faint); }
.c-chip__race { font: 500 var(--label-size)/var(--label-h) var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; }
.c-chip .c-pos { display: grid; grid-template-columns: var(--trophy-w) auto; column-gap: var(--trophy-gap); align-items: center; justify-content: start; height: var(--pos-h); }
.c-chip .c-pos__value { font-size: var(--pos-size); }
.c-row__class { grid-column: 5; grid-row: 2; padding-left: var(--chip-pad); font: 500 var(--label-size)/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; }

.c-pos { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); }
.c-pos__value {
  display: inline-flex; align-items: flex-start;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(36px, 3.4vw, 56px); line-height: 0.8; font-variant-numeric: tabular-nums;
}
.c-pos__value sup { font-size: 0.4em; line-height: 0.8; margin-left: 0.06em; letter-spacing: 0.02em; }
.c-pos--gold { color: var(--gold); }
.c-pos--silver { color: var(--silver); }
.c-pos--bronze { color: var(--bronze); }
.c-pos--dnf { color: var(--bone-dim); }
.c-pos__trophy { display: flex; align-items: center; }
.c-pos__trophy:empty { display: none; } /* outside the grids, no slot */
.c-chip .c-pos__trophy:empty, .c-detail__outcome .c-pos__trophy:empty { display: block; } /* in them: the slot stays */
.c-trophy { width: clamp(18px, 1.5vw, 24px); height: auto; flex: none; }
.c-chip .c-trophy { width: 100%; }
.c-tag { display: inline-flex; align-items: center; gap: 5px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; }
.c-tag--pole { color: var(--red-text); }
.c-tag--pole::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.c-tag--fastest { color: var(--purple); }
.c-tag--fastest::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--purple); }
.c-fastest { display: grid; gap: 5px; }
.c-fastest__time { font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--bone-dim); }
.c-row__arrow { font: 400 20px/1 var(--font-mono); color: var(--bone); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease-out); }

@media (max-width: 1100px) and (min-width: 1001px) {
  .c-row__inner {
    grid-template-columns: clamp(90px, 10vw, 120px) clamp(100px, 11vw, 130px) minmax(0, 1fr) auto auto 0;
    --pole-w: 66px; --chip-w: 70px; --class-w: 64px; --pos-size: 28px; --trophy-w: 12px; --trophy-gap: 5px;
  }
  .c-row__class { white-space: normal; }
}

@media (max-width: 800px) {
  /* the bar scrolls sideways, snapping to the tabs; the hairline stays across the full width */
  .c-tabs { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--c-inset); gap: 8px; }
  .c-tabs::-webkit-scrollbar { display: none; }
  .c-tab { scroll-snap-align: start; height: 36px; padding-inline: 12px; font-size: 11px; }
  .c-tab.is-active { height: 37px; }
}
@media (max-width: 1000px) {
  /* three lines: logo, round, date · place · the chips; side by side the place would be cut off */
  .c-row__inner {
    --pole-w: 56px; --chip-w: 70px; --class-w: 60px; --chip-pad: 8px;
    --label-size: 9px; --label-h: 11px; --label-gap: 6px; --pos-size: 26px; --trophy-w: 11px; --trophy-gap: 4px;
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'series round date' 'place place place' 'result result result';
    row-gap: 12px; column-gap: 14px; min-height: 0; padding: 16px 2px;
  }
  .c-row__series { grid-area: series; } .c-row__round { grid-area: round; gap: 10px; }
  .c-row__place { grid-area: place; } .c-row__date { grid-area: date; align-self: center; font-size: 18px; }
  .c-row__result { grid-area: result; }
  .c-pill { height: 20px; padding: 0 7px; gap: 5px; font-size: 9px; letter-spacing: 0.1em; }
  .c-row__arrow { display: none; }
  .c-logo { height: calc(18px * var(--logo-scale, 1)); }
  .c-badge { height: 24px; font-size: 10px; padding: 0 7px; }
  .c-row__no { font-size: 30px; }
  .c-row__race { font-size: 9.5px; letter-spacing: 0.1em; }
  .c-row__name { font-size: 26px; }
  .c-tag, .c-chip__race, .c-row__class { letter-spacing: 0.1em; }
  .c-tag { font-size: 9px; }
  .c-row__class { white-space: normal; }
}

/* --- The race weekend: a full-screen panel, grown out of the clicked row (clip-path, JS) --- */
.c-detail { position: fixed; inset: 0; z-index: 120; }
.c-detail :where(h3, p, ol, ul) { margin: 0; } /* outside the section: its resets don't reach here */
.c-detail :where(ol, ul) { padding: 0; list-style: none; }
.c-detail[hidden] { display: none; }
.c-detail__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 12, 0.92); }
.c-detail__panel {
  --place: clamp(56px, 7.4vw, 132px); /* the place's type size; its column is one line of it wide */
  --d-pad: var(--space-frame); /* inner padding of the frame, all round */
  --d-btn: clamp(44px, 3.6vw, 56px); /* ←, → and ✕ */
  position: absolute; inset: 0; display: grid; grid-template-columns: calc(var(--place) * 0.84 + clamp(16px, 1.6vw, 28px)) minmax(0, 1fr);
  padding: clamp(14px, 1.6vw, 24px); background: var(--ink); color: var(--bone);
}
.c-detail__frame { position: absolute; inset: clamp(14px, 1.6vw, 24px); width: calc(100% - 2 * clamp(14px, 1.6vw, 24px)); height: calc(100% - 2 * clamp(14px, 1.6vw, 24px)); overflow: visible; pointer-events: none; }
.c-detail__frame path { fill: none; stroke: rgba(238, 236, 231, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* the place, standing up the left edge, read from the bottom; the flag under it */
.c-detail__side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px clamp(10px, 1vw, 18px) 0 0; }
.c-detail__place {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 78vh; overflow: hidden;
  width: 0.84em; /* one line thick: the grid would otherwise size it by its length */
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: var(--place); line-height: 0.82; letter-spacing: -0.005em;
}
.c-detail__flag .c-flag { width: clamp(26px, 2.4vw, 40px); }
.c-detail__body {
  position: relative; display: grid; min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: 'head results' 'stage stage' 'profile profile' 'credit credit';
  padding: var(--d-pad);
}
.c-detail__head { grid-area: head; display: grid; gap: 10px; align-content: start; justify-items: start; }
.c-detail__round { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone); }
.c-detail__dates {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(36px, 3.6vw, 64px); line-height: 0.85; color: var(--red);
}
.c-detail__circuit { font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
/* the championship: top right, in the row of ✕, left of it, centred on it */
.c-detail__series {
  position: absolute; top: var(--d-pad); left: var(--d-pad); right: calc(var(--d-pad) + var(--d-btn) + clamp(16px, 1.4vw, 24px)); z-index: 2;
  display: flex; align-items: center; justify-content: flex-end; height: var(--d-btn); pointer-events: none;
}
.c-detail__logo { display: block; height: clamp(40px, 3.2vw, 48px); width: auto; max-width: 100%; object-fit: contain; object-position: right center; }
.c-badge--detail { height: clamp(36px, 3vw, 44px); padding: 0 14px; font-size: 13px; }
.c-detail__results { grid-area: results; min-width: min(360px, 34vw); }
.c-detail__label { padding-bottom: 10px; border-bottom: 1px solid var(--bone-faint); font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.c-detail__result {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 10px 10px 12px;
  border-bottom: 1px solid var(--bone-faint); transition: background-color 0.3s;
}
/* all races alike; hover or keyboard focus draws the line's foot in red, left to right */
.c-detail__result { position: relative; }
.c-detail__result::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); pointer-events: none;
}
.c-detail__result:focus-visible { outline: none; }
.c-detail__result:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) { .c-detail__result:hover::after { transform: scaleX(1); } }
.c-detail__race { display: grid; gap: 5px; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-variation-settings: 'wdth' 62; text-transform: uppercase; font-size: clamp(22px, 1.9vw, 32px); line-height: 0.9; }
.c-detail__overall { font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }
/* fixed columns, so position, pole, class and fastest lap line up in every line */
.c-detail__outcome { display: grid; grid-template-columns: auto 64px var(--class-col, 100px) var(--extra-col, 0px); align-items: center; column-gap: 14px; }
.c-detail__table.has-fastest { --extra-col: 96px; }
.c-detail__table.is-short-class { --class-col: 64px; }
.c-detail__outcome .c-tag:not(.c-tag--pole):not(.c-tag--fastest) { grid-column: 3; } /* the class in its column, pole or not */
.c-detail__outcome .c-fastest { grid-column: 4; }
/* positions in one column: a slot for the trophy, the number after it; pole and class after that */
.c-detail__outcome .c-pos { display: grid; grid-template-columns: 0.62em 2.3em; column-gap: 0.18em; align-items: center; font-size: clamp(30px, 2.6vw, 44px); }
.c-detail__outcome .c-pos .c-trophy { width: 0.55em; }
.c-detail__outcome .c-pos .c-pos__value { font-size: 1em; }

/* the track: the free area between the head and results above and the buttons below (the camera fits it to this box) */
.c-detail__stage { grid-area: stage; position: relative; z-index: 0; min-height: 0; margin: clamp(8px, 1.6vh, 18px) 0; touch-action: pan-y; }
.c-detail__head, .c-detail__results, .c-detail__nav, .c-detail__credit { position: relative; z-index: 1; }
.c-detail__canvas, .c-detail__flat { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* start/finish beside the track: a fine red arrow in race direction and its note (placed by the 3D stage) */
.c-track-mark { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.c-track-mark > * { position: absolute; left: 0; top: 0; }
.c-track-mark__arrow { height: 10px; overflow: visible; }
.c-track-mark__arrow path { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.c-track-mark__label { font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; }
.c-track-mark__label.is-stacked { width: min-content; white-space: normal; line-height: 1.35; }
.c-detail__canvas[hidden], .c-detail__flat[hidden], .c-detail__missing[hidden] { display: none; }
.c-detail__flat { padding: 6%; overflow: visible; }
.c-detail__flat path { fill: none; stroke: var(--red); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.c-detail__missing { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }
.c-detail__scale { position: absolute; left: 0; bottom: 0; z-index: 1; margin: 0; font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); pointer-events: none; }
/* the dot the profile moves along the lap */
.c-track-dot { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; pointer-events: none; }
.c-track-dot[hidden] { display: none; }
.c-track-dot i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.7); }
.c-track-dot span { position: absolute; left: 14px; top: -8px; padding: 2px 6px; background: var(--ink); font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.06em; color: var(--bone); white-space: nowrap; }
.c-track-dot.is-left span { left: auto; right: 14px; }
/* the elevation profile: labels, then the chart across the panel, left of the buttons */
.c-detail__profile { grid-area: profile; position: relative; z-index: 1; min-width: 0; margin-right: calc(2 * var(--d-btn) + 10px + clamp(20px, 2.4vw, 40px)); }
.c-detail__profile:empty, .c-detail__profile.is-empty { display: none; }
.c-profile__head { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
.c-profile__head b { font-weight: 500; color: var(--bone); }
.c-profile__chart { position: relative; height: clamp(48px, 8.5vh, 84px); margin-left: 40px; border-bottom: 1px solid var(--bone-faint); touch-action: none; cursor: crosshair; }
.c-profile__plot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.c-profile__area { fill: rgba(238, 236, 231, 0.06); }
.c-profile__line { fill: none; stroke: var(--bone); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.c-profile__sf { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--red); }
.c-profile__y { position: absolute; right: calc(100% + 8px); font: 500 9px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--bone-dim); white-space: nowrap; }
.c-profile__y--max { top: 0; } .c-profile__y--min { bottom: 0; }
.c-profile__axis { position: relative; height: 16px; margin-left: 40px; font: 500 9px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--bone-dim); }
.c-profile__axis span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.c-profile__axis span:first-child { transform: none; }
.c-profile__axis span:last-child { transform: translateX(-100%); }
.c-profile__hair { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--bone); opacity: 0; pointer-events: none; }
.c-profile__hair.is-on { opacity: 0.7; }
.c-detail__credit { grid-area: credit; align-self: end; margin-top: 8px; font: 400 10px/1.3 var(--font-mono); letter-spacing: 0.06em; color: rgba(238, 236, 231, 0.4); }
.c-detail__nav { grid-row: 3 / 5; grid-column: 2; align-self: end; justify-self: end; display: flex; gap: 10px; }
.c-detail__step, .c-detail__close {
  display: grid; place-items: center; width: var(--d-btn); aspect-ratio: 1; padding: 0;
  border: 1px solid rgba(238, 236, 231, 0.3); border-radius: 12px 12px 12px 0; background: var(--ink);
  font: 400 20px/1 var(--font-mono); color: var(--bone); cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.c-detail__step:hover:not(:disabled), .c-detail__close:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.c-detail__step:disabled { opacity: 0.3; cursor: default; }
.c-detail__step:focus-visible, .c-detail__close:focus-visible { outline: 1.5px solid var(--red); outline-offset: 3px; }
/* narrower: position and pole on the line, class and fastest lap under them, so nothing runs out */
@media (max-width: 1180px) {
  .c-detail__outcome .c-pos { font-size: 28px; }
  .c-detail__outcome { column-gap: 10px; row-gap: 5px; grid-template-columns: auto 50px; }
  .c-detail__outcome .c-tag:not(.c-tag--pole):not(.c-tag--fastest), .c-detail__outcome .c-fastest { grid-column: 1 / -1; justify-self: end; justify-items: end; }
}
/* ✕: inside the panel, as far from the frame's corner as the logo from its own, the buttons' twin */
.c-detail__close { position: absolute; top: var(--d-pad); right: var(--d-pad); z-index: 2; font-size: 16px; }
.c-detail__results { min-width: 0; padding-top: calc(var(--d-btn) + clamp(10px, 1.4vh, 18px)); } /* below the row of logo and ✕ */

@media (max-width: 760px) {
  .c-detail__panel { --place: 13vw; --d-btn: 44px; padding: 10px; }
  .c-detail__frame { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .c-detail__place { max-height: 70vh; }
  .c-detail__side { padding-right: 6px; gap: 10px; }
  .c-detail__body {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: 'head' 'results' 'stage' 'profile' 'nav' 'credit'; row-gap: 10px;
  }
  .c-detail__results { padding-top: 0; }
  .c-detail__head { padding-top: calc(var(--d-btn) + 8px); }
  .c-detail__dates { font-size: 8.4vw; }
  .c-detail__head { gap: 6px; }
  .c-detail__result { padding-block: 6px; }
  .c-detail__race { font-size: 20px; }
  /* narrow: position and pole on the line, class and fastest lap under them, to the right */
  .c-detail__nav { grid-area: nav; justify-content: flex-end; }
  .c-detail__profile { margin-right: 0; }
  .c-profile__head { gap: 3px 12px; margin-bottom: 6px; font-size: 9px; letter-spacing: 0.1em; }
  .c-profile__chart { height: 40px; margin-left: 32px; }
  .c-profile__axis { margin-left: 32px; }
  .c-detail__stage { margin: 0; }
  /* right: the frame's cut corner runs through the bottom left */
  .c-detail__credit { justify-self: end; max-width: 72%; margin-top: 0; text-align: right; }
}

/* ==========================================================================
   04 — PARTNERS
   Headline and the call to get in touch on the left, text on the right, under them the logos on a
   band across the whole width.
   ========================================================================== */
.partners { position: relative; background: var(--ink); color: var(--bone); }
.partners :where(h2, p, ul) { margin: 0; }
.partners ul { padding: 0; list-style: none; }
.partners mark { background: none; color: var(--red-text); }
.p-open {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 6vw, 120px); align-items: start;
  padding: var(--space-section) var(--gutter) 0;
}
.p-open__eyebrow { grid-column: 1 / -1; margin-bottom: var(--space-element); }
.p-open__title { grid-column: 1; outline: none; }
.p-open__title .k-sans { display: block; font-size: clamp(56px, 11.4vw, 206px); }
.p-open__outline { margin-top: 0.08em; }
.p-open__title .k-outline { display: block; font-size: clamp(30px, 5.2vw, 96px); white-space: nowrap; }
.p-cta { grid-column: 1; justify-self: start; margin-top: var(--space-element); }
.p-cta .cta, .ct-submit .cta { --cut: clamp(10px, 1vw, 15px); font-size: clamp(30px, 2.7vw, 48px); } /* 75% of a .cta */
.p-text { grid-column: 2; grid-row: 2 / span 2; display: grid; gap: 1.1em; max-width: 34em; overflow-wrap: break-word; font-size: clamp(20px, 1.55vw, 24px); font-weight: 450; line-height: 1.5; }
.p-text__line { display: block; overflow: hidden; }
.p-text__line > span { display: block; }
/* the band: past the gutter on both sides, soft at its ends, as high as the tallest logo and its focus ring */
.p-band {
  --logo-gap: clamp(80px, 7vw, 120px); --logo-k: 1;
  position: relative; display: flex; align-items: center; height: calc(88px * var(--logo-k)); margin-top: var(--space-block); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.p-band__track { display: flex; align-items: center; flex: none; will-change: transform; }
.p-logo { flex: none; margin-right: var(--logo-gap); }
.p-logo__mark { display: block; height: calc(var(--h) * var(--logo-k) * 1px); aspect-ratio: var(--ratio); }
.p-logo__mark img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.35s; }
@media (hover: hover) {
  .p-logo__mark img { opacity: 0.9; } /* the headroom for the brightening: F Technologies is pure white */
  .p-logo:hover .p-logo__mark img { opacity: 1; }
}
.p-logo a:focus-visible { outline: 1.5px solid var(--red); outline-offset: 6px; }
.p-band.is-still { height: auto; padding: 0 var(--gutter); -webkit-mask-image: none; mask-image: none; }
.p-band.is-still .p-band__track { flex: 1; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 3.4vw, 56px) clamp(40px, 5vw, 80px); }
.p-band.is-still .p-logo { margin: 0; }
@media (max-width: 760px) {
  .p-open { grid-template-columns: minmax(0, 1fr); }
  .p-open__title .k-sans { font-size: 21vw; }
  .p-open__title .k-outline { font-size: 10.6vw; }
  .p-cta .cta { display: inline-flex; width: auto; font-size: clamp(23px, 7vw, 33px); }
  .p-text { grid-column: 1; grid-row: auto; margin-top: var(--space-block); }
  .p-band { --logo-gap: 36px; --logo-k: 0.42; } /* small enough that three or four partners share the screen */
}


/* ==========================================================================
   .cta — the big call to action: a fine frame with the stats panel's cut corner, filled red from
   the left on hover. The anchor stays unclipped, so its focus ring and the magnetic move stay whole.
   ========================================================================== */
.cta {
  --cut: clamp(12px, 1.3vw, 20px);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.62em 1em; border: 0; background: none; color: var(--bone); cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase;
  font-size: clamp(40px, 3.6vw, 64px); line-height: 1; letter-spacing: -0.005em; white-space: nowrap;
}
.cta__frame {
  position: absolute; inset: 0; background: rgba(238, 236, 231, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.cta__frame::before, .cta__frame::after { content: ''; position: absolute; }
.cta__frame::before { /* the ink inside the 1 px line */
  inset: 1px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--cut) - 0.4px) 100%, 0 calc(100% - var(--cut) + 0.4px));
}
.cta__frame::after { inset: 0; background: var(--red); clip-path: inset(0 100% 0 0); transition: clip-path 0.55s var(--ease-out); }
.cta__label, .cta__arrow { position: relative; }
.cta__arrow { color: var(--red-text); font-family: var(--font-mono); font-weight: 500; font-size: 0.72em; transition: transform 0.45s var(--ease-out), color 0.25s; }
.cta:focus-visible { outline: 2px solid var(--bone); outline-offset: 5px; }
.cta:focus-visible .cta__frame::after { clip-path: inset(0); }
.cta:focus-visible .cta__arrow { color: #fff; transform: translateX(6px); }
.cta:focus-visible .cta__label { color: #fff; }
@media (hover: hover) {
  .cta:hover .cta__frame::after { clip-path: inset(0); }
  .cta:hover .cta__label, .cta:hover .cta__arrow { color: #fff; }
  .cta:hover .cta__arrow { transform: translateX(6px); }
}
.cta:disabled { cursor: progress; }
.cta.is-sending .cta__frame::after { transition: none; clip-path: inset(0 100% 0 0); animation: cta-progress 1.3s var(--ease-in-out) infinite; }
.cta.is-sending .cta__arrow { opacity: 0; }
@keyframes cta-progress { 0% { clip-path: inset(0 100% 0 0); } 50% { clip-path: inset(0); } 100% { clip-path: inset(0 0 0 100%); } }
@media (max-width: 760px) {
  .cta { display: flex; width: 100%; font-size: clamp(30px, 9.4vw, 44px); padding-inline: 0.5em; }
}

/* ==========================================================================
   05 — SOCIAL MEDIA
   ========================================================================== */
.social { position: relative; background: var(--ink); color: var(--bone); padding: 0 var(--gutter); }
.social :where(h2, p, ul) { margin: 0; }
.social :where(ul) { padding: 0; list-style: none; }
.s-open { display: grid; justify-items: center; padding-top: var(--space-section); }
.s-open__eyebrow { margin-bottom: var(--space-element); }
.s-open__title { width: max-content; max-width: 100%; outline: none; text-align: center; }
.s-open__title .k-sans { font-size: clamp(56px, 10.4vw, 180px); }
.s-open__outline { margin-top: 0.08em; }
.s-open__title .k-outline { font-size: clamp(36px, 7.1vw, 122px); }
.s-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); margin-top: var(--space-block); }
.s-card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: clamp(18px, 1.7vw, 26px);
  background: var(--ink-2); color: var(--bone); text-decoration: none; transition: transform 0.5s var(--ease-out);
}
.s-card--skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(238, 236, 231, 0.06) 50%, transparent 80%);
  animation: s-shimmer 1.6s linear infinite;
}
@keyframes s-shimmer { to { transform: translateX(100%); } }
.s-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.s-card__over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: var(--space-frame);
  background: linear-gradient(to top, rgba(11, 11, 12, 0.92), rgba(11, 11, 12, 0.6) 55%, rgba(11, 11, 12, 0.3)); opacity: 0; transition: opacity 0.35s;
}
.s-card__caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; line-height: 1.35; }
.s-card__meta { display: flex; align-items: center; justify-content: space-between; font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }
.s-card__icon { width: 18px; height: 18px; color: var(--bone); }
.s-card__play { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 11, 12, 0.6); }
.s-card__play::after { content: ''; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--bone); border-block: 7px solid transparent; }
.s-card:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.s-card:focus-visible .s-card__over { opacity: 1; }
@media (hover: hover) {
  .s-card:hover { transform: translateY(-6px); }
  .s-card:hover .s-card__img { transform: scale(1.04); }
  .s-card:hover .s-card__over { opacity: 1; }
}
.s-links__title { margin-top: var(--space-block); text-align: center; }
.s-links { display: grid; grid-template-columns: repeat(4, clamp(150px, 15vw, 240px)); justify-content: center; gap: clamp(14px, 1.6vw, 28px); margin-top: var(--space-element); }
.s-link {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: clamp(20px, 2vw, 32px) 8px clamp(18px, 1.8vw, 28px);
  color: var(--bone); text-align: center; text-decoration: none;
}
.s-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.5s var(--ease-out); }
.s-link__icon { width: clamp(40px, 3.8vw, 60px); height: clamp(40px, 3.8vw, 60px); margin-bottom: clamp(10px, 1.2vw, 18px); color: var(--bone); transition: color 0.3s; }
.s-link__name { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-variation-settings: 'wdth' 75; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.05; }
.s-link__handle { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.06em; color: var(--bone-dim); }
.s-link__arrow { position: absolute; right: 8px; top: clamp(20px, 2vw, 32px); font: 500 clamp(20px, 1.8vw, 28px)/1 var(--font-mono); color: var(--red-text); opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s, transform 0.45s var(--ease-out); }
.s-link:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.s-link:focus-visible .s-link__icon { color: var(--brand); }
.s-link:focus-visible::after { transform: scaleX(1); }
.s-link:focus-visible .s-link__arrow { opacity: 1; transform: none; }
@media (hover: hover) {
  .s-link:hover .s-link__icon { color: var(--brand); }
  .s-link:hover::after { transform: scaleX(1); }
  .s-link:hover .s-link__arrow { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .s-open__title .k-sans { font-size: 19vw; }
  .s-open__title .k-outline { font-size: 11.6vw; }
  .s-posts {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: 11vw; /* (100 - 78) / 2: a card rests on the axis */
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .s-posts::-webkit-scrollbar { display: none; }
  .s-post { scroll-snap-align: center; }
  .s-links { grid-template-columns: repeat(2, minmax(0, 170px)); }
}
@media (prefers-reduced-motion: reduce) { .s-card--skeleton::after, .cta.is-sending .cta__frame::after { animation: none; } .cta.is-sending .cta__frame::after { clip-path: inset(0); } }

/* ==========================================================================
   Footer (js/footer.js): on every page
   ========================================================================== */
.foot { --foot-row: calc(var(--space-element) * 0.75); position: relative; background: var(--ink); color: var(--bone); padding: var(--space-section) var(--gutter) clamp(20px, 3vh, 32px); }
.foot :where(h2, p, ul) { margin: 0; }
.foot ul { padding: 0; list-style: none; }
/* the hairline opens the footer. One row: logo and links, CONTACT ME on the page's axis, links and icons.
   The two sides are equal, so the button stays centred. --foot-gap between everything, tighter on laptops */
.foot__main {
  --foot-gap: clamp(12px, 5vw - 43px, 28px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--foot-gap);
  padding-top: var(--space-element); border-top: 1px solid var(--bone-faint);
}
.foot__main .cta { --cut: 8px; font-size: clamp(18px, 1.4vw, 22px); min-height: 48px; padding: 0.75em 1.1em; }
.foot__main .cta:hover .cta__arrow, .foot__main .cta:focus-visible .cta__arrow { transform: translateX(3px); }
.foot__side { display: flex; align-items: center; justify-content: space-between; gap: var(--foot-gap); min-width: 0; }
.foot__links { display: flex; gap: var(--foot-gap); }
.foot__link {
  position: relative; display: inline-block; padding: 14px 0; white-space: nowrap;
  font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none; transition: color 0.3s;
}
.foot__link::after { /* the red line, drawn in on hover */
  content: ''; position: absolute; left: 0; right: 0.14em; bottom: 9px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out);
}
.foot__link:focus-visible { color: var(--bone); }
.foot__link:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) {
  .foot__link:hover { color: var(--bone); }
  .foot__link:hover::after { transform: scaleX(1); }
}
.foot__logo { display: block; width: auto; height: 48px; } /* its ink is 40 px high */
.foot__socials { display: flex; gap: 8px; }
.foot__socials .social-icon svg { width: 30px; height: 30px; }
/* the platforms as icons, in the footer and the menu */
.social-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--bone); transition: color 0.3s; }
.social-icon:hover { color: var(--brand); }
.social-icon:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.social-icon svg { width: 24px; height: 24px; }
.foot__base {
  display: flex; flex-wrap: wrap; gap: 10px clamp(16px, 2.4vw, 32px); margin-top: var(--foot-row);
  font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim);
}
.foot__base a { color: inherit; text-decoration: none; }
.foot__base a:hover { color: var(--bone); }
.foot__top { margin-left: auto; }
.foot a:not(.cta):focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
/* the contact page: the hairline and the legal row alone */
.foot--compact { padding-top: 0; }
.foot--compact .foot__base { margin-top: 0; padding-top: var(--space-element); border-top: 1px solid var(--bone-faint); }
/* too narrow for one row: logo and icons above, the links and the button below them */
@media (max-width: 1100px) {
  .foot__main { row-gap: var(--foot-row); }
  .foot__side { display: contents; }
  .foot__logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .foot__socials { grid-column: 3; grid-row: 1; justify-self: end; }
  .foot__links--left { grid-column: 1; grid-row: 2; justify-content: flex-end; }
  .foot__main .cta { grid-column: 2; grid-row: 2; }
  .foot__links--right { grid-column: 3; grid-row: 2; }
}
/* phones and tablets: the button above, the links under it in two columns, the rest centred */
@media (max-width: 900px) {
  .foot__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__main .cta { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .foot__links { flex-direction: column; align-items: center; gap: 0; }
  .foot__links--left { grid-column: 1; grid-row: 2; }
  .foot__links--right { grid-column: 2; grid-row: 2; }
  .foot__logo { grid-column: 1 / -1; grid-row: 3; justify-self: center; height: 36px; }
  .foot__socials { grid-column: 1 / -1; grid-row: 4; justify-self: center; }
  .foot__base { justify-content: center; }
  .foot__top { flex-basis: 100%; margin-left: 0; text-align: center; }
}

/* ==========================================================================
   Contact (contact.html)
   ========================================================================== */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; visibility: hidden;
  padding: calc(var(--header-h) + var(--space-element)) var(--gutter) var(--space-element); background: var(--ink); color: var(--bone); outline: none;
}
/* the legal row at the foot of the screen, however short the form */
.page-contact { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page-contact .contact { flex: 1; }
html:not(.js) .contact { visibility: visible; }
.contact :where(h1, h2, p) { margin: 0; }
.ct-left { position: sticky; top: calc(var(--header-h) + 24px); }
.ct-left.is-done { position: static; }
.ct-left.is-done .ct-sign { display: none; } /* the confirmation's signature writes itself instead */
.ct-title .k-sans { display: block; font-size: clamp(64px, 9.4vw, 170px); }
.ct-title__outline { margin-top: 0.08em; }
.ct-title .k-outline { display: block; font-size: clamp(36px, 5.2vw, 96px); white-space: nowrap; }
.ct-lead { margin-top: var(--space-element); max-width: 28em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; font-weight: 450; }
.ct-sign { width: clamp(170px, 17vw, 270px); margin-top: var(--space-element); }
.ct-sign__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ct-right { outline: none; }
.ct-form { display: grid; gap: clamp(8px, 1.2vh, 14px); }
.ct-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.ct-field { display: grid; gap: 4px; align-content: start; min-width: 0; }
.ct-field > label { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
.ct-field input:not([type='checkbox']), .ct-field select, .ct-field textarea {
  width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(238, 236, 231, 0.35); border-radius: 0; background: none;
  color: var(--bone); font: 450 18px/1.4 var(--font-display); outline: none; transition: border-color 0.2s; appearance: none; -webkit-appearance: none;
}
.ct-field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23eeece7' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center / 12px 8px; }
.ct-field select option { background: var(--ink-2); color: var(--bone); }
.ct-field textarea { resize: vertical; min-height: 104px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.ct-field.is-invalid input, .ct-field.is-invalid select, .ct-field.is-invalid textarea { border-bottom-color: var(--red); }
.ct-error { min-height: 1.3em; font: 500 12px/1.3 var(--font-mono); color: var(--red-text); }
.ct-field > .ct-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; font: 450 15px/1.45 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--bone); }
.ct-check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid rgba(238, 236, 231, 0.5); background: none; cursor: pointer; }
.ct-check input:checked { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 4px var(--ink); }
.ct-check input:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.ct-field.is-invalid .ct-check input { border-color: var(--red); }
.ct-check a, .ct-alert a { color: var(--bone); text-underline-offset: 3px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-alert { padding: 14px 16px; border-left: 2px solid var(--red); background: var(--ink-2); font-size: 16px; line-height: 1.5; outline: none; }
.ct-alert[hidden] { display: none; }
.ct-done { outline: none; }
.ct-done[hidden], .ct-form[hidden] { display: none; }
.ct-done__title .k-sans { display: block; font-size: clamp(56px, 7.6vw, 140px); }
.ct-done__title .k-outline { display: block; font-size: clamp(40px, 5.6vw, 104px); margin-top: 0.08em; }
.ct-home { display: inline-block; margin-top: var(--space-element); font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); text-underline-offset: 4px; }
@media (max-width: 760px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .ct-left { position: static; }
  .ct-title .k-sans { font-size: 26vw; }
  .ct-title .k-outline { font-size: 13.4vw; }
  .ct-left .ct-sign { width: 46vw; }
  .ct-pair { grid-template-columns: minmax(0, 1fr); gap: clamp(8px, 1.2vh, 14px); }
  .ct-submit .cta { width: 100%; font-size: clamp(30px, 9.4vw, 44px); }
}

/* ==========================================================================
   Imprint and Privacy Policy
   ========================================================================== */
.legal { padding: calc(var(--header-h) + var(--space-block)) var(--gutter) 0; background: var(--ink); color: var(--bone); outline: none; min-height: 70vh; }
.legal__title { margin: 0; }
.legal__title .k-sans { display: block; font-size: clamp(56px, 9.4vw, 170px); }
.legal__title .k-outline { display: block; font-size: clamp(32px, 5.2vw, 96px); margin-top: 0.08em; }
.legal__text { max-width: 44em; margin-top: var(--space-block); font-size: 18px; line-height: 1.5; color: var(--bone-dim); }
.legal__text h2 { margin: 1.8em 0 0.4em; font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; color: var(--bone); }
.legal__text p { margin: 0 0 0.8em; }
.legal__text strong { font-weight: 600; color: var(--bone); }
.legal__text a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__block { margin-top: 1.8em; padding: var(--space-frame); border: 1px dashed var(--red); }
.legal__block h2 { margin-top: 0.8em; }
.legal__block > :last-child { margin-bottom: 0; }
/* a value still to fill in; none may be left when the site goes live */
.legal__todo { background: none; color: var(--red-text); font-family: var(--font-mono); font-size: 0.82em; }
.legal__home { margin-top: var(--space-block); }
.legal__home .cta { --cut: clamp(10px, 1vw, 15px); font-size: clamp(30px, 2.7vw, 48px); }

/* ==========================================================================
   Shop — coming soon (shop.html)
   The helmet in front of the type, as in the hero; the signature over both; the marquee and the
   call to follow at the foot. Everything is layered on one full-screen stage.
   ========================================================================== */
.shop-stage {
  --box: min(50vh, 66vw); /* the helmet's square */
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
}
.js .shop-stage { visibility: hidden; } /* revealed by js/shop.js once the helmet is ready */
.shop__title {
  position: relative; z-index: 1; margin: 0; transform: translateY(-2vh);
  display: grid; justify-items: center; text-align: center;
}
.shop__word { font-size: min(34vw, 52vh); line-height: 0.8; }
.shop__soon { font-size: min(10vw, 15.5vh); margin-top: 0.12em; }
.shop__helmet {
  /* placed with left/top, not translate: the entrance tween owns its transform. The helmet is drawn
     at 86% of this square's height, centred on it (js/shop/helmet-stage.js). */
  position: absolute; z-index: 2; left: calc(50% - var(--box) / 2); top: calc(50% - var(--box) * 0.44);
  width: var(--box); aspect-ratio: 1; touch-action: pan-y;
}
.shop__canvas { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .shop__helmet { cursor: grab; }
  .shop__helmet.is-dragging { cursor: grabbing; }
}
/* without WebGL: the photographed helmet from the hero photo, softly faded out at the edges */
.shop__fallback {
  display: none; position: absolute; inset: 0;
  background: url(../assets/img/kiano-helmet-arm.jpg) no-repeat;
  background-size: calc(var(--box) * 4.55) auto; /* the photo's helmet (centre 446 / 770 px) fills the square */
  background-position: calc(var(--box) * -1.022) calc(var(--box) * -2.128);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.shop-stage.is-fallback .shop__canvas { display: none; }
.shop-stage.is-fallback .shop__fallback { display: block; }
.shop__sign {
  position: absolute; z-index: 3; left: 80%; top: 55%; width: min(18vw, 280px);
  translate: -50% -50%; pointer-events: none;
}
.shop__sign-svg { display: block; width: 100%; height: auto; overflow: visible; }
.shop__back, .shop__eyebrow { position: absolute; z-index: 4; top: calc(var(--header-h) + 2vh); }
.shop__back {
  left: var(--gutter); display: flex; align-items: center; min-height: 44px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none; transition: color .3s;
}
.shop__back:hover { color: var(--bone); }
.shop__eyebrow { left: 0; right: 0; line-height: 44px; text-align: center; pointer-events: none; } /* full width: it must not cover "Back to home" */
.shop__foot {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: grid; justify-items: center; gap: 2.2vh;
  padding-bottom: max(4vh, env(safe-area-inset-bottom, 0px));
}
.shop__marquee { display: flex; width: 100%; overflow: hidden; }
.shop__marquee-track {
  flex: none; display: flex; align-items: center; gap: 0.35em; padding-right: 0.35em;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: 'wdth' 62;
  font-size: clamp(40px, 6.5vw, 104px); line-height: 1; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--bone); opacity: 0.15;
  animation: shop-marquee 80s linear infinite;
}
.shop__marquee-track i { font-style: normal; }
@keyframes shop-marquee { to { transform: translateX(-100%); } }
.shop__cta {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--bone-faint); border-radius: 99px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.shop__cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.shop__follow { display: grid; justify-items: center; gap: 10px; }
.shop__handle { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--bone-dim); }
.is-reduced .shop__marquee-track { animation: none; }
@media (max-width: 760px) {
  /* the type above, the helmet lower: it overlaps "Coming soon" and the foot of "Shop" */
  /* svh, not vh: on iOS vh is the height with the toolbars hidden, and the title rose into the eyebrow */
  .shop-stage { --box: min(40vh, 74vw); --box: min(40svh, 74vw); }
  .shop__title { transform: translateY(-12vh); transform: translateY(-12svh); }
  .shop__word { font-size: 38vw; }
  .shop__soon { font-size: 11.2vw; }
  .shop__helmet { top: calc(50% - var(--box) * 0.2); }
  .shop__eyebrow { top: calc(var(--header-h) + 2svh + 44px); line-height: 1.5; padding: 0 var(--gutter); }
  .shop__back { top: calc(var(--header-h) + 2svh); }
  .shop__sign { left: 84.5%; top: 64%; width: 34vw; }
}

/* ==========================================================================
   Reduced motion: no pin, no scrubbing — the final composition as a still.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__grain, .hero__cue i::after { animation: none; }
  .hero__cue, .hero__progress { display: none; }
  .k-station--vision .k-station__dot::after { animation: none; }
  .k-station__dot, .k-station > span { transition: none; }
  .shop__marquee-track { animation: none; }
  .r-entry__year { transition: none; }
}

/* ==========================================================================
   iOS Safari: an image must never size its aspect-ratio box. Safari let the
   intrinsic size (width/height attributes, 2400×3000) blow the story photos up
   past the screen. The box takes its size from aspect-ratio alone; the image
   is laid over it.
   ========================================================================== */
:is(.k-chapter__media, .k-profile__photo, .r-entry__card, .r-journey__frame, .s-card, .menu__photo) { position: relative; min-width: 0; }
.k-chapter__media { align-self: stretch; width: auto; }
:is(.k-chapter__media, .k-profile__photo, .r-fan__card, .r-entry__card, .r-journey__frame, .s-card, .menu__photo) img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
}

/* Phones: the header gets its own ground, so the text no longer runs under the logo and MENU */
@media (max-width: 760px) {
  .site-header::before {
    content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) calc(100% - 18px), rgba(11, 11, 12, 0));
    transition: opacity .4s var(--ease-out);
  }
  .menu-open .site-header::before { opacity: 0; }
}
@media (max-width: 760px) {
  /* a short fade under the sticky year bar: the text slides under it instead of being cut at a line */
  .r-journey__count::after {
    content: ''; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    height: 22px; background: linear-gradient(var(--ink), rgba(11, 11, 12, 0)); pointer-events: none;
  }
}

/* Touch: no film grain. A blended layer twice the screen's size over a WebGL canvas that redraws
   on every scroll frame made the iPhone composite both each frame, the hero's heaviest cost. */
@media (pointer: coarse) {
  .hero__grain { display: none; }
}

/* Phones, calendar: cleaner rows. The results sit on the right, under the date, as wide as they
   need (no empty slots, no class column: the class is in the race view). The race view leaves out
   the elevation profile and its scale note; the track alone fills the space. */
@media (max-width: 760px) {
  .c-row__result { justify-self: end; grid-template-columns: repeat(4, auto); }
  .c-row__pole { grid-column: auto; justify-self: end; padding-right: var(--chip-pad); }
  .c-row__pole:empty { display: none; }
  .c-chip--1, .c-chip--2, .c-chip--3 { grid-column: auto; width: var(--chip-w); } /* one width: the races line up from row to row */
  .c-row__class { display: none; }
  .c-detail__profile, .c-detail__scale { display: none; }
}

/* the elements that drift with the scroll: on their own layer, moved by the compositor without
   repainting (the outlined chapter numbers were repainted on every scroll step in Safari) */
.k-chapter__no, [data-k-parallax], [data-r-fan-wrap], .k-car__body, .k-car__shadow { will-change: transform; }

/* Race view, results: the tags' wrapper is transparent on wide screens (pole, class and fastest
   lap stay in the outcome's columns). Phones: two clean lines per race. The race on the left,
   the position on the right; under them, from the left, class · pole · fastest lap. */
.c-detail__tags { display: contents; }
@media (max-width: 760px) {
  .c-detail__result {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: 16px; row-gap: 8px; padding: 12px 4px 12px 0;
  }
  .c-detail__outcome { display: contents; }
  .c-detail__race { grid-column: 1; grid-row: 1; }
  .c-detail__outcome .c-pos { grid-column: 2; grid-row: 1; justify-self: end; font-size: 30px; }
  .c-detail__tags { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
  .c-detail__tags:empty { display: none; }
  .c-detail__tags .c-tag:not(.c-tag--pole):not(.c-tag--fastest) { order: -1; }
  .c-detail__tags .c-fastest { display: flex; align-items: center; gap: 8px; }
  .c-detail__outcome .c-tag:not(.c-tag--pole):not(.c-tag--fastest), .c-detail__outcome .c-fastest { grid-column: auto; justify-self: auto; justify-items: start; }
}

/* Phones, footer: CONTACT ME across the width · logo left and icons right (the menu already holds
   the section links) · a hairline, then © and Back to top, Imprint and Privacy Policy, on the two edges. */
@media (max-width: 760px) {
  .foot { padding-top: var(--space-block); }
  .foot__main { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-top: 24px; }
  .foot__main .cta { grid-column: 1; grid-row: 1; justify-self: stretch; justify-content: center; }
  .foot__links { display: none; }
  .foot__logo { grid-column: 1; grid-row: 2; justify-self: start; height: 32px; margin-top: 26px; }
  .foot__socials { grid-column: 1; grid-row: 2; justify-self: end; gap: 0; margin: 20px -10px 0 0; }
  .foot__socials .social-icon svg { width: 24px; height: 24px; }
  .foot__base {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 12px;
    margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bone-faint); font-size: 10px;
  }
  .foot__base > :first-child { grid-column: 1; grid-row: 1; }
  .foot__base .foot__top { grid-column: 2; grid-row: 1; justify-self: end; flex-basis: auto; margin: 0; text-align: right; }
  .foot__base a[href="imprint.html"] { grid-column: 1; grid-row: 2; }
  .foot__base a[href="privacy.html"] { grid-column: 2; grid-row: 2; justify-self: end; }
  .foot--compact .foot__base { grid-template-rows: auto auto; }
}
@media (max-width: 760px) {
  /* one line on a phone, centred under the title as the title itself */
  .c-open__meta { font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; text-align: center; }
}
