/* ═══════════════════════════════════════════════════════════
   VELOCITY GERMAN AUTOS — design system
   Old-money classic: ivory, ink, racing green, muted brass.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* fixed tones — surfaces that stay dark in both themes (hero, band, collection, footer, preloader) */
  --ivory: #f4f0e6;
  --bone: #ece6d8;
  --ink: #191813;
  --ink-soft: #2b2a24;
  --green: #26301f;
  --brass: #a8905c;
  --brass-soft: #c2ad80;
  --hairline: rgba(25, 24, 19, 0.18);
  --hairline-light: rgba(244, 240, 230, 0.22);
  /* themable tones — flip with the light/dark toggle */
  --bg: #f4f0e6;
  --bg-alt: #ece6d8;
  --text: #191813;
  --text-soft: #2b2a24;
  --line: rgba(25, 24, 19, 0.18);
  --nav-bg: rgba(244, 240, 230, 0.82);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #161410;
  --bg-alt: #1d1a15;
  --text: #ece7da;
  --text-soft: rgba(236, 231, 218, 0.78);
  --line: rgba(236, 231, 218, 0.16);
  --nav-bg: rgba(22, 20, 16, 0.78);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: var(--ivory); }

/* ── shared type ─────────────────────────────────────────── */

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.section-eyebrow--light { color: var(--brass-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--text);
}
.section-title--light { color: var(--ivory); }

/* split-text scaffolding (spans injected by JS) */
.w { display: inline-flex; overflow: hidden; vertical-align: bottom; }
.c { display: inline-block; will-change: transform; }

/* ── buttons & links ─────────────────────────────────────── */

.btn {
  display: inline-block;
  position: relative;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1.1em 2.4em;
  border: 1px solid;
  transition: color 0.45s var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after { transform: scaleY(1); }
.btn--light { color: var(--ivory); border-color: rgba(244, 240, 230, 0.55); }
.btn--light::after { background: var(--ivory); }
.btn--light:hover { color: var(--ink); }
/* primary call to action: solid ivory, brass wipe on hover */
.btn--fill { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.btn--fill::after { background: var(--brass-soft); }
.btn--fill:hover { color: var(--ink); }
.btn--dark { color: var(--text); border-color: color-mix(in srgb, var(--text) 50%, transparent); }
.btn--dark::after { background: var(--text); }
.btn--dark:hover { color: var(--bg); }

.link-underline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-bottom: 0.5em;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
  transition: background-size 0.45s var(--ease-out);
}
.link-underline:hover { background-size: 30% 1px; }

/* ── crest ───────────────────────────────────────────────── */

.crest { stroke: currentColor; }
.crest--loader { width: clamp(88px, 12vw, 120px); color: var(--brass-soft); }
.crest--nav { width: 34px; height: 34px; color: currentColor; flex: none; }
.crest--footer { width: 72px; color: var(--brass); opacity: 0.9; }

/* ── film grain ──────────────────────────────────────────── */

.grain {
  position: fixed; inset: -100%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  animation: grain 7s steps(8) infinite;
}
:root[data-theme="dark"] .grain { opacity: 0.05; }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12.5% { transform: translate(-2%, 1%); }
  25% { transform: translate(1%, -2%); }
  37.5% { transform: translate(-1%, 2%); }
  50% { transform: translate(2%, 1%); }
  62.5% { transform: translate(-2%, -1%); }
  75% { transform: translate(1%, 2%); }
  87.5% { transform: translate(2%, -2%); }
}

/* ── preloader ───────────────────────────────────────────── */

#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-name {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  overflow: hidden;
}
.preloader-name span { display: inline-block; }
.preloader-sub {
  margin-top: 0.9rem;
  font-size: 0.625rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.preloader-count {
  margin-top: 2.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(244, 240, 230, 0.45);
}
.preloader-count span::after { content: "%"; margin-left: 1px; }

/* ── navigation ──────────────────────────────────────────── */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  color: var(--ivory);
  transition: color 0.5s var(--ease-out), background 0.5s var(--ease-out),
              backdrop-filter 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}
.site-nav.scrolled {
  color: var(--text);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.nav-right { display: flex; align-items: center; gap: 1.3rem; }

.theme-toggle {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: none; cursor: pointer;
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  transition: border-color 0.3s;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-toggle svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  transition: transform 0.6s var(--ease-out);
}
.theme-toggle .tt-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
:root[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }
.nav-brand { display: flex; align-items: center; gap: 0.8rem; }
.nav-wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-wordmark em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-left: 0.35em;
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a, .nav-tel {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 0.35em;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0% 1px;
  transition: background-size 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-tel:hover { background-position: left bottom; background-size: 100% 1px; }
.nav-tel { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-tel-icon { display: none; width: 15px; height: 15px; stroke: currentColor; }

/* Inventory: a compact outlined pill, visible at every width */
.nav-inv {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 1.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 999px;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav-inv:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.nav-inv:focus-visible, .nav-tel:focus-visible, .theme-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* mid widths: the number becomes a round phone button so the row never overflows */
@media (max-width: 1180px) {
  .nav-links { gap: 1.6rem; }
  .nav-tel {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    padding: 0; background: none;
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
    border-radius: 50%;
    transition: border-color 0.3s;
  }
  .nav-tel:hover { border-color: currentColor; background: none; }
  .nav-tel-num { display: none; }
  .nav-tel-icon { display: block; }
}
@media (max-width: 1000px) {
  .nav-wordmark em { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .site-nav { gap: 0.75rem; }
  .nav-right { gap: 0.55rem; }
  .nav-inv { padding: 0 0.85rem; letter-spacing: 0.18em; }
  .nav-brand { gap: 0.6rem; }
  .nav-wordmark { font-size: 1.02rem; letter-spacing: 0.12em; }
}
/* small phones (360px and below): tighten so the call button stays inside the gutter */
@media (max-width: 380px) {
  .site-nav { gap: 0.5rem; }
  .nav-right { gap: 0.45rem; }
  .nav-inv { padding: 0 0.7rem; letter-spacing: 0.14em; }
  .nav-brand { gap: 0.5rem; min-width: 0; }
  .crest--nav { width: 30px; height: 30px; }
  .nav-wordmark { font-size: 0.92rem; letter-spacing: 0.08em; }
}
@media (max-width: 340px) {
  .nav-wordmark { display: none; }
}

/* ── hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--ivory);
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform, opacity;
}
.hero-img--a { object-position: center 60%; }
.hero-img--b { object-position: center 70%; opacity: 0; }
.hero-shade {
  z-index: 2;
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 24, 19, 0.55) 0%, rgba(25, 24, 19, 0.12) 34%, rgba(25, 24, 19, 0.28) 68%, rgba(25, 24, 19, 0.78) 100%),
    radial-gradient(120% 90% at 30% 74%, rgba(25, 24, 19, 0.42) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--pad);
  padding-top: 12vh;
  max-width: 1200px;
}
.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 2.2rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}
.hero-title-line {
  display: block;
  font-size: clamp(4rem, 13.5vw, 11.5rem);
  letter-spacing: 0.06em;
}
.hero-title-line--italic {
  font-style: italic;
  text-transform: none;
  font-size: clamp(1.9rem, 5.2vw, 4.2rem);
  letter-spacing: 0.05em;
  color: var(--brass-soft);
  margin-top: 0.4rem;
  padding-left: 0.5rem;
}
.hero-sub {
  max-width: 34rem;
  margin-top: 2.4rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.85);
}
.hero-cta { display: flex; align-items: center; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-tel {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(244, 240, 230, 0.75);
  border-bottom: 1px solid rgba(244, 240, 230, 0.3);
  padding-bottom: 2px;
  transition: color 0.4s, border-color 0.4s;
}
.hero-tel:hover { color: var(--ivory); border-color: var(--ivory); }

.hero-scrollcue {
  position: absolute; z-index: 2;
  right: var(--pad); bottom: 7rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  color: rgba(244, 240, 230, 0.7);
}
.hero-scrollcue-label {
  font-size: 0.5625rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scrollcue-line { position: relative; width: 1px; height: 64px; background: rgba(244, 240, 230, 0.25); overflow: hidden; }
.hero-scrollcue-line span {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--brass-soft);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(280%); }
}

/* ── marquees ────────────────────────────────────────────── */

.marquee { overflow: hidden; white-space: nowrap; }
.marquee--hero {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.15rem 0;
  border-top: 1px solid var(--hairline-light);
  background: rgba(25, 24, 19, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.75);
}
.marquee-track span i { font-style: normal; color: var(--brass); margin: 0 1.6em; }

.marquee--grand {
  background: var(--bg);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track--grand span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  opacity: 0.9;
}
.marquee-track--grand span i { color: var(--brass); margin: 0 0.35em; font-style: italic; }

/* ── mobile: legible hero over photography, quieter ticker ─── */
@media (max-width: 640px) {
  /* stronger, graduated scrim so the hero copy reads cleanly over the cars */
  .hero-shade {
    background:
      linear-gradient(180deg,
        rgba(25, 24, 19, 0.68) 0%,
        rgba(25, 24, 19, 0.42) 38%,
        rgba(25, 24, 19, 0.52) 66%,
        rgba(25, 24, 19, 0.88) 100%);
  }
  .hero-eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.26em;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  }
  .hero-title-line {
    font-size: clamp(3rem, 14.5vw, 5.5rem);
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
  }
  .hero-title-line--italic {
    font-size: clamp(1.55rem, 7vw, 2.4rem);
  }
  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-top: 1.7rem;
    color: rgba(244, 240, 230, 0.92);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }
  .hero-cta { gap: 1.3rem; margin-top: 1.9rem; }

  /* drop the vertical scroll cue on phones — it crowds the frame */
  .hero-scrollcue { display: none; }

  /* scrolling banner: smaller type, tighter tracking, slimmer band */
  .marquee--hero { padding: 0.65rem 0; }
  .marquee--hero .marquee-track span {
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
  }
  .marquee--hero .marquee-track span i { margin: 0 0.9em; }
}

/* ── manifesto ───────────────────────────────────────────── */

.manifesto {
  padding: clamp(7rem, 14vw, 12rem) var(--pad);
  max-width: 1100px;
  margin: 0 auto;
}
.manifesto-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.32;
  color: var(--text);
}
.manifesto-text .mword { opacity: 0.12; }
.manifesto-rule {
  width: 72px; height: 1px;
  background: var(--brass);
  margin-top: 4rem;
}

/* ── marques ─────────────────────────────────────────────── */

.marques { padding: clamp(4rem, 8vw, 7rem) var(--pad) clamp(6rem, 11vw, 10rem); }
.section-head { max-width: 1400px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.marque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
}
.marque-card { min-width: 0; }
.marque-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.marque-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 1.1s var(--ease-out);
}
.marque-card:hover .marque-media img { transform: scale(1.06) !important; }
.marque-meta { padding-top: 1.6rem; border-top: 1px solid var(--line); margin-top: 1.6rem; position: relative; }
.marque-index {
  position: absolute; right: 0; top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
}
.marque-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: 0.02em;
}
.marque-era {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.5rem;
}
.marque-copy {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 30ch;
}

@media (max-width: 900px) {
  .marque-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .marque-copy { max-width: 46ch; }
}

/* ── quote band ──────────────────────────────────────────── */

.band {
  position: relative;
  min-height: 88svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--ivory);
}
.band-media { position: absolute; inset: -12% 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.band-shade { position: absolute; inset: 0; background: rgba(25, 24, 19, 0.58); }
.band-quote {
  position: relative; z-index: 2;
  max-width: 900px;
  padding: 6rem var(--pad);
  text-align: center;
}
.band-quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.3;
}
.band-cite {
  margin-top: 2.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* ── collection (horizontal) ─────────────────────────────── */

.collection { background: var(--ink); color: var(--ivory); }
.collection-pin {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: clamp(5rem, 9vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
}
.anchor-alias { position: absolute; top: 0; left: 0; width: 0; height: 0; }
.collection { position: relative; }
.collection-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 0 var(--pad); margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.collection-all { flex: none; margin-bottom: 0.3rem; }
.collection-note {
  margin-top: 1.4rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.6);
  max-width: 40ch;
}
.collection-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.cframe { flex: none; width: clamp(280px, 34vw, 460px); }
.cframe-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
}
.cframe-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  filter: saturate(0.92);
}
.cframe:hover .cframe-media img { transform: scale(1.05); filter: saturate(1.05); }
.cframe figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-light);
}
.cframe figcaption span {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.cframe figcaption em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--brass-soft);
  white-space: nowrap;
}
/* inventory cards (generated by scripts/inventory/build.mjs) */
.cframe--car > a { display: block; cursor: pointer; }
.cframe--car > a:focus-visible { outline: 1px solid var(--brass-soft); outline-offset: 6px; }
.cframe--car figcaption { transition: border-color 0.5s var(--ease-out); }
.cframe--car figcaption span { transition: color 0.4s; }
.cframe--car:hover figcaption { border-top-color: var(--brass); }
.cframe--car:hover figcaption span { color: var(--brass-soft); }
.cframe--car .cframe-media { position: relative; }
.cframe-view {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  padding: 0.7em 1.1em;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ivory);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.cframe--car:hover .cframe-view, .cframe--car > a:focus-visible .cframe-view { opacity: 1; transform: none; }
/* touch screens have no hover: keep the label showing */
@media (hover: none) { .cframe-view { opacity: 1; transform: none; } }
.cframe--car figcaption span { min-width: 0; }
.cframe--car .nw { white-space: nowrap; }
.cframe--car figcaption small {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brass-soft);
  margin-right: 0.35em;
  vertical-align: 0.15em;
}
.cframe--car figcaption em { font-style: normal; font-size: 1.05rem; color: var(--ivory); }
.collection-note a { color: var(--ivory); border-bottom: 1px solid var(--brass); }
.collection-note a:hover { color: var(--brass-soft); }
.cframe--cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 2.2rem;
  padding-right: var(--pad);
}
.cframe-cta-line {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
}
.cframe-cta-line em { font-style: italic; color: var(--brass-soft); }
.collection-progress {
  margin: clamp(2.5rem, 5vh, 4rem) var(--pad) 0;
  height: 1px;
  background: var(--hairline-light);
}
.collection-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
}

@media (max-width: 899px) {
  .collection-pin { min-height: 0; }
  .collection-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .cframe { scroll-snap-align: start; width: min(78vw, 420px); }
  .collection-track { scroll-padding-inline: var(--pad); }
  .collection-head { flex-direction: column; align-items: flex-start; gap: 1.8rem; }
  .collection-progress { display: none; }
}

/* ── heritage ────────────────────────────────────────────── */

.heritage { padding: clamp(6rem, 12vw, 11rem) var(--pad); background: var(--bg); }
.heritage-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.heritage-body {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 52ch;
}
.heritage-quote {
  margin-top: 2.8rem;
  padding-left: 1.8rem;
  border-left: 1px solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 34ch;
}
.heritage-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}
.heritage-media { overflow: hidden; }
.heritage-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  will-change: transform;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1400px;
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 2.4rem 1rem 0;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 900px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .stat:nth-child(3) { border-left: none; }
}

/* ── visit ───────────────────────────────────────────────── */

.visit { background: var(--bg-alt); padding: clamp(6rem, 12vw, 11rem) var(--pad); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.visit-body {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 44ch;
}
.visit-details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.visit-details dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.visit-details dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.visit-details dd em { color: var(--brass); }
.visit-details dd a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.visit-details dd a:hover { border-color: var(--text); }
.visit-cta { display: flex; align-items: center; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.visit-media { overflow: hidden; }
.visit-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  will-change: transform;
}

@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-details { grid-template-columns: 1fr 1fr; }
}

/* ── footer ──────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(5rem, 10vw, 9rem) var(--pad) 2.5rem;
  overflow: hidden;
}
.footer-top { text-align: center; }
.footer-wordmark {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-tag {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass-soft);
}
.footer-rule { height: 1px; background: var(--hairline-light); margin: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: rgba(244, 240, 230, 0.55);
}
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--brass-soft); }

@media (max-width: 700px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── theme cross-fade ────────────────────────────────────── */

body, .marquee--grand, .marque-media, .visit, .heritage,
.stat, .stats-row, .marque-meta, .visit-details, .btn--dark {
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

/* ── reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .manifesto-text .mword { opacity: 1; }
  #preloader { display: none; }
  .grain { animation: none; }
}

/* Sale pending badge on home Collection cards (same look as the inventory pages). */
.cframe-media { position: relative; }
.inv-flag {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  padding: 0.65rem 1.15rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(14, 13, 10, 0.28); pointer-events: none;
}
.inv-flag--pending { background: #a8905c; color: #191813; }
.inv-flag--sold { background: #191813; color: #f4f0e6; }
