/* =====================================================================
   CRBN Autohaus
   Palette taken from the CRBN business card:
     black #030405 with fine diagonal stripes (#101519)
     light silver-gray #e8ebec with charcoal text #10171b / slate #49545b
     steel divider #adb4b8, white/chrome logo
   Sections alternate dark (card front) and light (card back).
   Type: Archivo (variable width) for everything, JetBrains Mono for data.
   ===================================================================== */

:root {
  /* Card colors */
  --black: #030405;
  --stripe: #101519;
  --silver: #e8ebec;
  --charcoal: #10171b;
  --slate: #49545b;
  --steel: #adb4b8;
  --white: #ffffff;

  /* Dark theme (default) */
  --bg: var(--black);
  --panel: #0c1114;
  --panel-2: #12181c;
  --line: #1a2226;
  --line-2: #2b343a;
  --ink: #f3f5f6;
  --ink-2: #cfd4d7;
  --muted: #9ca5aa;
  --accent: var(--silver);
  --accent-hi: var(--white);
  --accent-ink: var(--charcoal);
  --field-bg: var(--black);
  --ok: #86cfa0;
  --danger: #f08a7e;
  --warn: #e9c46f;

  --chrome: linear-gradient(180deg, #ffffff 0%, #e4e7eb 30%, #9aa1aa 48%, #5f666f 53%, #b8bdc4 66%, #f4f6f8 100%);
  --stripes: repeating-linear-gradient(120deg, transparent 0 15px, var(--stripe) 15px 17px);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* Light theme: the back of the business card */
.theme-light {
  --bg: var(--silver);
  --panel: #f5f6f7;
  --panel-2: var(--white);
  --line: #d2d7da;
  --line-2: var(--steel);
  --ink: var(--charcoal);
  --ink-2: #26313a;
  --muted: var(--slate);
  --accent: var(--charcoal);
  --accent-hi: var(--black);
  --accent-ink: var(--white);
  --field-bg: var(--white);
  --ok: #1d7a45;
  --danger: #b3261e;
  --warn: #8a5a00;
  color-scheme: light;
  background-color: var(--bg);
  color: var(--ink);
}
/* Re-assert the dark theme inside a light section */
.theme-dark {
  --bg: var(--black);
  --panel: #0c1114;
  --panel-2: #12181c;
  --line: #1a2226;
  --line-2: #2b343a;
  --ink: #f3f5f6;
  --ink-2: #cfd4d7;
  --muted: #9ca5aa;
  --accent: var(--silver);
  --accent-hi: var(--white);
  --accent-ink: var(--charcoal);
  --field-bg: var(--black);
  --ok: #86cfa0;
  --danger: #f08a7e;
  --warn: #e9c46f;
  color-scheme: dark;
  color: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 750; font-stretch: 112%; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd, ol, ul { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--steel); color: var(--charcoal); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--silver); color: var(--charcoal); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Card-front texture: black with fine diagonal stripes */
.striped, .hero-bg, .car-media, .feature-media, .dlg-media, .element-tile, .sourcing-band, .biz-dark {
  background-color: var(--black);
  background-image: var(--stripes);
}

/* ---------- Buttons & links ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--b); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-weight: 650; font-size: 15px; font-stretch: 105%; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-accent { --b: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 3px; font-weight: 600; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(3, 4, 5, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--line); background: rgba(3, 4, 5, 0.92); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; height: 44px; width: auto; }
.brand-lg img { height: 60px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); background: rgba(255,255,255,.05); }
.site-nav a[aria-current="true"] { color: var(--ink); }
.nav-cta { margin-left: 12px; min-height: 40px; padding: 0 16px; font-size: 14px; }

.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; cursor: pointer; position: relative; }
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--ink); transform: translateX(-50%); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn-bars { top: 50%; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; left: 0; transform: none; }
.menu-btn-bars::before { top: -6px; }
.menu-btn-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(6px) rotate(45deg); background: var(--ink); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .site-header[data-open] .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .site-nav a:not(.btn) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 16px 0 0; min-height: 48px; font-size: 16px; }
}

/* ---------- Hero (card front) ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 18%, rgba(0,0,0,.35) 48%, transparent 70%);
          mask-image: linear-gradient(to left, #000 0%, #000 18%, rgba(0,0,0,.35) 48%, transparent 70%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.hero::before { top: clamp(20px, 3vw, 40px); }
.hero::after { bottom: clamp(24px, 3vw, 44px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .num { color: var(--ink); font-weight: 500; }
.eyebrow .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #86cfa0; box-shadow: 0 0 0 0 rgba(134,207,160,.5); animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(134,207,160,.45); } 70% { box-shadow: 0 0 0 10px rgba(134,207,160,0); } 100% { box-shadow: 0 0 0 0 rgba(134,207,160,0); } }

.hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 800; font-stretch: 115%; letter-spacing: -0.025em; line-height: 0.98; }
.hero h1 .accent { display: block; color: var(--silver); background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.55; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.hero-facts > div { padding: 16px 16px 0 0; }
.hero-facts > div + div { padding-left: 16px; border-left: 1px solid var(--line-2); }
.hero-facts dt { font-weight: 700; font-stretch: 110%; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.hero-facts dd { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Featured card */
.feature-card {
  position: relative; display: block;
  border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  min-height: 300px;
}
.feature-card:empty { display: none; }
.feature-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.feature-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.feature-body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.feature-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.feature-body .kicker { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.feature-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 6px; }
.feature-price { font-family: var(--f-mono); font-size: 20px; font-weight: 500; white-space: nowrap; }
.feature-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 14px; }
.feature-specs div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.feature-specs dt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.feature-specs dd { margin-top: 2px; font-weight: 600; font-size: 15px; }
.feature-body .btn { width: 100%; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; background-color: var(--bg); }
.section:not(.theme-light) + .section:not(.theme-light),
.section:not(.theme-light) + .site-footer { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 48px; align-items: end; }
.section h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-intro { color: var(--muted); font-size: 17px; max-width: 36em; }
.split-copy .section-intro { margin-top: 18px; }

/* ---------- Inventory toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { font-family: var(--f-mono); font-size: 11px; margin-left: 6px; opacity: .65; }

.toolbar-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.control { position: relative; display: flex; align-items: center; }
.control select, .control input {
  height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--field-bg); color: var(--ink); font-size: 14px;
}
.control select { padding: 0 34px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23808a90' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px;
}
.control-search svg { position: absolute; left: 11px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; pointer-events: none; }
.control-search input { padding: 0 12px 0 34px; width: 230px; }
.control input::placeholder { color: var(--muted); }
.control select:hover, .control input:hover { border-color: var(--ink-2); }

.result-count { margin: 16px 0 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Vehicle cards: black photo panel over a light body, like the card ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.car-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.car-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(3,4,5,.55); }
.car-card:focus-within { border-color: var(--accent); }
.car-card.is-sold { opacity: .6; }
.car-card.is-sold:hover { opacity: .85; }

.car-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.car-media img, .feature-media img, .dlg-media img { width: 100%; height: 100%; object-fit: cover; }
.car-card:hover .car-media img { transform: scale(1.03); }
.car-media img { transition: transform .5s var(--ease); }

/* Placeholder shown until a vehicle has photos */
.ph { position: absolute; inset: 0; display: grid; place-items: end start; }
.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 62% 78%, color-mix(in srgb, var(--paint, #777) 50%, transparent), transparent 70%); opacity: .5; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,4,5,0) 40%, rgba(3,4,5,.6)); }
.ph-car { position: absolute; left: 7%; right: 7%; bottom: 13%; width: 86%; height: auto; overflow: visible; z-index: 1; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); }
.ph-note { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(232,235,236,.6); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(3,4,5,.8); border: 1px solid rgba(232,235,236,.14); color: var(--silver);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-new { color: #ffffff; }
.badge-available { color: #86cfa0; }
.badge-reserved { color: #e9c46f; }
.badge-sold { color: var(--steel); }

.car-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-kicker { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.car-title { font-size: 21px; font-stretch: 108%; line-height: 1.15; }
.car-title button { all: unset; cursor: pointer; }
.car-title button::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.car-title button:focus-visible { outline: none; }
.car-sub { font-size: 14px; color: var(--muted); margin-top: -4px; }
.car-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.car-specs li { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; }
.car-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--f-mono); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.price-sold { color: var(--muted); text-decoration: line-through; }
.car-more { font-size: 14px; font-weight: 650; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.car-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s var(--ease); }
.car-card:hover .car-more svg { transform: translateX(3px); }

.empty-state { padding: 48px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 6px; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.noscript-note { padding: 24px; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--muted); }

.sourcing-band {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 6px;
}
.sourcing-band h3 { font-size: 22px; }
.sourcing-band p { margin-top: 6px; color: var(--muted); max-width: 40em; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.service { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background-color .25s var(--ease); }
.service:hover { background: rgba(232,235,236,.03); }
.service-icon { width: 34px; height: 34px; fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 22px; font-size: 21px; }
.service p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; background: var(--accent); }
.step-n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.step h3 { margin-top: 12px; font-size: 24px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- Split layouts & forms ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-copy h2 { margin-top: 14px; }
.split-copy > p:not(.eyebrow):not(.section-intro) { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 36em; }
.ticks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--steel); }
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: calc(.3em + 4px); width: 5px; height: 8px; border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

.panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.form-title { font-size: 22px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.label { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.label i { font-style: normal; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--field-bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 16px; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23808a90' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; }
.field input::placeholder, .field textarea::placeholder { color: #7c868c; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(173,180,184,.35); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-status { font-size: 14px; color: var(--muted); flex: 1 1 220px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* ---------- Sell to us: the card back's slanted dark / light split ---------- */
.section-slant { overflow: hidden; }
.section-slant .slant-col { background: transparent; }
@media (min-width: 901px) {
  .section-slant .slant-col { position: relative; z-index: 0; }
  .section-slant .slant-col::before,
  .section-slant .slant-col::after {
    content: ""; position: absolute; z-index: -1;
    top: -600px; bottom: -600px; right: -100vw;
  }
  /* steel edge */
  .section-slant .slant-col::before { left: calc(clamp(32px, 6vw, 88px) * -1 + 8px - 12px); background: var(--steel); clip-path: polygon(0 0, 100% 0, 100% 100%, 100px 100%); }
  /* light panel */
  .section-slant .slant-col::after { left: calc(clamp(32px, 6vw, 88px) * -1 + 8px); background: var(--silver); clip-path: polygon(0 0, 100% 0, 100% 100%, 100px 100%); }
  .section-slant .slant-col > .panel { border-color: transparent; background: transparent; padding: 0; }
}

/* ---------- About / element ---------- */
.split-about { align-items: center; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.element { display: grid; justify-items: start; gap: 18px; }
.element-tile {
  position: relative; width: min(100%, 360px); aspect-ratio: 1;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(3,4,5,.7);
}
.element-tile::after { content: ""; position: absolute; inset: 14px; border: 1.5px solid var(--steel); border-radius: 3px; }
.element-n, .element-sym, .element-name, .element-mass { position: absolute; z-index: 1; }
.element-n { top: 30px; left: 34px; font-family: var(--f-mono); font-size: 22px; color: var(--steel); }
.element-sym { inset: 0; display: grid; place-items: center; font-size: clamp(120px, 18vw, 190px); font-weight: 800; font-stretch: 112%; line-height: 1; padding-bottom: 10%; color: var(--silver); }
.element-name { left: 34px; bottom: 54px; font-weight: 700; font-stretch: 112%; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.element-mass { left: 34px; bottom: 30px; font-family: var(--f-mono); font-size: 14px; color: var(--steel); }
.element-caption { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.values { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.values > div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.values dt { font-weight: 700; font-stretch: 110%; }
.values dd { margin-top: 4px; color: var(--muted); font-size: 15px; }
.signature { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.signature::before { content: ""; width: 32px; height: 1px; background: var(--line-2); }
.signature b { font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .04em; }
.signature span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Contact ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.visit-info { display: grid; gap: 28px; }

/* Business card replica */
.biz-card {
  position: relative; display: grid; grid-template-columns: 38% 1fr;
  aspect-ratio: 3.5 / 2; width: 100%; max-width: 560px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(232,235,236,.06);
  container-type: inline-size;
}
.biz-dark { position: relative; display: grid; align-content: center; justify-items: center; gap: 6cqw; padding: 6cqw 7cqw 6cqw 5cqw; }
.biz-dark img { width: 100%; height: auto; }
.biz-dark .biz-rule { width: 70%; height: 1px; background: var(--slate); }
.biz-dark .biz-loc { font-family: var(--f-mono); font-size: max(10px, 2.1cqw); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); text-align: center; }
/* steel edge drawn as a hard shadow of the slanted light panel, like the card */
.biz-light-wrap { margin-left: -6cqw; filter: drop-shadow(-1.4cqw 0 0 var(--steel)); display: grid; }
.biz-light {
  position: relative; background: var(--silver); color: var(--charcoal);
  display: grid; align-content: center; gap: .6cqw;
  padding: 5cqw 5cqw 5cqw 9cqw;
  clip-path: polygon(3.5cqw 0, 100% 0, 100% 100%, 7.5cqw 100%);
}
.biz-name { font-size: max(18px, 5.6cqw); font-weight: 800; font-stretch: 105%; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.biz-role { margin-top: 1.4cqw; font-size: max(11px, 2.4cqw); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.biz-tag { font-size: max(11px, 2.3cqw); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.biz-rule-light { height: 1px; background: var(--steel); margin: 2.2cqw 0; }
.biz-phone { font-size: max(14px, 3.4cqw); font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.biz-light a:not(.biz-phone) { text-decoration: none; }
.biz-web, .biz-addr { font-size: max(11px, 2.4cqw); letter-spacing: .04em; text-transform: uppercase; color: var(--charcoal); line-height: 1.35; }
.biz-addr { color: var(--slate); margin-top: 1cqw; }
.biz-light a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-list > div { padding-top: 12px; border-top: 1px solid var(--line-2); min-width: 0; }
.contact-list dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--black); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; right: 0; width: min(28%, 360px); height: 100%; background-image: var(--stripes); -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
.site-footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 26em; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.footer-nav a, .footer-contact a, .footer-contact address { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); }
.footer-contact { display: grid; gap: 10px; justify-items: start; }
.footer-contact address { color: var(--muted); line-height: 1.5; }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.footer-legal p:last-child { max-width: 52em; }

/* ---------- Vehicle dialog ---------- */
.car-dialog {
  width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 8px;
  background: var(--silver); color: var(--charcoal);
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  overflow: hidden;
}
.car-dialog::backdrop { background: rgba(3,4,5,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.car-dialog[open] { animation: dlg-in .28s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.dlg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); max-height: calc(100dvh - 48px); }
.dlg-media-col { display: grid; align-content: start; gap: 8px; padding: 8px; background: var(--black); }
.dlg-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; }
.dlg-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.dlg-thumbs button { flex: 0 0 72px; height: 48px; padding: 0; border: 1px solid #2b343a; border-radius: 3px; overflow: hidden; cursor: pointer; background: none; }
.dlg-thumbs button[aria-current="true"] { border-color: var(--silver); }
.dlg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dlg-info { padding: 26px 26px 24px; overflow-y: auto; display: grid; align-content: start; gap: 18px; }
.dlg-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.dlg-close:hover { border-color: var(--ink); }
.dlg-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; }
.dlg-info h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; padding-right: 40px; }
.dlg-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dlg-price .price { font-size: 26px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.spec-grid > div { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.spec-grid > div:nth-child(odd) { padding-right: 12px; }
.spec-grid > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.spec-grid dt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.spec-grid dd { margin-top: 2px; font-size: 15px; font-weight: 600; }
.dlg-highlights h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Instant offer page ---------- */
.offer-hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); overflow: hidden; isolation: isolate; }
.offer-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; font-stretch: 115%; letter-spacing: -0.025em; line-height: 1; }
.offer-hero h1 .accent { display: block; color: var(--silver); background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.offer-hero .lede { max-width: 40em; }
.offer-main { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.offer-col { display: grid; gap: 20px; min-width: 0; }
.offer-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3.4vw, 40px); box-shadow: 0 30px 60px -40px rgba(3,4,5,.35); }
.offer-card[hidden] { display: none; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.stepper li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.stepper li::before { content: ""; flex-basis: 100%; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 4px; }
.stepper li.done::before, .stepper li[aria-current]::before { background: var(--charcoal); }
.stepper li.done, .stepper li[aria-current] { color: var(--ink); }
.stepper span { font-family: var(--f-mono); font-size: 11px; }
.stepper b { font-weight: 650; }

.step-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-panel[hidden] { display: none; }
.step-panel > * + * { margin-top: 20px; }
.step-panel > legend { float: left; width: 100%; padding: 0; }
.step-panel > legend + * { clear: both; margin-top: 0; padding-top: 6px; }
.step-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; font-stretch: 110%; line-height: 1.1; outline: none; }
.step-sub { color: var(--muted); font-size: 16px; }

.vin-row { display: flex; gap: 10px; align-items: end; }
.vin-field { flex: 1; }
.vin-field input { font-family: var(--f-mono); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; min-height: 54px; }
.vin-field input::placeholder { letter-spacing: .02em; text-transform: none; font-size: 15px; }
.vin-row .btn { min-height: 54px; min-width: 120px; }
.step-panel > .vin-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.link-btn { all: unset; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 3px; font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vin-help { list-style: none; display: grid; gap: 6px; padding: 14px 16px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.vin-help[hidden] { display: none; }
.vehicle-found { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 6px; background-color: var(--charcoal); background-image: var(--stripes); color: var(--silver); }
.vehicle-found[hidden] { display: none; }
.vehicle-found .mono { color: var(--steel); }
.vehicle-found-name { margin-top: 4px; font-size: 20px; font-weight: 750; font-stretch: 108%; color: var(--white); line-height: 1.2; }
.vehicle-found-meta { margin-top: 2px; font-size: 14px; color: var(--steel); }
.vehicle-found .link-btn { color: var(--silver); flex-shrink: 0; }
.manual-grid[hidden], .payoff-grid[hidden] { display: none; }
.form-status.warn, .send-status.warn { color: var(--warn); }
.form-status:empty, .send-status:empty { display: none; }

.choice-block { display: grid; gap: 10px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choices-4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice span { display: grid; align-content: center; gap: 2px; height: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--field-bg); font-weight: 650; font-size: 15px; line-height: 1.25; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.choice small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.choice:hover span { border-color: var(--ink-2); }
.choice input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.choice input:checked + span small { color: var(--steel); }
.choice input:focus-visible + span { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--charcoal); flex-shrink: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-slot { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.photo-pick { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px; border: 1.5px dashed var(--steel); border-radius: 6px; background: var(--field-bg); cursor: pointer; text-align: center; transition: border-color .2s var(--ease); }
.photo-pick:hover { border-color: var(--charcoal); }
.photo-pick:focus-within { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.photo-art { position: relative; width: 44px; height: 44px; }
.photo-art svg { width: 100%; height: 100%; fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-plus { position: absolute; right: -6px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--charcoal); color: var(--white); font-size: 14px; line-height: 18px; text-align: center; font-weight: 700; }
.photo-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.photo-slot.is-loading .photo-pick { opacity: .5; }
.photo-thumb { position: absolute; inset: 0; background: var(--black); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(3,4,5,.82); color: var(--white); font-size: 18px; line-height: 1; cursor: pointer; }
.photo-remove:focus-visible { outline: 2px solid var(--white); }
.photo-extras { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.photo-extras:empty { display: none; }
.photo-thumb.extra { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.photo-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.photo-extra .btn:focus-within { outline: 2px solid var(--charcoal); outline-offset: 2px; }

.step-error { margin-top: 18px; }
.offer-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.offer-nav [data-next] { margin-left: auto; min-width: 200px; }

.offer-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; padding: 24px; border-radius: 8px; background-color: var(--black); background-image: var(--stripes); }
.aside-card { padding: 18px; border-radius: 6px; background: rgba(3,4,5,.88); border: 1px solid var(--line-2); }
.aside-vehicle { margin-top: 6px; font-size: 20px; font-weight: 750; font-stretch: 108%; line-height: 1.2; }
.aside-specs { margin-top: 14px; }
.aside-specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.aside-specs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aside-specs dd { font-family: var(--f-mono); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.aside-steps { list-style: none; display: grid; gap: 14px; counter-reset: a; }
.aside-steps li { counter-increment: a; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.aside-steps li::before { content: counter(a); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--steel); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--silver); }
.aside-steps b { font-weight: 700; }
.aside-steps span { color: var(--muted); font-size: 14px; }
.aside-call { font-size: 14px; color: var(--muted); }
.aside-call a { color: var(--ink); font-weight: 700; text-decoration: none; }

.offer-result { outline: none; }
.offer-result [hidden] { display: none; }
.offer-amount { margin-top: 6px; font-size: clamp(52px, 8vw, 88px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.offer-meta { margin-top: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.offer-meta b { color: var(--ink); font-weight: 500; }
.offer-for { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.factors { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.factors ul { list-style: none; margin-top: 10px; }
.factors li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.factors b { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.factors .up { color: var(--ok); }
.factors .down { color: var(--ink-2); }
.payoff-note { margin-top: 18px; padding: 14px 16px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.result-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.result-title { font-size: clamp(26px, 3vw, 34px); margin-top: 8px; outline: none; }
.booking > * + *, .booking-done > * + *, [data-result-manual] > * + * { margin-top: 16px; }
.send-status { margin-top: 18px; font-size: 14px; color: var(--muted); }
.send-status.ok { color: var(--ok); }

/* Home page: instant offer call-out */
.vin-cta { display: grid; gap: 14px; }
.vin-cta .vin-row .btn { min-width: 170px; }
.vin-cta-note { font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-aside { position: static; }
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-extras { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stepper li:not([aria-current]) b { display: none; }
  .stepper li:not([aria-current]) span { width: 100%; text-align: center; }
  .vin-row { flex-direction: column; align-items: stretch; }
  .offer-card { padding: 20px; }
  .offer-nav { position: sticky; bottom: 0; z-index: 5; margin: 24px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; }
  .offer-nav [data-next] { flex: 1; min-width: 0; }
  .result-actions .btn { width: 100%; }
  .vehicle-found { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { max-width: 560px; }
  .section-head-row { grid-template-columns: minmax(0, 1fr); }
  .split, .split-about { grid-template-columns: minmax(0, 1fr); }
  .toolbar { align-items: stretch; }
  .toolbar-controls { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-search { grid-column: 1 / -1; }
  .toolbar-controls .control:last-child { grid-column: 1 / -1; }
  .control-search input, .control select { width: 100%; }
  .dlg { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .dlg-info { overflow: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .site-header .brand img { height: 38px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts > div, .hero-facts > div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  .hero-facts dd { margin: 0; text-align: right; }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .values > div { padding: 12px 0; }
  .contact-list { grid-template-columns: minmax(0, 1fr); }
  .feature-specs dd { font-size: 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; }
  .car-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dlg { max-height: 100dvh; height: 100%; }
  .dlg-actions { grid-template-columns: minmax(0, 1fr); position: sticky; bottom: 0; margin: 0 -26px -24px; padding: 14px 26px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(232,235,236,.95); border-top: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .sourcing-band .btn { width: 100%; }
  .biz-card { grid-template-columns: 36% 1fr; }
}

/* Dealer-only inventory: no public prices */
.price-note { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.photo-tag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: 999px; background: rgba(3,4,5,.8); color: var(--white); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hero: instant offer card (shown when no vehicle is featured) */
.hero-offer { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: 8px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.hero-offer[hidden] { display: none; }
.hero-offer-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; font-stretch: 110%; line-height: 1.05; }
.hero-offer-form { display: grid; gap: 10px; }
.hero-offer-form input { font-family: var(--f-mono); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; min-height: 52px; }
.hero-offer-form input::placeholder { letter-spacing: .02em; text-transform: none; font-size: 15px; }
.hero-offer .ticks { margin-top: 4px; gap: 8px; }
.hero-offer .ticks li { font-size: 15px; }

/* Inventory: nothing listed yet */
.car-grid > .inventory-soon { grid-column: 1 / -1; }
.inventory-soon { display: grid; justify-items: start; gap: 12px; padding: clamp(28px, 4vw, 48px); border-radius: 8px; background-color: var(--black); background-image: var(--stripes); color: var(--silver); }
.inventory-soon .mono { color: var(--steel); }
.inventory-soon h3 { font-size: clamp(24px, 3vw, 34px); color: var(--white); }
.inventory-soon p:not(.mono) { color: #b9c0c4; max-width: 40em; }
.inventory-soon .btn-accent { background: var(--silver); border-color: var(--silver); color: var(--charcoal); margin-top: 6px; }
.inventory-soon .btn-accent:hover { background: var(--white); border-color: var(--white); }
.toolbar[hidden], .result-count[hidden], .sourcing-band[hidden] { display: none; }

/* Contact: team card */
.team-card { display: grid; justify-items: start; gap: 12px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 8px; background-color: var(--black); background-image: var(--stripes); }
.team-card .mono { color: var(--steel); }
.team-card-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; font-stretch: 110%; line-height: 1.05; color: var(--white); }
.team-card-sub { color: var(--muted); max-width: 30em; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.team-email { font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 3px; }
.team-email:hover { text-decoration-color: currentColor; }
@media (max-width: 640px) { .team-actions .btn { flex: 1 1 100%; } }

/* Inventory loading state (while the Google Sheet is read) */
.car-grid > .inventory-loading { grid-column: 1 / -1; }
.inventory-loading { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
