/* ==========================================================================
   drive-with-sherill — minimalist luxe design system
   Motion rule: only transform + opacity are ever animated.
   ========================================================================== */

:root {
  --red: #c3002f;
  --red-lift: #e21038;
  --ink: #0a0a0b;
  --ink-2: #101114;
  --card: #131418;
  --card-2: #17191e;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --txt: #f2f3f5;
  --txt-2: rgba(242, 243, 245, .68);
  --txt-3: rgba(242, 243, 245, .42);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --pad: clamp(20px, 5vw, 76px);
  --maxw: 1280px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t: .42s var(--ease);
  --t-fast: .2s var(--ease);

  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 50px -22px rgba(0,0,0,.9);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ───────────────────────────────────────────────────────────── preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  position: relative;
}
.preloader__mark::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}
.preloader__mark span {
  width: 46px; height: 8px;
  background: var(--red);
  border-radius: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────────── nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: transform .5s var(--ease), background .4s linear, backdrop-filter .4s linear;
  will-change: transform;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-stuck::before { opacity: 1; border-bottom-color: var(--line); }
.nav.is-hidden { transform: translate3d(0, -110%, 0); }

.nav__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  position: relative;
  flex: none;
  transition: transform .5s var(--spring);
}
.nav__mark::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; top: 50%;
  height: 8px;
  margin-top: -4px;
  background: var(--red);
  border-radius: 1px;
}
.nav__brand:hover .nav__mark { transform: rotate(-8deg) scale(1.06); }
.nav__name { display: flex; flex-direction: column; line-height: 1.15; }
.nav__name strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.nav__name em {
  font-style: normal;
  font-size: 11px;
  color: var(--txt-3);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--txt-2);
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--txt); }
.nav__links a.is-active { color: var(--txt); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: transform .3s var(--spring), border-color var(--t-fast);
}
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .42s var(--ease), opacity .2s linear;
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { bottom: 17px; }
.nav__burger:active { transform: scale(.94); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────── drawer */
.drawer {
  position: fixed;
  inset: 62px 0 0;
  z-index: 85;
  background: rgba(10, 10, 11, .96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 22px var(--pad) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -12px, 0);
  transition: opacity .34s var(--ease), transform .34s var(--ease), visibility .34s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 4px;
  font-size: 19px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color var(--t-fast);
}
.drawer.is-open .drawer__links a { opacity: 1; transform: none; }
.drawer.is-open .drawer__links a:nth-child(1) { transition-delay: .05s; }
.drawer.is-open .drawer__links a:nth-child(2) { transition-delay: .09s; }
.drawer.is-open .drawer__links a:nth-child(3) { transition-delay: .13s; }
.drawer.is-open .drawer__links a:nth-child(4) { transition-delay: .17s; }
.drawer.is-open .drawer__links a:nth-child(5) { transition-delay: .21s; }
.drawer.is-open .drawer__links a:nth-child(6) { transition-delay: .25s; }
.drawer__links .ms { font-size: 22px; color: var(--red); }
.drawer__links a:active { color: var(--red); }

/* ─────────────────────────────────────────────────────────────── buttons */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s var(--spring), border-color var(--t-fast), color var(--t-fast), box-shadow .3s var(--ease);
}
.btn .ms { font-size: 19px; transition: transform .35s var(--spring); }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 62%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:hover .ms { transform: translateX(1px) scale(1.06); }
.btn:focus-visible { outline: 2px solid var(--red-lift); outline-offset: 3px; }

.btn--primary {
  --btn-bg: var(--red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(195, 0, 47, .9);
}
.btn--primary:hover { box-shadow: 0 16px 40px -14px rgba(226, 16, 56, .95); }
.btn--ghost { color: var(--txt-2); }
.btn--ghost:hover { color: var(--txt); border-color: var(--line-2); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--lg { padding: 16px 28px; font-size: 15.5px; }
.btn--block { width: 100%; }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .14);
  pointer-events: none;
  animation: ripple .5s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(2.1); opacity: 0; } }

/* ───────────────────────────────────────────────────────── reveal system */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
.reveal[data-delay="5"] { transition-delay: .35s; }
.reveal[data-delay="6"] { transition-delay: .42s; }

/* ──────────────────────────────────────────────────────────── typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(195, 0, 47, .55);
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(195,0,47,.5); }
  60% { box-shadow: 0 0 0 8px rgba(195,0,47,0); }
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(32px, 5.6vw, 62px); }
h3 { font-size: clamp(21px, 2.6vw, 30px); letter-spacing: -.03em; }

.grad {
  background: linear-gradient(96deg, #fff 6%, var(--red-lift) 58%, var(--red) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fineprint {
  max-width: 780px;
  margin: 42px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--txt-3);
  text-align: center;
}

/* ────────────────────────────────────────────────────────────── sections */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(78px, 11vw, 150px) var(--pad);
  scroll-margin-top: 74px;
}
.section--tint { max-width: none; }
.section--tint::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(195,0,47,.09), transparent 62%),
    var(--ink-2);
  border-block: 1px solid var(--line);
  z-index: -1;
}
.section--tint > * { max-width: var(--maxw); margin-inline: auto; }

.section__head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 62px); }
.section__lead {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.72;
  color: var(--txt-2);
  font-weight: 300;
}
.sub-head { margin: clamp(56px, 7vw, 88px) 0 26px; }

/* ────────────────────────────────────────────────────────────────── hero */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(112px, 16vw, 168px) var(--pad) 0;
  max-width: var(--maxw);
  margin: 0 auto;
  scroll-margin-top: 0;
}
.hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  width: min(1100px, 130vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(195, 0, 47, .17), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-size: clamp(44px, 7.6vw, 92px);
  font-weight: 600;
  letter-spacing: -.045em;
  margin-bottom: 26px;
}
.hero__lead {
  max-width: 46ch;
  margin: 0 0 30px;
  font-size: clamp(15.5px, 1.8vw, 18.5px);
  line-height: 1.7;
  color: var(--txt-2);
  font-weight: 300;
}
.hero__lead strong { color: var(--txt); font-weight: 600; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.hero__pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--txt-2);
  background: rgba(255,255,255,.02);
  transition: transform .35s var(--spring), border-color var(--t-fast), color var(--t-fast);
}
.hero__pills li:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--txt); }
.hero__pills .ms { font-size: 17px; color: var(--red); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

.hero__stats { display: flex; gap: clamp(24px, 4vw, 52px); margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }
.hero__stats dd {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.hero__visual { position: relative; display: grid; gap: 18px; }

.portrait {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  width: clamp(132px, 13.4vw, 172px);
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--card);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .95);
  transform: translateZ(0);
  transition: transform .55s var(--ease);
}
.portrait:hover { transform: translateY(-4px); }
.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 16%;
  transition: transform 1.1s var(--ease);
}
.portrait:hover img { transform: scale(1.05); }
.portrait figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: linear-gradient(to top, rgba(6,6,7,.95) 16%, transparent);
}
.portrait figcaption strong { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.portrait figcaption span { font-size: 10px; color: var(--txt-3); line-height: 1.35; }

/* framed official photography */
.shot {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0d0e11;
  aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,.42), transparent 46%);
  pointer-events: none;
}

/* ── 3D turntable ─────────────────────────────────────────────────────────
   The car is a transparent cut-out on the sheet's own white — seamless, no
   visible plate. Depth comes from perspective + rotateY; the contact shadow
   counter-animates so the turn reads as real rotation.                      */
.turntable {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(6px, 2vw, 18px) 0 clamp(22px, 4vw, 40px);
  perspective: 1500px;
  perspective-origin: 50% 42%;
}
.turntable__stage {
  position: relative;
  width: 100%;
  /* capped on desktop — the source is 1400 px wide, so this stays >3× sharp */
  max-width: clamp(280px, 62%, 440px);
  transform-style: preserve-3d;
}
.turntable__car {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 62%;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  animation: turn 9s var(--ease) infinite;
  transition: transform .9s var(--ease);
  will-change: transform;
}
.turntable__shadow {
  position: absolute;
  left: 10%; right: 10%;
  bottom: 1%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(12,13,16,.30), rgba(12,13,16,0) 72%);
  filter: blur(11px);
  animation: turn-shadow 9s var(--ease) infinite;
}
@keyframes turn {
  0%, 100% { transform: rotateY(-14deg) rotateX(1.5deg) scale(.985); }
  50%      { transform: rotateY(14deg)  rotateX(1.5deg) scale(1.005); }
}
@keyframes turn-shadow {
  0%, 100% { transform: translateX(-3.5%) scaleX(.92); opacity: .9; }
  50%      { transform: translateX(3.5%)  scaleX(.92); opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .turntable__car, .turntable__shadow { animation: none; }
  .turntable__car { transform: none; }
}

/* hero showcase reel */
.showcase {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0d0e11;
  cursor: pointer;
  transition: transform .5s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease);
}
.showcase:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.showcase:active { transform: translateY(-1px) scale(.995); }
.showcase__plate {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.showcase__plate::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,.94) 4%, rgba(10,10,11,.35) 34%, transparent 62%);
  pointer-events: none;
}
.showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: opacity .3s var(--ease), transform 7s linear;
}
.showcase.is-swapping .showcase__img { opacity: 0; }
.showcase:hover .showcase__img { transform: scale(1.07); }
.showcase__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 18px 20px 18px;
  padding-left: clamp(158px, 15vw, 202px);
}
.showcase__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.showcase__meta strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.showcase__meta span { font-size: 12.5px; color: var(--txt-2); font-variant-numeric: tabular-nums; }
.showcase__dots { display: flex; gap: 6px; flex: none; padding-bottom: 6px; }
.showcase__dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--spring), background .3s var(--ease), width .35s var(--spring);
}
.showcase__dot:hover { background: rgba(255,255,255,.6); transform: scale(1.25); }
.showcase__dot.is-active { width: 20px; border-radius: 4px; background: var(--red); }

/* marquee */
.marquee {
  display: flex;
  gap: 26px;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 20px 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee li {
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-3);
  flex: none;
  animation: slide 26s linear infinite;
}
@keyframes slide { to { transform: translateX(calc(-100% - 26px)); } }

/* ────────────────────────────────────────────────────────────────  chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--txt-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--spring), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { transform: translateY(-2px); color: var(--txt); border-color: var(--line-2); }
.chip:active { transform: scale(.95); }
.chip.is-active { background: var(--txt); color: var(--ink); border-color: var(--txt); }

/* ───────────────────────────────────────────────────────────  model grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), var(--ink-2));
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.model-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.model-card:active { transform: translateY(-2px) scale(.992); }
.model-card:focus-visible { outline: 2px solid var(--red-lift); outline-offset: 3px; }
.model-card.is-hidden { display: none; }

.model-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0e11;
}
.model-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.model-card:hover .model-card__art img { transform: scale(1.06); }
.model-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card) 2%, rgba(19,20,24,.35) 34%, transparent 62%);
  pointer-events: none;
}
.model-card__kicker {
  position: absolute;
  left: 20px; top: 18px;
  z-index: 2;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 11, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-2);
}
.model-card__badge {
  position: absolute;
  right: 18px; top: 18px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(195,0,47,.5);
  background: rgba(195,0,47,.82);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.model-card__body { display: flex; flex-direction: column; flex: 1; padding: 4px 22px 22px; }
.model-card__name { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.model-card__tag { margin: 7px 0 0; font-size: 13.5px; color: var(--txt-2); font-weight: 300; }

.model-card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 20px;
}
.model-card__price small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 3px; }
.model-card__price strong { font-size: 21px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.model-card__go {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--txt-2);
  flex: none;
  transition: transform .4s var(--spring), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.model-card:hover .model-card__go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }
.model-card__go .ms { font-size: 19px; }

.model-card__swatches { display: flex; gap: 6px; margin: 16px 0 0; }
.model-card__swatches i {
  width: 14px; height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 -3px 5px rgba(0,0,0,.35);
}

/* ────────────────────────────────────────────────────────────── promos */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.promo-card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.promo-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.promo-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(195,0,47,.14);
  border: 1px solid rgba(195,0,47,.3);
  color: #ff5f7d;
  margin-bottom: 18px;
  transition: transform .45s var(--spring);
}
.promo-card:hover .promo-card__icon { transform: translateY(-2px) scale(1.06); }
.promo-card__icon .ms { font-size: 22px; }
.promo-card h3 { font-size: 17.5px; letter-spacing: -.02em; margin-bottom: 9px; }
.promo-card p { margin: 0; font-size: 13.8px; line-height: 1.68; color: var(--txt-2); font-weight: 300; }
.promo-card__tag {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3);
}

.bank-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px;
  margin-top: 36px; padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.bank-strip__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3); }
/* promo callout under the estimate hero */
.estimate__promo {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(198,18,44,.35);
  border-radius: 12px;
  background: rgba(198,18,44,.08);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--txt-2);
}
.estimate__promo[hidden] { display: none; }
/* The note slot is shared with the rate promo, so it recolours to match
   whichever promo is talking. */
.estimate__promo.is-dp {
  border-color: rgba(74,222,128,.24);
  background: rgba(74,222,128,.07);
}
.est-promo {
  margin-left: 6px; padding: 2px 7px;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.est-save { color: #4ade80; }

/* ── low down payment promo ────────────────────────────────────────────── */
/* Green, not the site red — it reads as a saving rather than as more branding,
   and it keeps the CTA the only red thing in a model card. */
.dp-tag {
  /* The card body is a stretch flex column — without this the pill spans it. */
  display: inline-flex; align-self: flex-start; width: fit-content;
  align-items: center; gap: 7px;
  margin: 12px 0 0; padding: 6px 11px 6px 8px;
  border: 1px solid rgba(74,222,128,.26);
  border-radius: 999px;
  background: rgba(74,222,128,.09);
  font-size: 12.5px; color: #86efac;
}
.dp-tag .ms { font-size: 16px; }
.dp-tag strong { font-weight: 700; color: #bbf7d0; }

td.dp { color: #86efac; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dp-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0; padding: 12px 14px;
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 12px;
  background: rgba(74,222,128,.06);
  font-size: 13px; line-height: 1.6; color: var(--txt-2);
}
.dp-note .ms { font-size: 18px; color: #86efac; flex: 0 0 auto; margin-top: 1px; }
.dp-note strong { color: #bbf7d0; }
.sheet__panel .dp-note { color: #14532d; background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.28); }
.sheet__panel .dp-note .ms, .sheet__panel .dp-note strong { color: #15803d; }
.sheet__panel td.dp { color: #15803d; }

/* ── auto loan application ─────────────────────────────────────────────── */
.apply-reqs {
  max-width: 780px;
  margin: 0 auto 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}
.apply-reqs__title {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.apply-reqs__panel { margin-top: 16px; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--txt-2); }
.req-list .ms { font-size: 19px; color: var(--red); flex: 0 0 auto; }

.apply-wrap { max-width: 1000px; margin: 0 auto; }
/* .quote-form is a bordered 2-column card. The apply form is long enough that
   one big card reads as a wall, so it drops the card entirely and lets each
   .apply-step be its own panel instead. */
.quote-form.apply-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 0; border: 0; background: none;
}
.apply-privacy {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 0; padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  font-size: 13px; line-height: 1.6; color: var(--txt-3);
}
.apply-privacy .ms { font-size: 19px; color: var(--red); flex: 0 0 auto; margin-top: 1px; }
.apply-privacy strong { color: var(--txt-2); }

/* ── one numbered panel per step ── */
.apply-step {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.apply-step__head {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.apply-step__num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(195,0,47,.4);
  background: rgba(195,0,47,.12);
  color: var(--red-lift);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.apply-step__text { min-width: 0; }
.apply-step__text h3 {
  margin: 3px 0 0; font-size: clamp(17px, 2vw, 19px);
  font-weight: 600; letter-spacing: -.01em; color: var(--txt);
}
.apply-step__text p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--txt-3); }

/* ── labelled groups inside a step ── */
/* Groups are spread across several containers inside a step — some written in
   the HTML, some injected into a render target like #tdFields — so a sibling
   selector can't see all the boundaries. Space every group and then zero out
   whichever one comes first in each step. */
.apply-group { margin-top: 26px; }
.apply-step__head + .apply-group,
.apply-step__head + div > .apply-group:first-child,
.apply-comaker-toggle + div > .apply-group:first-child { margin-top: 0; }
.apply-group__label {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--txt-3);
}
.apply-group__label .ms { font-size: 16px; color: var(--red-lift); }

/* 12-column bed; each .field carries its own span. */
.apply-grid { display: grid; gap: 18px 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.apply-grid .field--s4  { grid-column: span 4; }
.apply-grid .field--s6  { grid-column: span 6; }
.apply-grid .field--s8  { grid-column: span 8; }
.apply-grid .field--s12 { grid-column: span 12; }

.apply-comaker-toggle { margin: 0 0 22px; }
#comakerBlock.is-collapsed { display: none; }

/* Booking tabs sit above the form card, so they need their own breathing room
   and a bigger hit area than the requirements tabs inside a panel. */
.book-tabs { max-width: 1000px; margin: 0 auto 18px; }
.book-tabs .seg__btn { padding: 12px 18px; }
/* The two booking steps use an icon instead of a step number — there is no
   sequence to count, you are on one branch or the other. */
.apply-step__num .ms { font-size: 17px; }

.apply-actions { margin-top: 4px; }
.apply-foot { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--txt-3); }
.apply-foot:empty { display: none; }

/* ── apply-form field chrome (scoped so the quote form keeps its own look) ── */
.apply-form .field label {
  justify-content: flex-start; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--txt-2);
}
.apply-form .field label > span:first-child { min-width: 0; }
.field__req, .field__opt {
  margin-left: auto; flex: 0 0 auto;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.field__req { color: var(--red-lift); }
.field__opt { color: rgba(255,255,255,.26); }

.field__wrap { position: relative; display: flex; align-items: center; }
.field__prefix {
  position: absolute; left: 15px;
  color: var(--txt-3); font-size: 15px; pointer-events: none;
}
/* Needs the .field scope to outweigh the input[type=…] base rule below. */
.field input.has-prefix { padding-left: 33px; }

.field .is-invalid,
input.is-invalid { border-color: var(--red); }

/* real showroom photos inside the model sheet — horizontal scroll strip */
.shots__note { margin: -6px 0 14px; font-size: 13px; color: var(--txt-3); }
.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.shots__item {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.shots__open {
  display: block; position: relative;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.shots__item img {
  display: block;
  height: 210px;
  width: auto;
  max-width: none;
  object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.shots__open:hover img { transform: scale(1.04); }
.shots__zoom {
  position: absolute; right: 9px; bottom: 9px;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(8,8,10,.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 17px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.shots__open:hover .shots__zoom,
.shots__open:focus-visible .shots__zoom { opacity: 1; transform: none; }
@media (hover: none) { .shots__zoom { opacity: .9; transform: none; } }
@media (max-width: 640px) { .shots__item img { height: 168px; } }

/* ── fullscreen photo viewer (sits above the model sheet) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 190;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__scrim {
  position: absolute; inset: 0;
  background: rgba(3,3,4,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox__stage {
  position: absolute; inset: 0;
  margin: 0; padding: clamp(46px, 6vh, 72px) clamp(14px, 7vw, 96px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 10px;
  transform: scale(.97);
  transition: transform .35s var(--spring);
}
.lightbox.is-open .lightbox__stage img { transform: none; }
.lightbox__cap {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.62); text-align: center;
}
.lightbox__count { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.38); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.16); }
.lightbox__close { top: 16px; right: 16px; width: 42px; height: 42px; font-size: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 58px 10px 64px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

.promo-fineprint {
  max-width: 62ch;
  margin: 22px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  color: var(--txt-3);
}
.bank-strip__list { display: flex; flex-wrap: wrap; gap: 10px; }
.bank-strip__list span {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--txt-2);
  transition: transform .3s var(--spring), color var(--t-fast), border-color var(--t-fast);
}
.bank-strip__list span:hover { transform: translateY(-2px); color: var(--txt); border-color: var(--line-2); }

/* ───────────────────────────────────────────────────────────── e-POWER */
.epower-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(255,255,255,.005));
}
.epower-hero__copy h3 { margin-bottom: 16px; }
.epower-hero__copy p { margin: 0 0 22px; color: var(--txt-2); font-weight: 300; line-height: 1.75; }
.epower-hero__copy strong { color: var(--txt); font-weight: 600; }
.epower-hero__specs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.epower-hero__specs span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--txt-2);
}

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: clamp(34px, 5vw, 56px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.flow li {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  counter-increment: step;
  transition: transform .45s var(--ease), border-color .35s var(--ease);
}
.flow li:hover { transform: translateY(-4px); border-color: var(--line-2); }
.flow li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 11.5px; letter-spacing: .16em; color: var(--red); margin-bottom: 16px;
}
.flow .ms { font-size: 26px; color: var(--txt); display: block; margin-bottom: 12px; }
.flow h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; }
.flow p { margin: 0; font-size: 13.5px; line-height: 1.66; color: var(--txt-2); font-weight: 300; }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.benefit {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.benefit:hover { transform: translateY(-3px); border-color: var(--line-2); }
.benefit .ms { font-size: 23px; color: var(--red); flex: none; margin-top: 2px; }
.benefit h4 { margin: 0 0 5px; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.benefit p { margin: 0; font-size: 13.2px; line-height: 1.6; color: var(--txt-2); font-weight: 300; }

/* ─────────────────────────────────────────────────────────────── tables */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 13.6px; min-width: 560px; }
thead th {
  position: sticky; top: 0;
  background: var(--card-2);
  text-align: left;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--txt-3);
  padding: 14px 18px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--txt-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .25s linear; }
tbody tr:hover { background: rgba(255,255,255,.03); }
td.price { color: var(--red-lift); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.name { color: var(--txt); font-weight: 500; }
.cmp td:first-child, .cmp th:first-child { color: var(--txt); font-weight: 500; }
.cmp th:nth-child(2), .cmp td:nth-child(2) { background: rgba(195,0,47,.07); }

/* ──────────────────────────────────────────────────────────────── quote */
.quote-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 40px); align-items: start; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0;
}
.field label em { text-transform: none; letter-spacing: 0; font-style: normal; }
.field__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--txt-3);
}
.field__note[hidden] { display: none; }
.field output { color: var(--red-lift); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }

input[type="text"], input[type="tel"], input[type="email"],
input[type="date"], input[type="number"], input[type="url"],
select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  font-size: 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), transform .25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  /* Keeps the native date picker, its calendar glyph and the autofill wash
     dark. Without it Chrome paints date inputs with a white default box. */
  color-scheme: dark;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(195,0,47,.06);
  box-shadow: 0 0 0 3px rgba(195,0,47,.16);
}
/* An empty date input renders mm/dd/yyyy as real text, not a placeholder, and
   :placeholder-shown does not apply to it — so app.js flags the empty state
   and this mutes the mask to match every other field's placeholder. */
input[type="date"] { min-height: 49px; }
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit { color: rgba(255,255,255,.3); }
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .45; cursor: pointer; transition: opacity .2s var(--ease);
}
input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: .9; }
/* Chrome's autofill yellow would blow a hole in the dark form. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--txt);
  -webkit-box-shadow: 0 0 0 60px #16171b inset;
  caret-color: var(--txt);
}
input.is-invalid { border-color: #ff4d67; animation: shake .4s var(--ease); }
@keyframes shake {
  20% { transform: translateX(-5px); } 45% { transform: translateX(4px); }
  70% { transform: translateX(-3px); } 100% { transform: none; }
}

.select { position: relative; }
.select select { padding-right: 42px; cursor: pointer; }
.select select option { background: #15171c; color: var(--txt); }
.select .ms {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--txt-3); font-size: 20px;
  transition: transform .3s var(--ease);
}
.select:focus-within .ms { transform: translateY(-50%) rotate(180deg); color: var(--red); }

/* segmented control */
.seg { display: grid; grid-auto-flow: column; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.seg--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 13.5px;
  color: var(--txt-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--spring), background .3s var(--ease), color .25s var(--ease);
}
.seg__btn .ms { font-size: 18px; }
.seg__btn:hover { color: var(--txt); }
.seg__btn:active { transform: scale(.95); }
.seg__btn.is-active { background: var(--txt); color: var(--ink); font-weight: 500; }

/* range */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red) var(--fill, 20%), rgba(255,255,255,.14) var(--fill, 20%));
}
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--red); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: -8.5px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--red);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.8);
  transition: transform .25s var(--spring);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 5px solid var(--red);
}

/* checkbox */
.field label.check, .check {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  cursor: pointer; text-transform: none; letter-spacing: 0;
  font-size: 14.5px; color: var(--txt);
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 22px; height: 22px; flex: none;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  display: grid; place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .3s var(--spring);
}
.check__box .ms { font-size: 16px; color: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box .ms { transform: scale(1); }
.check:active .check__box { transform: scale(.9); }
.check input:focus-visible + .check__box { outline: 2px solid var(--red-lift); outline-offset: 3px; }

.field.is-collapsed { display: none; }
.finance-block { grid-column: 1 / -1; display: grid; gap: 16px; }
.finance-block.is-collapsed { display: none; }

.quote-form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* the quiet route out of this form and into register/ — the one place on the
   site that actually delivers itself to her inbox */
.quote-form__alt {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--txt-3);
}
.quote-form__alt a {
  color: var(--txt);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--red);
}
.quote-form__alt a:hover { color: var(--red-lift); }

/* estimate card */
.estimate { position: sticky; top: 92px; }
.estimate__card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(195,0,47,.15), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
}
.estimate__label { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3); }
.estimate__model { font-size: 27px; letter-spacing: -.03em; }
.estimate__variant { margin: 7px 0 20px; font-size: 13.5px; color: var(--txt-2); font-weight: 300; min-height: 20px; }
.estimate__srp { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.estimate__srp span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); }
.estimate__srp strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.estimate__rows { display: grid; gap: 11px; padding: 16px 0; }
.estimate__rows div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.estimate__rows span { color: var(--txt-2); font-weight: 300; }
.estimate__rows b { font-weight: 500; font-variant-numeric: tabular-nums; }
.estimate__hero {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px; padding: 20px;
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--red), #8d0022);
  color: #fff;
}
.estimate__hero span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.estimate__hero strong { font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.estimate__note { margin: 16px 0 0; font-size: 11.8px; line-height: 1.65; color: var(--txt-3); }

.flip { animation: flip .5s var(--ease); }
@keyframes flip {
  0% { opacity: .25; transform: translateY(7px); }
  100% { opacity: 1; transform: none; }
}

/* ────────────────────────────────────────────────────────────── contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.contact-card {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(255,255,255,.045); }
.contact-card:active { transform: translateY(-1px) scale(.99); }
.contact-card__icon { font-size: 24px; color: var(--red); margin-bottom: 12px; }
.contact-card__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }
.contact-card__value { font-size: 16px; font-weight: 500; letter-spacing: -.015em; word-break: break-word; }
.contact-card__go {
  position: absolute; top: 22px; right: 22px;
  font-size: 18px; color: var(--txt-3);
  transition: transform .4s var(--spring), color .3s var(--ease);
}
.contact-card:hover .contact-card__go { transform: translate(2px, -2px); color: var(--red); }

.closing {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(195,0,47,.12), rgba(255,255,255,.02) 52%);
}
.closing h3 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.closing__lead { margin: 0 0 24px; color: var(--txt-2); font-weight: 300; line-height: 1.72; max-width: 52ch; }
.closing__points { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; padding: 0; list-style: none; }
.closing__points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--txt-2);
}
.closing__points .ms { font-size: 17px; color: var(--red); }
.closing__photo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.closing__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }

/* ─────────────────────────────────────────────────────────────── footer */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--ink-2); }
.footer__tool {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  font-size: 12.5px; color: var(--txt-3); text-decoration: none;
  transition: color .2s var(--ease);
}
.footer__tool:hover { color: var(--txt-2); }
.footer__tool .ms { font-size: 16px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 42px var(--pad) calc(120px + env(safe-area-inset-bottom));
  display: grid; gap: 18px;
}
.footer__inner strong { display: block; font-size: 16px; }
.footer__inner > div span { font-size: 13px; color: var(--txt-3); }
.footer__legal { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--txt-3); max-width: 70ch; }

/* ───────────────────────────────────────────────────────────────── dock */
.dock {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 80;
  display: none;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(18, 19, 23, .86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 46px -20px rgba(0,0,0,.95);
  transform: translate3d(0, 130%, 0);
  transition: transform .5s var(--ease);
}
.dock.is-up { transform: none; }
.dock__btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 8px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--txt-2);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--spring), background .25s var(--ease), color .25s var(--ease);
}
.dock__btn .ms { font-size: 19px; }
.dock__btn:active { transform: scale(.94); background: rgba(255,255,255,.06); }
.dock__btn--primary { background: var(--red); color: #fff; flex: 1.4; }

/* ──────────────────────────────────────────────────────────────── sheet */
.sheet {
  position: fixed; inset: 0; z-index: 120;
  visibility: hidden;
}
.sheet.is-open { visibility: visible; }
.sheet__scrim {
  position: absolute; inset: 0;
  background: rgba(4, 4, 5, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  /* light theme: re-point the design tokens, every component follows */
  --ink: #ffffff;
  --ink-2: #ffffff;
  --card: #ffffff;
  --card-2: #f4f5f7;
  --line: rgba(12, 13, 16, .11);
  --line-2: rgba(12, 13, 16, .22);
  --txt: #0d0e11;
  --txt-2: rgba(13, 14, 17, .64);
  --txt-3: rgba(13, 14, 17, .44);
  --shadow: 0 1px 0 rgba(12,13,16,.04) inset, 0 18px 50px -22px rgba(12,13,16,.22);

  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(760px, 100%);
  background: #fff;
  color: var(--txt);
  border-left: 1px solid rgba(12,13,16,.12);
  transform: translate3d(100%, 0, 0);
  transition: transform .55s var(--ease);
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--txt);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .35s var(--spring), background .25s var(--ease), border-color .25s var(--ease);
}
.sheet__close:hover { transform: rotate(90deg); border-color: var(--line-2); }
.sheet__close:active { transform: rotate(90deg) scale(.9); }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 0 40px; }

.sheet-hero { padding: clamp(28px, 5vw, 46px) clamp(22px, 4vw, 42px) 0; }
.sheet-hero h2 { font-size: clamp(30px, 5vw, 46px); }
.sheet-hero__kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-3); margin: 0 0 12px; }
.sheet-hero__tag { margin: 12px 0 0; font-size: 16px; color: var(--txt-2); font-weight: 300; }
.sheet-hero__price { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.sheet-hero__price small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }
.sheet-hero__price strong { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.sheet-block { padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 42px) 0; }
.sheet-block > h4 {
  margin: 0 0 16px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-3); font-weight: 500;
}
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hl {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.hl:hover { transform: translateY(-3px); border-color: var(--line-2); }
.hl .ms { font-size: 22px; color: var(--red); margin-bottom: 10px; display: block; }
.hl strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.hl span { font-size: 13px; color: var(--txt-2); font-weight: 300; line-height: 1.55; }

.colorset { margin-bottom: 24px; }
.colorset__label { font-size: 12px; color: var(--txt-3); margin: 0 0 12px; letter-spacing: .08em; text-transform: uppercase; }
.colorset__list { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 12.8px;
  color: var(--txt-2);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--spring), border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.swatch:hover { transform: translateY(-2px); color: var(--txt); border-color: var(--line-2); }
.swatch:active { transform: scale(.96); }
.swatch.is-active { border-color: var(--red); background: rgba(195,0,47,.1); color: var(--txt); }
.swatch i {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.35);
}
.swatch em { font-style: normal; color: var(--txt-3); font-size: 11.5px; }

.spec-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.spec-list div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.8px; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--txt-3); font-size: 12.5px; }
.spec-list dd { margin: 0; color: var(--txt-2); }

.why-list { display: grid; gap: 10px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--txt-2); font-weight: 300; }
.why-list .ms { color: var(--red); font-size: 20px; flex: none; margin-top: 1px; }
.why-list strong { color: var(--txt); font-weight: 600; display: block; font-size: 14.5px; margin-bottom: 2px; }

/* ──────────────────────────────────────────────────────────────── toast */
.toast {
  position: fixed;
  left: 50%; bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 200;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(20, 21, 25, .95);
  backdrop-filter: blur(16px);
  font-size: 14px;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.9);
  transform: translate3d(-50%, 24px, 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), transform .45s var(--spring), visibility .35s;
}
.toast.is-up { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0); }

/* ─────────────────────────────────────────────────────────── responsive */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; }
  .quote-wrap { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .epower-hero, .closing { grid-template-columns: 1fr; }
  .closing__photo { max-width: 420px; }
}

@media (max-width: 860px) {
  .turntable__stage { max-width: min(86%, 380px); }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .dock { display: flex; }
  .hero { padding-top: 104px; }
  .portrait { left: 12px; bottom: 12px; width: 108px; border-radius: var(--r); }
  .portrait figcaption { padding: 24px 9px 7px; }
  .portrait figcaption strong { font-size: 11px; }
  .portrait figcaption span { display: none; }
  .showcase__bar { padding-left: 132px; padding-bottom: 14px; }
  .showcase__meta strong { font-size: 15.5px; }
  .hero__stats { flex-wrap: wrap; gap: 22px 34px; }
  .quote-form { grid-template-columns: 1fr; }
  /* Tablet: 12 columns is too fine to read — collapse to a plain 2-up, with
     the wide fields (address, office) still spanning the full row. */
  .apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .apply-grid .field--s4,
  .apply-grid .field--s6 { grid-column: span 1; }
  .apply-grid .field--s8,
  .apply-grid .field--s12 { grid-column: span 2; }
  .sheet__panel { top: 42px; border-radius: 26px 26px 0 0; border-left: 0; border-top: 1px solid var(--line); transform: translate3d(0, 100%, 0); }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
  .section { scroll-margin-top: 66px; }
}

/* Phones: one field per row. Two side-by-side inputs at this width leaves each
   too narrow to read its own value, and thumb-typing wants a single column. */
@media (max-width: 620px) {
  .apply-grid { grid-template-columns: 1fr; gap: 15px; }
  .apply-grid .field--s4,
  .apply-grid .field--s6,
  .apply-grid .field--s8,
  .apply-grid .field--s12 { grid-column: 1 / -1; }
  .apply-step { padding: 18px 16px; border-radius: var(--r); }
  .apply-step__head { gap: 11px; padding-bottom: 14px; margin-bottom: 18px; }
  .apply-step__num { width: 26px; height: 26px; font-size: 12px; }
  .apply-reqs { padding: 18px 16px; }
  /* 16px keeps iOS Safari from zooming the viewport on focus. */
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="date"], input[type="number"], input[type="url"],
  select, textarea { font-size: 16px; padding: 12px 14px; }
  input[type="date"] { min-height: 47px; }
  .apply-form .quote-form__actions { flex-direction: column; align-items: stretch; }
  .apply-form .quote-form__actions .btn { width: 100%; }
}

@media (max-width: 460px) {
  .model-grid { grid-template-columns: 1fr; }
  .showcase__meta strong { font-size: 14.5px; }
  .hero__stats dd { font-size: 26px; }
  .quote-form__actions .btn { flex: 1; }
}

@media (hover: none) {
  .btn:hover, .model-card:hover, .promo-card:hover, .contact-card:hover,
  .benefit:hover, .flow li:hover, .hl:hover { transform: none; }
  .model-card:hover .model-card__go { transform: none; }
}

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

/* ── model sheet, light-panel specifics ─────────────────────────────────── */
.sheet__panel .sheet-hero__price strong { color: var(--txt); }
.sheet__panel td.price { color: #b1002b; }
.sheet__panel thead th { background: var(--card-2); }
.sheet__panel tbody tr:hover { background: rgba(12,13,16,.035); }
.sheet__panel .hl,
.sheet__panel .spec-list,
.sheet__panel .table-wrap { background: #fff; }
.sheet__panel .swatch.is-active { background: rgba(195,0,47,.08); }
.sheet__panel .btn--ghost { color: var(--txt-2); }
.sheet__panel .btn--ghost:hover { color: var(--txt); background: rgba(12,13,16,.04); }
.sheet__panel .btn::before { background: radial-gradient(120px circle at var(--mx,50%) var(--my,50%), rgba(12,13,16,.07), transparent 62%); }
.sheet__panel .btn--primary { color: #fff; }
.sheet__panel .btn--primary::before { background: radial-gradient(120px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22), transparent 62%); }
.sheet__panel .ripple { background: rgba(12,13,16,.10); }
