/* =========================================================================
   Ignition dealer template
   --accent / --accent-ink are injected per dealer in <head>.
   ========================================================================= */

:root {
  --ink: #0b0d12;
  --ink-2: #151922;
  --ink-3: #232836;
  --paper: #f5f4f0;
  --card: #ffffff;
  --line: #e4e1da;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #14161c;
  --muted: #646875;
  --muted-light: rgba(255, 255, 255, .68);
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  /* the accent, lightened for text on dark backgrounds */
  --accent-soft: color-mix(in srgb, var(--accent) 62%, #fff);
  --logo-h: 40px;
  --ok: #138a52;
  --err: #c2332b;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 8px 24px rgba(11, 13, 18, .06);
  --shadow-lg: 0 24px 60px rgba(11, 13, 18, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --bar-h: 0px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { flex: none; }
[hidden] { display: none !important; }

/* ---------- type helpers ---------- */
.display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.display em, .section-title em, .hero-title em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-ghost-dark { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost-dark:hover { border-color: var(--text); }
.btn-text { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- header ---------- */
/* Demo mode: thin bar at the top of the header (config demo.enabled). */
.has-demo-bar { --bar-h: 34px; }
.demo-bar { height: var(--bar-h); background: #fff; color: var(--ink); font-size: .8rem; border-bottom: 1px solid var(--line); }
.demo-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.demo-bar-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.demo-bar a { flex: none; font-weight: 600; color: var(--ink); text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-transparent { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(11, 13, 18, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: var(--logo-h); width: auto; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted-light); transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.header-phone .icon { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 50%; width: 18px; height: 2px; background: #fff; border-radius: 2px; transform: translateX(-50%); transition: transform .25s var(--ease), opacity .2s; }
.menu-bars { top: 50%; margin-top: -1px; }
.menu-bars::before { content: ""; top: -6px; }
.menu-bars::after { content: ""; top: 6px; }
.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line-dark); padding: 16px 0 24px; }
.mobile-menu .container { display: grid; gap: 4px; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu .btn + .btn { margin-top: 8px; }
.site-header:not(.is-light) .mobile-call { color: #fff; border-color: var(--line-dark); }

/* Light header (config theme.header = 'light'): white bar, dark text, full-color logo. */
.site-header.is-light { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-light.is-transparent:not(.is-scrolled):not(.menu-open) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-light.is-scrolled, .site-header.is-light.menu-open { background: rgba(255,255,255,.95); box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(6,20,40,.08); }
.is-light .main-nav a { color: color-mix(in srgb, var(--ink) 74%, transparent); }
.is-light .main-nav a:hover, .is-light .main-nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.is-light .menu-toggle, .is-light .header-phone { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.is-light .menu-toggle { background: rgba(255,255,255,.7); }
.is-light .menu-bars, .is-light .menu-bars::before, .is-light .menu-bars::after { background: var(--ink); }
.is-light.menu-open .menu-bars { background: transparent; }
.is-light .mobile-menu { border-top-color: var(--line); }
.is-light .mobile-menu a:not(.btn) { border-bottom-color: var(--line); }
/* Over a bright banner image: the banner carries the logo, so the header's
   own logo fades in once the page scrolls; the nav sits on frosted glass. */
.is-over-banner .brand { transition: opacity .35s, transform .35s var(--ease); }
.is-over-banner:not(.is-scrolled):not(.menu-open) .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.is-over-banner:not(.is-scrolled):not(.menu-open) .main-nav { padding: 5px; border-radius: 99px; background: rgba(255,255,255,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(6,20,40,.12); }
.is-over-banner:not(.is-scrolled):not(.menu-open) .header-phone { padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(11,13,18,.65) 0%, rgba(11,13,18,.15) 30%, rgba(11,13,18,.35) 55%, rgba(11,13,18,.95) 100%),
  linear-gradient(90deg, rgba(11,13,18,.7) 0%, rgba(11,13,18,0) 60%); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 40px; padding-top: calc(var(--header-h) + var(--bar-h) + 60px); padding-bottom: 48px; }
.hero-copy { grid-column: 1 / -1; max-width: 860px; }
.hero-title { font-size: clamp(2.9rem, 8vw, 6.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin: 22px 0 20px; }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 40ch; }
.hero-search {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: stretch;
  padding: 10px; border-radius: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  max-width: 940px; width: 100%;
}
.hs-field { display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--text); }
.hs-field span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hs-field select { border: 0; background: transparent; padding: 2px 0; font-weight: 600; font-size: 1rem; cursor: pointer; outline: none; appearance: none; -webkit-appearance: none; }
.hs-submit { min-height: 64px; border-radius: 14px; padding: 0 24px; }
.hero-feature {
  align-self: end; display: grid; gap: 2px; padding: 16px 20px; border-radius: 18px; text-decoration: none; min-width: 230px;
  background: rgba(11,13,18,.55); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(12px); transition: border-color .2s, transform .25s var(--ease);
}
.hero-feature:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.hero-feature-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.hero-feature-title { font-family: var(--font-display); font-weight: 600; }
.hero-feature-price { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); font-size: .92rem; }

/* ---------- banner hero (config home.hero_image) ---------- */
/* The image at its own proportions (so artwork with a logo in it is never
   cropped on desktop), moving slower than the page; the headline sits on
   the band below, which slides up over it. */
.banner-hero { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: var(--banner-ratio, 21 / 8); max-height: 88svh; min-height: 260px; isolation: isolate; }
.banner-media { position: absolute; inset: 0; will-change: transform; }
/* fade the image's bottom edge into the band below */
.banner-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 9%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--ink)); }
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; animation: bannerIn 1.6s var(--ease) both; }
@keyframes bannerIn { from { transform: scale(1.06); filter: saturate(.85) brightness(1.08); } }

.hero-band { position: relative; z-index: 1; background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.hero-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 80% at 92% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
  radial-gradient(50% 70% at 0% 100%, rgba(96, 150, 230, .16), transparent 70%); }
.hero-band-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-band .hero-copy { grid-column: auto; }
.hero-band .hero-title { font-size: clamp(2.5rem, 6.2vw, 5.4rem); margin: 20px 0 18px; }
.hero-band .hero-title em, .section-dark em, .finance-hero .display em { color: var(--accent-soft); }
.hero-band .hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-band .hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-band .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-band .hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-finder { display: grid; gap: 10px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px rgba(0,0,0,.25); animation: rise .9s .2s var(--ease) both; }
.hf-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 2px; }
.hf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-finder .hs-field { min-height: 60px; }
.hero-finder .hs-submit { min-height: 56px; }
.hf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hf-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; font-size: .85rem; font-weight: 500; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .2s, border-color .2s; }
.hf-quick a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.hf-quick em { font-style: normal; color: var(--accent-soft); font-size: .78rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px clamp(28px, 5vw, 64px); margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero-stat { display: grid; gap: 2px; }
.hero-stat strong { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero-stat small { font-size: .55em; font-weight: 600; color: var(--muted-light); margin-left: 2px; letter-spacing: 0; }
.hero-stat span { color: var(--muted-light); font-size: .9rem; }

/* ---------- showroom (home, banner variant) ---------- */
.showroom-head { align-items: flex-end; }
.section-title em { font-style: normal; color: var(--accent); }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: none; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.showroom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.showroom-item { display: grid; min-width: 0; }
.showroom-item.is-entering { animation: rise .55s var(--ease) both; }
.showroom-foot { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- parallax bands ---------- */
.parallax-media { position: absolute; inset: -22% 0; z-index: -2; will-change: transform; pointer-events: none; }
.parallax-media img { width: 100%; height: 100%; object-fit: cover; }
.parallax-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink); padding: clamp(96px, 13vw, 176px) 0; }
.parallax-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 72%, transparent) 48%, color-mix(in srgb, var(--ink) 10%, transparent) 100%); }
.parallax-copy { max-width: 640px; }
.parallax-copy h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 6px 0 18px; }
.parallax-copy h2 em { font-style: normal; color: var(--accent-soft); }
.parallax-copy > p { color: rgba(255,255,255,.84); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 48ch; }
.parallax-copy .kicker { color: var(--accent-soft); }
.parallax-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.parallax-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.parallax-points .icon { color: var(--accent-soft); }
.parallax-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* inventory page banner (config inventory.banner_image) */
.page-banner { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink); padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 4.5vw, 56px); margin-bottom: 32px; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 62%, transparent) 55%, color-mix(in srgb, var(--ink) 25%, transparent) 100%); }
.page-banner .parallax-media img { object-position: 50% 62%; }
.page-banner .page-sub { color: rgba(255,255,255,.82); }
.page-banner .page-sub strong { color: #fff; }
.banner-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.banner-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-size: .88rem; font-weight: 500; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.banner-links a:hover, .banner-links a.is-current { background: rgba(255,255,255,.22); }
.banner-links em { font-style: normal; font-size: .78rem; color: var(--accent-soft); }
.banner-links .banner-links-cta { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.banner-links .banner-links-cta:hover { background: var(--accent); filter: brightness(1.08); }

/* demo sites that keep their leads: "use made-up details" note by each form */
.demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.45; color: #6b4a00; background: #fff6dc; border: 1px solid #f3dc9b; }
.demo-note .icon { flex: none; margin-top: 1px; color: #b07a00; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; border-top: 1px solid var(--line-dark); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; text-decoration: none; color: rgba(255,255,255,.35); transition: color .2s; white-space: nowrap; }
.marquee a:hover { color: #fff; }
.marquee sup { font-size: .8rem; color: var(--accent); margin-left: 4px; font-family: var(--font-body); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lede, .section-dark p { color: var(--muted-light); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }

/* ---------- body style tiles ---------- */
.body-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.body-tile { position: relative; overflow: hidden; border-radius: var(--r-lg); text-decoration: none; color: #fff; background: var(--ink-2); isolation: isolate; }
.body-tile.is-large { grid-column: span 2; grid-row: span 2; }
.body-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.body-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,13,18,0) 40%, rgba(11,13,18,.85)); }
.body-tile:hover img { transform: scale(1.06); }
.body-tile-label { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.body-tile-label strong { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -.02em; }
.body-tile.is-large .body-tile-label strong { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.body-tile-label span { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); white-space: nowrap; }

/* ---------- vehicle card ---------- */
.v-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.v-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.v-card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.v-card-media { position: relative; aspect-ratio: 4 / 3; background: #e9e7e1; overflow: hidden; }
.v-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.v-card:hover .v-card-media img { transform: scale(1.05); }
.v-chip { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.92); color: var(--text); backdrop-filter: blur(6px); }
.v-card-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.v-card-year { font-size: .82rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-card-title { font-size: 1.2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-card-specs { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-card-foot { display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.v-card-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.v-card-payment { font-size: .8rem; color: var(--muted); }
.v-card-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); transition: background .25s, color .25s, transform .25s var(--ease); }
.v-card:hover .v-card-go { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* ---------- rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin: -8px -4px 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; gap: 8px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.bento-card { position: relative; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); background: var(--card); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.bento-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.bento-card p { color: var(--muted); }
.bento-card .link-arrow { margin-top: auto; }
.bento-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.bento-finance { grid-column: span 7; grid-row: span 2; background: var(--ink); color: #fff; }
.bento-finance p { color: var(--muted-light); max-width: 44ch; }
.bento-finance h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); max-width: 14ch; }
.bento-finance::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); pointer-events: none; }
.bento-calc { grid-column: span 5; grid-row: span 2; }
.bento-stat { grid-column: span 4; background: var(--accent); color: var(--accent-ink); justify-content: center; }
.bento-stat .stat-num { font-size: clamp(3rem, 6vw, 4.6rem); }
.bento-stat .stat-label, .bento-stat .stat-sub { color: inherit; opacity: .85; }
.bento-card .stat-num { color: inherit; }
.bento-card .calc-big { color: var(--text); }
.bento-visit { grid-column: span 4; }
.bento-steps { grid-column: span 4; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }
.steps b { color: var(--text); }

/* ---------- payment calculator ---------- */
.calc-big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.calc-big small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.calc-row { display: grid; gap: 8px; font-size: .9rem; }
.calc-row > span { display: flex; justify-content: space-between; color: var(--muted); }
.calc-row b { color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.calc-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.calc-inputs { display: grid; gap: 22px; align-content: center; }
.calc-result { display: grid; gap: 12px; align-content: center; padding: 24px; border-radius: var(--r); background: var(--paper); }

/* ---------- stats ---------- */
.stat-num { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.6rem, 5vw, 4rem); }
.stat-label { color: var(--muted); margin-top: 6px; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.review { margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-dark); }
.review blockquote { margin: 0 0 16px; font-size: 1.1rem; color: #fff; }
.review figcaption { font-size: .9rem; color: var(--muted-light); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-accent { background: var(--ink); color: #fff; box-shadow: none; }
.cta-band .btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
/* with a photo behind it (config home.closing_image) */
.cta-band.has-media { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; padding: clamp(88px, 12vw, 160px) 0; }
.cta-band.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent), color-mix(in srgb, var(--ink) 88%, transparent)); }
.cta-band.has-media .btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.cta-band.has-media .btn-ghost { border-color: rgba(255,255,255,.5); }
.cta-sub { margin-top: 12px; font-size: 1.1rem; color: rgba(255,255,255,.84); max-width: 44ch; }

/* ---------- page heroes ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-hero-compact { padding-bottom: 20px; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; margin: 10px 0 12px; }
.page-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.page-sub strong { color: var(--text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs-light { color: var(--muted-light); }
.crumbs-light a:hover { color: #fff; }

/* ---------- inventory ---------- */
.inventory-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; padding-bottom: 96px; }
.filters { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 20px); max-height: calc(100vh - var(--header-h) - var(--bar-h) - 40px); overflow-y: auto; background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filters-head h2 { font-size: 1.2rem; }
.filters-close { display: none; }
.filter-form { display: grid; gap: 20px; }
.filter-actions { display: grid; gap: 4px; }
.filters-open { display: none; }

.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--text); }
.field-label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23646875' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px rgba(11,13,18,.06); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(194,51,43,.08); }
.field-error { font-size: .8rem; color: var(--err); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 42px !important; }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.pill span em { font-style: normal; font-size: .75rem; color: var(--muted); }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:checked + span em { color: rgba(255,255,255,.6); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 500; text-decoration: none; }
.chip:hover { background: var(--ink-3); }
.sort select { min-height: 44px; padding: 8px 40px 8px 16px; border-radius: 99px; border: 1px solid var(--line); appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 500;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23646875' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pager-num { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font-weight: 600; }
.pager-num:hover { background: var(--card); }
.pager-num.is-current { background: var(--ink); color: #fff; }
.pager-gap { color: var(--muted); padding: 0 4px; }
.empty-state { text-align: center; padding: 64px 24px; background: var(--card); border-radius: var(--r-lg); }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--paper); margin-bottom: 16px; color: var(--muted); }
.empty-state h2 { font-size: 1.6rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 0 auto; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- vehicle page ---------- */
.vehicle-top { padding-top: 24px; padding-bottom: 16px; }
.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "gallery aside" "details aside"; gap: 0 32px; align-items: start; padding-bottom: 48px; }
.vehicle-main { grid-area: gallery; min-width: 0; }
.vehicle-details { grid-area: details; min-width: 0; }
.gallery-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #e9e7e1; touch-action: pan-y; }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s var(--ease); }
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--text); cursor: pointer; box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 0; background: rgba(11,13,18,.7); color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; opacity: .6; transition: opacity .2s, border-color .2s; aspect-ratio: 4 / 3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.fact { display: grid; gap: 2px; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.fact .icon { color: var(--accent); margin-bottom: 6px; }
.fact span { font-size: .8rem; color: var(--muted); }
.fact strong { font-size: .98rem; font-weight: 600; }
.v-section { margin-top: 48px; }
.v-section h2 { font-size: 1.6rem; margin-bottom: 18px; }
.prose { color: #3a3d45; display: grid; gap: 14px; max-width: 70ch; }
.prose.is-clamped { max-height: 11.5em; overflow: hidden; mask-image: linear-gradient(180deg, #000 60%, transparent); }
.read-more { padding: 0; margin-top: 8px; }
.equipment { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.equipment li { display: flex; gap: 10px; align-items: baseline; }
.equipment .icon { color: var(--ok); transform: translateY(2px); }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.vehicle-aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + var(--bar-h) + 20px); display: grid; gap: 14px; }
.buy-box { padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.buy-eyebrow { font-size: .85rem; color: var(--muted); }
.buy-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; }
.buy-trim { color: var(--muted); font-weight: 500; }
.buy-price { margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.price-payment { display: inline-block; margin-top: 8px; color: var(--muted); font-size: .92rem; text-decoration: none; }
.price-payment strong { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.buy-actions { display: grid; gap: 10px; }
.buy-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.buy-meta a, .buy-meta button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.location-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; }
.location-card .icon { color: var(--accent); margin-top: 2px; }
.location-card span { display: grid; font-size: .9rem; color: var(--muted-light); }
.location-card strong { color: #fff; }

.sticky-cta { display: none; }

/* ---------- modal ---------- */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--card); color: var(--text); }
.modal::backdrop { background: rgba(11,13,18,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal .lead-form { padding: 28px; display: grid; gap: 18px; }
.modal-head { display: flex; justify-content: space-between; gap: 16px; }
.modal-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-head p { color: var(--muted); font-size: .92rem; }
.modal-vehicle { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--paper); }
.modal-vehicle img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.modal-vehicle div { display: grid; font-size: .9rem; }
.modal-vehicle span { color: var(--muted); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
.field-wide { grid-column: span 2; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 500; font-size: .95rem; }
.form-status.is-ok { background: #e6f5ec; color: var(--ok); }
.form-status.is-err { background: #fbe9e8; color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-form.is-done .form-grid, .lead-form.is-done .lead-hide-done { display: none; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- about ---------- */
.about-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.about-hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-hero-copy .display { margin-bottom: 22px; }
.about-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, clamp(48px, 6vw, 84px)); gap: 12px; }
.mosaic-tile { display: block; border-radius: var(--r); overflow: hidden; background: #e9e7e1; animation: rise .8s var(--ease) both; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic-tile:hover img { transform: scale(1.06); }
.mosaic-0 { grid-column: 1 / 5; grid-row: 1 / 4; }
.mosaic-1 { grid-column: 5 / 7; grid-row: 1 / 3; animation-delay: .08s; }
.mosaic-2 { grid-column: 5 / 7; grid-row: 3 / 5; animation-delay: .16s; }
.mosaic-3 { grid-column: 1 / 3; grid-row: 4 / 7; animation-delay: .24s; }
.mosaic-4 { grid-column: 3 / 5; grid-row: 4 / 6; animation-delay: .32s; }
.mosaic-5 { grid-column: 5 / 7; grid-row: 5 / 7; animation-delay: .4s; }
.mosaic-6 { grid-column: 3 / 5; grid-row: 6 / 7; animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.stats-band { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stats-band .stat-num { color: #fff; }
.stats-band .stat { border-left: 2px solid var(--accent); padding-left: 20px; }
.stats-band .stat-label { color: var(--muted-light); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-title { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 40px); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.story-body { display: grid; gap: 24px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #3a3d45; line-height: 1.55; }
.story-body p:first-child { font-size: 1.15em; color: var(--text); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.how-card { padding: 32px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, transform .3s var(--ease); }
.how-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-4px); }
.how-num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.how-card h3 { font-size: 1.5rem; color: #fff; }
.how-card .link-arrow { margin-top: auto; color: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 32px; }
.team-card { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.team-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.team-card figcaption { display: grid; padding: 16px 18px; }
.team-card span { color: var(--muted); font-size: .9rem; }
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.visit-copy { display: grid; gap: 20px; align-content: center; }
.visit-address { font-size: 1.2rem; }
.visit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; min-height: 380px; background: #e9e7e1; }
.map-frame iframe, .map-wide iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.hours-list { margin: 0; display: grid; gap: 4px; }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; padding: 4px 0; }
.hours-list dt { color: var(--muted); }
.hours-list dd { margin: 0; font-weight: 500; }
.hours-list .is-today dt, .hours-list .is-today dd { color: var(--text); font-weight: 700; }
.hours-call { color: var(--muted); font-size: .95rem; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; padding-bottom: 72px; }
.contact-info { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s var(--ease); }
a.contact-card:hover { transform: translateX(4px); }
.contact-card > span:last-child { display: grid; gap: 2px; color: var(--muted); font-size: .92rem; }
.contact-card small { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); }
.contact-card strong { color: var(--text); font-size: 1.05rem; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.contact-hours { display: block; }
.contact-form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.8rem; }
.contact-form .btn { justify-self: start; }
.map-wide { height: 440px; background: #e9e7e1; }

/* ---------- financing ---------- */
.finance-hero { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(120px, 14vw, 170px); position: relative; overflow: hidden; }
.finance-hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); pointer-events: none; }
.finance-hero > .container { position: relative; z-index: 1; }
.finance-hero-media { inset: -20% 0 -20% 35%; z-index: 0; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); }
.finance-hero .display { margin: 16px 0 18px; position: relative; z-index: 1; }
.finance-hero .lede { color: var(--muted-light); }
.finance-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.finance-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.finance-points .icon { color: var(--accent); }
.finance-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: clamp(-120px, -10vw, -80px); position: relative; z-index: 2; padding-bottom: 96px; }
.credit-app { display: grid; gap: 24px; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow-lg); }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.stepper li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .8rem; flex: none; transition: all .3s; }
.stepper li.is-current { color: var(--text); }
.stepper li.is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.is-done span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: -8px; }
.progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.step { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; min-width: 0; }
.step.is-active { animation: stepIn .4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.step-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; padding: 0; margin-bottom: 4px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 20px; }
.step-nav [data-step-next], .step-nav [data-step-submit] { margin-left: auto; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.review-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--paper); font-size: .88rem; color: #3a3d45; cursor: pointer; }
.consent input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.consent.is-invalid { outline: 2px solid var(--err); }
.finance-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + var(--bar-h) + 20px); }
.finance-vehicle { border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.finance-vehicle img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.finance-vehicle > div { padding: 18px 20px; }
.fv-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.fv-price { color: var(--muted); }
.finance-note { padding: 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.finance-note h2 { display: flex; gap: 8px; align-items: center; font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.finance-note .icon { color: var(--ok); }
.finance-note p { font-size: .9rem; color: var(--muted); }
.finance-call { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: var(--ink); color: #fff; text-decoration: none; }
.finance-call .icon { color: var(--accent); }
.finance-call span { display: grid; font-size: .88rem; color: var(--muted-light); }
.finance-call strong { color: #fff; font-size: 1.1rem; }
.success-panel { text-align: center; padding: 40px 12px; display: grid; gap: 14px; justify-items: center; }
.success-icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #e6f5ec; color: var(--ok); animation: pop .5s var(--ease); }
.success-panel h2 { font-size: 2rem; }
.success-panel p { color: var(--muted); max-width: 46ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: 72px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand img { height: calc(var(--logo-h) * 1.35); }
.footer-brand p { max-width: 34ch; }
.footer-title { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-address { margin-bottom: 10px; }
.site-footer p + p { margin-top: 6px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); color: #fff; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: .82rem; flex-wrap: wrap; }
.footer-disclaimer { max-width: 70ch; }

.not-found { text-align: center; }
.not-found .page-sub { margin: 0 auto; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 6, 9, .96); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .9rem; }
.lightbox .gallery-nav { position: fixed; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .bento-finance, .bento-calc { grid-column: span 6; }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .showroom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-phone span { display: inline; }
  .brand img { height: min(var(--logo-h), 52px); }
  .header-actions { margin-left: auto; }
  .is-over-banner:not(.is-scrolled):not(.menu-open) .menu-toggle { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .hero-band-inner { grid-template-columns: minmax(0, 1fr); }
  .showroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hs-submit { grid-column: 1 / -1; }
  .hero-feature { justify-self: start; }
  .body-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-finance, .bento-calc { grid-column: span 2; grid-row: auto; }
  .bento-stat, .bento-visit, .bento-steps { grid-column: span 1; }
  .bento-steps { grid-column: span 2; }

  .inventory-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0; z-index: 120; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .35s var(--ease); padding-bottom: 120px; }
  .filters.is-open { transform: none; }
  .filters-close, .filters-open { display: inline-flex; }
  .filter-actions { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px var(--gutter); background: var(--card); border-top: 1px solid var(--line); }
  .filters:not(.is-open) .filter-actions { display: none; }
  body.filters-locked { overflow: hidden; }

  .vehicle-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "details"; gap: 0; }
  .vehicle-aside { margin-top: 20px; }
  .vehicle-aside { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .calc-panel { grid-template-columns: 1fr; }
  .sticky-cta {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta > div { flex: 1; min-width: 0; }
  .sticky-title { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
  .page-vehicle .site-footer { padding-bottom: 100px; }

  .about-hero-inner, .story, .visit { grid-template-columns: 1fr; }
  .story-title { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .finance-layout { grid-template-columns: minmax(0, 1fr); }
  .finance-aside { position: static; order: -1; }
  .finance-aside .finance-note, .finance-aside .finance-call { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .btn-lg { min-height: 52px; padding: 0 22px; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid var(--line-dark); }
  .header-phone span { display: none; }
  .brand-name { font-size: .95rem; max-width: 46vw; }
  .hero { min-height: 100svh; }
  .hero-inner { padding-bottom: 28px; }
  .banner-hero { aspect-ratio: 16 / 11; }
  .banner-media img { object-position: var(--banner-focus-mobile, 10% 50%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stat strong { font-size: 1.35rem; }
  .hero-stat span { font-size: .78rem; line-height: 1.3; }
  .showroom-head .tabs { width: 100%; }
  .showroom-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: -4px -4px 0; scrollbar-width: none; }
  .showroom-grid::-webkit-scrollbar { display: none; }
  .showroom-item { scroll-snap-align: start; }
  .showroom-foot { margin-top: 20px; }
  .showroom-foot .btn { width: 100%; }
  .parallax-band { padding: 72px 0; }
  .parallax-band::before { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 70%, transparent), color-mix(in srgb, var(--ink) 92%, transparent)); }
  .parallax-actions .btn { flex: 1 1 100%; }
  .finance-hero-media { inset: -20% 0 -20% 0; opacity: .28; }
  .hero-search { grid-template-columns: 1fr; padding: 8px; }
  .hs-field { padding: 6px 14px; }
  .hero-feature { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .rail-controls { display: none; }
  .body-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  /* the large tile comes first: its row is taller than the rest */
  .body-grid { grid-template-rows: 210px; }
  .body-tile.is-large { grid-column: span 2; grid-row: span 1; }
  .body-tile-label { left: 14px; right: 14px; bottom: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .body-tile-label span { font-size: .78rem; padding: 4px 10px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card { grid-column: auto !important; }
  .card-grid, .card-grid-4 { grid-template-columns: 1fr; }
  .results-bar .chips { order: 3; flex-basis: 100%; }
  .sort { margin-left: auto; }
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 14px; }
  .spec-table, .review-list { grid-template-columns: 1fr; }
  .gallery-stage { border-radius: var(--r); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-thumbs { grid-auto-columns: 84px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .stepper { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: .8rem; }
  .step-nav .btn { flex: 1; }
  .mosaic { grid-template-rows: repeat(6, 54px); gap: 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .contact-form .btn { justify-self: stretch; }
  .map-wide { height: 320px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
