/* ==========================================================================
   Auto Sportivo
   Dark, Italian, motion-led. One theme, done properly.

   Motion note: --ease-* / --dur-* below are generated at build time by
   lib/spring.js from the reference site's real spring constants. They are
   CSS linear() curves sampled off the actual physics, not cubic-bezier
   guesses. Every one is overdamped, so nothing overshoots.
   ========================================================================== */

:root {
  /* Generated springs ---------------------------------------------------- */
--ease-section: linear(0,0.025,0.0809,0.1496,0.2217,0.2921,0.3587,0.4204,0.477,0.5285,0.5753,0.6176,0.6558,0.6903,0.7215,0.7496,0.775,0.7979,0.8186,0.8372,0.854,0.8692,0.8828,0.8952,0.9063,0.9163,0.9254,0.9335,0.9409,0.9475,0.9535,0.9589,0.9638,0.9682,0.9721,0.9757,0.9789,0.9818,0.9845,0.9868,0.989,0.9909,0.9926,0.9942,0.9956,0.9969,0.998,0.9991,1);
  --dur-section: 0.845s;
  --ease-content: linear(0,0.0134,0.0476,0.0951,0.1506,0.2101,0.271,0.3313,0.3896,0.4451,0.4973,0.5459,0.5908,0.6321,0.6699,0.7042,0.7354,0.7636,0.7891,0.812,0.8327,0.8512,0.8679,0.8828,0.8961,0.9081,0.9187,0.9283,0.9368,0.9444,0.9512,0.9573,0.9627,0.9675,0.9718,0.9756,0.9791,0.9821,0.9848,0.9872,0.9894,0.9913,0.993,0.9945,0.9959,0.9971,0.9982,0.9991,1);
  --dur-content: 0.843s;
  --ease-slow: linear(0,0.0143,0.0505,0.1003,0.1579,0.2192,0.2813,0.3424,0.401,0.4566,0.5085,0.5566,0.6009,0.6415,0.6784,0.712,0.7424,0.7698,0.7945,0.8168,0.8368,0.8548,0.8709,0.8853,0.8983,0.9099,0.9202,0.9295,0.9378,0.9452,0.9518,0.9577,0.963,0.9678,0.972,0.9757,0.9791,0.9821,0.9848,0.9872,0.9894,0.9913,0.993,0.9945,0.9959,0.9971,0.9982,0.9991,1);
  --dur-slow: 1.200s;
  --ease-fade: linear(0,0.0476,0.128,0.2087,0.2835,0.3515,0.4133,0.4692,0.5199,0.5659,0.6075,0.6453,0.6794,0.7104,0.7385,0.7639,0.787,0.8079,0.8268,0.8439,0.8595,0.8736,0.8863,0.8979,0.9084,0.9178,0.9265,0.9342,0.9413,0.9477,0.9535,0.9588,0.9635,0.9678,0.9718,0.9753,0.9785,0.9814,0.984,0.9864,0.9886,0.9906,0.9923,0.994,0.9954,0.9967,0.9979,0.999,1);
  --dur-fade: 1.335s;

  /* Tween lifted verbatim from the reference's appear JSON. */
  --ease-tween: cubic-bezier(0.44, 0, 0.56, 1);
  --dur-tween: 0.4s;

  /* Colour ---------------------------------------------------------------
     Italian tricolour on near-black, matching the palette they already use
     on their own flyer. */
  --ink:        #0A0A0B;
  --ink-2:      #0E0E10;
  --surface:    #121214;
  --surface-2:  #17171A;
  --line:       rgba(255, 255, 255, 0.10);
  --line-2:     rgba(255, 255, 255, 0.18);

  --text:       #F4F4F5;
  --muted:      rgba(255, 255, 255, 0.64);
  /* 0.50 = 5.6:1 on ink; 0.40 measured 3.77:1, below the 4.5:1 minimum */
  --faint:      rgba(255, 255, 255, 0.50);

  --red:        #E4002B;
  --red-deep:   #B40021;
  --green:      #008C45;
  --white:      #F4F4F5;

  --glass:      rgba(255, 255, 255, 0.06);
  --glass-2:    rgba(255, 255, 255, 0.10);

  /* Radii, straight off the reference's computed styles. */
  --r-pill:     50px;
  --r-card:     24px;
  --r-panel:    32px;
  --r-sm:       12px;

  /* Rhythm */
  --wrap:       1280px;
  --gutter:     clamp(20px, 5vw, 56px);
  --section:    clamp(56px, 6.5vw, 96px);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  /* Explicit opaque background: Safari 26 samples this for the status-bar
     tint when the sticky header is disqualified by its backdrop-filter. */
  background: var(--ink);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Every page but Home: film grain plus a warm red glow from the top right (Lewis chose it from six,
   26 Oct 2026). It is a background-image on body, which keeps its opaque background-color, so
   nothing overlays the top edge and Safari 26 status-bar sampling is unaffected. */
html:not([data-page="index"]) body {
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 760px at 88% -6%, rgba(228,0,43,.36), rgba(228,0,43,0) 70%);
  background-size: 180px 180px, 100% 100%;
  background-repeat: repeat, no-repeat;
}

img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
picture > source { display: none; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* Type ------------------------------------------------------------------- */
.display, h1, h2, h3, .stat__value, .foot__big {
  font-family: Archivo, system-ui, sans-serif;
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 3.4vw, 3rem); }   /* 48px at 1440, same as Parts and the home headline; was 61px (Lewis: "huge", 26 Oct 2026) */
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: clamp(1rem, 1.4vw, 1.2rem); letter-spacing: -0.02em; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--white) 50%, var(--red));
}

.lede { font-size: clamp(0.975rem, 1.1vw, 1.075rem); color: var(--muted); max-width: 62ch; }
.tri { color: var(--red); }

/* Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 4.5vw, 64px); }

/* px, not ch: ch here resolves against the 16px body font, which made the
   measure ~620px and wrapped every heading to four or five lines. */
.section__head { display: grid; gap: 12px; margin-bottom: clamp(24px, 2.8vw, 40px); max-width: 880px; }

/* Buttons ---------------------------------------------------------------- */
/* 44px tall, 12/20 padding, 50px radius - the reference's own button box. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background var(--dur-tween) var(--ease-tween),
              transform var(--dur-tween) var(--ease-tween);
}
.btn:hover { background: var(--red-deep); transform: scale(0.97); }
.btn:active { transform: scale(0.95); }

.btn--ghost {
  background: var(--glass); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { background: var(--glass-2); }

.btn[hidden] { display: none; }   /* .btn sets display, which otherwise beats the hidden attribute */
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 0.8125rem; }

/* Appear system ----------------------------------------------------------
   data-appear="<spring>" starts the element displaced; .is-in releases it.
   The distances are the reference's own: 160px for big blocks, 20px for
   content, 12px for the slow lift. */
[data-appear] { will-change: transform, opacity; }

[data-appear="section"] { opacity: 0.001; transform: translate3d(0, 160px, 0); }
[data-appear="content"] { opacity: 0.001; transform: translate3d(0, 20px, 0); }
[data-appear="slow"]    { opacity: 0.001; transform: translate3d(0, 12px, 0); }
[data-appear="side"]    { opacity: 0.001; transform: translate3d(20px, 0, 0); }
[data-appear="fade"]    { opacity: 0.001; }

[data-appear].is-in { opacity: 1; transform: translate3d(0, 0, 0); }

[data-appear="section"].is-in { transition: transform var(--dur-section) var(--ease-section), opacity var(--dur-tween) var(--ease-tween); }
[data-appear="content"].is-in { transition: transform var(--dur-content) var(--ease-content), opacity var(--dur-tween) var(--ease-tween); }
[data-appear="slow"].is-in    { transition: transform var(--dur-slow)    var(--ease-slow),    opacity var(--dur-tween) var(--ease-tween); }
[data-appear="side"].is-in    { transition: transform var(--dur-content) var(--ease-content), opacity var(--dur-tween) var(--ease-tween); }
[data-appear="fade"].is-in    { transition: opacity var(--dur-fade) var(--ease-fade); }

/* Stagger inside a group. */
[data-appear].is-in { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-appear] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: transform 0.45s var(--ease-tween), background-color 0.3s linear;
}
.site-header__inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 16px var(--gutter);
}
/* Scrolled state gets the glass. backdrop-filter disqualifies this element
   from Safari 26's status-bar sampling, which is deliberate: the tint then
   falls back to body's opaque background instead of a translucent strip. */
.site-header.is-stuck {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand { flex: none; }
.brand__mark { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted);
  transition: color var(--dur-tween) var(--ease-tween), background-color var(--dur-tween) var(--ease-tween);
}
.nav__link:hover { color: var(--text); background: var(--glass); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--red);
}

.site-header__call { flex: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); }
.burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-tween), opacity 0.3s var(--ease-tween);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile sheet. Deliberately a sibling of the header, never a child: a
   position:fixed panel nested inside a backdrop-filtered element sizes
   against that element instead of the viewport. */
.sheet {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px var(--gutter) 40px;
  background: var(--ink);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-tween);
}
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet__nav { display: grid; gap: 4px; }
.sheet__nav a {
  font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem); text-transform: uppercase; line-height: 1.1;
  letter-spacing: -0.03em;
  opacity: 0; transform: translateY(20px);
}
.sheet.is-open .sheet__nav a {
  opacity: 1; transform: none;
  transition: opacity var(--dur-tween) var(--ease-tween), transform var(--dur-content) var(--ease-content);
  transition-delay: calc(60ms + var(--i, 0) * 45ms);
}
.sheet__foot { display: grid; gap: 16px; justify-items: start; }
.sheet__addr { color: var(--muted); font-size: 0.9375rem; }

/* ==========================================================================
   Hero
   The five marque badges land above their own car in the render, centre
   outwards, then the headline resolves.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(96px, 11vh, 128px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
}

/* ---- Headlights on ----------------------------------------------------
   The page opens dark; the cars' headlights come on outside-in, then the
   room comes up. --lit (0..1) is the room: 1 by default so the hero is lit
   without JS; html.js starts it at 0 and main.js raises it.
   .hero__lit is the same render at full brightness, masked (--pools, built
   in JS) to each lamp and its own reflection on the floor.
   No zoom on the image any more: the lamps are pinned to exact headlight
   coordinates and a scaling image would slide out from under them. */
.hero { --lit: 1; }
.js .hero { --lit: 0; }
.hero__base { filter: brightness(calc(0.06 + 0.94 * var(--lit))) saturate(calc(0.45 + 0.55 * var(--lit))); }
.hero__lit { position: absolute; inset: 0; display: none; }
.js .hero__lit {
  display: block;
  -webkit-mask-image: var(--pools, linear-gradient(transparent, transparent));
          mask-image: var(--pools, linear-gradient(transparent, transparent));
}

/* The room, already at its final darkened level (the render under the same
   80% ink as .hero__dim), revealed by circles growing out of each headlight
   (--spread). Brightness only ever rises to the final level; it never flashes
   bright and falls back. When the spread completes, .is-settled hands over to
   the normal layers (--lit 1 + .is-dim), which composite to the same pixels. */
.hero__room { position: absolute; inset: 0; display: none; }
.hero__room::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0.8; }
.js .hero__room {
  display: block;
  -webkit-mask-image: var(--spread, linear-gradient(transparent, transparent));
          mask-image: var(--spread, linear-gradient(transparent, transparent));
}
.js .hero__lit { opacity: var(--litop, 1); }
.hero.is-settled .hero__room { display: none; }
.hero.is-settled .hero__dim { transition: none; }
.hero__lamps { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* main.js slides .hero__bg and .hero__lamps together (alignFerrari) */
.hero__bg, .hero__lamps { transform-origin: 50% 50%; }
/* A soft bloom on each lamp; opacity is driven frame by frame from main.js.
   No lens streak: it cut across the neighbouring cars and read as a glitch. */
.lamp {
  position: absolute; width: var(--s, 48px); height: var(--s, 48px); translate: -50% -50%;
  border-radius: 50%; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0 8%, rgba(225,238,255,.55) 22%,
              rgba(190,215,255,.18) 44%, transparent 68%);
}

/* Legibility wash. Absolutely positioned inside .hero (never fixed), so it
   cannot become Safari's status-bar sample. */
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* top band carries the headline, so it needs the most cover */
    linear-gradient(180deg, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.66) 22%, rgba(10,10,11,0.10) 44%),
    /* just enough at the foot to seat the badges and blend into the page */
    linear-gradient(0deg, var(--ink) 0%, rgba(10,10,11,0.38) 12%, rgba(10,10,11,0) 30%),
    /* lift the left side so the headline holds against the Abarth */
    linear-gradient(90deg, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0) 46%);
}

/* ---- After the lights: the room dims and the marques take the stage ----
   Sequence (main.js): headlights on, room comes up, the five badges appear
   in front of their own cars, then .is-dim drops a dark wash over the scene
   while the badges fly up into the row below (FLIP: they are laid out in
   their final place and animated from their car). .is-text brings in the
   words, .is-ready the credits. Without JS everything is simply visible. */
.hero__dim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ink); opacity: 0;
  transition: opacity 1.1s var(--ease-tween);
}
.hero.is-dim .hero__dim { opacity: 0.8; }

.hero__inner {
  position: relative; z-index: 3; flex: 1;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gutter) clamp(12px, 3vh, 40px);
  display: grid; align-content: center; justify-items: center; text-align: center;
  gap: clamp(30px, 4.6vh, 52px);
}

/* The row: left-to-right in the same order as the cars, so each badge
   flies straight up from its own car and no two paths cross. */
/* Five equal columns (each as wide as the widest, "Alfa Romeo"), so the
   Ferrari sits exactly on the page centre, over the rule and headline. */
.hero__marques { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; justify-items: center;
  column-gap: clamp(12px, 3.2vw, 56px); }
.marque { display: grid; justify-items: center; gap: 14px; }
/* Sized by HEIGHT, not width: Ferrari is a 0.63:1 shield, Fiat and Alfa are
   discs; equal widths make the shield tower. */
.marque__badge { height: var(--badge-h, clamp(56px, 8vw, 128px)); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7)); }
.marque__badge img { height: 100%; width: auto; }
/* The shield is narrow, so at the discs' height it reads smallest; it is
   also the lead car. A little more. */
.marque[data-marque="ferrari"] { --badge-h: clamp(64px, 9vw, 146px); }
.marque__name {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

.hero__rule { width: 72px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%); }
.hero__head { display: grid; justify-items: center; gap: 18px; max-width: min(100%, 980px); }
/* The badges are the subject; the headline is their caption. */
.hero h1 { font-size: clamp(1.8rem, 3.3vw, 3.2rem); text-wrap: balance; }
.hero h1 .tri { display: inline; }
.hero__sub {
  font-family: Inter, sans-serif; font-weight: 500;
  font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* JS-driven start states. */
.js .marque { opacity: 0; }
.js .marque__name, .js .hero__rule, .js .hero__head { opacity: 0.001; }
.js .hero__head { transform: translate3d(0, 24px, 0); }
.marque__name, .hero__rule { transition: opacity 0.7s var(--ease-tween); }
.hero__head { transition: opacity var(--dur-tween) var(--ease-tween), transform var(--dur-content) var(--ease-content); }
.hero.is-text .marque__name, .hero.is-text .hero__rule, .hero.is-text .hero__head { opacity: 1; transform: none; }
/* If the script never runs, don't leave anyone in the dark. */
.js-failsafe .hero { --lit: 1 !important; }
.js-failsafe .marque, .js-failsafe .marque__name, .js-failsafe .hero__rule,
.js-failsafe .hero__head { opacity: 1 !important; transform: none !important; }

/* The foot runs full-bleed so the credits carousel crosses the whole
   floor; only its label is held to the content column. */
.hero__foot {
  position: relative; z-index: 3;
  width: 100%;
  padding-bottom: clamp(18px, 2.6vw, 34px);
  display: grid; gap: clamp(10px, 1.4vw, 16px);
}
.hero__credits-label {
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  text-align: center;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint);
  opacity: 0.001; transition: opacity var(--dur-fade) var(--ease-fade);
}
.marquee--hero {
  padding: 6px 0;
  /* feather both ends so logos drift in and out rather than being cut */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  opacity: 0.001; transition: opacity var(--dur-fade) var(--ease-fade) 0.2s;
}
.hero.is-ready .hero__credits-label,
.hero.is-ready .marquee--hero { opacity: 1; }
.js-failsafe .hero__credits-label, .js-failsafe .marquee--hero { opacity: 1 !important; }

/* ==========================================================================
   Credits marquee - who he has been on
   ========================================================================== */
.credits { border-block: 1px solid var(--line); background: var(--surface); }
.credits__label {
  text-align: center; padding-top: 26px;
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}
/* Carousel loop. The page ships ONE set of logos; main.js (initMarquees)
   measures it, repeats it until the strip is wider than the screen plus one
   set, and loops by exactly one set's width in px (--shift). Never loop by
   -50% of a doubled strip: on a wide screen one set is narrower than the
   viewport and the strip runs out, leaving a gap on the right. */
.marquee { overflow: hidden; padding: 22px 0 30px; }
.marquee__track {
  display: flex; align-items: center; gap: clamp(32px, 5vw, 72px);
  width: max-content;
}
.marquee.is-looping .marquee__track { animation: slide var(--speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translate3d(var(--shift, 0px), 0, 0); } }
/* Reviews: two rows, top drifting right, bottom left (as on glowgetterbedford).
   No pause on hover. Cards stretch to the tallest in the row, so all match;
   the width cap is also the max-width, or Firefox sizes each card's
   max-content contribution from its unwrapped text and leaves gaps. */
.marquee--reverse.is-looping .marquee__track { animation-direction: reverse; }
.rmarq { display: grid; gap: 14px; }
.marquee--reviews { padding: 0; }
.marquee--reviews:hover .marquee__track { animation-play-state: running; }
.marquee--reviews .marquee__track { gap: 14px; align-items: stretch; }
.rslide { flex: 0 0 min(380px, 84vw); max-width: min(380px, 84vw); margin: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.rslide__stars { display: flex; gap: 2px; color: #FBBC04; }
.rslide__stars svg { width: 13px; height: 13px; fill: currentColor; }
.rslide blockquote { margin: 0; flex: 1; font-size: .875rem; line-height: 1.45; }
.rslide figcaption { display: flex; align-items: center; gap: 10px; font-size: .8125rem; }
.rslide figcaption span:last-child { color: var(--faint); margin-left: auto; }
.rslide__avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .75rem;
  background: rgba(255, 255, 255, .08); }
/* The cars that come through: full-bleed photo carousel. Every photo is the
   same height and shown whole (width follows its own aspect ratio). */
.marquee--rides { padding: 4px 0 0; }
.marquee--rides .marquee__track { gap: clamp(12px, 1.4vw, 18px); align-items: stretch; }
.ride { position: relative; margin: 0; height: clamp(220px, 30vh, 320px); aspect-ratio: var(--ar); border-radius: var(--r-card); overflow: hidden; flex: none; }
.ride img { width: 100%; height: 100%; display: block; }
.ride figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 50px; font-size: .8125rem; font-weight: 500;
  background: rgba(10, 10, 11, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.credit { display: flex; align-items: center; gap: 14px; flex: none; opacity: 0.72; transition: opacity var(--dur-tween) var(--ease-tween); }
.credit:hover { opacity: 1; }
.credit img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.credit__name { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
/* Title and magazine logos: height set per logo by build.js markHeight (equal
   area), never cropped into the avatar circle. */
.credit img.credit__mark { width: auto; border-radius: 0; object-fit: contain; }
.credit--text .credit__text {
  font-family: Archivo, sans-serif; font-variation-settings: "wdth" 100; font-weight: 700;
  font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  padding: 9px 18px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ==========================================================================
   Stats
   ========================================================================== */
/* Stats: one card per platform (build.js statBlock). */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.2vw, 28px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card, 24px); color: inherit; text-decoration: none;
  transition: border-color var(--dur-tween) var(--ease-tween), background var(--dur-tween) var(--ease-tween); }
.stat:hover, .stat:focus-visible { border-color: rgba(255, 255, 255, .22); background: #17171a; }
.stat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.stat__icon svg { width: 22px; height: 22px; }
.stat__icon--google { background: #fff; color: #4285F4; }
.stat__icon--facebook { background: #1877F2; color: #fff; }
.stat__icon--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); color: #fff; }
.stat__icon--youtube { background: #FF0000; color: #fff; }
.stat__value { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; }
.stat__label { font-size: 0.9375rem; font-weight: 500; }
.stat__detail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.8125rem; color: var(--faint); }

/* partial stars: a lit row clipped to the rating over an unlit row */
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars svg { flex: none; width: 13px; height: 13px; fill: currentColor; margin-right: 2px; }
.stars__off { display: inline-flex; color: rgba(255, 255, 255, .18); }
.stars__on { position: absolute; inset: 0; display: inline-flex; color: #FBBC04; overflow: hidden; width: var(--fill); white-space: nowrap; }

/* ==========================================================================
   What we do (home, straight after the hero): collapsing cards
   Each card is position: sticky, its top a strip-height lower than the card
   before. Scrolling slides the next card up over the current one until it
   pins just below it, leaving only the covered card's title strip showing:
   the cards collapse into a stack of labelled tabs. main.js adds depth by
   shrinking and darkening each card as more cards pile on top of it.
   ========================================================================== */
.svcs { padding-block: var(--section) clamp(40px, 6vw, 80px); }
/* Text pinned on the left, the card stack on the right. --top/--strip live on
   the layout so the pinned heading lines up with the first card. */
.svcs__layout { --strip: 68px; --top: 92px; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 64px); align-items: start; }
.svcs__head { position: sticky; top: var(--top); display: grid; gap: 12px; align-content: start; padding-top: 4px; }
.svcs__intro { font-size: clamp(0.975rem, 1.1vw, 1.075rem); color: var(--muted); max-width: 60ch; }

.svcs__stack { position: relative; }
.scard {
  position: sticky;
  top: calc(var(--top) + var(--i) * var(--strip));
  /* every card fits the screen even when it is the last in the pile */
  height: calc(100svh - var(--top) - (var(--n, 5) - 1) * var(--strip) - 28px);
  min-height: 340px;
  display: grid; grid-template-rows: var(--strip) minmax(0, 1fr);
  border-radius: 28px; overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--card-shadow, 0 -18px 40px -12px rgba(0, 0, 0, 0.7));
  transform-origin: 50% 0;
  will-change: transform;
}
/* Spacing goes ABOVE each card, never below: a sticky element must keep its
   margin box inside the stack, so a bottom margin shoves the buried cards up
   out of place once the stack reaches its end. */
.scard + .scard { margin-top: 26svh; }
/* darkening as it gets buried (set from main.js) */
.scard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: var(--dim-to, #000); opacity: var(--dim, 0);
}

.scard__strip { display: flex; align-items: center; gap: 18px; padding: 0 clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line); }
.scard__num { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.2rem; color: var(--red); }  /* 19.2px bold = large text, so red passes (3.86:1 >= 3:1) */
.scard__name { font-size: clamp(1.05rem, 1.9vw, 1.6rem); }


.scard__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px);
  padding: clamp(20px, 3vw, 36px); min-height: 0; }
.scard__text { display: grid; align-content: center; gap: 22px; }
.scard__blurb { font-size: clamp(0.95rem, 1.05vw, 1.05rem); line-height: 1.6; max-width: 42ch; }
.scard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.scard__go { justify-self: start; }
/* phones: the link moves into the title strip (where the hidden 04 / 05 sat) so the
   button does not take height from the photo */
.scard__strip-go { display: none; margin-left: auto; font-size: 0.8125rem; font-weight: 600; color: var(--red); white-space: nowrap; }
.scard__tags li { font-size: 0.8125rem; padding: 7px 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); }
/* The photo is never cropped. Its slot is a size container; the photo takes
   the largest size that fits at its own proportions (--ar, written by the
   build from the file itself) and sits centred in the slot. */
.scard__media { container-type: size; min-height: 0; min-width: 0; display: grid; place-items: center; }
.scard__media img {
  width: min(100cqw, 100cqh * var(--ar, 1.3333)); height: auto; aspect-ratio: var(--ar, 1.3333);
  border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line);
}

.svcs__all { margin-top: 8px; }
/* The counter under the pinned text (main.js initCount): a big outlined
   number that rolls like an odometer to the card on top of the stack, with
   that card's name under a tricolour rule. Sized by screen height too, so the
   left column still fits a 720px-tall laptop. */
.svcs__count { margin-top: clamp(14px, 4vh, 44px); display: grid; justify-items: start; gap: 10px; }
.svcs__reel { height: 1em; overflow: hidden; font-family: Archivo, sans-serif; font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: clamp(4.5rem, min(13vw, 21vh), 12rem); line-height: 1; letter-spacing: -.04em; }
.svcs__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--v, 0) * -1em)); }
.svcs__strip span { height: 1em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85); }
.svcs__rule { width: 96px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%); }
.svcs__now { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; }
.svcs__of { font-size: .75rem; letter-spacing: .2em; color: var(--faint); font-weight: 600; }

/* Short screens: five title strips eat the height, so slim them to give the
   open card (and its photo) more room. */
@media (min-width: 811px) and (max-height: 820px) {
  .svcs__layout { --strip: 56px; --top: 84px; }
  .scard__name { font-size: 1.15rem; }
  .scard__body { padding: 20px 28px; }
}

@media (max-width: 810px) {
  .svcs__stack { --strip: 54px; --top: 76px; }
  .svcs__layout { grid-template-columns: minmax(0, 1fr); --strip: 54px; --top: 76px; }
  .svcs__head { position: static; margin-bottom: 8px; }
  .svcs__count { display: none; }

  .scard { min-height: 0; border-radius: 22px; }
  .scard + .scard { margin-top: 20svh; }
  .scard__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 16px; }
  .scard__media { order: -1; }
  .scard__media img { border-radius: 14px; }
  .scard__text { gap: 14px; align-content: start; }
  .scard__blurb { font-size: 0.975rem; }
  .scard__tags li { font-size: 0.75rem; padding: 5px 11px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
/* Five cards: a six-column track lets row one hold three and row two hold
   two wider ones, instead of leaving a hole at the end. */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 26px); }
.svc-grid > .svc { grid-column: span 2; }
.svc-grid > .svc:nth-child(n+4) { grid-column: span 3; }
.svc-grid > .svc:nth-child(n+4) .svc__media { aspect-ratio: 16 / 8; }
.svc {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-tween) var(--ease-tween);
}
.svc:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.svc__media { aspect-ratio: 16 / 11; overflow: hidden; }
.svc__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-content);
}
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; }
.svc__blurb { color: var(--muted); font-size: 0.9375rem; }

/* Services page: photo strips (main.js initFan). One open at a time; the shut ones show
   their name up the edge. Phones: stacked bars, tap to open. */
.fan { display: flex; gap: 10px; height: min(640px, calc(100vh - 170px)); min-height: 480px; }
.fan__item { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-card); overflow: hidden; cursor: pointer; outline: none;
  transition: flex-grow .7s var(--ease-content); }
.fan__item.is-open { flex-grow: 5.2; cursor: default; }
.fan__item:focus-visible { box-shadow: 0 0 0 2px var(--white); }
.fan__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-content), filter .6s; filter: brightness(.5) saturate(.7); }
.fan__item.is-open .fan__img { filter: brightness(.82); transform: scale(1.02); }
.fan__item.is-open::after { background: linear-gradient(90deg, rgba(10,10,11,.82) 0%, rgba(10,10,11,.35) 55%, rgba(10,10,11,0) 80%), linear-gradient(180deg, rgba(10,10,11,0) 45%, rgba(10,10,11,.85) 100%); }
.fan__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0) 35%, rgba(10,10,11,.92) 100%); pointer-events: none; }
.fan__shut { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 22px 0;
  transition: opacity .3s; }
.fan__shut span, .fan__n { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--red); }
.fan__shut b { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase; line-height: 1; writing-mode: vertical-rl; rotate: 180deg; font-size: clamp(1.1rem, 1.6vw, 1.5rem); white-space: nowrap; }
.fan__item.is-open .fan__shut { opacity: 0; }
.fan__open { position: absolute; left: 0; bottom: 0; z-index: 2; width: min(560px, 100%); padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; justify-items: start;
  opacity: 0; translate: 0 16px; transition: opacity .3s, translate .3s; pointer-events: none; }
.fan__item.is-open .fan__open { opacity: 1; translate: 0 0; transition: opacity .5s .35s, translate .7s .35s var(--ease-content); pointer-events: auto; }
.fan__open h2 { line-height: .95; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }   /* stays below the 48px page title */
.fan__open p { margin: 0; color: rgba(244,244,245,.82); }
@media (max-width: 810px) {
  .fan { flex-direction: column; height: auto; min-height: 0; }
  .fan__item { flex: none; height: 84px; transition: height .6s var(--ease-content); }
  .fan__item.is-open { height: 560px; }
  .fan__shut { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 0 20px; }
  .fan__shut b { writing-mode: horizontal-tb; rotate: none; }
}

/* ==========================================================================
   Split feature
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split__media { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: grid; gap: 14px; }
.split__body p { color: var(--muted); }
.split--flip .split__media { order: 2; }

/* ==========================================================================
   Community (home): more than just a garage
   Every image slot matches its image's shape: the featured thumbnail is
   16:9 in a 16:9 frame, Shorts are 9:16 in 9:16 frames. Nothing is cropped.
   ========================================================================== */
.comm__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.comm__copy { display: grid; gap: 12px; align-content: center; }
.comm__sub { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1; font-size: clamp(1.15rem, 1.9vw, 1.6rem); color: var(--red); }
.comm__text { color: var(--muted); max-width: 46ch; }

/* Most-watched video: thumbnail + play button; main.js swaps in the player. */
/* width capped by height: 16:9 video at most 34% of the screen tall */
.comm__feature { display: grid; gap: 12px; width: min(100%, 34vh * 16 / 9); justify-self: end; }
.ytplay, .comm__feature iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: var(--r-card); overflow: hidden; background: #000; cursor: pointer; }
.ytplay img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-content), filter 0.4s var(--ease-tween); }
.ytplay:hover img { transform: scale(1.03); filter: brightness(0.85); }
.ytplay__btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; translate: -50% -50%; border-radius: 16px;
  background: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform var(--dur-tween) var(--ease-tween); }
.ytplay__btn::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -38% -50%;
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.ytplay:hover .ytplay__btn { transform: scale(1.08); }
.comm__cap { display: grid; gap: 4px; }
.comm__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.comm__vtitle { font-size: 1rem; font-weight: 500; }


.comm h2 { margin: 0; }
.comm .comm__sub { margin: 0; }
.cx-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
.cx-btns svg { width: 18px; height: 18px; }
.cx-yt { background: #FF0000; border-color: #FF0000; color: #fff; }
.comm .ytplay { border-radius: 20px; }
.cx-short { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.cx-short img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-content); }
.cx-short:hover img { transform: scale(1.05); }
.cx-short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 45%); pointer-events: none; }
.cx-short__meta { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: grid; gap: 1px; }
.cx-short__meta b { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.cx-short__meta b::after { content: " views"; font-family: Inter, sans-serif; font-weight: 500; font-size: .7rem; color: rgba(244,244,245,.7); }
.cx-short__meta span { font-size: .72rem; color: rgba(244,244,245,.75); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* heading row, then video + three Shorts at one height */
.cx-a__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; margin-bottom: 24px; }
.cx-a__head > div:first-child { display: grid; gap: 10px; }
/* the copy spans exactly the heading block: top on the eyebrow, buttons on the subtitle's baseline */
.cx-a__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: stretch; }
/* the two buttons stacked, left edges and widths matched, sitting on the subtitle's baseline */
.cx-a__side .cx-btns { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-end; }
.cx-a__side .cx-btns .btn { justify-content: flex-start; }
.cx-a__side .comm__text { max-width: none; margin: 0; align-self: center; }
/* the row: a 16:9 and three 9:16 at equal height -> widths in ratio 16/9 : 9/16 x3 */
.cx-a__row { display: grid; grid-template-columns: 3.1605fr 1fr 1fr 1fr; gap: 14px; }
.cx-a__video { margin: 0; }
.cx-a__row .ytplay { height: 100%; aspect-ratio: auto; }
/* the player that replaces the thumbnail on click takes exactly the thumbnail's box */
.cx-a__video { position: relative; }
.cx-a__video iframe { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #000; }
.cx-a__cap { margin: 12px 0 0; font-weight: 500; }
/* the video's caption sits under the row on wide screens, under the video on phones */
.cx-a__video .comm__cap { display: none; }
.cx-a__cap .comm__label { margin-right: 8px; }


@media (max-width: 900px) {
  .cx-a__head { grid-template-columns: minmax(0, 1fr); }
  .cx-a__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-a__video { grid-column: 1 / -1; }
  .cx-a__row .ytplay { aspect-ratio: 16 / 9; }
  .cx-a__video iframe { height: auto; }
  .cx-a__video { display: grid; gap: 10px; margin-bottom: 4px; }
  .cx-a__video .comm__cap { display: grid; }
  .cx-a__cap { display: none; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
/* columns, not a grid: reviews differ a lot in length, and rigid rows left
   tall gaps under the short ones */
.reviews { columns: 3; column-gap: clamp(16px, 2vw, 24px); }
.reviews > .review { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 24px); }
/* four reviews: two columns of two balance; three columns left one column doubled */
.reviews--pairs { columns: 2; }
@media (max-height: 760px) and (min-width: 811px) {
  .reviews .review { padding: 18px 22px; gap: 12px; }
  .reviews > .review { margin-bottom: 14px; }
  .reviews .review__text { line-height: 1.5; }
}
.review {
  background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 2.2vw, 28px);
  display: grid; gap: 16px; align-content: start;
  box-shadow: inset 0 0 0 1px var(--line);
}
.review::before {
  content: ""; width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 33%, var(--white) 33% 66%, var(--red) 66%);
}
.review__text { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.review__by { display: grid; gap: 2px; }
.review__name { font-weight: 600; font-size: 0.9375rem; }
.review__src { font-size: 0.8125rem; color: var(--faint); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { columns: 3; column-gap: clamp(12px, 1.6vw, 20px); }
.shot { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); border-radius: var(--r-card); overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform 0.9s var(--ease-content); }
.shot:hover img { transform: scale(1.04); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.strip .shot { margin: 0; aspect-ratio: 4 / 3; }
.strip .shot img { height: 100%; object-fit: cover; }

/* ==========================================================================
   Cars
   ========================================================================== */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.car {
  border-radius: var(--r-card); overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-rows: auto 1fr;
}
.car__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-content); }
.car:hover .car__media img { transform: scale(1.05); }
/* Sold cars stay in colour: this is a showcase of what has come through,
   and ten greyed-out cards read as a scrapyard. The flag does the work. */
.car--sold .car__price { color: var(--faint); }
/* A single available car gets a feature-sized card, not a lonely third. */
/* The one available car is the feature: photo left, details right. */
.car-grid--available { grid-template-columns: minmax(0, 1fr); }
.car-grid--available .car { grid-template-columns: 1.5fr 1fr; grid-template-rows: none; }
.car-grid--available .car__media { aspect-ratio: 4 / 3; }
.car-grid--available .car__body { align-content: center; padding: clamp(24px, 3vw, 44px); gap: 10px; }
.car-grid--available .car__title { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.car-grid--available .car__price { font-size: 1.25rem; color: var(--text); }
/* Ten sold cars: five across makes two clean rows instead of 3-3-3-1. */
.car-grid--sold { grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.car-grid--sold .car__media { aspect-ratio: 16 / 10; }
.car-grid--sold .car__price { font-size: 0.8125rem; }
.car-grid--sold .car__title { font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.05; }
.car-grid--sold .car__body { padding: 12px 14px 14px; gap: 4px; }
.car__flag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(10,10,11,0.8); backdrop-filter: blur(8px);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.car__body { padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 8px; align-content: start; }
.car__price { color: var(--muted); font-size: 0.9375rem; }
.car__cta { margin-top: 10px; justify-self: start; }

/* ==========================================================================
   Parts
   ========================================================================== */
.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.part {
  background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 2.2vw, 28px);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start;
  transition: box-shadow var(--dur-tween) var(--ease-tween);
}
.part:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.part p { color: var(--muted); font-size: 0.9375rem; }
.part__marques { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.part__marque {
  font-size: 0.75rem; padding: 5px 12px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted);
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.person {
  background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 2.2vw, 28px);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start;
}
/* Photo frame, 4:3 (4:5 made each card 617px tall, 25 Oct 2026). Until a photo arrives it
   holds a silhouette. Phones: a small portrait beside the text, see the 640px block. */
.person__photo {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; margin-bottom: 12px; object-position: 50% 25%;
  display: grid; place-items: end center; overflow: hidden; object-fit: cover;
}
.person__photo--empty svg { height: 88%; width: auto; fill: rgba(244, 244, 245, 0.10); }
.person__photo--empty {
  background: linear-gradient(140deg, var(--surface-2), var(--ink));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.person__photo--empty span {
  font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: 1.75rem; color: var(--faint);
}
.person__known { color: var(--red); }
.person__role { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.person__bio { color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 640px) {
  .person { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
  .person__photo { grid-row: 1 / span 4; aspect-ratio: 4 / 5; margin: 0; border-radius: 14px; }
  .person > :not(.person__photo) { grid-column: 2; }
}
.person--ghost { border: 1px dashed var(--line-2); box-shadow: none; background: transparent; }

/* Team portraits (Natural set, chosen 29 Oct 2026): the portrait and its funny photo are
   layers in one frame. */
.person__photo--sets { display: block; position: relative; background: linear-gradient(140deg, var(--surface-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line-2); }
.person__photo--sets > [data-set] { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.person__photo--sets > img { object-fit: cover; object-position: 50% 25%; }
/* Natural set: a funny photo fades in over the portrait on hover, or on tap (main.js). */
.person__photo--sets > .person__fun { opacity: 0; transition: opacity 0.4s cubic-bezier(0.44, 0, 0.56, 1); }
.person__photo.is-fun > .person__fun { opacity: 1; }
@media (hover: hover) { .person__photo--sets:hover > .person__fun { opacity: 1; } }
.person__ghost { display: grid; place-items: end center; }
.person__ghost svg { height: 88%; width: auto; fill: rgba(244, 244, 245, 0.10); }
.team-sets[data-set="natural"] [data-set="natural"] { display: block; }
.team-sets[data-set] .person__ghost[data-set] { display: none; }
.team-sets[data-set="natural"] .person__ghost[data-set="natural"] { display: grid; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 0.9375rem;
  transition: border-color var(--dur-tween) var(--ease-tween);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-2); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 80px; }

.note {
  margin-top: 16px; padding: 14px 18px;
  border-radius: var(--r-sm); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem; color: var(--faint);
}

.info-card {
  background: var(--surface); border-radius: var(--r-panel); padding: clamp(22px, 2.6vw, 34px);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 16px; align-content: start;
}
.info-card__row { display: grid; gap: 6px; }
.info-card__k { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.info-card__v { font-size: 1.0625rem; }
.info-card__v a:hover { color: var(--red); }

.hours { display: grid; gap: 7px; }
.hours__row { display: flex; justify-content: space-between; gap: 20px; font-size: 0.9375rem; color: var(--muted); }
.hours__row span:last-child { color: var(--text); }

.map { border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: min(420px, 60vh); border: 0; }

/* ==========================================================================
   Find us (home, last section; replaced the Contact page)
   Photo shown whole at its own proportions; the map matches its height.
   ========================================================================== */
.findus__media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 20px);
  /* both panels share the photo's height; capped so the section fits a laptop */
  max-width: min(100%, (100vh - 420px) * 1.585 * 2 + 20px); }
/* land below the fixed header when jumped to from the nav */
.findus { scroll-margin-top: 72px; }
.findus__photo { border-radius: var(--r-card); overflow: hidden; background: #000; }
.findus__photo img { width: 100%; height: auto; display: block; }
.findus__map { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); min-height: 240px; }
.findus__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* top-left: the bottom edge carries OpenStreetMap's required credit line */
.findus__dir { position: absolute; left: 12px; top: 12px; }
.findus__info { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.2fr; gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(20px, 2.4vw, 32px);
  padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line); }
.findus__item { display: grid; gap: 6px; align-content: start; min-width: 0; }
.findus__v { font-size: 0.9375rem; }
.findus__mail { word-break: break-all; }
.findus__big { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.3rem; }
.findus a:hover { color: var(--red); }
.findus .hours { gap: 4px; }
.findus .hours__row { font-size: 0.875rem; }
@media (max-width: 900px) {
  .findus__media { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .findus__map { aspect-ratio: 16 / 10; min-height: 0; }
  .findus__info { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Page head band
   ========================================================================== */
.page-head { padding-top: clamp(112px, 14vh, 150px); padding-bottom: clamp(28px, 3.5vw, 48px); }
.page-head__inner { display: grid; gap: 14px; max-width: 900px; }
.page-head .lede { max-width: 56ch; }

/* ==========================================================================
   CTA band - present, not shouting. This is a showcase, not a funnel.
   ========================================================================== */
.band {
  border-radius: var(--r-panel); overflow: hidden; position: relative;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 52px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 16px; justify-items: start;
}
.band::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--green) 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%);
}
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px) 32px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.foot__logo { height: 42px; width: auto; }
.foot__tag { margin-top: 14px; color: var(--faint); font-size: 0.875rem; letter-spacing: 0.02em; }
.foot__h { font-size: 0.75rem; letter-spacing: 0.18em; color: var(--faint); margin-bottom: 16px; font-weight: 600; }
.foot__addr { color: var(--muted); font-size: 0.9375rem; margin-bottom: 20px; }
.foot__big { display: block; font-size: 1.375rem; margin-bottom: 8px; }
.foot__big:hover { color: var(--red); }
.foot__link { color: var(--muted); font-size: 0.9375rem; word-break: break-all; }
.foot__link:hover { color: var(--text); }
.foot__nav { display: grid; gap: 9px; }
.foot__nav a { color: var(--muted); font-size: 0.9375rem; }
.foot__nav a:hover { color: var(--text); }

.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social__link {
  font-size: 0.8125rem; padding: 7px 14px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted);
  transition: color var(--dur-tween) var(--ease-tween), background-color var(--dur-tween) var(--ease-tween);
}
.social__link:hover { color: var(--text); background: var(--glass); }

.foot__base {
  margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.8125rem; color: var(--faint);
}
.foot__credit a { color: var(--muted); }
.foot__credit a:hover { color: var(--red); }

/* ==========================================================================
   Responsive
   Breakpoints match the reference: 1440 / 810 / below.
   ========================================================================== */
@media (max-width: 1100px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .car-grid, .team-grid, .car-grid--sold { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 2; }
  .car-grid--available { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid > .svc, .svc-grid > .svc:nth-child(n+4) { grid-column: span 1; }
  .svc-grid > .svc:last-child { grid-column: span 2; }
  .gallery { columns: 2; }
}

@media (max-width: 810px) {
  .nav, .site-header__call { display: none; }
  .burger { display: block; margin-left: auto; }

  .hero { min-height: 92svh; padding-top: 108px; }
  .hero__marques { column-gap: clamp(10px, 3vw, 22px); }
  .marque { gap: 8px; --badge-h: 52px; }
  .marque[data-marque="ferrari"] { --badge-h: 60px; }
  .marque__name { font-size: 0.5625rem; letter-spacing: 0.12em; }
  .hero__bg img { object-position: 50% 58%; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

@media (max-width: 640px) {
  /* five names do not fit across a phone; the badges speak for themselves */
  .marque__name { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .car-grid, .team-grid, .strip, .car-grid--sold { grid-template-columns: 1fr; }
  .reviews { columns: 1; }
  .car-grid--available .car { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid > .svc:last-child { grid-column: span 1; }
  .gallery { columns: 1; }
  .foot__grid { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rslide__rec { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6f9cf5; line-height: 13px; }

/* Pages marked construction: yes (build.js) */
.uc { min-height: calc(100svh - 260px); display: grid; align-items: center; padding: clamp(120px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); }
.uc__inner { display: grid; gap: 16px; justify-items: start; }
.uc h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.uc__text { color: var(--muted); max-width: 52ch; margin: 0; }
.uc__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ==========================================================================
   Phone pass (28 Sep 2026): tap targets at least 44px, no text under 12px,
   Find us details that do not wrap mid-word.
   ========================================================================== */
.hero__credits-label, .rslide__rec { font-size: 12px; }
@media (max-width: 640px) {
  .findus__info { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .findus__info .hours { max-width: 340px; }
  .findus__mail { overflow-wrap: normal; word-break: normal; }
  .findus__big, .findus__mail { display: inline-flex; align-items: center; min-height: 44px; }
  .social__link { min-height: 44px; display: inline-flex; align-items: center; }
  .foot__nav { gap: 0; }
  .foot__nav a { display: flex; align-items: center; min-height: 44px; }
  .foot__base a { display: inline-block; padding: 12px 0; }
}
@media (max-width: 640px) {
  .cx-a__side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cx-a__side .cx-btns { flex-direction: row; flex-wrap: wrap; }
}

/* Lenis (main.js initLenis). CSS smooth scrolling would fight it, so it is
   switched off whenever Lenis is running. */
html.has-lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ==========================================================================
   Find us: layout A (build.js findSection, main.js initOpenStatus)
   ========================================================================== */

.findus h2 { margin: 0; }
.findus .eyebrow { margin: 0; }
.fx-photo { display: block; width: 100%; height: auto; }
.fx-map { display: block; width: 100%; height: 100%; border: 0; }
.fx-item { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fx-v { color: var(--white); font-size: 1rem; line-height: 1.5; }
.fx-big { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.5rem; color: var(--white); }
.fx-hours { display: grid; gap: 4px; min-width: 220px; }
.fx-hours__row { display: flex; justify-content: space-between; gap: 18px; font-size: .9375rem; color: var(--muted); padding: 3px 0; }
.fx-hours__row span:last-child { color: var(--white); white-space: nowrap; }
.fx-hours__row.is-today { color: var(--white); font-weight: 600; }
.fx-hours__row span:first-child { position: relative; }
.fx-hours__row.is-today span:first-child::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }
.fx-hours { padding-left: 12px; }
.fx-status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 50px; font-size: .8125rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); justify-self: start; width: max-content; }
.fx-status i { width: 8px; height: 8px; border-radius: 50%; background: #9a9aa0; }
.fx-status.is-open i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.fx-status b { font-weight: 600; }
.fx-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- A: panel, details left, photo right with map inset -------------------------- */
.fx-a { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(22px, 2.6vw, 36px); }
.fx-a__info { display: grid; gap: 18px; justify-items: start; }
.fx-a__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px 28px; width: 100%; }
.fx-a__media { position: relative; padding-bottom: 40px; }
.fx-a__media figure { margin: 0; border-radius: 22px; overflow: hidden; }
.fx-a__inset { position: absolute; left: -24px; bottom: 0; width: 44%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  border: 4px solid var(--surface); box-shadow: 0 20px 50px rgba(0,0,0,.6); }


@media (max-width: 900px) {
  .fx-a { grid-template-columns: minmax(0, 1fr); }
  .fx-a__grid { grid-template-columns: minmax(0, 1fr); }
  .fx-a__inset { left: 12px; }
}

/* ==========================================================================
   About: chapters (build.js aboutChapters, main.js initChapters)
   The line fills with scroll and repeats the tricolour the whole way down, each
   colour blending into the next (green, white, red, white, green: Lewis, 21 Oct;
   red straight back to green blended through a muddy brown, so it goes via white):
   the pattern is fixed to the top of the column, so the bands stay put and
   the fill uncovers more of them rather than stretching one gradient.
   ========================================================================== */
.ch { display: grid; gap: clamp(40px, 8vh, 90px); position: relative; }
.ch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; translate: -1px 0; background: rgba(255, 255, 255, 0.08); }
.ch::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; translate: -1px 0; height: calc(var(--fill, 0) * 100%);
  background: repeating-linear-gradient(180deg, var(--green) 0, var(--white) 110px, var(--red) 220px, var(--white) 330px, var(--green) 440px); }
.ch__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center;
  opacity: 0.25; transform: translateY(30px); transition: opacity 0.7s, transform 0.9s var(--ease-content); }
.ch__item.is-on { opacity: 1; transform: none; }
.ch__item:nth-child(even) .ch__media { order: 2; }
.ch__media img { width: 100%; height: auto; border-radius: var(--r-card); }
.ch__copy { display: grid; gap: 10px; }
.ch__copy h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); }
.ch__copy > p:last-child { color: var(--muted); margin: 0; }
.ch__n { font-family: Archivo, sans-serif; font-weight: 800; color: var(--red); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }
@media (max-width: 810px) {
  .ch::before, .ch::after { display: none; }
  .ch__item { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ch__item:nth-child(even) .ch__media { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .ch__item { opacity: 1; transform: none; } }

/* Parts page shop (main.js initShop). The left column pins while the listings scroll; it is kept
   short enough to fit a 1280x720 screen (Sort moved above the results for that), and scrolls on its
   own if a screen is shorter still. */
.shop { padding: clamp(104px, 13vh, 132px) 0 clamp(40px, 5vw, 72px); }
.shop__in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.shop__bar { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 10px; padding-bottom: 4px; }
.shop__bar h1 { margin: 0; font-size: clamp(2.2rem, 3.6vw, 3rem); }
.shop__lede { margin: 0 0 4px; color: var(--muted); font-size: 0.9375rem; }
.shop__lede b { color: var(--white); }
.shop__search { position: relative; display: block; }
.shop__search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.shop__search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 50px; border: 1px solid var(--line-2); background: var(--surface); color: var(--white); font: inherit; font-size: 1rem; }
.shop__search input:focus { outline: none; border-color: var(--white); }
.shop__search input::placeholder { color: var(--faint); }
.shop__h { margin: 8px 0 0; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.shop__list { display: grid; gap: 2px; }
.shop__opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 12px; color: var(--muted); font-size: 0.9375rem; transition: background var(--dur-tween) var(--ease-tween), color var(--dur-tween) var(--ease-tween); }
.shop__opt span { font-size: 0.75rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.shop__opt:hover { background: var(--surface); color: var(--white); }
.shop__opt[aria-pressed="true"] { background: var(--surface); color: var(--white); box-shadow: inset 3px 0 0 var(--red); }
.shop__opt:focus-visible { outline: 2px solid var(--white); }
.shop__help { margin: 6px 0 0; font-size: 0.875rem; color: var(--faint); }
.shop__help a { color: var(--white); }
.shop__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; min-height: 44px; }
.shop__count { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.shop__sort { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--faint); }
.shop__sort select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--white); font: inherit; font-size: 0.9375rem; }
.shop .ebay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop__none { text-align: center; color: var(--muted); padding: 40px 0; }
.shop__none a { color: var(--white); text-decoration: underline; }
.shop__empty { display: grid; gap: 14px; justify-items: start; color: var(--muted); }
.shop__empty p { margin: 0; }
.shop.is-empty .shop__search, .shop.is-empty .shop__h, .shop.is-empty .shop__list, .shop.is-empty .shop__top { display: none; }   /* eBay unreachable: just the link */
@media (max-width: 900px) {
  .shop__in { grid-template-columns: 1fr; }
  .shop__bar { position: static; max-height: none; overflow: visible; }
  .shop__list { display: flex; flex-wrap: wrap; gap: 8px; }
  .shop__opt { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 50px; min-height: 44px; }
  .shop__opt[aria-pressed="true"] { background: var(--red); box-shadow: none; }
  .shop .ebay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Badge hover flash (main.js flashCar): lamps above the dark wash once the intro is done */
.hero.is-settled .hero__lamps { z-index: 0; }
.marque__badge { cursor: default; }

/* ==========================================================================
   Live content from Ant's admin (functions/*.js, lib/pages.js)
   ========================================================================== */
.cars-empty { color: var(--muted); padding: 22px 0; }
.car__facts { color: var(--faint); font-size: 0.875rem; margin: 0; }
.car__title a { color: inherit; }
.car__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.car__flag--res { background: #d99a00; color: #111; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* One car's page */
.cd { padding: clamp(100px, 13vh, 140px) 0 clamp(40px, 7vh, 80px); }
.cd__wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cd__main { border-radius: var(--r-card); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.cd__main img { width: 100%; height: 100%; object-fit: cover; }
.cd__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cd__thumbs::-webkit-scrollbar { display: none; }
.cd__thumbs button { all: unset; cursor: pointer; flex: 0 0 92px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; opacity: 0.55;
  outline: 2px solid transparent; outline-offset: -2px; transition: opacity var(--dur-tween) var(--ease-tween); }
.cd__thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--red); }
.cd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cd__info { display: grid; gap: 14px; position: sticky; top: 100px; }
.cd__back { color: var(--muted); font-size: 0.875rem; }
.cd__title { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.cd__price { margin: 0; font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.cd__status { font-family: Inter, sans-serif; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 50px; background: rgba(255,255,255,.1); }
.cd__status--res { background: #d99a00; color: #111; }
.cd__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 4px 0; background: var(--line); border-radius: 18px; overflow: hidden; }
.cd__specs div { background: var(--surface); padding: 12px 16px; }
.cd__specs dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.cd__specs dd { margin: 2px 0 0; font-weight: 600; }
.cd__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cd__desc { color: var(--muted); }
.cd__desc p { margin: 0 0 1em; }
@media (max-width: 810px) { .cd__wrap { grid-template-columns: minmax(0, 1fr); } .cd__info { position: static; } }

/* Events */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.event { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.event__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--surface-2), var(--ink)); }
.event__media img { width: 100%; height: 100%; object-fit: cover; }
.event__media img.is-tall { object-fit: contain; }   /* posters (portrait) shown whole, not cropped to a strip (main.js initEvents) */
.event__date { position: absolute; left: 14px; top: 14px; display: grid; justify-items: center; min-width: 58px; padding: 8px 10px; border-radius: 14px;
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.event__date b { font-family: Archivo, sans-serif; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--white); letter-spacing: 0; }
.event__body { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2vw, 24px); justify-items: start; }
.event__title { margin: 0; font-size: 1.2rem; }
.event__when { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.event__where { margin: 0; color: var(--faint); font-size: 0.875rem; }
.event__desc { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.events--past .event { opacity: 0.7; }
@media (max-width: 1000px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .events { grid-template-columns: minmax(0, 1fr); } }

/* Parts: Ant's live eBay listings (functions/parts.js, main.js initEbay) */
.ebay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ebay { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: inherit; transition: box-shadow var(--dur-tween) var(--ease-tween); }
.ebay:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.ebay[hidden] { display: none; }
.ebay__img { aspect-ratio: 1; background: #000; display: block; }   /* eBay photos vary in shape: shown whole with black bars (grey read as a patch on the textured background, 26 Oct 2026) */
.ebay__img img { width: 100%; height: 100%; object-fit: contain; }
.ebay__body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.ebay__title { font-size: 0.875rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ebay__meta { font-size: 0.8125rem; color: var(--faint); }
.ebay__meta b { color: var(--white); font-size: 1rem; }
.ebay__go { font-size: 0.8125rem; font-weight: 600; color: var(--red); }
.ebay-more { text-align: center; margin-top: 22px; }
.ebay-more[hidden] { display: none; }
@media (max-width: 1000px) { .ebay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ebay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ebay__body { padding: 10px 12px 12px; } }
