﻿/* ============================================================
   LEC — Light Electric Car
   Dark, elegant, brand-true design system
   ============================================================ */

:root {
  --bg: #101013;
  --bg-2: #16161a;
  --surface: #1c1c21;
  --surface-2: #26262b;          /* brand charcoal */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f6;
  --text-2: #a8a8b2;
  --text-3: #8b8b95;
  --accent: #6fd3f7;             /* restrained electric */
  --accent-dim: rgba(111, 211, 247, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --dur: .6s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(111, 211, 247, .28); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

main section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-inline-end: 16px;
  opacity: .8;
}
.display {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: .005em;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.headline {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  max-width: 21em;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-2);
  max-width: 58ch;
}
.section-lead {
  color: var(--text-2);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(16, 16, 19, .72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1400px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-bolt { width: auto; height: 26px; }
.brand-word { width: auto; height: 15px; opacity: .95; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.main-nav a {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 8px 2px;
  position: relative;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 100%; bottom: 2px;
  height: 1px; background: var(--accent);
  transition: inset-inline-end .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { inset-inline-end: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }

.lang-switch {
  display: flex; border: 1px solid var(--line-strong);
  border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  font-family: var(--font-head);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  padding: 7px 13px; color: var(--text-3);
  transition: background .25s, color .25s;
}
.lang-switch button.active { background: var(--text); color: var(--bg); }
.lang-switch button:not(.active):hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-bg img { object-fit: cover; object-position: 50% 58%; }
.js .hero-bg img { animation: kenburns 22s var(--ease) both alternate infinite; }
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.08) translateX(-1.5%); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,16,19,.55) 0%, rgba(16,16,19,.12) 34%, rgba(16,16,19,.22) 62%, var(--bg) 100%),
    radial-gradient(120% 90% at 50% 42%, transparent 40%, rgba(16,16,19,.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: var(--header-h);
}
.hero-bolt { height: clamp(40px, 6vw, 62px); width: auto; margin-bottom: 22px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.hero-word { height: clamp(40px, 7vw, 74px); width: auto; margin-bottom: 30px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.hero-tag {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
  margin-bottom: 14px;
}
.hero-sub {
  color: rgba(244,244,246,.85);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  max-width: 44ch;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero .btn-ghost {
  border-color: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.js .hero-bolt, .js .hero-word, .js .hero-tag, .js .hero-sub, .js .hero-cta {
  opacity: 0; transform: translateY(26px);
  animation: heroin 1s var(--ease) forwards;
}
.js .hero-word { animation-delay: .15s; }
.js .hero-tag  { animation-delay: .3s; }
.js .hero-sub  { animation-delay: .45s; }
.js .hero-cta  { animation-delay: .6s; }
@keyframes heroin { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 44px; height: 64px;
  display: flex; justify-content: center; align-items: flex-start;
}
.scroll-cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85));
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(84px, 11vw, 150px); position: relative; }

/* intro */
.intro { background: var(--bg); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.intro-side { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(20px, 2.5vw, 36px); }
.intro-side-item {
  color: var(--text-2);
  padding-block: 14px;
  font-size: 1.02rem;
}
.intro-side-item + .intro-side-item { border-top: 1px solid var(--line); }

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(22px, 3vw, 38px) 12px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: .5em;
  color: var(--text-3);
  margin-inline-start: 6px;
  letter-spacing: .08em;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 500;
}

/* band */
.band {
  position: relative;
  min-height: 72vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-block: clamp(70px, 9vw, 120px);
}
.band-bg, .band-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-bg img { object-fit: cover; object-position: center 40%; }
.band-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(16,16,19,.18) 26%, rgba(16,16,19,.28) 70%, var(--bg) 100%);
}
.band-content { position: relative; z-index: 2; }
.band-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.12;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}

/* features */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.chip {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 20px;
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), opacity .3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.feature-card img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  transition: transform .6s var(--ease);
}
.feature-card:hover img { transform: scale(1.045); }
.feature-card h3 {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 18px 20px 6px;
}
.feature-card h3:last-child { padding-bottom: 18px; }
.feature-note {
  color: var(--text-3);
  font-size: .82rem;
  letter-spacing: .06em;
  padding: 0 20px 18px;
}
.feature-card.hidden-cat { display: none; }

/* colors */
.colors { background: var(--bg-2); }
.config {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.config-stage {
  position: relative;
  aspect-ratio: 8 / 6.2;
  display: grid; place-items: center;
}
.config-glow {
  position: absolute; inset: 8% 4% 6% 4%;
  background:
    radial-gradient(58% 48% at 50% 62%, rgba(111,211,247,.10), transparent 70%),
    radial-gradient(70% 60% at 50% 60%, rgba(255,255,255,.05), transparent 72%);
  border-radius: 50%;
  filter: blur(2px);
}
.config-stage::after {
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: 9%;
  height: 22px; border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(0,0,0,.55), transparent 75%);
}
.config-car {
  grid-area: 1 / 1;
  width: min(78%, 470px);
  position: relative; z-index: 2;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.35));
}
.config-car.active { opacity: 1; transform: none; }

.config-label {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.optional-label { margin-top: 40px; }
.config-name {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 18px;
  min-height: 1.3em;
}
.swatch-row { display: flex; gap: 14px; }
.swatch {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px var(--bg-2), 0 2px 10px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--text); }

.ral-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 10px;
  max-width: 420px;
}
.ral-grid li {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: .68rem; letter-spacing: .08em;
  color: var(--text-3);
  font-family: var(--font-head);
}
.ral {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sw);
  background: linear-gradient(135deg, color-mix(in srgb, var(--sw) 84%, white 16%) 0%, var(--sw) 55%, color-mix(in srgb, var(--sw) 78%, black 22%) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.config-note {
  margin-top: 20px;
  color: var(--text-3);
  font-size: .85rem;
  font-style: italic;
}

/* specs */
.specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.specs-views {
  position: sticky; top: calc(var(--header-h) + 28px);
  display: grid; gap: 18px;
}
.specs-views figure {
  background: linear-gradient(180deg, #fdfdfd, #ececee);
  border-radius: var(--radius);
  padding: 26px 20px 16px;
  text-align: center;
}
.specs-views img { margin-inline: auto; max-height: 210px; width: auto; }
.specs-views figcaption {
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: #55555e;
  margin-top: 12px;
}
@media (max-height: 950px) {
  .specs-views img { max-height: 128px; }
  .specs-views figure { padding: 16px 14px 10px; }
}
.spec-group {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
  margin: 44px 0 6px;
}
.spec-group:first-child { margin-top: 0; }
.spec-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.spec-list dt { color: var(--text-3); font-weight: 300; }
.spec-list dd { font-weight: 400; }

/* why */
.why { overflow: hidden; }
.why-bg, .why-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.why-bg img { object-fit: cover; object-position: center 70%; opacity: .16; }
.why-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(16,16,19,.72) 40%, var(--bg) 100%);
}
.why .container { position: relative; z-index: 2; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: clamp(50px, 7vw, 80px);
}
.why-card {
  background: rgba(28, 28, 33, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.why-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.why-card svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.why-card p { color: var(--text-2); font-size: 1rem; }

.maint {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 28, 33, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: clamp(28px, 4vw, 44px);
}
.maint h3 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 26px;
}
.maint-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.maint-timeline::before {
  content: ""; position: absolute; top: 7px; left: 4%; right: 4%;
  height: 1px; background: var(--line-strong);
}
.maint-step { position: relative; padding-top: 26px; }
.maint-step::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.maint-km {
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .06em;
  display: block; margin-bottom: 4px;
}
.maint-step p { color: var(--text-2); font-size: .95rem; }
.maint-note { margin-top: 24px; color: var(--accent); font-size: .95rem; }

/* manufacturer */
.manufacturer { background: var(--bg-2); overflow: hidden; }
.mfr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.mfr-stats { display: grid; gap: 0; align-content: start; }
.mfr-stat { padding-block: 20px; border-bottom: 1px solid var(--line); }
.mfr-stat:first-child { border-top: 1px solid var(--line); }
.mfr-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-variant-numeric: tabular-nums;
}
.mfr-label {
  color: var(--text-3);
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}

.facility-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.facility-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.facility-card img {
  aspect-ratio: 16 / 10; object-fit: cover; width: 100%;
  transition: transform .5s var(--ease);
}
.facility-card:hover img { transform: scale(1.05); }
.facility-card figcaption {
  padding: 12px 14px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--text-2);
}

.marquee {
  margin-top: clamp(48px, 6vw, 72px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 168px; width: auto; border-radius: var(--radius-sm);
  object-fit: cover;
  margin-right: 14px; /* not gap: track must be exactly 2 periods for the -50% loop */
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
  grid-template-areas:
    "a a b b"
    "a a c d"
    "e f c d";
}
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; }
.g-d { grid-area: d; } .g-e { grid-area: e; } .g-f { grid-area: f; }
.g-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  padding: 0;
  display: block;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.35));
  opacity: 0; transition: opacity .4s var(--ease);
}
.g-item:hover img { transform: scale(1.04); }
.g-item:hover::after { opacity: 1; }

/* contact */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 26px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 18px;
}
.contact-card svg { width: 28px; height: 28px; color: var(--accent); grid-row: span 2; margin-top: 3px; }
.contact-card h3 {
  font-family: var(--font-head);
  font-weight: 500; font-size: 1.02rem;
  letter-spacing: .04em;
}
.contact-card p { color: var(--text-2); font-size: .97rem; }
.contact-card a { border-bottom: 1px solid var(--line-strong); transition: border-color .25s, color .25s; }
.contact-card a:hover { color: var(--text); border-color: var(--accent); }

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 3.4vw, 40px);
  display: grid; gap: 8px;
}
.contact-form label {
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
  margin-top: 14px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 13px 16px;
  transition: border-color .25s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 22px; justify-self: start; }
.form-note { color: var(--text-3); font-size: .82rem; margin-top: 8px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 64px);
}
.footer-brand img:first-child { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand img:nth-child(2) { height: 16px; width: auto; margin-bottom: 18px; opacity: .95; }
.footer-brand p { color: var(--text-3); font-size: .92rem; max-width: 34ch; }
.footer-nav { display: grid; gap: 12px; align-content: start; }
.footer-nav a {
  color: var(--text-2);
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s;
  width: fit-content;
}
.footer-nav a:hover { color: var(--text); }
.footer-meta p:first-child {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 18px;
}
.footer-fine { color: var(--text-3); font-size: .8rem; margin-top: 8px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 10, 12, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
  opacity: 0;
  transition: opacity .3s var(--ease);
  overscroll-behavior: contain;
  touch-action: none;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: 94vw; max-height: 90vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 1.05rem;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.lightbox-close:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }

/* ---------- reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .facility-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    top: var(--header-h); right: 0; bottom: 0;
    width: min(340px, 84vw);
    background: rgba(16,16,19,.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    padding: 36px 34px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden; /* keeps closed drawer out of tab order and a11y tree */
    transition: transform .4s var(--ease), visibility 0s .4s;
    margin-left: 0;
  }
  .main-nav.open {
    transform: none;
    visibility: visible;
    transition: transform .4s var(--ease);
  }
  body.nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { display: block; padding: 13px 0; font-size: .9rem; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }

  .intro-grid, .config, .specs-layout, .mfr-grid, .contact-grid { grid-template-columns: 1fr; }
  .specs-views { position: static; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .specs-views img { max-height: 120px; }
  .config-side { text-align: center; }
  .swatch-row, .ral-grid { justify-content: center; margin-inline: auto; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    grid-template-areas:
      "a a"
      "a a"
      "b c"
      "d c"
      "e f";
  }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(4)::before { display: block; } /* re-enable: col 2 of row 2 in the 2-col layout */
  .stat:nth-child(5)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .facility-row { grid-template-columns: 1fr; }
  .maint-timeline { grid-template-columns: 1fr; gap: 26px; }
  .maint-timeline::before { top: 8px; bottom: 8px; inset-inline-start: 7px; inset-inline-end: auto; width: 1px; height: auto; }
  .specs-views { grid-template-columns: 1fr; }
  .specs-views img { max-height: 200px; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .spec-list dd { color: var(--text); }
  .brand-word { display: none; }
  .hero-cta .btn { padding: 14px 26px; }
  .marquee-track img { height: 120px; }
}

/* ---------- Arabic (RTL) ---------- */
html[lang="ar"] {
  --font-head: "Tajawal", "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Tajawal", "Jost", "Segoe UI", sans-serif;
}
/* Arabic script is cursive: tracking breaks letter joining */
html[lang="ar"] .eyebrow,
html[lang="ar"] .hero-tag,
html[lang="ar"] .btn,
html[lang="ar"] .main-nav a,
html[lang="ar"] .chip,
html[lang="ar"] .stat-label,
html[lang="ar"] .config-label,
html[lang="ar"] .spec-group,
html[lang="ar"] .mfr-label,
html[lang="ar"] .footer-nav a,
html[lang="ar"] .footer-meta p:first-child,
html[lang="ar"] .contact-form label,
html[lang="ar"] .specs-views figcaption,
html[lang="ar"] .maint-km,
html[lang="ar"] .feature-note {
  letter-spacing: 0;
}
html[lang="ar"] body,
html[lang="ar"] .lead,
html[lang="ar"] .section-lead { line-height: 1.85; }
html[lang="ar"] .display { line-height: 1.3; }
html[lang="ar"] .headline { line-height: 1.4; }
html[lang="ar"] .band-title { line-height: 1.35; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .hero-bg img { animation: none; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-bolt, .js .hero-word, .js .hero-tag, .js .hero-sub, .js .hero-cta {
    opacity: 1; transform: none; animation: none;
  }
}
