/* ============================================================
   American Dream Motors — Asphalt + Sand + Rust
   Refined Americana. Honest trucks. Honest deals.
   ============================================================ */

:root {
  /* Core palette — warm-toned, hand-rubbed leather feel */
  --asphalt:        #14110d;   /* deep warm near-black */
  --asphalt-2:      #1c1814;
  --asphalt-3:      #25201a;
  --iron:           #3a342c;
  --gravel:         #5a5247;
  --stone:          #8a8170;
  --dust:           #c7bca0;
  --sand:           #efe6d2;   /* warm cream paper */
  --sand-2:         #e8dcc1;
  --sand-3:         #ddcfae;
  --bone:           #f7f1dd;

  /* Rust accents */
  --rust:           #b8482a;   /* warm orangey-red */
  --rust-deep:      #963820;
  --rust-soft:      #d05a3a;

  /* Brass accents */
  --brass:          #b6852a;
  --brass-soft:     #d4a24a;

  /* Sage (utility — used for "approved" / "pass") */
  --sage:           #4a6147;

  /* Lines */
  --line-paper:     rgba(20, 17, 13, 0.10);
  --line-paper-2:   rgba(20, 17, 13, 0.22);
  --line-ink:       rgba(239, 230, 210, 0.10);
  --line-ink-2:     rgba(239, 230, 210, 0.22);

  /* Fonts */
  --display: 'DM Serif Display', 'Bodoni 72', 'Times New Roman', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* SAND (light, default for marketing) */
.theme-sand {
  --bg:        var(--sand);
  --bg-2:      var(--sand-2);
  --bg-3:      var(--sand-3);
  --fg:        var(--asphalt);
  --fg-mute:   #4a4338;
  --fg-dim:    #7a7160;
  --line:      var(--line-paper);
  --line-strong: var(--line-paper-2);
  --accent:    var(--rust);
  --accent-deep: var(--rust-deep);
  --accent-soft: var(--rust-soft);
  --accent-pop: var(--brass);
  color-scheme: light;
}

/* ASPHALT (dark — default) */
.theme-asphalt {
  --bg:        var(--asphalt);
  --bg-2:      var(--asphalt-2);
  --bg-3:      var(--asphalt-3);
  --fg:        var(--bone);
  --fg-mute:   #b5ab92;
  --fg-dim:    #7e7563;
  --line:      var(--line-ink);
  --line-strong: var(--line-ink-2);
  --accent:    var(--rust-soft);
  --accent-deep: var(--rust);
  --accent-soft: #e87b54;
  --accent-pop: var(--brass-soft);
  color-scheme: dark;
}

/* ---------------- RESET ---------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  transition: background 280ms ease, color 280ms ease;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bone); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------------- TYPE ---------------- */
.display { font-family: var(--display); font-weight: 400; line-height: 0.92; letter-spacing: -0.02em; }
.serif   { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.mono    { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
em { font-style: italic; }

/* ---------------- LAYOUT ---------------- */
.container { max-width: 1480px; margin: 0 auto; padding: 0 44px; }
@media (max-width: 800px) { .container { padding: 0 20px; } }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 800px) { .section { padding: 56px 0; } }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-strong { background: var(--line-strong); }
.vrule { width: 1px; background: var(--line); align-self: stretch; }

/* ============== BRAND MARK ============== */
/* a hand-stamped 5-point star inside an outlined circle */
.brand-mark {
  width: 36px; height: 36px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.nav-brand .word {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 0.95;
  display: inline-flex;
  flex-direction: column;
  white-space: nowrap;
}
.nav-brand .word small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 5px;
  font-weight: 500;
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 44px;
  gap: 24px;
}
.nav-links { display: flex; gap: 2px; justify-content: center; }
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  color: var(--fg-mute);
  border-radius: 999px;
  transition: color 150ms, background 150ms;
  cursor: pointer;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active {
  color: var(--fg);
  background: color-mix(in oklab, var(--fg) 8%, transparent);
}
.nav-right { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.nav-openchip { display: inline-flex; }
@media (max-width: 1320px) { .nav-openchip { display: none; } }
@media (max-width: 1100px) {
  .nav-brand .word { font-size: 21px !important; }
  .nav-brand .word small { display: none; }
}

/* ============== BUTTONS ============== */
.btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 200ms cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
}
.btn:hover { border-color: var(--fg); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bone);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 90%, black);
  border-color: transparent;
  box-shadow: 0 10px 28px color-mix(in oklab, var(--accent) 32%, transparent);
}
.btn-brass {
  background: var(--accent-pop);
  color: var(--asphalt);
  border-color: var(--accent-pop);
}
.btn-brass:hover { background: color-mix(in oklab, var(--accent-pop) 85%, white); }
.btn-ghost { background: transparent; }
.btn-ink   { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-ink:hover { background: var(--accent); color: var(--bone); border-color: var(--accent); }
.btn-sm { padding: 10px 14px; font-size: 10.5px; letter-spacing: 0.14em; }
.btn-lg { padding: 18px 28px; font-size: 12px; }
.btn-arrow { transition: transform 220ms; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* CHIPS */
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-mute);
  white-space: nowrap;
}
.chip-solid { background: var(--bg-2); border-color: transparent; }
.chip-rust {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.chip-brass {
  color: var(--accent-pop);
  border-color: color-mix(in oklab, var(--accent-pop) 60%, transparent);
}
.chip-sage {
  color: #6f9a6c;
  border-color: rgba(111, 154, 108, 0.45);
  background: rgba(111, 154, 108, 0.08);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6f9a6c;
  box-shadow: 0 0 0 0 #6f9a6c;
  animation: pulse-ring 1.8s cubic-bezier(.2,.7,.2,1) infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, #6f9a6c 70%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============== PLACEHOLDER IMAGERY ============== */
.ph {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, color-mix(in oklab, var(--accent-pop) 8%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ph::after {
  /* subtle film grain */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 1px, transparent 1.5px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.08) 1px, transparent 1.5px);
  background-size: 3px 3px, 3px 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.ph-label {
  position: relative;
  z-index: 2;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--fg-mute);
}
.ph-corner-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 8px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  z-index: 2;
}
.ph-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: var(--accent);
  color: var(--bone);
  border-radius: 3px;
  z-index: 2;
}

/* ============== SECTION HEAD ============== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.section-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-dim); font-weight: 500; }
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.93;
  letter-spacing: -0.02em;
  max-width: 14ch;
  font-weight: 400;
}
.section-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  max-width: 280px;
  text-align: right;
  font-weight: 500;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-sub { text-align: left; }
}

/* ============== GRIDS ============== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 40px 44px 48px;
  display: grid;
  gap: 32px;
}
.hero-headline-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(60px, 10vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.hero-stage {
  position: relative;
  height: 64vh;
  min-height: 540px;
  max-height: 760px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
}
.hero-image-main {
  position: relative;
  overflow: hidden;
  background: var(--asphalt);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.hero-image-main .ph {
  position: absolute; inset: 0;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.2%, -1.5%); }
}
.hero-image-side { display: flex; flex-direction: column; gap: 18px; }
.hero-image-side > * { flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; position: relative; cursor: pointer; }

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat-cell {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-stat-cell:last-child { border-right: 0; }
.hero-stat-cell .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--fg-dim); text-transform: uppercase; font-weight: 500; }
.hero-stat-cell .v { font-family: var(--display); font-size: 32px; letter-spacing: -0.015em; line-height: 1; }
.hero-stat-cell .d { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-dim); }

@media (max-width: 1000px) {
  .hero-headline-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-stage { grid-template-columns: 1fr; height: auto; }
  .hero-image-main { aspect-ratio: 16/10; height: auto; min-height: 360px; }
  .hero-image-side { flex-direction: row; }
  .hero-stat-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-cell:nth-child(2) { border-right: 0; }
  .hero-stat-cell:nth-child(odd) { border-bottom: 1px solid var(--line); }
  .hero-stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============== SEARCH STRIP ============== */
.search-strip {
  display: grid;
  grid-template-columns: 1.4fr auto auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.search-strip input {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  outline: none;
  font-family: var(--display);
  font-size: 22px;
  color: var(--fg);
}
.search-strip input::placeholder { color: var(--fg-dim); font-style: italic; }
.search-strip .vrule { width: 1px; height: 24px; background: var(--line); }
.search-strip select {
  background: transparent; border: 0; outline: none;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute);
  padding: 8px 12px; cursor: pointer;
}

/* ============== MARQUEE ============== */
.marquee {
  display: flex; overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  gap: 56px;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 60s linear infinite;
  flex-shrink: 0;
  padding-right: 56px;
}
.marquee-item {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
  opacity: 0.85;
}
.marquee-item::after { content: '★'; color: var(--accent); font-size: 14px; }
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ============== STAT BAND ============== */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.stat-cell:last-child { border-right: 0; }
.stat-n {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-n sup { font-size: 24px; vertical-align: top; color: var(--accent); margin-left: 4px; }
.stat-l {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.stat-d { font-size: 13.5px; color: var(--fg-mute); line-height: 1.55; margin-top: 4px; }
@media (max-width: 800px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============== VEHICLE CARD ============== */
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  cursor: pointer;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.vcard:hover { transform: translateY(-4px); }
.vcard-imgwrap {
  aspect-ratio: 5/4;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
  border-radius: 6px;
}
.vcard-img-stack {
  position: absolute; inset: 0;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}
.vcard:hover .vcard-img-stack { transform: scale(1.05); }
.vcard-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 3px;
  z-index: 3;
}
.vcard-badge-rust { background: var(--accent); color: var(--bone); border-color: var(--accent); }
.vcard-badge-sage { background: rgba(74, 97, 71, 0.95); color: var(--bone); border-color: transparent; }
.vcard-fav {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 50%;
  z-index: 3;
  transition: color 180ms, transform 200ms;
}
.vcard-fav:hover { color: var(--accent-pop); transform: scale(1.08); }
.vcard-fav.active { color: var(--accent-pop); }

/* Truck spec overlay — appears on hover, novel touch */
.vcard-trucksum {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 6px;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms cubic-bezier(.2,.7,.2,1), transform 260ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.vcard:hover .vcard-trucksum {
  opacity: 1;
  transform: none;
}
.trucksum-pill {
  flex: 1;
  padding: 8px 8px 7px;
  background: rgba(20,17,13,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(239,230,210,0.18);
  border-radius: 4px;
  color: var(--bone);
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
}
.trucksum-pill .l { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.18em; opacity: 0.65; text-transform: uppercase; }
.trucksum-pill .v { font-family: var(--display); font-size: 14px; letter-spacing: -0.01em; }

.vcard-body {
  padding: 18px 4px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.vcard-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.vcard-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vcard-title {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.vcard-price {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.vcard-meta {
  display: flex; gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  margin-top: 2px;
}
.vcard-meta span + span::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--fg-dim);
  margin-right: 8px;
  vertical-align: middle;
}

/* ============== TICKER STRIP (live count) ============== */
.ticker-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  overflow: hidden;
}
.ticker-strip strong { color: var(--fg); font-weight: 600; }
.ticker-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-dim); }

/* ============== CATEGORY TILES ============== */
.cat-tile {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.cat-tile .ph { aspect-ratio: 4/5; }
.cat-tile .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0) 35%, rgba(20,17,13,0.78) 100%);
  z-index: 1;
}
.cat-tile .cat-body {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  z-index: 2;
  color: var(--bone);
}
.cat-tile .cat-t {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.cat-tile .cat-n {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 10px;
}

/* ============== INSPECTION (THE YARDSTICK) ============== */
.yardstick {
  display: flex; flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
}
.yard-head {
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: var(--bg-2);
}
.yard-h { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--fg-dim); text-transform: uppercase; }
.yard-title { font-family: var(--display); font-size: 30px; letter-spacing: -0.015em; line-height: 1; margin-top: 8px; }
.yard-row {
  display: grid;
  grid-template-columns: 24px 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
}
.yard-row:first-of-type { border-top: 0; }
.yard-n { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--fg-dim); letter-spacing: 0.18em; }
.yard-l {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.yard-meta { font-family: var(--mono); font-size: 10.5px; color: var(--fg-mute); letter-spacing: 0.12em; }
.yard-status {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.yard-status.ok    { color: #7fa67c; }
.yard-status.note  { color: var(--accent-pop); }
.yard-foot {
  padding: 22px 26px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============== INVENTORY ============== */
.inv-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}
@media (max-width: 1000px) { .inv-layout { grid-template-columns: 1fr; } .filters { position: static !important; } }

.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  gap: 18px; flex-wrap: wrap;
}
.toolbar-left { display: flex; gap: 16px; align-items: baseline; }
.toolbar-count { font-family: var(--display); font-size: 40px; letter-spacing: -0.01em; }
.toolbar-of { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.view-toggle button {
  padding: 9px 14px;
  font-family: var(--mono); font-size: 10.5px;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute);
  border-right: 1px solid var(--line);
}
.view-toggle button:last-child { border-right: 0; }
.view-toggle button.active { background: var(--fg); color: var(--bg); }

.filters {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 26px;
  display: flex; flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 92px;
  align-self: start;
  border-radius: 6px;
}
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; justify-content: space-between;
}
.filter-label span { color: var(--fg); font-weight: 500; }
.filter-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg-mute);
  cursor: pointer;
  transition: all 140ms;
  background: var(--bg);
}
.fchip:hover { color: var(--fg); border-color: var(--line-strong); }
.fchip.active {
  background: var(--accent);
  color: var(--bone);
  border-color: var(--accent);
}

.range-track {
  position: relative; height: 22px; display: flex; align-items: center;
}
.range-line { width: 100%; height: 1px; background: var(--line-strong); position: relative; }
.range-fill { position: absolute; height: 2px; background: var(--accent); top: -0.5px; }
.range-thumb {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  top: 50%; transform: translate(-50%, -50%);
}
.range-readout {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-mute);
  display: flex; justify-content: space-between;
  margin-top: 6px;
}
.search-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  outline: none;
  font-family: var(--display);
  font-size: 19px;
  color: var(--fg);
}
.search-input::placeholder { color: var(--fg-dim); font-style: italic; }

/* List view row */
.inv-row {
  display: grid;
  grid-template-columns: 220px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 180ms;
}
.inv-row:hover { background: var(--bg-2); }
.inv-row .ph { border-radius: 4px; aspect-ratio: 5/4; }

/* ============== DETAIL ============== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  padding: 40px 0 60px;
}
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static !important; }
}
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-gallery .ph { aspect-ratio: 4/3; border-radius: 4px; }
.detail-gallery .ph:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.detail-side {
  display: flex; flex-direction: column; gap: 22px;
  position: sticky;
  top: 92px;
  align-self: start;
}
.detail-title {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.detail-pricerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-price {
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.detail-pm {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.spec {
  background: var(--bg);
  padding: 16px 18px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.spec-l {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.spec-v { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }

/* Truck spec slab — emphasizes towing / payload / bed */
.truck-slab {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}
.truck-slab .ts-cell {
  background: var(--bg);
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.truck-slab .ts-l {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.truck-slab .ts-v {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--accent);
}
.truck-slab .ts-d {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
@media (max-width: 800px) {
  .truck-slab { grid-template-columns: repeat(2, 1fr); }
}

/* Calc */
.calc {
  border: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 18px;
  border-radius: 6px;
  background: var(--bg);
}
.calc-row { display: flex; flex-direction: column; gap: 8px; }
.calc-val {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.calc-val small {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  outline: none;
  border-radius: 99px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.calc-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.calc-result {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex; justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.calc-result .big {
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.calc-result .small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}

/* TAB NAV */
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.tab-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 22px;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 180ms;
}
.tab-btn.active { color: var(--fg); border-bottom-color: var(--accent); }

/* Carfax button */
.carfax-btn {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
  transition: all 200ms;
  color: #1a3a2e;
  text-align: left;
}
.theme-asphalt .carfax-btn { background: #1a3a2e; color: #fff; border-color: rgba(255,255,255,0.15); }
.carfax-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.carfax-bar {
  width: 8px;
  align-self: stretch;
  background: linear-gradient(180deg, var(--accent), var(--accent-pop));
  border-radius: 99px;
}

/* ============== PROCESS ============== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.process-step {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.process-num { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--fg-dim); }
.process-t { font-family: var(--display); font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; }
.process-d { font-size: 14px; color: var(--fg-mute); line-height: 1.55; }
.process-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
@media (max-width: 800px) { .process { grid-template-columns: 1fr; } }

/* ============== BRAND WALL ============== */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-tile {
  padding: 32px 18px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--fg-mute);
  transition: color 200ms, background 200ms;
  cursor: pointer;
  position: relative;
  text-align: center;
}
.brand-tile:last-child { border-right: 0; }
.brand-tile:hover { color: var(--accent); background: var(--bg-2); }
.brand-tile small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
@media (max-width: 1000px) {
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .brand-tile:nth-child(3n) { border-right: 0; }
  .brand-tile:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) { .brand-wall { grid-template-columns: repeat(2, 1fr); } }

/* ============== TESTIMONIAL QUOTES ============== */
.quote {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-style: italic;
  font-weight: 400;
}
.quote-by {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 18px;
}

/* ============== CTA BAND ============== */
.cta-band {
  background: var(--asphalt);
  color: var(--bone);
  padding: 100px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
  border-radius: 8px;
  margin: 40px 44px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 35%, color-mix(in oklab, var(--rust) 35%, transparent) 0%, transparent 56%),
    radial-gradient(ellipse at 6% 88%, color-mix(in oklab, var(--brass) 22%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-h {
  font-family: var(--display);
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; padding: 56px 28px; margin: 24px 20px; }
}

/* ============== AWARDS ============== */
.awards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.award {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 8px; align-items: center; text-align: center;
}
.award:last-child { border-right: 0; }
.award-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.award-t {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.005em;
}
.award-d {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
@media (max-width: 800px) {
  .awards { grid-template-columns: repeat(2, 1fr); }
  .award:nth-child(2n) { border-right: 0; }
  .award:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .award:last-child { grid-column: 1 / -1; }
}

/* ============== FOOTER ============== */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-h {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  padding: 6px 0;
  color: var(--fg-mute);
  font-size: 14px;
  transition: color 140ms;
  cursor: pointer;
}
.footer-link:hover { color: var(--accent); }
.footer-bot {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============== STICKY MOBILE CTA ============== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: none;
  z-index: 30;
  padding: 8px 12px;
  gap: 8px;
}
.sticky-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 800px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 68px; }
}

/* ============== REVEAL / MOTION ============== */
.reveal { opacity: 1; }
.reveal:not(.in) {
  opacity: 0.001;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
.rise-d1 { animation-delay: 60ms; }
.rise-d2 { animation-delay: 120ms; }
.rise-d3 { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; transform: none; } }

/* DIAGNOSTIC BAR */
.diag-bar {
  height: 6px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.diag-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-pop));
  border-radius: 99px;
  transform-origin: left;
  animation: bar-grow 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(var(--p, 1)); } }

/* MODAL */
.modal-bg {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 17, 13, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: pop-in 220ms cubic-bezier(.2,.7,.2,1) both;
}
.modal {
  background: var(--bg);
  border-radius: 6px;
  width: 100%; max-width: 720px;
  max-height: 92vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  box-shadow: 0 36px 80px rgba(0,0,0,0.34);
  animation: modal-in 320ms cubic-bezier(.2,.7,.2,1) both;
  position: relative;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: scale(0.97) translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(247, 241, 221, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--asphalt);
  font-size: 20px; line-height: 1;
  z-index: 4;
}
.modal-body { padding: 28px 26px 26px; overflow-y: auto; }

/* SWATCH */
.swatch-row { display: flex; gap: 8px; }
.swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform 180ms;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { outline: 2px solid var(--accent); outline-offset: 2px; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
::-webkit-scrollbar-track { background: transparent; }

/* MISC */
.dim    { color: var(--fg-dim); }
.mute   { color: var(--fg-mute); }
.accent { color: var(--accent); }
.text-right { text-align: right; }

/* ============================================================
   PRODUCTION POLISH — lead forms, atmosphere, motion
   ============================================================ */

/* ---------- FILM GRAIN ATMOSPHERE ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.theme-sand .grain-overlay { opacity: 0.05; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) {
  .grain-overlay { animation: grain-shift 9s steps(6) infinite; }
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- NAV ELEVATION ON SCROLL ---------- */
.nav { transition: box-shadow 320ms ease, background 320ms ease; }
.nav.scrolled {
  box-shadow: 0 12px 40px rgba(10, 8, 6, 0.22);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}
.theme-sand .nav.scrolled { box-shadow: 0 12px 36px rgba(20, 17, 13, 0.10); }

/* ---------- HEADLINE MASK REVEAL ---------- */
.mask-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.mask-line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: line-up 950ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0ms);
  will-change: transform;
}
@keyframes line-up { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mask-line > span { transform: none; animation: none; }
}

/* ---------- CARD SHEEN SWEEP ---------- */
.vcard-imgwrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.13) 50%, transparent 58%);
  transform: translateX(-130%) skewX(-6deg);
  z-index: 2;
  pointer-events: none;
}
.vcard:hover .vcard-imgwrap::after {
  transform: translateX(130%) skewX(-6deg);
  transition: transform 850ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- MICRO-INTERACTIONS ---------- */
.btn:active { transform: translateY(0) scale(0.985); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.fchip:active { transform: scale(0.96); }

/* ---------- SCROLL-DRIVEN PARALLAX (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cat-tile .ph,
    .parallax-img .ph {
      animation: drift-up linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      scale: 1.12;
    }
  }
}
@keyframes drift-up {
  from { transform: translateY(4%); }
  to   { transform: translateY(-4%); }
}

/* ============== LEAD FORM ============== */
.lf { display: flex; flex-direction: column; gap: 16px; }
.lf-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.lf-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.lf-sub { font-size: 14px; color: var(--fg-mute); line-height: 1.6; margin: 0; max-width: 44ch; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .lf-grid { grid-template-columns: 1fr; } }
.lf-field { display: flex; flex-direction: column; gap: 7px; }
.lf-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; justify-content: space-between; align-items: baseline;
}
.lf-opt { font-style: normal; opacity: 0.55; letter-spacing: 0.12em; font-size: 9px; }
.lf-input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  outline: none;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
  width: 100%;
}
.lf-input::placeholder { color: var(--fg-dim); }
.lf-input:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent);
}
.lf-field.err .lf-input { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--bg-2)); }
.lf-field.err .lf-label { color: var(--accent); }
textarea.lf-input { resize: vertical; min-height: 64px; font-family: var(--sans); }
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-submit { justify-content: center; margin-top: 4px; position: relative; }
.lf-submit.sending { opacity: 0.75; cursor: wait; }
.lf-spinner {
  width: 14px; height: 14px;
  border: 2px solid color-mix(in oklab, var(--bone) 35%, transparent);
  border-top-color: var(--bone);
  border-radius: 50%;
  animation: lf-spin 700ms linear infinite;
  display: inline-block;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }
.lf-consent {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
  margin: 0;
}
.lf-vehicle {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.005em;
}
.lf-vehicle-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.lf-vehicle-price { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }

/* success state */
.lf-success {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 14px;
  padding: 36px 12px 24px;
  animation: rise 500ms cubic-bezier(.2,.7,.2,1) both;
}
.lf-check-ring {
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  animation: lf-draw 800ms cubic-bezier(.2,.7,.2,1) 100ms forwards;
  transform: rotate(-90deg);
  transform-origin: center;
}
.lf-check-mark {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: lf-draw 500ms cubic-bezier(.2,.7,.2,1) 650ms forwards;
}
@keyframes lf-draw { to { stroke-dashoffset: 0; } }
.lf-success-t { font-family: var(--display); font-size: 36px; letter-spacing: -0.02em; line-height: 1; }
.lf-success-d { font-size: 14.5px; color: var(--fg-mute); line-height: 1.6; max-width: 36ch; margin: 0; }

/* compact variant (landing hero) */
.lf-compact { gap: 12px; }
.lf-compact .lf-submit { margin-top: 0; }

/* ============== QUICK CAPTURE (one-click widgets) ============== */
.qp {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-2);
  align-items: center;
}
.qp-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 10px 10px;
  font-family: var(--display);
  font-size: 19px;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.qp-input::placeholder { color: var(--fg-dim); font-style: italic; font-size: 16px; }
.qp-btn { white-space: nowrap; transition: opacity 180ms, transform 200ms; }
.qp-btn.qp-off { opacity: 0.45; }
.qp-done {
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-color: color-mix(in oklab, #6f9a6c 50%, transparent);
  background: rgba(111, 154, 108, 0.08);
  font-family: var(--display);
  font-size: 18px;
  animation: rise 400ms cubic-bezier(.2,.7,.2,1) both;
}
.qp-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #6f9a6c;
  color: var(--bone);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* test-drive slot picker */
.tdq {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  border-radius: 6px;
}
.tdq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tdq-t { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; }
.tdq-sub { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.tdq-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 560px) { .tdq-slots { grid-template-columns: repeat(2, 1fr); } }
.tdq-slot {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg-mute);
  transition: all 150ms;
}
.tdq-slot:hover { color: var(--fg); border-color: var(--fg); }
.tdq-slot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bone);
  transform: scale(1.03);
}

/* one-tap action row */
.qa-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.qa {
  background: var(--bg);
  padding: 14px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer;
  transition: background 160ms;
  text-align: center;
}
.qa:hover { background: var(--bg-2); }
.qa:hover .qa-l { color: var(--accent); }
.qa-l { font-family: var(--display); font-size: 17px; letter-spacing: -0.005em; transition: color 160ms; }
.qa-d { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }

/* finance page grid collapse */
@media (max-width: 1000px) {
  .finance-grid { grid-template-columns: 1fr !important; }
  .finance-grid > div:last-child { position: static !important; }
}

/* ============================================================
   AMD WINCHESTER VISUAL RESET — conversion-first dark showroom
   ============================================================ */
.theme-asphalt {
  --bg: #100f0d;
  --bg-2: #181512;
  --bg-3: #211c17;
  --fg: #f8f0df;
  --fg-mute: #c8bda3;
  --fg-dim: #8d8069;
  --line: rgba(248, 240, 223, 0.10);
  --line-strong: rgba(248, 240, 223, 0.20);
}

.theme-asphalt body,
body.theme-asphalt {
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 72, 42, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(182, 133, 42, 0.12), transparent 28rem),
    var(--bg);
}

.nav-inner { padding-block: 14px; }
.nav-brand .word { font-size: 24px; }
.nav-link { padding: 9px 13px; }

.hero-premium {
  isolation: isolate;
  padding: clamp(26px, 4vw, 56px) 44px 34px;
  min-height: calc(100vh - 74px);
  align-content: start;
  overflow: hidden;
}
.hero-premium-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(16,15,13,0.98) 0%, rgba(16,15,13,0.90) 46%, rgba(16,15,13,0.70) 100%),
    radial-gradient(circle at 74% 20%, rgba(184,72,42,0.28), transparent 24rem),
    radial-gradient(circle at 92% 88%, rgba(182,133,42,0.16), transparent 28rem),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(248,240,223,0.035) 78px 79px);
}
.hero-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 480px);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.hero-premium-grid > *,
.hero-feature-row > *,
.hero-feature-list > * {
  min-width: 0;
}
.hero-copy { padding-top: clamp(18px, 4vw, 54px); }
.hero-h1-premium {
  font-size: clamp(52px, 7.8vw, 112px);
  max-width: 10.5ch;
  margin-top: 18px;
  line-height: 0.88;
}
.hero-h1-premium em { color: var(--accent-soft); }
.hero-lede {
  max-width: 670px;
  margin: 20px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.48;
  color: var(--fg-mute);
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-microgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.hero-micro {
  background: rgba(248,240,223,0.035);
  padding: 15px 14px;
}
.hero-micro span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero-micro strong {
  display: block;
  margin-top: 7px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.hero-lead-card {
  position: sticky;
  top: 92px;
  padding: 26px;
  border: 1px solid rgba(248,240,223,0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248,240,223,0.10), rgba(248,240,223,0.045)),
    rgba(16,15,13,0.78);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px) saturate(140%);
}
.hero-lead-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.hero-lead-top .mono {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.hero-lead-card .lf { gap: 13px; }
.hero-lead-card .lf-input { background: rgba(248,240,223,0.07); }
.hero-lead-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.hero-lead-foot button {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: rgba(248,240,223,0.045);
}
.hero-lead-foot button:hover { color: var(--fg); border-color: var(--accent); }

.hero-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  margin-top: 30px;
}
.hero-feature-main {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  text-align: left;
}
.hero-feature-main .ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto !important;
}
.hero-feature-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  color: var(--bone);
}
.hero-feature-copy span,
.hero-feature-copy small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(248,240,223,0.70);
}
.hero-feature-copy strong {
  grid-row: span 2;
  align-self: end;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
}
.hero-feature-list {
  display: grid;
  gap: 8px;
}
.hero-feature-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-content: center;
  min-height: 80px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248,240,223,0.045);
  text-align: left;
}
.hero-feature-list button:hover,
.hero-feature-list button.active {
  border-color: rgba(184,72,42,0.62);
  background: rgba(184,72,42,0.10);
}
.hero-feature-list span,
.hero-feature-list em {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-style: normal;
}
.hero-feature-list strong {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1;
}
.hero-premium .search-strip {
  margin-top: 12px;
  background: rgba(248,240,223,0.055);
  border-color: var(--line-strong);
  border-radius: 8px;
}

.ph-missing {
  background:
    radial-gradient(circle at 24% 18%, hsla(var(--plate-hue, 24), 42%, 55%, 0.18), transparent 20rem),
    linear-gradient(135deg, hsla(var(--plate-hue, 24), 18%, 24%, 1), #15120f 72%) !important;
}
.ph-missing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(248,240,223,0.045) 48% 52%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(248,240,223,0.045) 0 1px, transparent 1px 18px);
  opacity: 0.75;
}
.ph-silhouette {
  position: absolute;
  z-index: 1;
  width: min(62%, 360px);
  height: 28%;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(248,240,223,0.30);
  border-bottom-width: 5px;
  border-radius: 46% 50% 16px 16px;
}
.ph-silhouette::before,
.ph-silhouette::after {
  content: '';
  position: absolute;
  bottom: -18px;
  width: 38px;
  height: 38px;
  border: 6px solid rgba(248,240,223,0.30);
  border-radius: 50%;
  background: rgba(16,15,13,0.72);
}
.ph-silhouette::before { left: 12%; }
.ph-silhouette::after { right: 12%; }
.ph-missing .ph-label {
  border-color: rgba(248,240,223,0.18);
  background: rgba(16,15,13,0.64);
  color: var(--bone);
}

.vcard {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(248,240,223,0.035);
}
.vcard-imgwrap { border-radius: 0; }
.vcard-body { padding: 18px; }
.vcard-title-row { display: block; }
.vcard-title { font-size: 24px; }
.vcard-title-row > div {
  text-align: left !important;
  margin-bottom: 9px;
}
.vcard-price { font-size: 30px; }
.vcard-title-row .vcard-meta { justify-content: flex-start !important; }
.vcard-title em {
  display: inline-block;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.vcard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.vcard-actions span:first-child { color: var(--accent-soft); }

.section { padding-block: 74px; }
.section-head { margin-bottom: 34px; padding-bottom: 26px; }
.section-title { font-size: clamp(36px, 4.8vw, 68px); }
.stat-band,
.process,
.filters,
.cta-band,
.award {
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .hero-premium-grid,
  .hero-feature-row {
    grid-template-columns: 1fr;
  }
  .hero-lead-card {
    position: relative;
    top: auto;
  }
  .hero-feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .nav-inner {
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-brand .word { font-size: 21px !important; }
  .hero-premium {
    padding: 24px 18px 28px;
    min-height: auto;
  }
  .hero-h1-premium {
    font-size: clamp(44px, 15vw, 66px);
  }
  .hero-premium .eyebrow {
    font-size: 9px;
    letter-spacing: 0.15em;
    white-space: normal;
  }
  .hero-microgrid,
  .hero-lead-foot,
  .hero-feature-list {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy,
  .hero-lead-card,
  .hero-feature-main,
  .hero-feature-list {
    min-width: 0;
    width: 100%;
  }
  .hero-feature-main { min-height: 220px; }
  .hero-feature-copy {
    grid-template-columns: 1fr;
  }
  .hero-feature-copy strong {
    grid-row: auto;
    font-size: 36px;
  }
  .hero-premium .search-strip {
    grid-template-columns: 1fr;
  }
  .search-strip .vrule,
  .search-strip select {
    display: none;
  }
  .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 48px; }
  .vcard-title-row { grid-template-columns: 1fr; }
  .vcard-price { margin-top: 10px; }
}
