/* ============================================================
   WE BUY SUPERCARS — Sandton luxury dealership
   Design system: black + brushed-chrome silver, instrument-cluster type
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@300,400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --base:      #0A0A0C;
  --base-2:    #0D0D10;
  --panel:     #121215;
  --panel-2:   #17171B;
  --glass:     rgba(255,255,255,0.045);
  --glass-2:   rgba(255,255,255,0.07);
  --ink:       #F3F4F6;
  --ink-soft:  #D6D8DD;
  --muted:     #9A9CA3;
  --muted-2:   #6E7077;
  --hairline:  rgba(255,255,255,0.10);
  --hairline-2:rgba(255,255,255,0.06);

  /* Chrome / silver accent ramp */
  --silver:    #C7CCD1;
  --silver-hi: #EFF1F3;
  --silver-lo: #7E828A;
  --chrome: linear-gradient(176deg,#FFFFFF 0%,#D7DBDF 30%,#9DA2A9 50%,#EEF1F3 64%,#9398A0 82%,#C2C7CD 100%);
  --chrome-soft: linear-gradient(180deg,#EFF1F3,#A9AEB5);

  /* Type scale (fluid) */
  --fs-display: clamp(2.85rem, 7.5vw, 7rem);
  --fs-h1:      clamp(2.25rem, 5vw, 4.25rem);
  --fs-h2:      clamp(1.75rem, 3.6vw, 3rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.6rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* Spacing */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --maxw: 1240px;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -12px rgba(0,0,0,.6), 0 40px 80px -40px rgba(0,0,0,.7);
  --sh-glass: inset 0 1px 0 rgba(255,255,255,.10), 0 20px 50px -22px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.25);
  --sh-glow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 40px -8px rgba(190,200,215,.18);

  /* Motion */
  --e-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: .2s var(--e-out);
  --t-med:  .45s var(--e-out);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'General Sans', system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(199,204,209,.25); color: #fff; }

/* ---------- Atmosphere (L0) ---------- */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(150,165,185,.10), transparent 60%),
    radial-gradient(55% 50% at 90% 8%, rgba(120,135,160,.08), transparent 62%),
    radial-gradient(80% 60% at 50% 110%, rgba(90,105,130,.10), transparent 60%),
    var(--base);
}
.atmosphere::before { /* faint grid */
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section-y); position: relative; }
.bleed { width: 100%; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: 'Clash Display', 'General Sans', sans-serif; font-weight: 600; line-height: 1.0; }
.display {
  font-size: var(--fs-display); line-height: .92; letter-spacing: -.035em; font-weight: 600;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.03em; line-height: 1.0; }
h2 { font-size: var(--fs-h2); letter-spacing: -.025em; line-height: 1.04; }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; font-weight: 500; }
.lede { font-size: clamp(1.05rem,1.6vw,1.3rem); color: var(--ink-soft); max-width: 60ch; font-weight: 300; }
p { max-width: 68ch; color: var(--muted); }
.mono { font-family: 'Space Mono', monospace; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: 'Space Mono', monospace; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .28em; color: var(--muted);
  font-weight: 400;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--silver), transparent);
}

.chrome {
  background: var(--chrome);
  background-size: 100% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Cursor ---------- */
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.cur-dot { width: 6px; height: 6px; background: var(--silver-hi); transform: translate(-50%,-50%); mix-blend-mode: difference; }
.cur-ring {
  width: 38px; height: 38px; border: 1px solid rgba(199,204,209,.5);
  transform: translate(-50%,-50%); transition: width .3s var(--e-out), height .3s var(--e-out), border-color .3s, background .3s;
}
.cur-ring.is-hover { width: 64px; height: 64px; border-color: rgba(199,204,209,.9); background: rgba(199,204,209,.06); }
@media (pointer: coarse) { .cur-dot, .cur-ring { display: none; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; z-index: 200;
  background: var(--chrome-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .45s var(--e-out), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,12,.6); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--hairline);
}
.nav.hide { transform: translateY(-103%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: 'Clash Display'; font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.brand__logo { height: 46px; width: auto; display: block; mix-blend-mode: screen; transition: transform .35s var(--e-out), filter .35s var(--e-out); filter: saturate(1.05) brightness(1.05); }
.brand:hover .brand__logo { transform: translateY(-1px) scale(1.02); filter: saturate(1.12) brightness(1.18); }
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); position: relative; transition: color var(--t-fast); }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -7px; height: 1px; width: 0; background: var(--chrome-soft); transition: width .35s var(--e-out); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__book-min { display: none; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: .3s var(--e-out); }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: .3s var(--e-out); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* mobile overlay menu */
.menu {
  position: fixed; inset: 0; z-index: 95; background: rgba(8,8,10,.92);
  backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  padding: var(--gut); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.menu a { display: block; width: fit-content; font-family: 'Clash Display'; font-size: clamp(2.1rem,11vw,3.4rem); line-height: 1.05; letter-spacing: -.02em; color: var(--muted); transition: color .3s, transform .4s; transform: translateY(14px); }
body.menu-open .menu a { color: var(--ink); transform: translateY(0); }
.menu a:hover { color: var(--silver-hi); }
.menu .menu__meta { margin-top: 2rem; color: var(--muted-2); font-size: .85rem; font-family: 'Space Mono', monospace; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-size: .9rem; font-weight: 500;
  padding: .92em 1.5em; border-radius: var(--r-pill); position: relative; letter-spacing: .01em; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #0b0b0d; background: var(--chrome-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 24px -10px rgba(199,204,209,.6); font-weight: 600; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 36px -10px rgba(199,204,209,.75); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--ink); border: 1px solid var(--hairline); background: var(--glass); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(199,204,209,.5); background: var(--glass-2); transform: translateY(-2px); }
.btn--sm { padding: .62em 1.05em; font-size: .82rem; }
.btn--block { width: 100%; }

/* ---------- Cards / surfaces ---------- */
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh-glass); }
.panel { background: linear-gradient(180deg, var(--panel), var(--base-2)); border: 1px solid var(--hairline-2); border-radius: var(--r-lg); box-shadow: var(--sh-card); }

/* car card */
.car-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--hairline-2);
  box-shadow: var(--sh-card); transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .4s; transform-style: preserve-3d; }
.car-card:hover { border-color: rgba(199,204,209,.28); box-shadow: var(--sh-card), 0 0 50px -18px rgba(190,200,215,.35); }
.car-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.06) brightness(.92); transition: transform .8s var(--e-out), filter .6s; }
.car-card:hover .car-card__media img { transform: scale(1.07); filter: saturate(.95) contrast(1.06) brightness(1); }
.car-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,8,10,.78)); }
.car-card__status { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: 'Space Mono', monospace; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .42em .8em; border-radius: var(--r-pill); background: rgba(10,10,12,.6); backdrop-filter: blur(8px); border: 1px solid var(--hairline); color: var(--ink-soft); }
.car-card__status.sold { color: #ffb4b4; border-color: rgba(255,120,120,.4); }
.car-card__status.reserved { color: #ffe2a6; border-color: rgba(255,210,120,.35); }
.car-card__status.available { color: #bfeccb; border-color: rgba(140,230,170,.32); }
.car-card__body { padding: 1.3rem 1.4rem 1.5rem; position: relative; }
.car-card__make { font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.car-card__name { font-family: 'Clash Display'; font-size: 1.32rem; font-weight: 600; margin-top: .25rem; letter-spacing: -.01em; }
.car-card__variant { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.car-card__spec { display: flex; gap: 1.2rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline-2); }
.car-card__spec div { display: flex; flex-direction: column; gap: .15rem; }
.car-card__spec .k { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-family: 'Space Mono', monospace; }
.car-card__spec .v { font-family: 'Space Mono', monospace; font-size: .92rem; color: var(--ink); }
.car-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.3rem; }
.car-card__price { font-family: 'Clash Display'; font-size: 1.32rem; font-weight: 600; }
.car-card__price small { color: var(--muted); font-size: .7rem; font-weight: 400; display: block; font-family: 'Space Mono', monospace; letter-spacing: .1em; }
.car-card__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; transition: .35s var(--e-out); }
.car-card:hover .car-card__arrow { background: var(--chrome-soft); color: #0b0b0d; border-color: transparent; }
.car-card__arrow svg { width: 18px; height: 18px; }

/* ---------- Spec sheet (vehicle detail) ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); border-radius: var(--r-md); overflow: hidden; }
.spec-grid .cell { background: var(--panel); padding: 1.2rem 1.3rem; }
.spec-grid .cell .k { font-family: 'Space Mono', monospace; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.spec-grid .cell .v { font-family: 'Space Mono', monospace; font-size: 1.3rem; color: var(--ink); margin-top: .35rem; }
.spec-grid .cell .v small { font-size: .72rem; color: var(--muted); }

/* ---------- Forms ---------- */
.field { position: relative; margin-bottom: 1.3rem; }
.field label { display: block; font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--base-2); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: .95em 1.05em; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(199,204,209,.65); background: var(--panel); box-shadow: 0 0 0 4px rgba(199,204,209,.08); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field.err input, .field.err select, .field.err textarea { border-color: rgba(255,120,120,.6); }
.field .msg { color: #ffb4b4; font-size: .76rem; margin-top: .4rem; font-family: 'Space Mono', monospace; display: none; }
.field.err .msg { display: block; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9CA3' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1em center; padding-right: 2.6em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); border-block: 1px solid var(--hairline-2); padding-block: 2.2rem; }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marq 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: 'Clash Display'; font-size: clamp(1.6rem,3vw,2.6rem); font-weight: 500; color: var(--muted-2); letter-spacing: -.01em; transition: color .3s; }
.marquee__track span:hover { color: var(--silver-hi); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); margin-top: var(--section-y); padding-block: clamp(3rem,6vw,5rem) 2.5rem; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.2rem; font-weight: 400; }
.footer ul li { margin-bottom: .7rem; }
.footer ul a { color: var(--muted); transition: color var(--t-fast); font-size: .94rem; }
.footer ul a:hover { color: var(--ink); }
.footer__brand .display { font-size: clamp(2.4rem,5vw,3.6rem); line-height: .9; }
.footer__brand p { margin-top: 1rem; font-size: .92rem; max-width: 34ch; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--hairline-2); color: var(--muted-2); font-size: .78rem; font-family: 'Space Mono', monospace; letter-spacing: .04em; }
.footer__bottom a:hover { color: var(--ink); }

/* ---------- Utility / motion classes ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
.split-line { overflow: hidden; }
.tag-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #bfeccb; box-shadow: 0 0 10px #8ce6aa; }
.hairline { height: 1px; background: var(--hairline); border: 0; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted-2); font-family: 'Space Mono', monospace; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--hairline); }

/* generic feature/value card */
.vcard { padding: 1.7rem; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--hairline-2); transition: transform var(--t-med), border-color var(--t-med), background var(--t-med); }
.vcard:hover { transform: translateY(-5px); border-color: rgba(199,204,209,.25); background: var(--glass-2); }
.vcard .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--hairline); margin-bottom: 1.2rem; color: var(--silver); }
.vcard .ic svg { width: 22px; height: 22px; }
.vcard h3 { margin-bottom: .5rem; }
.vcard p { font-size: .94rem; }

/* stat */
.stat .num { font-family: 'Clash Display'; font-size: clamp(2.6rem,6vw,4.6rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-family: 'Space Mono', monospace; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .6rem; }

/* image frame */
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--sh-card); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.84) contrast(1.05) brightness(.92); }
.frame--scrim::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,.1), rgba(8,8,10,.62)); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 100px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.08) brightness(.5); }
.hero__media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,.96) 0%, rgba(8,8,10,.78) 38%, rgba(8,8,10,.35) 70%, rgba(8,8,10,.7) 100%),
              radial-gradient(80% 80% at 80% 30%, transparent, rgba(8,8,10,.55)); }
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__title { font-size: var(--fs-display); line-height: .92; letter-spacing: -.04em; font-weight: 600; opacity: 1; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__word { display: inline-block; will-change: transform; }
.hero__sweep {
  background: linear-gradient(100deg, #8B9098 0%, #EFF1F3 16%, #FFFFFF 24%, #C7CCD1 32%, #82868E 54%, #DDE1E4 78%, #9398A0 100%);
  background-size: 240% 100%; background-position: 50% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  transition: background-position .12s linear;
}
.hero__panel { /* transparent on desktop — becomes its own glass card on mobile */ }
.hero__metrics { display: flex; gap: clamp(1.5rem,4vw,3.2rem); margin-top: 2.8rem; flex-wrap: wrap; }
.hero__metric .v { font-family: 'Space Mono', monospace; font-size: clamp(1.4rem,3vw,2.1rem); color: var(--ink); }
.hero__metric .v small { color: var(--muted); font-size: .6em; }
.hero__metric .k { font-family: 'Space Mono', monospace; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-top: .25rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--muted-2); font-family: 'Space Mono', monospace; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll .line { width: 1px; height: 42px; background: linear-gradient(var(--silver), transparent); animation: scrolly 2.2s var(--e-inout) infinite; transform-origin: top; }
@keyframes scrolly { 0%,100%{transform:scaleY(.4);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* page header (interior pages) */
.phead { padding-top: clamp(8rem,14vw,11rem); padding-bottom: clamp(2rem,5vw,4rem); position: relative; }
.phead .display { font-size: clamp(2.6rem,8vw,6rem); }

/* grids */
.grid { display: grid; gap: clamp(1rem,2vw,1.6rem); }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }
.cols-7-5 { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }

/* inventory filter bar */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 2.2rem; }
.filters select { width: auto; min-width: 150px; padding: .7em 2.6em .7em 1em; font-size: .85rem; }
.filters .count { margin-left: auto; font-family: 'Space Mono', monospace; font-size: .78rem; color: var(--muted); letter-spacing: .08em; }
.empty { text-align: center; padding: 5rem 1rem; color: var(--muted); font-family: 'Space Mono', monospace; }

/* timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--hairline); }
.timeline .ti { position: relative; padding-bottom: 2.4rem; }
.timeline .ti::before { content: ''; position: absolute; left: -2rem; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--base); border: 1px solid var(--silver); margin-left: 0; }
.timeline .ti .yr { font-family: 'Space Mono', monospace; color: var(--silver); font-size: .8rem; letter-spacing: .1em; }
.timeline .ti h3 { margin: .3rem 0 .4rem; }

/* contact rows */
.crow { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--hairline-2); }
.crow .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--silver); }
.crow .ic svg { width: 20px; height: 20px; }
.crow .k { font-family: 'Space Mono', monospace; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.crow .v { color: var(--ink); margin-top: .2rem; }
.crow .v a:hover { color: var(--silver-hi); }

/* map */
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--sh-card); filter: grayscale(.4) contrast(1.05) brightness(.9); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* success panel */
.success { text-align: center; padding: 3rem 1.5rem; }
.success .ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; background: var(--chrome-soft); color: #0b0b0d; }
.success .ring svg { width: 34px; height: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .g-3 { grid-template-columns: repeat(2,1fr); }
  .cols-7-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE — iPhone-first. Treated as a first-class layout, not
   a shrunk desktop. Tap targets ≥44px, safe-area aware, every
   section re-composed for a single confident column.
   ============================================================ */
@media (max-width: 720px) {
  /* ---- Nav: keep a persistent, compact Book CTA (conversion) ---- */
  .nav__links { display: none; }
  .burger { display: flex; }
  .brand__logo { height: 34px; }
  .nav__in { height: 64px; }
  .nav__cta { gap: .55rem; }
  .nav__cta .btn { display: inline-flex; min-height: 44px; padding: .55em 1.25em; font-size: .82rem; }
  .nav__book-full { display: none; }
  .nav__book-min { display: inline; }
  /* Nav gets a touch of glass immediately on mobile for legibility */
  .nav { background: linear-gradient(180deg, rgba(8,8,10,.55), transparent); }
  .nav.scrolled { background: rgba(10,10,12,.72); }

  /* ---- Full-screen menu: an action hub, not just links ---- */
  .menu { justify-content: flex-start; padding-top: max(5.5rem, 14vh); overflow-y: auto; gap: 0; }
  .menu .wrap { gap: .1rem; }
  .menu a { font-size: clamp(2rem, 9.5vw, 3rem); padding: .18rem 0; }
  .menu__actions { width: 100%; margin-top: 2rem; display: flex; flex-direction: column; gap: .8rem; }
  .menu__actions .btn { padding: 1.05em 1.5em; font-size: 1rem; }
  .menu__contact { display: flex; gap: .7rem; }
  .menu__contact a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem; border: 1px solid var(--hairline); border-radius: var(--r-pill);
    font-family: 'Space Mono', monospace; font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft);
    transform: none; transition: border-color .3s, background .3s, color .3s;
  }
  .menu__contact a svg { width: 17px; height: 17px; }
  .menu__contact a:active { border-color: rgba(199,204,209,.6); background: var(--glass); color: var(--silver-hi); }
  .menu .menu__meta { margin-top: 1.6rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }

  /* ---- Grids ---- */
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .grid { gap: 1.1rem; }

  /* ---- Footer ---- */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.4rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand .display { font-size: clamp(2.1rem,9vw,2.8rem); }
  .footer__brand p { max-width: 40ch; }

  /* ---- HERO: cinematic, bottom-anchored. Content is SPLIT into separate
       glass surfaces so the car shows through between them, never buried
       under one slab. Title floats on the image; action + metrics are their
       own frosted cards. ---- */
  .hero {
    padding-top: 64px;
    align-items: flex-end;
    padding-bottom: calc(clamp(1.6rem,5vw,2.4rem) + env(safe-area-inset-bottom));
    min-height: 100svh;
  }
  .hero__media img { filter: saturate(.74) contrast(1.08) brightness(.7); }
  /* legibility wash kept low in the middle (car visible), heavier at the foot */
  .hero__media::after {
    background:
      radial-gradient(120% 70% at 50% 28%, transparent 40%, rgba(8,8,10,.35)),
      linear-gradient(180deg, rgba(8,8,10,.5) 0%, rgba(8,8,10,.06) 26%, rgba(8,8,10,.5) 66%, rgba(8,8,10,.95) 100%);
  }
  /* the wrapper is no longer a box — it just stacks the split cards */
  .hero__in .hero__content { width: 100%; }
  .hero__content { display: flex; flex-direction: column; gap: .9rem; }

  .hero .eyebrow {
    font-size: .6rem; letter-spacing: .22em; align-self: flex-start;
    padding: .5rem .85rem; border-radius: var(--r-pill);
    background: rgba(10,10,12,.5); border: 1px solid var(--hairline);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-soft);
  }
  .hero .eyebrow::before { width: 18px; }

  /* Title sits directly on the photography for drama */
  .hero__title {
    font-size: clamp(2.7rem, 11.5vw, 3.7rem); margin-top: .2rem !important;
    position: relative; z-index: 1;
  }
  /* soft dark halo behind the title so the chrome-sweep word stays legible
     over bright car reflections */
  .hero__title::before {
    content: ""; position: absolute; z-index: -1;
    inset: -.35em -.5em;
    background: radial-gradient(60% 70% at 30% 50%, rgba(8,8,10,.7), rgba(8,8,10,.32) 55%, transparent 78%);
    filter: blur(8px); pointer-events: none;
  }
  .hero__title .line { text-shadow: 0 2px 30px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.7); }

  /* Action card: lede + CTAs in their own frosted box */
  .hero__panel {
    margin-top: .3rem !important;
    background: rgba(12,12,15,.55);
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--hairline); border-radius: var(--r-lg);
    box-shadow: var(--sh-glass);
    padding: 1.15rem 1.15rem 1.25rem;
  }
  .hero .lede { font-size: .98rem; line-height: 1.55; margin-top: 0 !important; max-width: 42ch; color: var(--ink-soft); }
  .hero__cta-row { margin-top: 1.1rem !important; }
  .hero__scroll { display: none; }

  /* Hero metrics → instrument cluster: its own fitted, bordered 3-up card */
  .hero__metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin-top: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg);
    overflow: hidden; background: rgba(12,12,15,.55);
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--sh-glass);
  }
  .hero__metric { padding: .9rem .45rem; text-align: center; }
  .hero__metric + .hero__metric { border-left: 1px solid var(--hairline-2); }
  .hero__metric .v { font-size: 1.22rem; }
  .hero__metric .v small { font-size: .55em; }
  .hero__metric .k { font-size: .52rem; letter-spacing: .08em; margin-top: .35rem; line-height: 1.3; }

  /* ---- Inventory filters: tidy 2-up grid, no awkward cut-off scroll ---- */
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .filters select { width: 100%; min-width: 0; }
  .filters .count { display: none; }

  /* ---- Location map ---- */
  .map iframe { min-height: 320px; }

  /* ---- Cards & section rhythm ---- */
  .vcard { padding: 1.4rem; }
  .car-card__name, .car-card__price { font-size: 1.42rem; }
  .panel { padding: 1.6rem !important; }
  .section { padding-block: clamp(3.5rem, 12vw, 5rem); }

  /* ---- Page header ---- */
  .phead { padding-top: clamp(5.5rem,16vw,8rem); }
  .phead .display { font-size: clamp(2.7rem,13vw,4rem); }

  /* ---- Forms: bigger touch targets, no iOS zoom-on-focus ---- */
  .field input, .field select, .field textarea { font-size: 16px; padding: 1em 1.05em; }
  .btn { padding: 1em 1.5em; }
}

@media (max-width: 480px) {
  /* Hero CTAs stack full-width — primary first, both thumb-friendly */
  .hero__cta-row { flex-direction: column !important; gap: .7rem !important; align-items: stretch; }
  .hero__cta-row .btn { width: 100%; justify-content: center; }

  .hero__title { font-size: clamp(2.4rem, 11.5vw, 3rem); letter-spacing: -.03em; }
  .hero .lede { font-size: .98rem; }

  /* Stats: let the 2x2 breathe, numbers stay bold */
  .stat .num { font-size: clamp(2.4rem, 13vw, 3.2rem); }

  .spec-grid { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.2rem; }
  .hero__metric .v { font-size: 1.05rem; }
  .hero__metric .k { font-size: .48rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .hero__scroll .line { animation: none !important; }
  .cur-dot, .cur-ring { display: none !important; }
  /* scrub canvas stays — scrubber.js paints a single static frame instead of scrolling */
}

/* ============================================================
   Scroll-scrub video background (homepage only — gated by .has-scrub).
   Canvas + scrim are created by js/scrubber.js. Layering:
   scrub-canvas (-3) → atmosphere / scrub-scrim (-2) → grain (-1) → content (0+)
   ============================================================ */
.scrub-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -3; pointer-events: none; display: block;
  background: var(--base); /* safety: never a blank/white flash before frames decode */
}
.scrub-scrim {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  /* dark, even legibility wash so content keeps WCAG-AA contrast over moving footage */
  background:
    linear-gradient(180deg, rgba(10,10,12,.72) 0%, rgba(10,10,12,.56) 32%, rgba(10,10,12,.62) 62%, rgba(10,10,12,.84) 100%),
    radial-gradient(120% 85% at 50% 0%, transparent 38%, rgba(10,10,12,.5));
}

/* Living background: let the canvas show through the (otherwise opaque) atmosphere. */
body.has-scrub .atmosphere {
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(150,165,185,.10), transparent 60%),
    radial-gradient(55% 50% at 90% 8%, rgba(120,135,160,.08), transparent 62%),
    radial-gradient(80% 60% at 50% 110%, rgba(90,105,130,.10), transparent 60%);
  opacity: .6;
}

@media (prefers-reduced-motion: reduce) {
  .scrub-scrim { background: rgba(10,10,12,.78); } /* slightly heavier static wash */
}

/* ---------- Supplied photography heroes ---------- */
.hero__media picture, .hero__media picture img { width: 100%; height: 100%; display: block; }
.hero__media img { filter: none; object-position: center; }
.hero__media::after { display: none; }
.hero__content { width: min(640px, 100%); padding: clamp(1.35rem, 2.5vw, 2rem); background: rgba(8,8,10,.76); }
.hero__content .hero__title { font-size: clamp(2.8rem, 6vw, 5.25rem); }
.hero__content .lede { font-size:clamp(1rem,1.35vw,1.15rem); }
.hero__content .hero__cta-row { margin-top:1.35rem !important; }
.hero__content .hero__metrics { margin-top:1.5rem; }
.hero__content .lede { color: var(--ink-soft); }
.about-hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; padding: 100px 0 clamp(2.5rem,6vw,5rem); overflow: hidden; }
.about-hero__media { position: absolute; inset: 0; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.about-hero__in { position: relative; z-index: 1; }
.about-hero__content { width: min(760px, 100%); padding: clamp(1.5rem, 4vw, 3rem); background: rgba(8,8,10,.76); }
.about-hero__content .display { font-size: clamp(2.7rem,7vw,6rem); }

/* ---------- Vehicle details ---------- */
.vehicle-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:1.5rem; margin-top:1.2rem; }
.vehicle-heading .display { margin-top:.4rem; }
.vehicle-heading .lede { margin-top:.4rem; }
.vehicle-price { text-align:right; }
.vehicle-price .car-card__status { position:static; display:inline-block; margin-bottom:.6rem; }
.vehicle-main { aspect-ratio: 4/5; max-height: 760px; }
.vehicle-main img { object-position: center; filter: none; }
.vehicle-thumbs { display:flex; gap:.7rem; margin-top:.9rem; }
.vthumb { width:90px; aspect-ratio:1; border-radius:10px; overflow:hidden; border:1px solid var(--hairline-2); opacity:.55; transition:.3s var(--e-out); padding:0; }
.vthumb img { width:100%; height:100%; object-fit:cover; }
.vthumb.active,.vthumb:hover { opacity:1; border-color:rgba(199,204,209,.6); }
.spec-grid .cell .v small { display:block; margin-top:.35rem; }
.vehicle-copy { max-width:760px; margin-top:clamp(3rem,7vw,5rem); }
.vehicle-copy > p { font-size:1.15rem; line-height:1.7; color:var(--ink-soft); margin-top:1.6rem; }
.vehicle-copy h2 { font-size:var(--fs-h3); margin-top:2.5rem; }
.feature-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem 1.5rem; margin-top:1.2rem; }
.feature-list li { display:flex; align-items:center; gap:.65rem; color:var(--ink-soft); }

/* ---------- Admin ---------- */
.admin-body { background: radial-gradient(90% 70% at 50% -10%, rgba(150,165,185,.14), transparent 55%), var(--base); }
.admin-shell { min-height:100svh; }
.admin-top { height:74px; border-bottom:1px solid var(--hairline); display:flex; align-items:center; }
.admin-top__in { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.admin-mark { display:flex; align-items:center; gap:.8rem; font-family:'Clash Display'; font-weight:600; }
.admin-mark img { width:auto; height:38px; }
.admin-login { min-height:calc(100svh - 74px); display:grid; place-items:center; padding:var(--gut); }
.admin-login__card { width:min(460px,100%); padding:clamp(1.6rem,5vw,2.8rem); }
.admin-login__card h1 { margin:.9rem 0 1rem; }
.admin-alert { border:1px solid rgba(255,180,180,.3); background:rgba(255,120,120,.07); color:#ffcece; border-radius:var(--r-sm); padding:.8rem 1rem; font-size:.86rem; margin-bottom:1rem; display:none; }
.admin-alert.show { display:block; }
.admin-app { display:none; padding:clamp(2rem,6vw,4.5rem) 0; }
.admin-app.open { display:block; }
.admin-head { display:flex; justify-content:space-between; align-items:flex-end; gap:1.5rem; flex-wrap:wrap; margin-bottom:2rem; }
.admin-actions { display:flex; gap:.65rem; flex-wrap:wrap; }
.admin-layout { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(460px,1.2fr); gap:1.4rem; align-items:start; }
.admin-panel { padding:1.3rem; }
.admin-panel__head { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.admin-list { display:grid; gap:.7rem; max-height:760px; overflow:auto; padding-right:.2rem; }
.admin-car { display:grid; grid-template-columns:74px 1fr auto; gap:.9rem; align-items:center; border:1px solid var(--hairline-2); border-radius:var(--r-md); padding:.65rem; background:var(--glass); }
.admin-car img { width:74px; height:74px; border-radius:10px; object-fit:cover; }
.admin-car h3 { font-size:1rem; }
.admin-car p { font-size:.75rem; margin-top:.25rem; }
.admin-car__actions { display:flex; gap:.35rem; }
.icon-btn { width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--hairline); border-radius:10px; color:var(--ink-soft); }
.icon-btn:hover { background:var(--glass-2); }
.icon-btn.danger:hover { color:#ffb4b4; border-color:rgba(255,120,120,.35); }
.admin-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1rem; }
.admin-form-grid .span-2 { grid-column:1/-1; }
.admin-form .field { margin-bottom:1rem; }
.admin-form textarea { min-height:96px; }
.admin-check { display:flex; align-items:center; gap:.65rem; min-height:48px; }
.admin-check input { width:18px; height:18px; accent-color:var(--silver); }
.admin-preview { width:100%; aspect-ratio:16/8; object-fit:cover; border-radius:var(--r-md); border:1px solid var(--hairline); margin-bottom:1rem; background:var(--base-2); }
.admin-note { font-size:.78rem; color:var(--muted-2); margin-top:.7rem; }
.admin-toast { position:fixed; right:var(--gut); bottom:var(--gut); z-index:300; padding:.8rem 1rem; border-radius:var(--r-sm); background:var(--silver-hi); color:#0b0b0d; font-weight:600; transform:translateY(20px); opacity:0; pointer-events:none; transition:.3s; }
.admin-toast.show { transform:none; opacity:1; }

@media (max-width: 960px) {
  .admin-layout { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  /* split-box hero owns its own background/scrim — undo the desktop slab */
  .hero__media::after { display:block; }
  .hero__content { margin-bottom:0; padding:0; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; border:0; box-shadow:none; }
  .hero__content .hero__title { font-size: clamp(2.7rem, 11.5vw, 3.7rem); }
  .hero__content .lede { font-size:.98rem; }
  .hero__content .hero__cta-row { margin-top:1.1rem !important; }
  .hero__content .hero__metrics { margin-top:0; }
  .about-hero { padding-top:80px; padding-bottom:1.4rem; }
  .about-hero__content { padding:1.3rem; background:rgba(8,8,10,.78); }
  .feature-list { grid-template-columns:1fr; }
  .vehicle-heading { align-items:flex-start; }
  .vehicle-price { text-align:left; }
  .admin-form-grid { grid-template-columns:1fr; }
  .admin-form-grid .span-2 { grid-column:auto; }
  .admin-car { grid-template-columns:60px 1fr; }
  .admin-car img { width:60px; height:60px; }
  .admin-car__actions { grid-column:1/-1; justify-content:flex-end; }
}
