/* =========================================================
   ARTEMIS — prototype design system
   Dark, cinematic, premium. Built for a DEALER audience.
   Hand-written CSS (no build step) for a fast prototype.
   Real photography/video replaces the .placeholder blocks.
   ========================================================= */

/* Brand fonts — licensed Brachial + Neue Haas Grotesk Display Pro */
@font-face {
  font-family: "Brachial";
  src: url("../assets/fonts/Brachial-Medium-SemiWide.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../assets/fonts/NHaasGroteskDSPro-55Rg.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brachial Light";
  src: url("../assets/fonts/Brachial-Light.woff2") format("woff2");
  font-weight: 300 400; font-style: normal; font-display: swap;
}
.brand img { height: 24px; width: auto; display: block; }

:root {
  --black:      #0a0a0a;   /* Carbon */
  --black-2:    #141414;
  --panel:      #1c1c1c;
  --line:       #333333;   /* Ore */
  --field-border: #6e6e6e; /* form/control borders — ≥3:1 on --black (WCAG 1.4.11) */
  --text:       #ededed;   /* near Ash #E0E0E0 */
  --muted:      #a7a9a6;
  --muted-2:    #7e817d;   /* lightened to meet WCAG AA 4.5:1 on --black */
  --largo:      #495c5e;   /* Largo */
  --green:      #819b97;   /* LR Green */
  --accent:     #dba68f;   /* Montauk Red — brand pop color (dark bg only) */
  --accent-ink: #0a0a0a;
  --max:        1280px;
  --gutter:     clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--black);
  color: var(--text);
  font-family: "Neue Haas Grotesk Display Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.display {
  font-family: "Brachial", "Saira Condensed", Impact, sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.05;
}
h1.display { font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; font-size: clamp(1.8rem, 3.3vw, 2.9rem); letter-spacing: 0.004em; }
h2.display { font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; font-size: clamp(1.45rem, 2.5vw, 2.2rem); letter-spacing: 0.004em; }
h3.display { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }

.eyebrow {
  font-family: "Brachial", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 130px); }
.section-head { max-width: 64ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: "Brachial", sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500;
  font-size: 0.92rem;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #e7baa6; }
.btn--ghost { border-color: rgba(244,243,241,.4); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(244,243,241,.06); }
.btn--block { width: 100%; justify-content: center; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: linear-gradient(to bottom, rgba(10,10,11,.92), rgba(10,10,11,0));
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,11,.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}
.brand { font-family: "Brachial", sans-serif; letter-spacing: .42em; font-size: 1.35rem; font-weight: 600; padding-left: .42em; }
.nav { display: flex; align-items: center; gap: 30px; align-self: stretch; }
.nav a { font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.social { display: flex; gap: 14px; }
.social a { color: var(--muted-2); transition: color .2s; display: inline-flex; }
.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.social a:hover { color: var(--text); }
.hamburger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero .placeholder { position: absolute; inset: 0; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero::after { /* readability scrim — darken the copy (left) side */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.82) 34%, rgba(10,10,10,.42) 64%, rgba(10,10,10,.10) 100%),
    linear-gradient(to top, rgba(10,10,10,.55), transparent 38%);
}
.hero .wrap > * { max-width: 640px; }
.hero h1 { max-width: 16ch; margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; max-width: 44ch; color: #e9e8e5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Placeholder asset blocks (stand-ins for real photo/video) ---------- */
.placeholder {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(197,165,114,.10), transparent 60%),
    radial-gradient(80% 60% at 50% 110%, rgba(120,150,180,.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 80px),
    linear-gradient(180deg, #1b1b1e, #0c0c0e);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.placeholder::before { /* studio "light strip" floor accent */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 18%;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  box-shadow: 0 0 24px 2px rgba(255,255,255,.25);
}
.placeholder .ph-tag {
  position: relative; z-index: 1;
  font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .22em;
  font-size: .72rem; color: var(--muted);
  border: 1px dashed rgba(244,243,241,.34); padding: 8px 14px;
}

/* ---------- Value strip (the NEW dealer substance) ---------- */
.value {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.value .cell { background: var(--black); padding: clamp(28px, 3.4vw, 44px) clamp(16px, 1.7vw, 28px); }
.value h3 { font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(0.68rem, 0.8vw, 0.9rem); margin-bottom: 8px; text-wrap: balance; }
.value p { font-size: .92rem; color: var(--muted); }

/* Larger, roomier 2×2 variant (dealer "Why Carry Artemis") — bigger, more readable,
   headings kept to ONE line (nowrap; tighter tracking + padding buy the room). */
.value.value--lg { grid-template-columns: 1fr 1fr; }
/* min-width:0 keeps the two columns strictly equal — without it a nowrap heading
   expands its column and pushes the grid past the page edge (right side cut off). */
.value.value--lg .cell { min-width: 0; padding: clamp(30px, 3.4vw, 54px) clamp(20px, 2.2vw, 40px); }
.value.value--lg h3 { font-size: clamp(1rem, 1.4vw, 1.14rem); letter-spacing: .02em; margin-bottom: 12px; }
.value.value--lg p { font-size: clamp(0.98rem, 1vw, 1.08rem); line-height: 1.55; }
@media (max-width: 1100px) { .value.value--lg { grid-template-columns: 1fr; } }
/* keep headings on ONE line only in the 2-col desktop layout; let them wrap when stacked */
/* dealer quadrant headers wrap when long (e.g. "A Point of Differentiation") instead of clipping */

/* ---------- Build cards ---------- */
.builds-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.build-card {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s ease, border-color .55s ease;
  will-change: transform;
}
.build-card:hover {
  transform: translateY(-14px); z-index: 5;
  border-color: var(--accent);
  box-shadow: 0 26px 50px -18px rgba(0,0,0,.85);
}
.build-card .placeholder { position: absolute; inset: 0; }
.build-card .card-body {
  position: relative; z-index: 2; padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(to top, rgba(10,10,11,.9), transparent);
  width: 100%;
}
.build-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,10,11,.65), transparent 60%); }
.build-card .kicker { font-family:"Brachial",sans-serif; letter-spacing:.2em; font-size:.72rem; color: var(--green); text-transform: uppercase; }
.build-card h3 { margin: 6px 0 4px; }
.build-card .card-link { font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:.8rem; color: var(--muted); }
.build-card:hover .card-link { color: var(--text); }
.tag-live { display:inline-block; font-family:"Brachial",sans-serif; font-size:.62rem; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-ink); background:var(--accent); padding:3px 8px; margin-left:8px; vertical-align:middle; }

/* Configurator strip — full-width row beneath the four build cards */
.build-strip {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 2.6vw, 30px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--black-2), var(--black));
  transition: transform .45s cubic-bezier(.22,.61,.36,1), border-color .45s ease, box-shadow .45s ease;
}
.build-strip:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 22px 44px -20px rgba(0,0,0,.85); }
.build-strip .kicker { font-family:"Brachial",sans-serif; letter-spacing:.2em; font-size:.72rem; color: var(--green); text-transform: uppercase; display:block; margin-bottom:4px; }
.build-strip-title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.build-strip .card-link { font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:.8rem; color: var(--muted); white-space: nowrap; }
.build-strip:hover .card-link { color: var(--text); }
/* Stack the strip (link onto its own full-width line) before the nowrap link can
   overflow the box on the right. */
@media (max-width: 760px) { .build-strip { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* Configurator embed page (configurator.html) — site header + full iframe.
   Use a DEFINITE viewport height on the flex column so the iframe's height:100%
   resolves and fills the screen (instead of falling back to its min-height). */
.embed-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.embed-page .site-header { position: static; flex: 0 0 auto; background: rgba(10,10,11,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.configurator-embed { flex: 1 1 auto; min-height: 0; background: var(--black); }
.configurator-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   Mobile fixes — keep everything inside the viewport
   (wide buttons were overflowing → off-screen labels + a
   horizontal scroll strip on the right). ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 760px) {
  /* Buttons wrap instead of clipping, and never exceed the screen */
  .btn { white-space: normal; letter-spacing: .08em; max-width: 100%; }
  /* Hero / band / footer CTAs go full-width so long labels can't run off-screen */
  .hero-actions .btn,
  .cta-band .btn,
  .footer-cta .btn,
  .page-top .btn { width: 100%; justify-content: center; text-align: center; }
  /* Footer wordmark sits flush-left with the rest of the footer columns */
  .footer-brand-col .brand { padding-left: 0; }
}
@media (max-width: 560px) {
  /* Configurator strip link wraps cleanly inside its box */
  .build-strip .card-link { white-space: normal; letter-spacing: .08em; }
}

/* ---- Homepage hero on mobile / minimized: stack like the Dealer Program hero.
   Copy + buttons sit in a dark band on top; the light-bar banner shows in full
   below, never covered by the copy (was: buttons overlaid on the animation). ---- */
@media (max-width: 860px) {
  .hero.hero--top { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
  .hero.hero--top::after { display: none; }
  .hero.hero--top .wrap { order: 0; position: static; z-index: auto; width: 100%; max-width: none; display: block; gap: 0; padding: clamp(100px, 15vh, 132px) var(--gutter) 0; }
  .hero.hero--top .hero-copy { max-width: none; }
  .hero.hero--top .lede { margin-bottom: 0; max-width: none; }
  .hero.hero--top .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; margin-top: clamp(18px, 3vh, 26px); padding-top: 0; }
  .hero.hero--top .hero-actions .btn { width: auto; max-width: 100%; justify-content: center; font-size: .72rem; letter-spacing: .08em; padding: .72em 1.25em; }
  .hero.hero--top .bg-img { order: 1; position: static; width: 100%; flex: 1 1 0; min-height: 40vh; object-fit: cover; object-position: center; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 13%); mask-image: linear-gradient(to bottom, transparent 0%, #000 13%); margin-top: clamp(12px, 2.4vh, 20px); }
}

/* ---------- Story / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .media { aspect-ratio: 7/5; }
.story-p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Dealer CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .placeholder { position: absolute; inset: 0; z-index: 0; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:1; background: rgba(10,10,11,.74); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin: 0 auto 30px; }

/* ---------- Dealer Program: steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps--3 { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); padding: clamp(24px,3vw,34px); background: var(--black-2); }
.step .step-n { font-family:"Brachial",sans-serif; font-size:2.4rem; color: var(--line); line-height:1; }
.step h3 { font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.02em; font-size:clamp(0.74rem, 0.9vw, 0.95rem); margin:10px 0 8px; text-wrap:balance; }
.step p { font-size:.95rem; color: var(--muted); }

/* ---------- Form ---------- */
.form-section { background: var(--black-2); border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.1em; font-size:.78rem; color: var(--muted); }
.field .field-label { display:block; font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.1em; font-size:.78rem; color: var(--muted); }
.field label .req, .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--black); border: 1px solid var(--field-border); color: var(--text);
  padding: 13px 14px; font: inherit; font-size: .98rem; border-radius: 0;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.checks { display:flex; flex-wrap:wrap; gap: 10px 22px; }
.checks label { display:flex; align-items:center; gap:8px; font-family: inherit; text-transform:none; letter-spacing:0; color: var(--text); font-size:.95rem; }
.checks input { width:auto; }
.form-note { color: var(--muted-2); font-size:.82rem; margin-top: 16px; }
.form-success {
  display:none; border:1px solid var(--accent); background: rgba(197,165,114,.08);
  padding: 22px 24px; margin-top: 8px;
}
.form-success.show { display:block; }
.form-success h3 { font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.06em; color: var(--accent); margin-bottom:6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--black); }
.footer-top { display:grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; padding-block: clamp(48px,6vw,72px); }
.footer-top .brand { font-size: 1.5rem; margin-bottom: 14px; display:inline-block; }
.footer-brand-col { text-align: right; }
.footer-tagline { font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .2em; font-size: 1rem; color: var(--muted); }
.footer-col h3 { font-family:"Brachial",sans-serif; text-transform:uppercase; letter-spacing:.16em; font-size:.78rem; color: var(--muted-2); margin-bottom: 16px; }
.footer-builds a { font-family: "Brachial Light", "Brachial", sans-serif; letter-spacing: .03em; }
.footer-col a { display:block; color: var(--muted); font-size:.95rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color: var(--muted-2); font-size:.82rem; }

/* ---------- Mobile ---------- */
@media (max-width: 1280px) {
  .value { grid-template-columns: 1fr 1fr; }
  .value h3 { font-size: clamp(0.82rem, 1.25vw, 0.98rem); }
}
@media (max-width: 1024px) {
  .builds-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .nav-cta .social, .nav-cta .btn--primary { display: none; }
  .hamburger { display: inline-flex; font-size: 1.5rem; }
  .mobile-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--black-2);
    border-bottom: 1px solid var(--line); padding: 24px var(--gutter);
  }
  .split { grid-template-columns: 1fr; }
  .builds-grid { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; }
  .value h3 { font-size: clamp(0.82rem, 3.4vw, 1rem); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand-col { text-align: left; }
  body { font-size: 16px; }
}

/* ---------- Build detail pages ---------- */
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* About page still uses .hero--build (full-bleed lineup photo + legibility scrim) */
.hero--build { min-height: 86vh; }
.hero--build .bg-img { object-position: center; }
.hero--build::after {
  background:
    linear-gradient(100deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 34%, rgba(10,10,10,.4) 62%, rgba(10,10,10,.12) 100%),
    linear-gradient(to top, rgba(10,10,10,.6), transparent 42%);
}
.hero--build .lede { max-width: 42ch; }
@media (max-width: 760px) {
  .hero--build::after { background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.8) 26%, rgba(10,10,10,.3) 54%, rgba(10,10,10,0) 76%); }
  .hero--build .lede { max-width: none; }
}

/* ---------- Build-page hero ----------
   DEFAULT (mobile → small laptop, < 1080px): STACKED — full-width Defender image
   on top, copy below. Never overlaps; the whole build is always visible. This is
   what the previously-problematic intermediate widths now get. */
.build-hero {
  display: flex; flex-direction: column;
  max-width: var(--max); margin-inline: auto;
  padding: clamp(92px, 12vh, 120px) var(--gutter) clamp(40px, 6vh, 64px);
}
.build-hero__media { order: -1; }   /* vehicle on top, copy below */
.build-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--line); }
.build-hero__copy { margin-top: 28px; }
.build-hero__copy h1 { margin-bottom: 18px; }
.build-hero__copy .lede { margin-bottom: 30px; color: #e9e8e5; }

/* DESKTOP (>= 1080px): cinematic full-bleed — the Defender bleeds to the right edge
   and fades into black; copy sits on the dark LEFT with the vehicle fully clear,
   so no words ever sit on the car. */
@media (min-width: 1080px) {
  .build-hero {
    position: relative; max-width: none; margin: 0; padding: 0;
    min-height: 86vh; display: flex; flex-direction: row; align-items: center; overflow: hidden;
  }
  .build-hero__media { position: absolute; inset: 0 0 0 auto; width: 60%; height: 100%; }
  .build-hero__media img {
    width: 100%; height: 100%; aspect-ratio: auto; border: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%);
    mask-image: linear-gradient(to right, transparent 0, #000 28%);
  }
  .build-hero__copy {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--max); margin-inline: auto;
    padding-inline: var(--gutter); margin-top: 0;
  }
  .build-hero__copy h1,
  .build-hero__copy .lede,
  .build-hero .hero-actions { max-width: 440px; }
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .shot { position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-inline { color: var(--muted-2); font-size: .82rem; font-style: italic; margin-top: 18px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Curated components: running-bond brick chips + 2-up detail slider ---------- */
/* Uniform-width, single-line chips in explicit rows; every 2nd/4th row shifts half a brick. */
.part-chips {
  --bw: 188px; --bg: 8px;
  display: flex; flex-direction: column; align-items: center;  /* each row centered on the page / slider */
  max-width: 100%; margin: 0 auto clamp(28px, 4vw, 44px);
}
.chip-row { display: flex; gap: var(--bg); margin-bottom: var(--bg); }
/* running bond, whole block centered: odd rows shift left a quarter-brick, even rows right a
   quarter-brick (so rows stay half a brick apart but the list as a whole stays page-centered) */
.part-chips--bond .chip-row:nth-child(odd)  { transform: translateX(calc((var(--bw) + var(--bg)) / -4)); }
.part-chips--bond .chip-row:nth-child(even) { transform: translateX(calc((var(--bw) + var(--bg)) / 4)); }
.chip {
  box-sizing: border-box; width: var(--bw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center;
  font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .02em;
  font-size: .54rem; line-height: 1; color: var(--muted); cursor: pointer;
  background: var(--black); border: 1px solid var(--line); border-radius: 3px; padding: 8px 8px;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chip--opt { border-style: dashed; }              /* optional add-ons */
@media (max-width: 1200px) {
  /* Flow ALL chips together (not per explicit row) so they fall into clean, even rows
     and the last odd chip centres underneath — instead of lopsided per-row clusters. */
  .part-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--bg); }
  .part-chips .chip-row { display: contents; }
}
@media (max-width: 520px) {
  /* phones: smaller bricks so two still fit per row */
  .part-chips { --bw: 160px; }
  .chip { font-size: .46rem; }
}

.part-slider { position: relative; max-width: 900px; margin-inline: auto; }
.ps-stage { position: relative; }
.ps-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ps-track::-webkit-scrollbar { display: none; }
.ps-slide { flex: 0 0 100%; scroll-snap-align: center; }
.ps-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 18px); }
.ps-pair--solo { grid-template-columns: 1fr; max-width: calc(50% - 9px); margin-inline: auto; }
.ps-cell { margin: 0; min-width: 0; }
.ps-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: box-shadow .3s; }
.ps-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-cell.is-flash .ps-media { box-shadow: 0 0 0 2px var(--accent); }
.ps-cap { display: block; margin-top: 12px; }
/* line 1: brand (Brachial) — eyebrow */
.ps-brand {
  display: block; font-family: "Brachial", sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: .54rem; color: var(--muted); line-height: 1.2;
}
.ps-brand .ps-ix { color: var(--accent); margin-right: 7px; }
.ps-brand .ps-opt { color: var(--muted-2); margin-left: 8px; letter-spacing: .1em; }
/* line 2: part name (Brachial, sized so even the longest name fits one line) */
.ps-name {
  display: block; margin-top: 4px; font-family: "Brachial", sans-serif; text-transform: uppercase;
  font-size: .62rem; letter-spacing: .02em; color: var(--text); line-height: 1.3;
}
.ps-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(10,10,11,.6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s, opacity .2s;
}
.ps-nav:hover { background: rgba(10,10,11,.88); }
.ps-nav[disabled] { opacity: .26; cursor: default; }
.ps-prev { left: 8px; } .ps-next { right: 8px; }
.ps-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.ps-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; }
.ps-dot.is-active { background: var(--accent); transform: scale(1.3); }
@media (max-width: 1024px) {
  /* stack the pair so each photo + caption gets the full width (name stays one line) */
  .ps-pair { grid-template-columns: 1fr; row-gap: 44px; }
  .ps-pair--solo { max-width: 100%; }
  /* both nav arrows sit together in the gap between the two stacked photos,
     right-aligned and smaller, clear of the caption text and the photos */
  .ps-nav { width: 30px; height: 30px; }
  .ps-prev { left: auto; right: 44px; }
  .ps-next { left: auto; right: 8px; }
}
@media (max-width: 520px) {
  /* phones: nudge the name down so the longest still fit one line in the narrow cell */
  .ps-name { font-size: .49rem; }
}

/* ---------- Locations ---------- */
.page-top { padding-top: clamp(116px, 14vh, 168px); }
/* Compact "How it works" strip above the dealer map */
.how-buy { margin-bottom: clamp(26px, 4vw, 42px); }
.how-buy-eyebrow { display: block; margin-bottom: 14px; }
.steps--compact { gap: 14px; grid-template-columns: repeat(3, 1fr); }
.steps--compact .step { padding: clamp(15px, 2vw, 20px) clamp(16px, 2vw, 22px); }
/* Headers as large as they can be while all three stay on ONE line (uniform). 3-up on
   desktop; stacked below 1120px where 3 columns get too narrow for the longest header. */
.steps--compact .step h3 { font-size: clamp(0.64rem, 0.92vw, 0.73rem); letter-spacing: .01em; margin: 0 0 6px; white-space: nowrap; }
.steps--compact .step p { font-size: .82rem; }
@media (max-width: 1120px) { .steps--compact { grid-template-columns: 1fr; } .steps--compact .step h3 { white-space: normal; } }
.loc-controls { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.loc-controls input, .loc-controls select { background: var(--black); border: 1px solid var(--field-border); color: var(--text); padding: 13px 14px; font: inherit; font-size: .98rem; }
.loc-controls input { flex: 1 1 340px; }
.loc-controls input:focus, .loc-controls select:focus { outline: none; border-color: var(--accent); }
.loc-count { color: var(--muted-2); font-size: .85rem; margin-bottom: 18px; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loc-state-head { grid-column: 1 / -1; font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--green); padding: 14px 0 4px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.loc-state-head:first-child { margin-top: 0; }
.loc-card { border: 1px solid var(--line); border-top: 2px solid var(--green); background: var(--black-2); overflow: hidden; }
.loc-photo { aspect-ratio: 16/10; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-photo--empty { background: linear-gradient(135deg, #171717, #0e0e0e); }
.loc-photo--empty img { width: 44px; height: auto; opacity: .16; object-fit: contain; }
.loc-body { padding: 20px 22px 22px; }
.loc-card h3 { font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; margin-bottom: 12px; }
.loc-card .addr { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.loc-card .ph { font-family: "Brachial", sans-serif; color: var(--text); font-size: .85rem; letter-spacing: .04em; margin-bottom: 10px; }
.loc-card a.web { color: var(--accent); font-size: .85rem; word-break: break-word; }
.loc-card a.web:hover { text-decoration: underline; }
.loc-empty { color: var(--muted-2); padding: 26px 0; }
#map { height: 460px; margin: 0 0 36px; border: 1px solid var(--line); background: var(--panel); position: relative; z-index: 0; }
.leaflet-popup-content { font-family: "Neue Haas Grotesk Display Pro", sans-serif; min-width: 200px; }
.leaflet-popup-content strong { display: block; font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; margin-bottom: 6px; }
.leaflet-popup-content .pop-addr { display: block; color: #444; font-size: .85rem; line-height: 1.4; }
.leaflet-popup-content a.pop-ph { display: block; color: #1a1a1a; font-size: .85rem; margin-top: 4px; }
.leaflet-popup-content a.pop-ph:hover { text-decoration: underline; }
.pop-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.pop-actions a { font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; text-align: center; padding: 8px 12px; transition: background .2s, color .2s, border-color .2s; }
.pop-actions a.pop-maps { background: var(--accent); color: var(--accent-ink); }
.pop-actions a.pop-maps:hover { background: #e7baa6; }
.pop-actions a.pop-web { border: 1px solid #c9c9c9; color: #1a1a1a; }
.pop-actions a.pop-web:hover { border-color: #1a1a1a; }
@media (max-width: 1024px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- Nav dropdowns ---------- */
.nav-item { position: relative; display: inline-flex; align-items: center; align-self: stretch; }
.nav .dd { position: absolute; top: 100%; left: -16px; min-width: 190px; background: rgba(18,18,18,.98); border: 1px solid var(--line); padding: 7px 0; display: none; flex-direction: column; z-index: 200; }
.nav-item::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.nav-item:hover .dd, .nav-item:focus-within .dd { display: flex; }
.nav .dd a { padding: 10px 18px; color: var(--muted); font-size: .8rem; letter-spacing: .12em; }
.nav .dd a:hover { color: var(--text); background: rgba(244,243,241,.05); }

/* ---------- Footer CTA band ---------- */
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; padding-block: clamp(28px, 4vw, 46px); border-bottom: 1px solid var(--line); }
.footer-cta .eyebrow { display: block; margin-bottom: 8px; }
.footer-cta h3 { font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; font-size: clamp(1.25rem, 2.3vw, 1.85rem); }
@media (max-width: 760px) {
  .nav-item { display: block; }
  .nav-item::after { display: none; }
  .mobile-open .nav .dd { display: flex; position: static; border: none; background: none; min-width: 0; padding: 6px 0 0 14px; gap: 9px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}

/* About — "As featured in" press band */
.press-band { padding-block: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); text-align: center; }
.press-band .wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.press-eyebrow { font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--muted-2); }
.press-name { font-family: "Brachial Light", "Brachial", sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--text); transition: color .2s; }
.press-name:hover { color: var(--accent); }
/* Press credit folded into the Curators section */
.press-inline { margin-top: clamp(28px, 3.6vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.press-names { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(22px, 3.6vw, 46px); max-width: 100%; }
/* press logos rendered as CSS masks so they tint white -> accent on hover (like the sponsor logos) */
.press-logo {
  display: inline-block; flex: none;
  background-color: #fff; transition: background-color .2s ease, transform .2s ease;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.press-logo:hover, .press-logo:focus-visible { background-color: var(--accent); transform: translateY(-2px); }
.press-logo--autostrada { width: clamp(159px, 21.5vw, 223px); height: clamp(20px, 2.7vw, 28px); -webkit-mask-image: url(../assets/logo/autostrada.png); mask-image: url(../assets/logo/autostrada.png); }
.press-logo--newsweek { width: clamp(154px, 20.6vw, 219px); height: clamp(24px, 3.2vw, 34px); -webkit-mask-image: url(../assets/logo/newsweek.png); mask-image: url(../assets/logo/newsweek.png); }
/* "As featured in" band — compact padding since it holds only the label + two logos */
.press-band { background: var(--black-2); border-block: 1px solid var(--line); padding-block: clamp(28px, 3.8vw, 46px); }
.press-band .section-head { margin-bottom: 0; }
.press-band .press-inline { margin-top: 0; }
.press-sep { color: var(--muted-2); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1; }

/* Defender Service Awards — partner band (about) */
.partner-band { text-align: center; background: var(--black-2); border-block: 1px solid var(--line); }
.partner-band .eyebrow { display: block; margin-bottom: 14px; }
.partner-band h2 { margin-bottom: 16px; max-width: 30ch; margin-inline: auto; }
.partner-band .lede { margin: 0 auto 28px; }
/* thinner variant */
.partner-band--slim { padding-block: clamp(36px, 5vw, 64px); }
.partner-band--slim h2 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); }
/* two logos below the heading, acting as the (only) links to each program.
   Rendered as CSS masks so we can tint them: white by default, accent on hover
   to signal they're clickable. */
.partner-band .sponsors-row { justify-content: center; align-items: center; margin: clamp(26px, 3.6vw, 40px) 0 0; gap: clamp(34px, 6vw, 64px); }
.partner-band .sponsor {
  flex: none;   /* empty mask elements would otherwise shrink to 0 width in the flex row */
  background-color: #fff; transition: background-color .2s ease, transform .2s ease;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.partner-band .sponsor:hover, .partner-band .sponsor:focus-visible { background-color: var(--accent); transform: translateY(-2px); }
.partner-band .sponsor--dsa { width: 85px; height: 96px; -webkit-mask-image: url(../assets/logo/defender-service-awards.png); mask-image: url(../assets/logo/defender-service-awards.png); }
.partner-band .sponsor--dd { width: 244px; height: 46px; -webkit-mask-image: url(../assets/logo/destination-defender.png); mask-image: url(../assets/logo/destination-defender.png); }
/* event photo on the left, copy + logos on the right */
.partner-band--split { text-align: left; }
.partner-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.partner-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--line); }
.partner-band--split h2 { max-width: 26ch; margin: 0 0 4px; margin-inline: 0; }
.partner-band--split .sponsors-row { justify-content: flex-start; }
@media (max-width: 760px) {
  .partner-split { grid-template-columns: 1fr; gap: 26px; }
  .partner-media { order: -1; }
  .partner-band--split { text-align: center; }
  .partner-band--split h2 { max-width: none; margin-inline: auto; }
  .partner-band--split .sponsors-row { justify-content: center; }
}

/* Sponsor logo rows (homepage Our Story + About partner band) */
.sponsors { margin-top: 24px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.sponsors-label { display: block; font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .22em; font-size: .64rem; color: var(--muted-2); margin-bottom: 14px; }
.sponsors .sponsors-label { margin-bottom: 0; }
.sponsors-row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.sponsor { display: inline-block; }
.sponsor img { width: auto; display: block; transition: opacity .2s; }
.sponsor:hover img { opacity: .8; }
.sponsor--dsa img { height: 66px; }   /* tall stacked mark */
.sponsor--dd img { height: 32px; }    /* wide wordmark */

/* About — full-bleed Hunt band (cinematic, like the build heroes) */
.hunt-band { position: relative; display: flex; align-items: center; min-height: 60vh; overflow: hidden; margin-block: clamp(40px, 6vw, 96px); background: #0a0a0a; }
.hunt-band .bg-img { left: auto; right: 0; width: 66%; object-position: center; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%); mask-image: linear-gradient(to right, transparent 0%, #000 32%); }
.hunt-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 28%, transparent 52%); }
.hunt-band .wrap { position: relative; z-index: 2; width: 100%; }
.hunt-band .wrap > * { max-width: 440px; }
@media (max-width: 760px) {
  .hunt-band .bg-img { left: 0; right: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hunt-band::after { background: linear-gradient(180deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.5) 45%, rgba(10,10,10,.85) 100%); }
}

/* ---------- Intro loader ---------- */
#loader { position: fixed; inset: 0; z-index: 9999; background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
#loader.done { transform: translateY(-100%); transition: transform .85s cubic-bezier(.76,0,.24,1); }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-inner img { width: 56px; height: auto; filter: brightness(0) invert(1); opacity: 0; transform: scale(.85); animation: ldMark .8s ease forwards; }
.loader-inner .lw { font-family: "Brachial", sans-serif; text-transform: uppercase; color: var(--text); font-size: 1.5rem; letter-spacing: .42em; padding-left: .42em; opacity: 0; animation: ldWord 1s ease .35s forwards; }
.loader-inner .lr { width: 0; height: 1px; background: var(--accent); animation: ldRule .7s ease .8s forwards; }
@keyframes ldMark { to { opacity: 1; transform: scale(1); } }
@keyframes ldWord { from { opacity: 0; letter-spacing: .85em; } to { opacity: 1; letter-spacing: .42em; } }
@keyframes ldRule { to { width: 150px; } }

/* ---------- Homepage hero layout (top-aligned copy over the lit grille) ---------- */
.hero--top .wrap { width: 100%; }
.hero--top .wrap > * { max-width: 600px; }
.hero--top { align-items: flex-start; }
.hero--top .wrap { padding-top: clamp(88px, 11vh, 124px); }
.hero--top .bg-img { top: auto; bottom: 0; height: 72%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%); mask-image: linear-gradient(to bottom, transparent 0%, #000 18%); }
.hero--top::after { background: linear-gradient(to bottom, rgba(10,10,10,.88) 0%, rgba(10,10,10,.45) 24%, rgba(10,10,10,0) 44%); }
.hero--top .wrap { display: flex; align-items: flex-start; gap: clamp(34px, 5.5vw, 84px); flex-wrap: wrap; }
.hero--top .hero-copy { max-width: 600px; }
.hero--top .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; }
/* Desktop: raise + slightly shrink the homepage hero copy so it covers less of the
   car, and drop the car a touch lower. (Mobile keeps its own tuned layout.) */
@media (min-width: 761px) {
  .hero--top .wrap { padding-top: clamp(44px, 5.5vh, 72px); }
  .hero--top .bg-img { height: 64%; }
  .hero--top .lede { font-size: clamp(1rem, 1.2vw, 1.12rem); margin-bottom: 26px; max-width: 40ch; }
}

/* ---------- Dealer Program hero: TEXT BAND on top, full car photo below ----------
   The copy sits in a dark band across the top (eyebrow, then headline left / body right);
   the photo below shows all three Defenders in full (never cropped by the copy). */
.dp-hero { background: var(--black); padding-block: 0; position: relative; }
.dp-hero__band { position: relative; z-index: 2; max-width: var(--max); margin-inline: auto; padding: clamp(92px, 9vh, 116px) var(--gutter) clamp(20px, 2.6vh, 32px); }
.dp-hero__band .eyebrow { display: block; margin-bottom: clamp(14px, 2.2vh, 24px); }
.dp-hero__row { display: flex; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.dp-hero__row h1 { flex: 0 1 46%; max-width: 15ch; margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.dp-hero__right { flex: 1 1 54%; max-width: 54ch; }
.dp-hero__right .lede { margin: 0; }
.dp-hero__right .hero-actions--band { margin-top: clamp(18px, 2.6vh, 26px); gap: 12px; }
/* smaller buttons here — they shouldn't rival the surrounding text */
.dp-hero .hero-actions--band .btn { font-size: .74rem; padding: .68em 1.3em; letter-spacing: .1em; }

.dp-hero__photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.dp-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* gradient blends the top of the photo up into the black band (thin, so it fades over
   the deck strip above the cars without dimming the vehicles themselves) */
.dp-hero__photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; pointer-events: none;
  height: clamp(90px, 15%, 150px);
  background: linear-gradient(to bottom, var(--black) 0%, rgba(10,10,10,0) 100%);
}

@media (min-width: 861px) {
  /* pull the photo up under the band so the buttons land just above the cars
     (blended by the gradient) — also shortens the overall page. */
  .dp-hero__photo { margin-top: clamp(-120px, -7vw, -70px); }
}

@media (max-width: 860px) {
  .dp-hero__row { flex-direction: column; gap: 16px; }
  .dp-hero__row h1 { flex: none; max-width: none; }
  .dp-hero__right { flex: none; max-width: none; }
  .dp-hero__photo { margin-top: clamp(-90px, -16vw, -40px); }
}

/* ---------- Build-page story reel (combines the old Gallery + About-This-Build) ---------- */
.build-reel-copy { max-width: 640px; }
.reel { position: relative; margin: clamp(28px, 4vw, 46px) auto 0; max-width: var(--max); padding-inline: var(--gutter); }
/* Contained fixed 16:9 frame — consistent across all screen widths so portrait-sourced
   car shots crop the same everywhere (a full-bleed height-capped band went very wide on
   large monitors and butchered vertical photos). */
.reel-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.reel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.reel-slide.is-active { opacity: 1; pointer-events: auto; }
.reel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(10,10,10,.4); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.reel-nav:hover { background: rgba(10,10,10,.72); border-color: var(--accent); }
.reel-prev { left: clamp(12px, 2vw, 26px); }
.reel-next { right: clamp(12px, 2vw, 26px); }
.reel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.reel-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.42); cursor: pointer; transition: background .2s, transform .2s; }
.reel-dot.is-active { background: var(--accent); transform: scale(1.25); }
.reel-pause { position: absolute; left: 14px; bottom: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(10,10,10,.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background .2s; }
.reel-pause:hover { background: rgba(10,10,10,.75); }
.reel-pause svg { width: 14px; height: 14px; fill: currentColor; display: block; }
@media (max-width: 760px) { .reel-nav { width: 40px; height: 40px; font-size: 1.25rem; } }

/* ============================================================
   MOTION — scroll reveals + hero parallax  (PROTOTYPE, reversible)
   Disable by ANY of: delete this block + the motion IIFE in
   js/main.js, or load any page with ?motion=off. Reveal from-states
   only apply under <html class="motion"> (added by JS) AND when the
   user hasn't asked for reduced motion — so with motion/JS off the
   site renders exactly as before (nothing stays hidden).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-reveal] {
    opacity: 0;
    transform: translate3d(var(--rx, 0), var(--ry, 0), 0) scale(var(--rs, 1));
    transition: opacity .8s ease, transform .95s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
  }
  html.motion [data-reveal].is-in { opacity: 1; transform: none; }
  html.motion [data-reveal="up"]    { --ry: 32px; }
  html.motion [data-reveal="down"]  { --ry: -22px; }
  html.motion [data-reveal="left"]  { --rx: -44px; }
  html.motion [data-reveal="right"] { --rx: 44px; }
  html.motion [data-reveal="scale"] { --rs: .92; }
  html.motion .split .media { overflow: hidden; }
  html.motion [data-parallax] { will-change: transform; }
}

/* ============================================================
   ACCESSIBILITY — skip link, screen-reader-only utility, and a
   visible keyboard focus indicator (WCAG 2.4.1 / 2.4.7).
   These only affect keyboard/AT users; no change to the normal
   mouse/visual presentation.
   ============================================================ */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -80px; left: 8px; z-index: 2000;
  transition: top .18s ease;
  background: var(--accent); color: var(--accent-ink);
  font-family: "Brachial", sans-serif; text-transform: uppercase;
  letter-spacing: .08em; font-size: .8rem; font-weight: 600;
  padding: 12px 18px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 8px; outline: 2px solid #fff; outline-offset: 2px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* keep the custom field focus (accent border) but also show a ring for keyboard users */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.loc-controls input:focus-visible, .loc-controls select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Build comparison table (SEO/AI: comparison format) ---------- */
.compare-section { background: var(--black-2); border-block: 1px solid var(--line); }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 2px; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 1.02rem; }
.compare caption { text-align: left; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--text); background: var(--black); text-align: center; }
.compare thead th:first-child { text-align: left; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--muted); font-family: "Neue Haas Grotesk Display Pro", sans-serif; text-transform: none; letter-spacing: 0; }
.compare td { text-align: center; font-size: 1.1rem; }
.compare td.is-inc { color: var(--accent); }
.compare td.is-opt { color: var(--muted); }
.compare td.is-no  { color: var(--muted-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare-key { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 16px; }
.compare-key span { color: var(--accent); }

/* ---------- No-JS fallback nav (crawlers / JS-disabled) ---------- */
.nav-fallback { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px var(--gutter); background: var(--black-2); border-bottom: 1px solid var(--line); }
.nav-fallback a { color: var(--muted); font-family: "Brachial", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.nav-fallback a:hover { color: var(--text); }

/* ---- Slider/reel nav arrows: geometry-centered chevrons ----
   The ‹ › glyphs carry uneven side-bearings so they rendered off-centre in
   the round buttons. Hide the glyph and draw a border chevron that flex
   centres perfectly inside the circle. */
.ps-nav, .reel-nav { font-size: 0; }
.ps-nav::before, .reel-nav::before {
  content: ""; display: block; box-sizing: border-box;
  width: 10px; height: 10px; border: solid #fff; border-width: 2px 2px 0 0;
}
.ps-next::before, .reel-next::before { transform: translateX(-2px) rotate(45deg); }
.ps-prev::before, .reel-prev::before { border-width: 0 0 2px 2px; transform: translateX(2px) rotate(45deg); }
@media (max-width: 760px) { .ps-nav::before, .reel-nav::before { width: 8px; height: 8px; } }

/* ---- Homepage FAQ (native <details> accordions — answers stay in the DOM) ---- */
.faq-list { max-width: 820px; margin: clamp(26px,4vw,46px) auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(18px,2.4vw,26px) 0; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q h3 { font-family: "Brachial", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.86rem,1.2vw,1.02rem); color: var(--text); margin: 0; transition: color .2s; }
.faq-q::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s ease, border-color .2s; }
.faq-item[open] .faq-q::after { transform: rotate(-135deg); }
.faq-q:hover h3, .faq-q:focus-visible h3 { color: var(--accent); }
.faq-q:hover::after { border-color: var(--accent); }
.faq-a { color: var(--muted); font-size: .96rem; line-height: 1.62; margin: 0; padding-bottom: clamp(18px,2.4vw,26px); max-width: 70ch; }
.faq-item:not([open]) .faq-a { display: none; }

/* ---- Dealer form validation errors ---- */
.field-error { display: block; color: #ff8f85; font-size: .82rem; margin-top: 6px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #ff8f85; }
