/* ==========================================================================
   LERA Motors — design system
   ========================================================================== */
:root {
  --bg: #07090c;
  --bg-2: #0d1116;
  --surface: #121821;
  --surface-2: #18202b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2f6;
  --muted: #8d99a8;
  --dim: #5d6876;
  --accent: #00d084;        /* LERA electric green */
  --accent-2: #3be3ff;      /* signal cyan */
  --accent-ink: #00160d;
  --warn: #ffb547;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.section-head--split {
  max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #2bffaa; }
.btn--ghost { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--text); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 700 20px/1 var(--display); letter-spacing: .18em; }
.logo svg { width: 34px; height: 34px; }
.logo small { display: block; font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__cta .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: 140px 0 72px; position: relative; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(0, 208, 132, .16), transparent 70%),
    radial-gradient(40% 40% at 15% 80%, rgba(59, 227, 255, .10), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
  opacity: .55;
}
.hero > .container { position: relative; }
.hero__car {
  position: absolute; right: -4%; top: -60px; width: 58%;
  pointer-events: none;
}
.hero__content { display: grid; gap: 28px; max-width: 46%; position: relative; }
.hero h1 { font-size: clamp(44px, 5.4vw, 84px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__meta {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero__meta > div { padding: 22px 24px 0 0; }
.hero__meta > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font: 600 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -0.02em; }
.stat-num sup { font-size: .5em; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 170px 0 80px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .hero__bg::before {
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(59, 227, 255, .14), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(0, 208, 132, .10), transparent 70%);
}
.page-hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 88px); }

/* ---------- Business split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.biz-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  padding: clamp(28px, 3.4vw, 48px); min-height: 540px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: border-color .3s, transform .3s;
}
.biz-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.biz-card__tag {
  display: inline-flex; align-self: flex-start; padding: 7px 12px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--muted);
}
.biz-card__art { position: absolute; right: -40px; top: 40px; width: 72%; opacity: .55; pointer-events: none; }
.biz-card__body { position: relative; display: grid; gap: 14px; max-width: 420px; }
.biz-card h3 { font-size: clamp(28px, 3vw, 40px); }
.biz-card ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.biz-card li {
  font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--muted);
}
.biz-card--vehicles { background: linear-gradient(160deg, #13201b 0%, var(--surface) 55%); }
.biz-card--components { background: linear-gradient(160deg, #10202a 0%, var(--surface) 55%); }

/* ---------- Model showcase ---------- */
.model {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
}
.model__stage {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 75%, rgba(0, 208, 132, .18), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, #0a0d11 100%);
  aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
}
.model__stage svg { width: 92%; }
.model__floor {
  position: absolute; left: 10%; right: 10%; bottom: 17%; height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 70%);
}
.model__badge {
  position: absolute; top: 20px; left: 20px; font: 500 11px/1 var(--mono); letter-spacing: .14em;
  padding: 8px 12px; border-radius: 999px; background: rgba(0, 208, 132, .12); color: var(--accent);
  border: 1px solid rgba(0, 208, 132, .3);
}
.swatches { display: flex; gap: 10px; position: absolute; bottom: 20px; left: 20px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--bg); padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--text); }
.model__info { display: grid; gap: 22px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-grid > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-grid > div:nth-child(odd) { padding-right: 16px; }
.spec-grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec-grid .stat-num { font-size: clamp(24px, 2.4vw, 32px); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  padding: 28px; display: grid; gap: 14px; align-content: start;
  transition: border-color .25s, background .25s, transform .25s;
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card p { color: var(--muted); font-size: 15px; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 208, 132, .1); border: 1px solid rgba(0, 208, 132, .25); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.icon--cyan { background: rgba(59, 227, 255, .08); border-color: rgba(59, 227, 255, .25); color: var(--accent-2); }
.card__num { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .1em; }

/* Product card (components) */
.product {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s;
}
.product:hover { border-color: rgba(59, 227, 255, .35); transform: translateY(-4px); }
.product__art {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(59, 227, 255, .12), transparent 70%),
    linear-gradient(180deg, #0f151d, #0b0f14);
  border-bottom: 1px solid var(--line);
}
.product__art svg { width: 62%; height: auto; }
.product__body { padding: 26px; display: grid; gap: 12px; flex: 1; align-content: start; }
.product__body p { color: var(--muted); font-size: 15px; }
.product__specs { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.product__specs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.product__specs li span:first-child { color: var(--muted); }
.product__specs li span:last-child { font-family: var(--mono); font-size: 13px; text-align: right; }

/* ---------- Capability strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.strip > div { padding: 32px 28px; display: grid; gap: 10px; background: var(--surface); }
.strip > div + div { border-left: 1px solid var(--line); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}
.step { padding-right: 24px; display: grid; gap: 12px; position: relative; }
.step__dot {
  width: 47px; height: 47px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2);
  display: grid; place-items: center; font: 600 14px/1 var(--mono); color: var(--accent); position: relative;
}
.step__dot::before { counter-increment: step; content: "0" counter(step); }
.step h4 { font-size: 18px; margin-top: 10px; }
.step p { color: var(--muted); font-size: 14px; }
.step__time { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .08em; }

/* ---------- Standards badges ---------- */
.standards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.std {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px;
  display: grid; gap: 6px; text-align: center; background: var(--surface);
}
.std b { font: 600 17px/1.1 var(--display); }
.std span { font-size: 12px; color: var(--muted); }

/* ---------- Footprint map ---------- */
.footprint { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.map {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
}
.map svg { width: 100%; height: 100%; }
.loc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.loc-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.loc-list b { font-weight: 600; }
.loc-list span { color: var(--muted); font-size: 14px; }
.loc-list em { font-style: normal; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); align-self: center; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab-panel[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(59, 227, 255, .22), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(0, 208, 132, .22), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 52px); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.rfq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.form {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 14px; font-size: 15px; transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d99a8' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); cursor: pointer; transition: .2s;
}
.chip input:checked + span { background: rgba(59, 227, 255, .12); border-color: var(--accent-2); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--dim); max-width: 40ch; }
.form-success {
  grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; background: rgba(0, 208, 132, .1);
  border: 1px solid rgba(0, 208, 132, .35); color: var(--text); font-size: 15px;
}
.contact-points { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.contact-points div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-points span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h5 { margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim);
}
.newsletter { display: flex; gap: 8px; margin-top: 22px; max-width: 380px; }
.newsletter input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
}
.newsletter .btn { height: 46px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
  font: 600 clamp(20px, 2.4vw, 30px)/1 var(--display); color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero { align-items: flex-start; min-height: auto; padding-top: 110px; }
  .hero > .container { display: flex; flex-direction: column; }
  .hero__car { position: relative; right: auto; top: auto; width: min(100%, 720px); margin: 0 auto 12px; }
  .hero__content { max-width: 760px; }
  .hero h1 { font-size: clamp(42px, 8vw, 76px); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .standards { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
  .step { grid-template-columns: 47px 1fr; column-gap: 20px; padding-right: 0; }
  .step__dot { grid-row: span 4; }
  .step h4 { margin-top: 0; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 920px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .menu-toggle { display: grid; }
  .nav-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; padding: 24px var(--gutter);
    background: var(--bg);
  }
  .nav-open .nav a { font: 600 28px/1 var(--display); color: var(--text); padding: 18px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-open .nav a[aria-current="page"]::after { display: none; }
  .nav-open { overflow: hidden; }
  .nav-open .header { background: var(--bg); }

  .split, .model, .footprint, .rfq, .page-hero__inner, .section-head--split, .cta-band { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__meta > div:nth-child(n+3) { padding-top: 22px; }
  .biz-card { min-height: 460px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .standards { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr; }
  .strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
  .header__cta .btn--primary { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .biz-card__art { width: 90%; right: -60px; top: 80px; opacity: .55; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   T1 Trail launch page
   ========================================================================== */
.launch-hero { padding: 150px 0 72px; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.launch-hero .hero__bg::before {
  background:
    radial-gradient(60% 50% at 50% 70%, rgba(0, 208, 132, .18), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(59, 227, 255, .10), transparent 70%);
}
.launch-hero__inner { display: grid; gap: 22px; justify-items: center; }
.launch-hero h1 { font-size: clamp(48px, 8vw, 112px); }
.launch-hero .lead { margin: 0 auto; }
.launch-hero__car { width: min(100%, 860px); margin: 8px auto 0; }
.price-tag {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 14px; color: var(--muted);
}
.price-tag b { color: var(--text); font-weight: 600; }
.markets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.markets span {
  font: 500 12px/1 var(--mono); letter-spacing: .08em; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}

/* Versions */
.versions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; align-items: stretch; }
.version {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative;
}
.version--featured {
  border-color: rgba(0, 208, 132, .45);
  background: radial-gradient(80% 60% at 100% 0%, rgba(0, 208, 132, .16), transparent 70%), var(--surface);
}
.version__flag {
  align-self: flex-start; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.version__flag--muted { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.version h3 { font-size: clamp(24px, 2.4vw, 32px); }
.version .product__specs { margin-top: auto; }

/* EREV flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow__node {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  padding: 24px; display: grid; gap: 10px; position: relative;
}
.flow__node + .flow__node::before {
  content: "→"; position: absolute; left: -16px; top: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); font-size: 14px; z-index: 1;
}
.flow__node p { color: var(--muted); font-size: 14px; }
.flow__node--ev { border-color: rgba(0, 208, 132, .4); }
.flow-note {
  margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--line-2);
  color: var(--muted); font-size: 15px;
}
.flow-note b { color: var(--text); }

/* Market timeline */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: grid; gap: 14px; align-content: start; }
.phase--now { border-color: rgba(0, 208, 132, .45); }
.phase__label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.phase ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.phase li { color: var(--muted); font-size: 15px; padding-left: 18px; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--accent); }
.flags { display: flex; gap: 8px; flex-wrap: wrap; }
.flags span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }

@media (max-width: 1080px) {
  .versions { grid-template-columns: 1fr 1fr; }
  .version--featured { grid-column: 1 / -1; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .flow__node:nth-child(3)::before { display: none; }
}
@media (max-width: 600px) {
  .versions, .phase-grid, .flow { grid-template-columns: 1fr; }
  .flow__node + .flow__node::before { display: grid !important; content: "↓"; left: 50%; top: -14px; transform: translate(-50%, -50%); }
  .flow { gap: 28px; }
}
@media (max-width: 920px) {
  .phase-grid { grid-template-columns: 1fr; }
}

/* ---------- 3D viewer (T1 Trail model) ---------- */
.viewer { position: relative; aspect-ratio: 16 / 10; }
.viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
.viewer__hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; pointer-events: none;
}
.hero__car.viewer { position: absolute; top: -110px; right: -6%; width: 62%; }
.launch-hero__viewer { width: min(100%, 1080px); aspect-ratio: 16 / 9; margin: 0 auto 12px; }
.model__stage--render { background: #ebe8e2; }
.model__stage--render img { width: 100%; height: 100%; object-fit: cover; }
.model__stage--render .model__badge { background: rgba(0, 0, 0, .75); }
.dim-table { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dim-table > div { padding: 22px 24px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.dim-table > div:nth-child(4n) { border-right: 0; }
.dim-table > div:nth-last-child(-n+4) { border-bottom: 0; }
.dim-table span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dim-table b { font: 600 clamp(18px, 1.8vw, 24px)/1.2 var(--display); }
@media (max-width: 1080px) {
  .hero__car.viewer { position: relative; top: auto; right: auto; width: min(100%, 760px); aspect-ratio: 16 / 10; margin: 0 auto 12px; }
}
@media (max-width: 600px) {
  .dim-table { grid-template-columns: 1fr 1fr; }
  .dim-table > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .dim-table > div:nth-child(2n) { border-right: 0; }
  .dim-table > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .dim-table > div:nth-last-child(-n+2) { border-bottom: 0; }
  .launch-hero__viewer { aspect-ratio: 1 / 1; }
}

/* ---------- In-house electronics (supplier page) ---------- */
.inhouse-lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: stretch; }
.ecu-card {
  border-radius: var(--radius-lg); border: 1px solid rgba(59, 227, 255, .35); padding: clamp(24px, 3vw, 40px);
  background: radial-gradient(70% 60% at 100% 0%, rgba(59, 227, 255, .14), transparent 70%), var(--surface);
  display: grid; gap: 16px; align-content: start;
}
.ecu-card h3 { font-size: clamp(26px, 2.8vw, 36px); }
.status-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255, 181, 71, .45); color: var(--warn); background: rgba(255, 181, 71, .08);
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.replaces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.replaces span { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-2); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.replaces b { color: var(--accent-2); font-weight: 600; }
.ecu-specs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ecu-specs > div { padding: 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.ecu-specs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.ecu-specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.ecu-specs span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ecu-specs b { font: 600 18px/1.25 var(--display); }
.ecu-specs small { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--surface-2); }
.data-table tbody th { font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; }
.data-table td { color: var(--muted); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tr.is-launch th { color: var(--accent-2); }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ladder .card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ladder .card li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.ladder .card li b { font-family: var(--display); font-weight: 600; }
.ladder .card li span { color: var(--muted); font-size: 14px; }
.subhead { margin: 56px 0 20px; display: grid; gap: 8px; }
.subhead h3 { font-size: clamp(22px, 2.2vw, 28px); }
@media (max-width: 920px) { .inhouse-lead, .ladder { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .ecu-specs { grid-template-columns: 1fr; }
  .ecu-specs > div:nth-child(odd) { border-right: 0; }
  .ecu-specs > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Autonomy page ---------- */
.failop { margin: 0; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(16px, 3vw, 32px); display: grid; gap: 14px; }
.failop svg { width: 100%; height: auto; }
.failop figcaption { font-size: 14px; }
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer .card ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.offer-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 920px) { .offer { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .failop { overflow-x: auto; } .failop svg { min-width: 560px; } }

/* ---------- Technology page ---------- */
.tag { display: inline-flex; align-self: flex-start; justify-self: start; padding: 6px 10px; border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.tag--design { border-color: rgba(0, 208, 132, .45); color: var(--accent); background: rgba(0, 208, 132, .08); }
.tag--planned { border-color: rgba(59, 227, 255, .45); color: var(--accent-2); background: rgba(59, 227, 255, .07); }
.tag--research { border-color: rgba(255, 181, 71, .45); color: var(--warn); background: rgba(255, 181, 71, .07); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: grid; gap: 12px; align-content: start; transition: border-color .25s, transform .25s, background .25s; }
.pillar:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.pillar p { color: var(--muted); font-size: 15px; }
.compute-scale { display: grid; gap: 10px; }
.compute-row { display: grid; grid-template-columns: 200px 1fr 120px; gap: 16px; align-items: center; }
.compute-row b { font-family: var(--display); font-weight: 600; }
.compute-row small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; font-family: var(--font); }
.compute-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; }
.compute-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.compute-row span.val { font: 500 13px/1.2 var(--mono); text-align: right; color: var(--text); }
.energy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.energy .card { padding: 32px; gap: 14px; }
.energy .card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
@media (max-width: 920px) { .pillars, .energy { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .pillars, .energy { grid-template-columns: 1fr; }
  .compute-row { grid-template-columns: 1fr auto; }
  .compute-row .compute-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Products catalogue ---------- */
.catalog-card { display: flex; flex-direction: column; gap: 14px; }
.catalog-card .tag { margin-bottom: 2px; }
.catalog-card .product__specs { margin-top: auto; }
.catalog-card .link-arrow { margin-top: 6px; }
.catalog-card--lead { border-color: rgba(0, 208, 132, .45); background: radial-gradient(80% 60% at 100% 0%, rgba(0, 208, 132, .12), transparent 70%), var(--surface); }

/* News posts (news/index.php) */
.prose { max-width: 72ch; color: var(--text); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--display); margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.card h3 a { color: inherit; }
.form__note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.form__note a, .footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Phones: tighter vertical rhythm so sections don't leave big empty bands */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .page-hero { padding: 116px 0 48px; }
  .section-head { margin-bottom: 32px; }
}
/* A section that only holds a CTA band already has the band's own padding */
.section:has(> .container > .cta-band:only-child) { padding: clamp(36px, 5vw, 72px) 0; }
