/* ============================================================
   MHERO Lebanon — Monza SAL
   Tactical-luxury design system
   Palette: VOID → PEARL  ·  Accent: RECON
   ============================================================ */

/* Self-hosted fonts — Latin subset. Open Font License.
   @font-face is declared before any other rule so the browser starts
   the font fetch as early as possible. font-display:swap renders
   fallback text immediately, then swaps in Saira when ready. */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url('assets/fonts/saira-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/saira-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/saira-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('assets/fonts/saira-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('assets/fonts/saira-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('assets/fonts/saira-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('assets/fonts/saira-900.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* Tajawal — Arabic typeface. Pairs visually with Saira (same vertical proportions).
   Loaded only when the page is in Arabic (html[dir="rtl"] takes effect on lang switch);
   unicode-range constrains so non-Arabic glyphs still come from Saira. */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/tajawal-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/tajawal-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('assets/fonts/tajawal-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('assets/fonts/tajawal-800.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('assets/fonts/tajawal-900.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* Grayscale ramp */
  --void:      #000000;
  --obsidian:  #07090B;
  --graphite:  #0E1114;
  --iron:      #1A1D22;
  --gunmetal:  #2A2F35;
  --steel:     #3D434C;
  --titanium:  #6B7079;
  --platinum:  #A8ADB5;
  --chrome:    #D6D8DC;
  --bone:      #EBECEE;
  --pearl:     #FFFFFF;

  /* Accent */
  --recon:     #7DA688;   /* sage tactical green — eyebrows + bullets */
  --recon-dim: #4A6B57;

  /* Aliases */
  --bg:         var(--void);
  --surface:    var(--graphite);
  --elevated:   var(--iron);
  --divider:    var(--gunmetal);
  --text:       var(--pearl);
  --muted:      var(--titanium);

  /* Type — Saira (Latin) and Tajawal (Arabic) via unicode-range matching.
     Each font-family stack lists Tajawal first so its unicode-range covers
     Arabic glyphs; Saira handles everything else. */
  --font-display: 'Tajawal', 'Saira', system-ui, sans-serif;
  --font-body:    'Tajawal', 'Saira', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-brand:   'Tajawal', 'Saira', system-ui, sans-serif;

  /* Motion */
  --ease:       cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap:  cubic-bezier(0.83, 0, 0.17, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast:   240ms;
  --d-base:   500ms;
  --d-slow:   900ms;

  /* Spacing */
  --pad-y:     clamp(4rem, 10vw, 9rem);
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --max-w:     1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;  /* belt + suspenders with body — prevents horizontal scroll */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; background: none; }
::selection { background: var(--bone); color: var(--void); }

i[data-lucide] { width: 1em; height: 1em; stroke-width: 1.5; display: inline-block; vertical-align: -0.125em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.display-1 {
  font-family: var(--font-display);
  /* 2.75rem floor lets "MHERO" comfortably fit on a 360–390px viewport
     with gutter, instead of pushing past the right edge */
  font-size: clamp(2.75rem, 13vw, 13rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.6vw, 0.7rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--recon);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em 0.4em;
}
.eyebrow > * { white-space: nowrap; }
@media (max-width: 540px) {
  .eyebrow { letter-spacing: 0.14em; }
}
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--recon);
  border-radius: 50%;
  margin: 0 0.2em;
  vertical-align: middle;
}

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.45;
  color: var(--bone);
  max-width: 60ch;
  font-weight: 300;
  letter-spacing: 0.005em;
}

p { max-width: 64ch; color: var(--bone); }
.muted { color: var(--titanium); }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--pad-y); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.divider { height: 1px; background: var(--divider); width: 100%; }

/* ============================================================
   TACTICAL FRAME — 4 corner brackets via background gradients
   ============================================================ */

.frame {
  --fc: var(--titanium);
  --fs: 14px;
  --fw: 1px;
  position: relative;
  background-image:
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc));
  background-size:
    var(--fs) var(--fw), var(--fw) var(--fs),
    var(--fs) var(--fw), var(--fw) var(--fs),
    var(--fs) var(--fw), var(--fw) var(--fs),
    var(--fs) var(--fw), var(--fw) var(--fs);
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
  padding: 1.5rem;
}

.frame-recon { --fc: var(--recon); }
.frame-bright { --fc: var(--bone); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  transition: background var(--d-base) var(--ease), backdrop-filter var(--d-base) var(--ease), border-color var(--d-base);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 9, 11, 0.88);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--divider);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-brand img { height: 28px; width: auto; filter: invert(1) brightness(1.1); }

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bone);
  position: relative;
  padding-block: 0.4rem;
  transition: color var(--d-fast) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--recon);
  transition: width var(--d-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--pearl); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--bone);
  color: var(--bone);
  transition: all var(--d-fast) var(--ease);
}
.nav-cta:hover { background: var(--bone); color: var(--void); }

.nav-toggle { display: none; }

/* ============================================================
   LANGUAGE SWITCHER (EN · AR · FR)
   ============================================================ */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--divider);
  margin-right: 0.85rem;
}
.lang-switcher button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  color: var(--titanium);
  background: transparent;
  border: none;
  border-inline-end: 1px solid var(--divider);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
  min-width: 38px;
}
.lang-switcher button:last-child { border-inline-end: none; }
.lang-switcher button:hover { color: var(--bone); }
.lang-switcher button.is-active {
  color: var(--void);
  background: var(--bone);
}

@media (max-width: 920px) {
  .lang-switcher { margin-right: 0.5rem; }
  .lang-switcher button { padding: 0.45rem 0.6rem; }
}

/* RTL — Arabic */
[dir="rtl"] .btn-arrow,
[dir="rtl"] i[data-lucide="arrow-right"],
[dir="rtl"] i[data-lucide="chevron-right"] { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .stat { border-right: none; border-left: 1px solid var(--divider); }
[dir="rtl"] .stat:last-child { border-left: none; }
[dir="rtl"] .specs-row .value { text-align: left; }
[dir="rtl"] .scroll-cue { letter-spacing: 0.1em; }

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--bone);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s ease;
    transform-origin: center;
  }
  .nav-mobile-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-mobile-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-mobile-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile menu panel — ALWAYS in DOM, animated via transform/opacity */
  .nav-links {
    display: flex !important;
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    padding: 2.5rem var(--gutter) 2.5rem;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    gap: 0;
    z-index: 99;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s ease,
                visibility 0s linear 0.42s;
  }
  .nav-mobile-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s ease,
                visibility 0s;
  }

  /* Each item: subtle stagger + bottom divider */
  .nav-links li {
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-mobile-open .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-mobile-open .nav-links li:nth-child(1) { transition-delay: 0.08s; }
  .nav-mobile-open .nav-links li:nth-child(2) { transition-delay: 0.13s; }
  .nav-mobile-open .nav-links li:nth-child(3) { transition-delay: 0.18s; }
  .nav-mobile-open .nav-links li:nth-child(4) { transition-delay: 0.23s; }
  .nav-mobile-open .nav-links li:nth-child(5) { transition-delay: 0.28s; }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--bone);
    display: block;
    padding: 1.15rem 0;
    transition: color 0.18s ease, transform 0.18s ease;
  }
  .nav-links a:hover { color: var(--recon, #c89c5c); }
  .nav-links a.active { color: var(--recon, #c89c5c); }

  /* CTA inside the mobile menu — always rendered, animates in/out.
     Default state: positioned at bottom of viewport but invisible + non-interactive.
     Open state: fades in with delay so it appears AFTER menu items stagger. */
  .nav-cta {
    display: inline-flex;
    margin: 0;
    background: var(--recon, #c89c5c);
    color: var(--void);
    padding: 1.1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: fixed;
    inset: auto var(--gutter) 1.5rem var(--gutter);
    z-index: 100;
    opacity: 0;
    transform: translateY(24px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease,
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.32s;
  }
  .nav-mobile-open .nav-cta {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s ease 0.32s,
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.32s,
                visibility 0s linear 0s;
  }

  /* Body scroll lock handled by JS (position:fixed for iOS Safari). */
  /* Page dim overlay — uses opacity transition for smooth fade in/out */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 98;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0s linear 0.32s;
  }
  body.nav-mobile-open::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s ease, visibility 0s;
  }
}

/* ============================================================
   BUTTONS — Bone primary · Ghost secondary · Text tertiary
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 1.05rem 1.85rem;
  transition: all var(--d-fast) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn i[data-lucide] {
  width: 1.05em; height: 1.05em;
  transition: transform var(--d-fast) var(--ease);
}
.btn:hover i[data-lucide] { transform: translateX(4px); }

/* Primary — Bone fill */
.btn-primary {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--void);
}
.btn-primary:hover {
  background: var(--pearl);
  border-color: var(--pearl);
}

/* Ghost — outlined */
.btn-ghost {
  background: transparent;
  border-color: var(--bone);
  color: var(--bone);
}
.btn-ghost:hover {
  background: var(--bone);
  color: var(--void);
}

/* Pull-quote — used on About page for the closing relationship line.
   Constrained width, generous line-height, and a deliberate beat on the
   sage-highlighted final clause. */
.pull-quote {
  max-width: 52ch;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.6;
  color: var(--bone);
  letter-spacing: 0.005em;
}
.pull-quote .accent {
  display: inline-block;
  margin-top: 0.6em;
  color: var(--recon);
  font-style: italic;
}
@media (max-width: 560px) {
  .pull-quote { font-size: 1.1rem; line-height: 1.55; }
  .pull-quote br { display: none; }
  .pull-quote .accent { margin-top: 0.5em; }
}

/* Spinner for in-flight form submit */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.9s linear infinite; }

/* Text — tertiary, underline acts as the affordance */
.btn-text {
  padding: 0.5rem 0;
  border: none;
  background: none;
  color: var(--bone);
  letter-spacing: 0.16em;
  position: relative;
}
.btn-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: left center;
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.btn-text:hover { color: var(--recon); }
.btn-text:hover::after { opacity: 1; transform: scaleX(1.02); }

.btn-arrow {
  display: inline-block;
  transition: transform var(--d-fast) var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(2rem, 6vh, 5rem);
}

/* ============================================================
   SCROLL-SCRUBBED HEADLIGHT REVEAL HERO
   ============================================================ */
.hero-reveal {
  position: relative;
  height: 260vh;            /* tall — gives scroll travel for the scrub */
  background: #000;
}
.hero-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: flex-end;
}
.hero-reveal-seq {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  z-index: 1;
}
.hero-reveal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
/* MOBILE / PORTRAIT — switch to contain so the wide 16:9 headlight
   composition fits entirely in the viewport. cover would crop the
   left/right edges (where the headlights actually are) when the
   container is much taller than it is wide. Black letterbox bars
   are invisible against #000 background. */
@media (max-aspect-ratio: 1/1) {
  .hero-reveal-seq,
  .hero-reveal-video {
    object-fit: contain;
  }
}
/* During the play phase the video takes over from the image sequence */
.hero-reveal.is-playing .hero-reveal-video { opacity: 1; }
.hero-reveal.is-playing .hero-reveal-seq   { opacity: 0; }
/* subtle bottom scrim so content stays legible */
.hero-reveal-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}
.hero-reveal-content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-reveal-content.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.hero-reveal-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--titanium);
  transition: opacity 0.5s var(--ease);
}
.hero-reveal-cue .line {
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--titanium), transparent);
}
.hero-reveal-cue.is-hidden { opacity: 0; }

.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: 0.05em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  max-width: 42ch;
  color: var(--bone);
  margin-bottom: 2.25rem;
  line-height: 1.4;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--titanium);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--titanium), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(0.4); transform-origin: top; opacity: 1; }
}

/* ============================================================
   STAT PANEL — big numbers on hero / strip
   ============================================================ */

.stat-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  padding: 2rem clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(7, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--divider);
  position: relative;
  isolation: isolate;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* Fallback for browsers without backdrop-filter — slightly darker bg */
  .stat-panel { background: rgba(7, 9, 11, 0.85); }
}

.stat {
  padding: 0.5rem clamp(0.75rem, 2vw, 1.75rem);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--divider); padding-block: 1rem; }
  .stat:last-child { border-bottom: none; }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--pearl);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.stat-value .unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--titanium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--titanium);
}

/* ============================================================
   STATEMENT
   ============================================================ */

.statement {
  padding-block: clamp(6rem, 14vw, 12rem);
  text-align: center;
}
.statement h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22ch;
  margin: 0 auto;
}
.statement h2 em {
  color: var(--recon);
  font-style: normal;
}

/* ============================================================
   MODEL TILES (homepage)
   ============================================================ */

.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--divider);
}
@media (max-width: 920px) { .lineup { grid-template-columns: 1fr; } }

.model-tile {
  position: relative;
  height: clamp(540px, 75vh, 820px);
  overflow: hidden;
  background: var(--graphite);
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.model-tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 1.6s var(--ease-out), filter 1.4s var(--ease);
}
.model-tile-media img, .model-tile-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.92);
}
.model-tile:hover .model-tile-media { transform: scale(1.05); }
.model-tile:hover .model-tile-media img,
.model-tile:hover .model-tile-media video { filter: brightness(0.85) saturate(1); }
.model-tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}

.model-tile-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem var(--gutter);
  width: 100%;
}
.model-tile h3 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.92;
  margin-bottom: 0.85rem;
  color: var(--pearl);
}
.model-tile-sub {
  font-size: 1.05rem;
  color: var(--bone);
  margin-bottom: 1.5rem;
  max-width: 38ch;
}
.model-tile-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.model-tile-meta div {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--titanium);
}
.model-tile-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--pearl);
  letter-spacing: 0;
  margin-bottom: 0.15rem;
  text-transform: none;
}
.model-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--bone);
}
.model-tile:hover .model-tile-cta { color: var(--pearl); }

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 920px) { .feature { grid-template-columns: 1fr; } }

.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-media { order: 1; }
@media (max-width: 920px) {
  .feature-reverse .feature-text { order: 1; }
  .feature-reverse .feature-media { order: 2; }
}

.feature-text { padding-block: 1rem; }
.feature-text .eyebrow { margin-bottom: 1rem; }
.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--pearl);
}
.feature-text p { margin-bottom: 1rem; color: var(--bone); }

.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent;
}
.feature-media img, .feature-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Diagram variant — line drawings with their own background */
.feature-media--diagram {
  aspect-ratio: 16 / 10;
  background: #F4F4F1;
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid var(--divider);
}
.feature-media--diagram img,
.feature-media--diagram video {
  object-fit: contain;
}

/* Tech variant — infographics shown in full, no frame, no padding, no background */
.feature-media--tech {
  aspect-ratio: auto;
  min-height: clamp(280px, 40vh, 480px);
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-media--tech img,
.feature-media--tech video {
  width: 100%;
  height: auto;
  max-height: clamp(280px, 60vh, 720px);
  object-fit: contain;
}

/* Text-only feature row (no media column) */
.feature--text-only {
  grid-template-columns: 1fr;
}

/* Full-width showcase (single image, edge to edge) */
.showcase-full {
  width: 100%;
  padding: 0;
  margin: 0;
}
.showcase-full img,
.showcase-full video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   FULL-BLEED IMAGE BLOCK
   ============================================================ */

.bleed { width: 100%; padding: 0; position: relative; }
.bleed-media {
  width: 100%;
  height: clamp(420px, 75vh, 800px);
  overflow: hidden;
  position: relative;
}
.bleed-media img, .bleed-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bleed-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}
.bleed-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
  padding: 0 var(--gutter) clamp(2rem, 6vw, 4.5rem);
}
.bleed-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 0.95;
  max-width: 18ch;
  color: var(--pearl);
}
.bleed-content p { margin-top: 1rem; max-width: 52ch; color: var(--bone); }

/* ============================================================
   TECH GRID — feature cards
   ============================================================ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--divider);
  border-block: 1px solid var(--divider);
}
.tech-card {
  background: var(--void);
  padding: 2.25rem 1.85rem;
  position: relative;
  transition: background var(--d-fast) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tech-card:hover { background: var(--graphite); }
.tech-card .tech-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--recon);
  text-transform: uppercase;
}
.tech-card .icon {
  color: var(--bone);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--pearl);
}
.tech-card p {
  color: var(--platinum);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================================
   SPECS TABLE
   ============================================================ */

.specs { border-top: 1px solid var(--divider); }
.specs-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--divider);
  gap: 2rem;
}
.specs-row .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--titanium);
}
.specs-row .value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--pearl);
  text-align: right;
}

/* ============================================================
   CONFIGURATOR — interactive color/variant picker
   ============================================================ */

.configurator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.config-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--graphite);
  overflow: hidden;
  border: 1px solid var(--divider);
}

/* When a config-stage lives inside a model-tile, fill the tile and skip the frame */
.model-tile > .config-stage {
  height: 100%;
  aspect-ratio: auto;
  border: none;
  background: var(--graphite);
}
.model-tile > .config-stage img {
  filter: brightness(0.92) saturate(0.98);
  transition: opacity 0.7s var(--ease-out), filter var(--d-fast) var(--ease);
}
.model-tile:hover > .config-stage img.is-active { filter: brightness(1) saturate(1.04); }
.config-stage--cinematic { aspect-ratio: 21 / 9; }
.config-stage--square    { aspect-ratio: 4 / 3; }
.config-stage--portrait  { aspect-ratio: 3 / 4; }

/* Zoomed framings — focus a region of the same source image */
.config-stage--zoom-front img { object-position: 22% 55%; transform: scale(1.7); }
.config-stage--zoom-rear  img { object-position: 78% 55%; transform: scale(1.7); }
.config-stage--zoom-wheel img { object-position: 35% 82%; transform: scale(2.1); }
.config-stage--zoom-grille img { object-position: 50% 60%; transform: scale(2.4); }
.config-stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.config-stage img.is-active { opacity: 1; }

/* ============================================================
   INTERIOR GALLERY — sticky picker + multi-shot color swap
   ============================================================ */

.gallery-section { position: relative; }

.config-bar {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 3rem;
  background: rgba(7, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--divider);
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .config-bar { top: 60px; padding: 0.85rem 1rem; gap: 1rem; }
}

.gallery-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gallery-caption {
  max-width: 64ch;
}
.gallery-caption .tech-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--recon);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.85rem;
}
.gallery-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--pearl);
}
.gallery-caption p {
  color: var(--bone);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
}

.gallery-shots {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.config-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.swatches {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}
.swatch {
  position: relative;
  width: 56px;
  height: 56px;
  cursor: pointer;
  border: 1px solid var(--divider);
  background: var(--graphite);
  overflow: hidden;
  padding: 0;
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.swatch::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--swatch-color, var(--graphite));
  background-size: cover;
  background-position: center;
}
.swatch:hover { transform: translateY(-2px); border-color: var(--bone); }
.swatch.is-active { border-color: var(--bone); }
.swatch.is-active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--recon);
  pointer-events: none;
}

.swatch-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.swatch-label .muted {
  font-size: 0.66rem;
  color: var(--titanium);
}

/* ============================================================
   STORYTELLING TIMELINE (About page)
   ============================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.tl-item {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.tl-item.tl-reverse { grid-template-columns: 1.2fr 0.8fr; }
.tl-item.tl-reverse .tl-text { order: 2; }
.tl-item.tl-reverse .tl-media { order: 1; }

@media (max-width: 920px) {
  .tl-item, .tl-item.tl-reverse { grid-template-columns: 1fr; }
  .tl-item.tl-reverse .tl-text { order: 1; }
  .tl-item.tl-reverse .tl-media { order: 2; }
}

.tl-year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--recon);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.tl-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin-bottom: 1.25rem;
  color: var(--pearl);
}
.tl-text p {
  margin-bottom: 1rem;
  color: var(--bone);
  font-size: 1.05rem;
  line-height: 1.65;
}
.tl-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--graphite);
}
.tl-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CTA BLOCK
   ============================================================ */

.cta-block {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--obsidian);
  border-block: 1px solid var(--divider);
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 0.98;
  max-width: 22ch;
  margin: 0 auto 2rem;
  color: var(--pearl);
}
.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   CONTACT CARDS — interactive links with icons
   ============================================================ */

.contact-grid {
  display: grid;
  /* Forced 3 cols × 2 rows on desktop — six contact tiles fit perfectly with no empty slots */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border-block: 1px solid var(--divider);
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem 1.85rem;
  background: var(--void);
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.contact-card:hover { background: var(--graphite); }
.contact-card .icon {
  color: var(--recon);
  width: 22px; height: 22px;
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--titanium);
}
.contact-card .value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--pearl);
  line-height: 1.2;
}
.contact-card .value-mono {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--pearl);
}
.contact-card:hover .icon { color: var(--bone); }

/* ============================================================
   MAP EMBED
   ============================================================ */

.map-wrap {
  width: 100%;
  height: clamp(380px, 55vh, 560px);
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--graphite);
  position: relative;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85);
}

/* ============================================================
   FORMS — Amiko-styled
   ============================================================ */

.form-grid {
  display: grid;
  /* minmax(0, 1fr) — required so inputs can shrink below their intrinsic
     min-content size on narrow viewports; without it, two side-by-side
     inputs force the grid wider than its container on mobile. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  /* When collapsed to one column, span-2 fields are redundant */
  .form-grid .field[style*="grid-column"] { grid-column: 1 / -1 !important; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Prevent flex/grid item from blocking parent shrink */
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  /* Inputs default to their browser min-width (~150-200px). Without this
     they push their grid column wider than its allocated fraction. */
  min-width: 0;
  width: 100%;
}
.field label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pearl);
  letter-spacing: 0;
}
.field label .req { color: var(--recon); margin-left: 4px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--pearl);
  background: var(--graphite);
  border: 1px solid var(--gunmetal);
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--steel); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--recon);
  background: var(--iron);
}
.field .helper {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--titanium);
  font-weight: 400;
}
.field-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--recon);
  margin-bottom: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--obsidian);
  border-top: 1px solid var(--divider);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--pearl);
}
.footer-brand img { height: 32px; width: auto; filter: brightness(1.1); }
.footer-tagline { color: var(--titanium); font-size: 0.92rem; max-width: 36ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--recon);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bone);
  font-size: 0.92rem;
  transition: color var(--d-fast) var(--ease);
}
.footer-col a:hover { color: var(--pearl); }
.footer-col a i[data-lucide] { color: var(--titanium); width: 0.95em; height: 0.95em; }

.footer-meta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--titanium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT HERO
   ============================================================ */

.about-hero {
  padding-block: clamp(8rem, 18vh, 14rem) clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--divider);
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.96;
  max-width: 20ch;
  text-transform: none;
  color: var(--pearl);
}
.about-hero h1 em { font-style: normal; color: var(--recon); }

/* ============================================================
   FLOATING WHATSAPP CTA — sticks bottom-right on every page
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  right:  clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width:  clamp(52px, 7vw, 64px);
  height: clamp(52px, 7vw, 64px);
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35), 0 4px 12px rgba(0,0,0,0.25);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.fab-whatsapp:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 36px rgba(37,211,102,0.45), 0 6px 16px rgba(0,0,0,0.30);
}
.fab-whatsapp svg { width: 56%; height: 56%; }
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  animation: fab-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.55); opacity: 0;   }
}

/* RTL — move to bottom-left when in Arabic */
[dir="rtl"] .fab-whatsapp { right: auto; left: clamp(1rem, 3vw, 1.75rem); }

/* ============================================================
   CONTACT BLOCK (about page) — 3 cols × 2 rows on desktop, 2 cols on tablet,
   tight 1-col stack on mobile that fills its container edge-to-edge
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Hairline gap — the card borders provide visual separation, not padding */
  gap: 1px;
  background: var(--divider);
  margin-top: 2rem;
  border: 1px solid var(--divider);
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
    /* On mobile keep the stack edge-to-edge inside the section gutter */
    margin-inline: calc(var(--gutter) * -1);
    border-inline: none;
  }
}
.contact-card {
  display: flex;
  flex-direction: column;
  /* No border on the card itself — the grid's background + hairline gap is the divider */
  border: 0;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--obsidian);
  transition: background var(--d-fast) var(--ease);
}
@media (max-width: 560px) {
  .contact-card {
    /* Tighter padding on phones so the box is filled, not airy */
    padding: 1.15rem 1.25rem;
  }
}
.contact-card:hover { background: var(--graphite); }
.contact-card .icon { color: var(--recon); width: 28px; height: 28px; margin-bottom: 1rem; }
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--titanium);
  margin-bottom: 0.5rem;
}
.contact-card .value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--pearl);
  display: block;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.contact-card .sub { color: var(--titanium); font-size: 0.85rem; }
.contact-card a.value:hover { color: var(--recon); }
.contact-map {
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--divider);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) brightness(0.9); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal-clip.is-visible { clip-path: inset(0 0 0 0); }

.reveal-scale { opacity: 0; transform: scale(0.97); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Auto-stagger for grid/lineup children — animate in sequence */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1)  { transition-delay: 0.04s; }
.reveal-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.34s; }
.reveal-stagger.is-visible > *:nth-child(7)  { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(8)  { transition-delay: 0.46s; }
.reveal-stagger.is-visible > *:nth-child(9)  { transition-delay: 0.52s; }
.reveal-stagger.is-visible > *:nth-child(n+10) { transition-delay: 0.58s; }

/* Parallax: bleed media drifts slower than scroll */
.bleed-media img,
.bleed-media video,
.feature-media img,
.feature-media video,
.tl-media img {
  transform: translate3d(0, var(--parallax, 0px), 0);}

/* Word-by-word reveal for big headlines (used selectively) */
.reveal-words {
  display: inline-block;
}
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-words.is-visible .word { opacity: 1; transform: translateY(0); }

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

/* Test-drive form layout */
.td-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 920px) {
  .td-grid { grid-template-columns: 1fr; }
}


/* Mobile fallback — wide cinematic stage gets more vertical room on phones */
@media (max-width: 720px) {
  .config-stage--cinematic { aspect-ratio: 16 / 10; }
}


/* Explainer glossary strip — responsive grid */
@media (max-width: 720px) {
  .reveal > .reveal-stagger[style*="grid-template-columns: repeat(3, 1fr)"],
  .reveal > .reveal-stagger[style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr !important; gap: 1rem !important; text-align: center !important; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .reveal > .reveal-stagger[style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
}

/* ============================================================
   GALLERY GRID — responsive 3/2/1 column layout for image grids
   Distinct from .lineup which is a 2-column model showcase.
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
}
.gallery-grid .model-tile {
  height: clamp(280px, 32vw, 420px);
  background: var(--graphite);
}
@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .model-tile { height: clamp(240px, 40vw, 360px); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; background: transparent; }
  .gallery-grid .model-tile { height: clamp(220px, 55vw, 320px); }
}

/* ============================================================
   HERO MOBILE OPTIMIZATIONS — fix button stacking, title split, note layout
   ============================================================ */

/* Finance + warranty notes — proper styling whether on desktop or mobile */
.hero-finance-note,
.hero-warranty-note {
  font-size: 0.82rem;
  color: var(--titanium);
  letter-spacing: 0.02em;
  margin-top: 0;
  line-height: 1.4;
  max-width: 42ch;
}
.hero-finance-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-warranty-note {
  margin-top: 0.45rem;
}

/* Defensive — never let the brand title break across lines */
.hero-title {
  white-space: nowrap;
}

@media (max-width: 720px) {
  /* Slightly tighter hero-sub on phones */
  .hero-sub {
    font-size: clamp(0.98rem, 3.6vw, 1.15rem);
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  /* Tighter button padding + uniform width so they don't drift */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    max-width: 22rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }
  /* "Specifications" text button — left-align, no fill */
  .hero-actions .btn-text {
    padding: 0.85rem 0;
    justify-content: center;
    width: auto;
    align-self: center;
  }

  /* Reduce eyebrow letter-spacing on tight screens so dots don't push wrap */
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
  }
  .hero-eyebrow .dot {
    margin: 0 0.5rem;
  }

  /* Notes shrink a touch on phone */
  .hero-finance-note,
  .hero-warranty-note {
    font-size: 0.76rem;
  }
  .hero-finance-note { margin-top: 1.25rem; padding-top: 1rem; }

  /* Hide the SCROLL cue on phones — it overlaps content + adds nothing on touch */
  .scroll-cue {
    display: none;
  }

  /* Ensure hero has a bit more bottom padding so notes don't kiss edge */
  .hero-content {
    padding-bottom: clamp(1.5rem, 5vh, 3rem);
  }
}

@media (max-width: 380px) {
  /* Extreme-small screens: title drops down a notch */
  .display-1.hero-title {
    font-size: 2.4rem;
  }
}

/* ============================================================
   FOOTER VISIT COLUMN — keep phone numbers + email on one line
   ============================================================ */
.phone-mono {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  display: inline-block;
}

/* Footer "Visit" column links — flex so icon + label + number flow neatly */
.footer-col li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.45;
}
.footer-col li a > svg,
.footer-col li a > i[data-lucide] {
  flex: 0 0 auto;
}

/* On narrow footer columns, allow some breathing room without breaking digits */
@media (max-width: 600px) {
  .footer-col li { margin-bottom: 0.65rem; }
  .footer-col li a {
    gap: 0.45rem;
    font-size: 0.86rem;
  }
}

/* ============================================================
   SCROLL LOCK — atomic class for iOS-safe body lock.
   JS sets --scroll-lock-top CSS variable BEFORE adding this class
   so position:fixed and top apply in the same frame (no visual jump).
   ============================================================ */
body.scroll-locked {
  position: fixed;
  top: var(--scroll-lock-top, 0);
  left: 0;
  right: 0;
  width: 100%;
  /* Don't change overflow — body is already absolutely placed,
     overflow doesn't matter here. */
}
