/* =================================================================
   SUPERB AUTO CORP — Sovereign Mobility design system
   Tokens mapped 1:1 from design.md
   ================================================================= */

:root {
  /* ---- Colors (from design.md) ---- */
  --surface: #faf8ff;
  --surface-dim: #d2d9f4;
  --surface-bright: #faf8ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f3ff;
  --surface-container: #eaedff;
  --surface-container-high: #e2e7ff;
  --surface-container-highest: #dae2fd;
  --on-surface: #131b2e;
  --on-surface-variant: #454650;
  --inverse-surface: #283044;
  --inverse-on-surface: #eef0ff;
  --outline: #767681;
  --outline-variant: #c6c5d2;
  --surface-tint: #4e599d;

  --primary: #0f1d60;
  --on-primary: #ffffff;
  --primary-container: #283476;
  --on-primary-container: #949fe8;
  --inverse-primary: #bac3ff;

  --secondary: #b7102a;
  --on-secondary: #ffffff;
  --secondary-container: #db313f;
  --secondary-cta: #e63946;      /* component spec crimson */
  --secondary-cta-hover: #d32f2f;

  --tertiary: #372000;
  --tertiary-gold: #f59e0b;      /* heritage gold/amber */
  --on-tertiary-container: #e49200;

  --error: #ba1a1a;

  /* Neutral slate scale (component spec) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* ---- Radii ---- */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* ---- Spacing ---- */
  --s-3xs: 0.125rem;
  --s-2xs: 0.25rem;
  --s-xs: 0.5rem;
  --s-sm: 0.75rem;
  --s-md: 1rem;
  --s-lg: 1.5rem;
  --s-xl: 2rem;
  --s-2xl: 3rem;
  --s-3xl: 4rem;
  --s-4xl: 6rem;
  --container-max: 80rem;
  --gutter: 1.5rem;

  /* ---- Elevation (navy-tinted) ---- */
  --el-1: 0 1px 3px 0 rgba(40,52,118,.04), 0 1px 2px -1px rgba(40,52,118,.04);
  --el-2: 0 10px 25px -5px rgba(40,52,118,.08), 0 8px 10px -6px rgba(40,52,118,.04);
  --el-3: 0 20px 25px -5px rgba(15,23,42,.08), 0 8px 10px -6px rgba(15,23,42,.04);
  --el-4: 0 25px 50px -12px rgba(15,23,42,.25);

  /* ---- Type families ---- */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* =================================================================
   RESET
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--on-surface);
  background: var(--surface);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* =================================================================
   TYPOGRAPHY SCALE (design.md)
   ================================================================= */
.display      { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 64px; letter-spacing: -0.02em; }
.headline-lg  { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 48px; letter-spacing: -0.015em; }
.headline-md  { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 38px; letter-spacing: -0.01em; }
.headline-sm  { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 30px; letter-spacing: -0.005em; }
.title-lg     { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 26px; }
.title-md     { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 24px; }
.body-lg      { font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 26px; }
.body-md      { font-family: var(--font-body); font-size: 14px; font-weight: 400; line-height: 22px; }
.body-sm      { font-family: var(--font-body); font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0.01em; }
.label-lg     { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: 0.02em; }
.label-md     { font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.04em; }
.label-sm     { font-family: var(--font-body); font-size: 10px; font-weight: 700; line-height: 14px; letter-spacing: 0.08em; }

/* =================================================================
   LAYOUT HELPERS
   ================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--s-4xl); }

.section-head { max-width: 46rem; margin: 0 auto var(--s-2xl); text-align: center; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-lg); max-width: var(--container-max); text-align: left;
}
.section-head__eyebrow { color: var(--primary-container); text-transform: uppercase; display: block; margin-bottom: var(--s-xs); }
.section-head__title {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  line-height: 48px; letter-spacing: -0.015em; color: var(--on-surface);
}
.section-head__sub { color: var(--slate-500); margin-top: var(--s-sm); }

/* Image placeholders */
.img-placeholder {
  position: relative; background:
    repeating-linear-gradient(45deg, var(--surface-container) 0 12px, var(--surface-container-high) 12px 24px);
  border: 1px solid var(--outline-variant); border-radius: var(--r-lg);
  display: grid; place-items: center; overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-label); white-space: pre-line; text-align: center;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--primary-container); opacity: .75; padding: var(--s-xs);
}
/* Real image fills the placeholder when the file exists; if it 404s the
   img removes itself (onerror) and the dashed placeholder shows through. */
.img-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Logo images (nav + hero) with graceful fallback to the text wordmark */
.nav__logo-img { height: 38px; width: auto; display: block; }
.nav__brand.has-img .nav__logo-text { display: none; }
.hero__logo-img { width: min(420px, 78vw); height: auto; display: block; filter: drop-shadow(0 4px 20px rgba(15,23,42,.35)); }
.hero__logo.has-img .hero__logo-word { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-lg); border-radius: var(--r);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; transition: transform .2s ease, background .2s ease;
}
.btn--primary { background: var(--primary-container); color: var(--on-primary); }
.btn--primary:hover { background: #1e2756; transform: translateY(-2px); }

/* =================================================================
   1. NAV — glassmorphism
   ================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  background: rgba(15, 29, 96, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav.is-scrolled {
  background: rgba(250, 248, 255, 0.82);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--el-1);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.nav__brand { display: flex; align-items: center; gap: var(--s-xs); }
.nav__logo-text { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.nav__logo-text strong { font-weight: 800; margin-left: 4px; }
.nav.is-scrolled .nav__logo-text { color: var(--primary); }

.nav__links { display: flex; align-items: center; gap: var(--s-lg); }
.nav__links a { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: .02em; color: rgba(255,255,255,.92); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav.is-scrolled .nav__links a { color: var(--slate-700); }
.nav.is-scrolled .nav__links a:hover { color: var(--primary); }
.nav__cta { color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--primary); }

/* =================================================================
   2. HERO
   ================================================================= */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #0f1d60 0%, #0f172a 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: none; /* clean video — no navy overlay */
}
.hero__content { position: relative; z-index: 3; text-align: center; padding: var(--s-lg); animation: fadeUp 1s ease both; text-shadow: 0 2px 16px rgba(15,23,42,.45); }
.hero__logo { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-md); }
.hero__logo-word {
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1;
  letter-spacing: -.02em; color: #fff;
}
.hero__logo-word span { display: block; font-size: 22px; font-weight: 600; letter-spacing: .3em; color: var(--inverse-primary); margin-top: var(--s-xs); }
.hero__tagline { color: rgba(255,255,255,.82); margin-top: var(--s-lg); text-transform: uppercase; }

.hero__scroll { position: absolute; z-index: 3; bottom: var(--s-xl); left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: var(--r-full); display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s infinite; }

@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* =================================================================
   3. BRAND STRIP — marquee
   ================================================================= */
.brands { padding-block: var(--s-lg); background: var(--surface-container-lowest); border-block: 1px solid var(--slate-200); }
.brands__eyebrow { text-align: center; color: var(--slate-500); text-transform: uppercase; margin-bottom: var(--s-lg); }
.marquee { width: 66.66%; max-width: 900px; margin-inline: auto; overflow: hidden; }
.marquee__track { display: flex; gap: var(--s-2xl); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: var(--s-sm); white-space: nowrap;
}
.marquee__logo { height: 30px; width: auto; object-fit: contain; }
.marquee__name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: .02em; color: var(--primary);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================================================================
   4. FOUNDER
   ================================================================= */
.founder { background: var(--primary); color: var(--on-primary); }
.founder__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-3xl); align-items: center; }
.founder__img { aspect-ratio: 4/5; width: 100%; border-radius: var(--r-xl); border-color: rgba(255,255,255,.18); background:
  repeating-linear-gradient(45deg, #1a2a6e 0 12px, #223080 12px 24px); }
.founder__img::after { color: var(--inverse-primary); }
.founder__body { position: relative; }
.founder__quote-mark { font-family: var(--font-display); font-size: 120px; line-height: .6; color: var(--secondary-cta); display: block; }
.founder__vision { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 42px; letter-spacing: -.01em; margin-top: var(--s-sm); }
.founder__vision em { color: var(--inverse-primary); font-style: italic; }
.founder__meta { margin-top: var(--s-xl); }
.founder__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.founder__role { color: var(--inverse-primary); text-transform: uppercase; margin-top: var(--s-2xs); }

/* =================================================================
   5. WHO WE ARE
   ================================================================= */
.who { background: var(--surface); }
.who__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-lg); }
.stat-card {
  background: var(--surface-container-lowest); border: 1px solid var(--slate-200);
  border-radius: var(--r-lg); padding: var(--s-lg); box-shadow: var(--el-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; text-align: left;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--el-2); border-color: var(--slate-300); }
.stat-card__img { aspect-ratio: 16/10; width: 100%; margin-bottom: var(--s-md); border-radius: var(--r-md); overflow: hidden; }
.stat-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.stat-card__value { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--primary); letter-spacing: -.02em; }
.stat-card__metric { display: flex; align-items: baseline; gap: var(--s-xs); flex-wrap: wrap; }
.stat-card__unit { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--primary-container); letter-spacing: -.01em; }
.stat-card__label { margin-top: var(--s-xs); color: var(--on-surface); }
.stat-card__desc { color: var(--slate-500); margin-top: var(--s-2xs); }

/* =================================================================
   6. WHAT WE PROVIDE — draggable strip
   ================================================================= */
.providing { background: var(--surface-container-low); overflow: hidden; }
.providing__strip {
  display: flex; gap: var(--s-lg); padding: var(--s-md) var(--gutter) var(--s-lg);
  max-width: var(--container-max); margin-inline: auto;
  overflow-x: auto; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.providing__strip::-webkit-scrollbar { display: none; }
.providing__strip.is-dragging { cursor: grabbing; }
.vehicle-card { flex: 0 0 auto; width: 340px; }
.vehicle-card__img {
  width: 340px; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--outline-variant); background: #fff; padding: var(--s-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.vehicle-card__img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.vehicle-card:hover .vehicle-card__img { transform: scale(1.02); box-shadow: var(--el-2); }
.vehicle-card__name { margin-top: var(--s-sm); color: var(--on-surface); }
.vehicle-card__brand { color: var(--secondary); text-transform: uppercase; margin-top: var(--s-3xs); }

/* =================================================================
   7. LEGACY — timeline
   ================================================================= */
.legacy { background: var(--surface); }
.timeline { position: relative; margin-bottom: var(--s-2xl); }
.timeline__axis { position: absolute; top: 24px; left: 0; right: 0; height: 2px; background: var(--outline-variant); }
.timeline__points { position: relative; display: flex; justify-content: space-between; gap: var(--s-xs); }
.tl-point {
  position: relative; padding-top: 44px; font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--slate-400); transition: color .2s;
}
.tl-point::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: var(--r-full); background: var(--surface-container-lowest);
  border: 3px solid var(--outline-variant); transition: all .25s ease;
}
.tl-point:hover { color: var(--primary-container); }
.tl-point:hover::before { border-color: var(--primary-container); }
.tl-point.is-active { color: var(--primary); }
.tl-point.is-active::before { border-color: var(--secondary-cta); background: var(--secondary-cta); box-shadow: 0 0 0 5px rgba(230,57,70,.18); }

.timeline__panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-2xl); align-items: center; background: var(--surface-container-lowest); border: 1px solid var(--slate-200); border-radius: var(--r-xl); padding: var(--s-xl); box-shadow: var(--el-1); animation: fadeUp .5s ease both; }
.timeline__media { display: grid; grid-template-columns: 1fr; gap: var(--s-sm); }
.timeline__media--two { grid-template-columns: 1fr 1fr; }
.timeline__img { aspect-ratio: 16/10; width: 100%; border-radius: var(--r-lg); }
.timeline__year { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: var(--primary); letter-spacing: -.02em; }
.timeline__caption { color: var(--slate-700); margin-top: var(--s-sm); }

/* =================================================================
   8. TEAM
   ================================================================= */
.team { background: var(--surface-container-low); }
.team__lead { display: grid; place-items: center; margin-bottom: var(--s-2xl); }
.team__row { display: grid; gap: var(--s-lg); margin-bottom: var(--s-2xl); }
.team__row--two { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 640px; margin-inline: auto; }
.team__row--four { grid-template-columns: repeat(4, 1fr); }
.team__subhead { text-align: center; color: var(--slate-500); text-transform: uppercase; margin-bottom: var(--s-lg); }

.person { text-align: center; }
.person__img { aspect-ratio: 1/1; width: 100%; border-radius: var(--r-lg); margin-bottom: var(--s-sm); }
.person--lead { max-width: 300px; }
.person--lead .person__img { aspect-ratio: 4/5; }
.person__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--on-surface); }
.person__role { color: var(--primary-container); text-transform: uppercase; margin-top: var(--s-3xs); }

/* =================================================================
   9. LOCATIONS
   ================================================================= */
.locations { background: var(--surface); }
.locations__filters { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-bottom: var(--s-xl); }
.filter { display: flex; flex-direction: column; gap: var(--s-2xs); flex: 1 1 200px; }
.filter__label { color: var(--slate-500); text-transform: uppercase; }
.filter__select {
  height: 48px; border-radius: var(--r); border: 1.5px solid var(--slate-300);
  background: var(--surface-container-lowest); padding: 0 var(--s-md);
  font-family: var(--font-body); font-size: 14px; color: var(--on-surface); transition: border .2s, box-shadow .2s;
}
.filter__select:focus { outline: none; border-color: var(--primary-container); box-shadow: 0 0 0 3px rgba(40,52,118,.12); }

.outlets { display: flex; flex-direction: column; gap: var(--s-sm); }
.outlet { background: var(--surface-container-lowest); border: 1px solid var(--slate-200); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.outlet:hover { box-shadow: var(--el-2); border-color: var(--slate-300); }
.outlet__head { width: 100%; display: flex; align-items: center; gap: var(--s-md); padding: var(--s-lg); text-align: left; }
.outlet__name { color: var(--on-surface); }
.outlet__meta { color: var(--slate-500); margin-left: auto; }
.outlet__chevron { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--primary-container); width: 28px; text-align: center; transition: transform .3s; flex-shrink: 0; }
.outlet.is-open .outlet__chevron { transform: rotate(45deg); }

.outlet__body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.outlet__detail { padding: 0 var(--s-lg) var(--s-md); display: flex; flex-direction: column; gap: var(--s-sm); border-top: 1px solid var(--slate-200); padding-top: var(--s-md); }
.outlet__address { color: var(--slate-700); }
.outlet__note { color: var(--slate-500); font-style: italic; }
.outlet__actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.outlet__phone, .outlet__dir {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-md);
  border-radius: var(--r); text-transform: none; letter-spacing: 0; transition: all .2s;
}
.outlet__phone { background: var(--surface-container); color: var(--primary); border: 1px solid var(--outline-variant); }
.outlet__phone:hover { background: var(--surface-container-high); }
.outlet__dir { background: var(--secondary-cta); color: #fff; }
.outlet__dir:hover { background: var(--secondary-cta-hover); }
.outlet__map iframe { width: 100%; height: 320px; border: 0; display: block; border-top: 1px solid var(--slate-200); }
.outlets__empty { text-align: center; color: var(--slate-500); padding: var(--s-2xl); }

/* =================================================================
   10. FOOTER
   ================================================================= */
.footer { background: var(--primary); color: var(--inverse-on-surface); padding-block: var(--s-3xl) var(--s-lg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); padding-bottom: var(--s-2xl); border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.footer__logo { display: flex; align-items: center; gap: var(--s-xs); }
.footer__logo-text { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.footer__logo-text strong { font-weight: 800; margin-left: 4px; }
.footer__social { display: flex; gap: var(--s-sm); }
.social { width: 44px; height: 44px; border-radius: var(--r-full); display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: all .2s; }
.social svg { width: 20px; height: 20px; fill: var(--inverse-on-surface); }
.social:hover { background: var(--secondary-cta); border-color: var(--secondary-cta); transform: translateY(-3px); }
.footer__copy { text-align: center; color: rgba(238,240,255,.6); margin-top: var(--s-lg); }

/* =================================================================
   VISIT US — modal + form
   ================================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeUp .25s ease; }
.modal__dialog {
  position: relative; z-index: 1; width: min(560px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem); overflow-y: auto;
  margin: var(--s-xl) auto; background: var(--surface-container-lowest);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-xl);
  box-shadow: var(--el-4); padding: var(--s-2xl);
  animation: modalIn .3s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: var(--s-md); right: var(--s-md); width: 40px; height: 40px; border-radius: var(--r-full); font-size: 26px; line-height: 1; color: var(--slate-500); background: var(--surface-container); transition: all .2s; }
.modal__close:hover { background: var(--secondary-cta); color: #fff; }
.modal__title { color: var(--primary); }
.modal__sub { color: var(--slate-500); margin: var(--s-2xs) 0 var(--s-lg); }

.vform { display: flex; flex-direction: column; gap: var(--s-md); }
.vform__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
.vform__field { display: flex; flex-direction: column; gap: var(--s-2xs); }
.vform__field > span { color: var(--slate-700); text-transform: uppercase; }
.vform input, .vform select, .vform textarea {
  width: 100%; min-height: 48px; border-radius: var(--r); border: 1.5px solid var(--slate-300);
  background: var(--surface-container-lowest); padding: 0 var(--s-md);
  font-family: var(--font-body); font-size: 14px; color: var(--on-surface); transition: border .2s, box-shadow .2s;
}
.vform textarea { padding: var(--s-sm) var(--s-md); min-height: 84px; resize: vertical; line-height: 22px; }
.vform input:focus, .vform select:focus, .vform textarea:focus { outline: none; border-color: var(--primary-container); box-shadow: 0 0 0 3px rgba(40,52,118,.12); }
.vform input:invalid.is-touched, .vform select:invalid.is-touched { border-color: var(--secondary-cta); }
.vform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vform__submit { margin-top: var(--s-xs); width: 100%; }
.vform__submit[disabled] { opacity: .6; cursor: not-allowed; }
.vform__status { text-align: center; font-size: 14px; min-height: 20px; margin: 0; }
.vform__status.is-ok { color: #047857; }
.vform__status.is-err { color: var(--secondary-cta); }

@media (max-width: 560px) {
  .modal__dialog { padding: var(--s-xl); }
  .vform__row { grid-template-columns: 1fr; }
}

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE — Tablet (768–1199px): 8-col
   ================================================================= */
@media (max-width: 1199px) {
  :root { --gutter: 1rem; }
  .nav__links { gap: var(--s-md); }
  .section-head__title, .founder__vision { font-size: 34px; line-height: 42px; }
  .who__grid { grid-template-columns: repeat(2, 1fr); }
  .founder__grid { gap: var(--s-2xl); }
  .timeline__panel { grid-template-columns: 1fr; gap: var(--s-lg); }
  .team__row--four { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to drawer below 1024 (nav link count is high) */
@media (max-width: 1024px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s-md) var(--gutter) var(--s-xl);
    background: rgba(250,248,255,0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200); box-shadow: var(--el-3);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { color: var(--slate-700); padding: var(--s-md) 0; border-bottom: 1px solid var(--slate-200); }
  .nav.is-scrolled .nav__links a { color: var(--slate-700); }
  .nav__cta { margin-top: var(--s-md); color: #fff !important; border-bottom: none !important; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle.is-open span { background: var(--primary) !important; }
}

/* =================================================================
   RESPONSIVE — Mobile (<768px): 4-col
   ================================================================= */
@media (max-width: 767px) {
  :root { --gutter: 1rem; }
  section { padding-block: var(--s-3xl); }
  .section-head { margin-bottom: var(--s-xl); }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: var(--s-md); }
  .section-head__title { font-size: 28px; line-height: 36px; }

  /* Mobile: solid nav so it no longer sits over the video, and the hero
     starts below it (no collision). --nav-h is measured in script.js. */
  .nav { background: var(--primary); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.12); }

  /* Mobile hero matches the video's aspect ratio instead of filling the screen.
     --hero-ar is set from the real video dimensions in script.js (fallback 16/9). */
  .hero { min-height: 0; height: auto; aspect-ratio: var(--hero-ar, 16 / 9); margin-top: var(--nav-h, 64px); }
  .hero__scroll { display: none; }
  .hero__content { padding: var(--s-sm); }
  .hero__logo { gap: var(--s-xs); }
  .hero__logo-word { font-size: 24px; }
  .hero__logo-word span { font-size: 11px; letter-spacing: .2em; margin-top: 2px; }
  .hero__logo-img { width: min(230px, 60vw); }
  .hero__tagline { font-size: 10px; margin-top: var(--s-xs); }

  .marquee { width: 92%; }
  .marquee__track { gap: var(--s-xl); }
  .marquee__logo { height: 26px; }
  .marquee__name { font-size: 15px; }

  .founder__grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .founder__vision { font-size: 24px; line-height: 34px; }
  .founder__quote-mark { font-size: 80px; }

  .who__grid { grid-template-columns: 1fr; }
  .stat-card__value { font-size: 34px; }

  .vehicle-card, .vehicle-card__img { width: 280px; }

  .tl-point { font-size: 13px; }
  .timeline__year { font-size: 44px; }

  .team__row--four { grid-template-columns: repeat(2, 1fr); }
  .person--lead { max-width: 240px; }

  .footer__inner { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
