/* ============================================================
   VOLTERIA — marketing site
   Static, self-hosted. Token system mirrors the Volteria EMS
   (source of truth: volteria/frontend/src/app/globals.css).
   Sections opt into a theme via .theme-dark / .theme-light —
   components read tokens and never know which theme they're in.
   ============================================================ */

/* ---------- Fonts (variable, latin subset, self-hosted) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", system-ui, "Segoe UI", -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Brand constants — identical in both themes */
  --brand: #6baf4f;                 /* Volteria Green */
  --brand-bright: #7fc262;
  --brand-ink: #0f1408;             /* text on green fills */
  --glow-green: 0 0 24px rgba(107, 175, 79, 0.28);
  --glow-green-sm: 0 0 12px rgba(107, 175, 79, 0.20);

  /* Energy-source palette (EMS chart tokens) */
  --c-solar: #eab308;
  --c-wind: #3fb6c9;
  --c-bess: #16a34a;
  --c-load: #3b82f6;
  --c-dg: #94a3b8;

  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --header-h: 4.25rem;
  --container: 72rem;
  --pad-inline: clamp(1.25rem, 4vw, 2rem);

  /* Type scale (fluid) */
  --text-hero: clamp(2.45rem, 4.6vw + 1rem, 4.3rem);
  --text-h2: clamp(1.75rem, 2.4vw + 0.85rem, 2.75rem);
  --text-h3: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  --text-body: clamp(1rem, 0.15vw + 0.95rem, 1.0625rem);
  --text-small: 0.875rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* expo-out */
}

/* Section themes — steel-blue tinted neutrals (hue 250, low chroma) */
.theme-dark {
  --background: #14161a;
  --background: oklch(0.19 0.008 250);
  --surface: #1c1f24;
  --surface: oklch(0.235 0.009 250);
  --surface-2: #23272d;
  --surface-2: oklch(0.275 0.01 250);
  --foreground: #e9ebee;
  --foreground: oklch(0.93 0.004 250);
  --muted-foreground: #9aa1ab;
  --muted-foreground: oklch(0.7 0.012 250);
  --faint-foreground: #6b727d;
  --faint-foreground: oklch(0.54 0.012 250);
  --border: rgba(233, 235, 238, 0.08);
  --border-strong: rgba(233, 235, 238, 0.16);
  --accent: #7fc262;              /* green tuned for AA on dark */
  --accent-dim: rgba(107, 175, 79, 0.14);
  color: var(--foreground);
  background-color: var(--background);
}
.theme-light {
  --background: #f5f6f8;
  --background: oklch(0.97 0.003 250);
  --surface: #fdfdfe;
  --surface: oklch(0.995 0.001 250);
  --surface-2: #eceef1;
  --surface-2: oklch(0.945 0.004 250);
  --foreground: #23262b;
  --foreground: oklch(0.26 0.008 250);
  --muted-foreground: #5b6170;
  --muted-foreground: oklch(0.5 0.015 250);
  --faint-foreground: #9096a2;
  --faint-foreground: oklch(0.68 0.012 250);
  --border: rgba(28, 32, 40, 0.1);
  --border-strong: rgba(28, 32, 40, 0.18);
  --accent: #43792f;              /* green tuned for AA on light */
  --accent-dim: rgba(107, 175, 79, 0.16);
  color: var(--foreground);
  background-color: var(--background);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  background-color: #14161a; /* header/hero ground — prevents white flash */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p {
  margin: 0;
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
::selection {
  background: rgba(107, 175, 79, 0.35);
}
:focus-visible {
  outline: 2px solid var(--accent, #6baf4f);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-300%);
}
.skip-link:focus-visible {
  transform: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section {
  padding-block: clamp(4.25rem, 9vw, 7.25rem);
}

/* ---------- Typography helpers ---------- */
.h2 {
  font-size: var(--text-h2);
  font-weight: 630;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lede {
  color: var(--muted-foreground);
  max-width: 38rem;
  text-wrap: pretty;
}

/* Section eyebrow — SCADA-tag style: green square + mono label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand);
  box-shadow: var(--glow-green-sm);
}
.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
    box-shadow 0.25s var(--ease-out), transform 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  flex: none;
}

.btn-brand {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-brand:hover {
  background: var(--brand-bright);
  box-shadow: var(--glow-green);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--foreground);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-green-sm);
}

.btn-quiet {
  color: var(--muted-foreground);
  background: transparent;
  min-height: 2.6rem;
  padding-inline: 0.9rem;
}
.btn-quiet:hover {
  color: var(--foreground);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
    backdrop-filter 0.3s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(20, 22, 26, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(233, 235, 238, 0.08);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.header-logo img {
  height: 1.7rem;
  width: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: auto;
}
.header-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 480;
  color: #b9bec6;
  text-decoration: none;
  transition: color 0.15s ease;
}
.header-nav a:not(.btn):hover {
  color: #ffffff;
}
.header-login {
  margin-left: 0.4rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(233, 235, 238, 0.16);
  border-radius: var(--radius-sm);
  color: #e9ebee;
}
.nav-toggle .bars {
  position: relative;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: background-color 0.15s ease;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--header-h) + 1.5rem) var(--pad-inline) 2rem;
  background: rgba(17, 19, 23, 0.97);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a:not(.btn) {
  padding: 0.85rem 0.25rem;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #e9ebee;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 235, 238, 0.07);
}
.mobile-menu .menu-cta {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}
/* layered glow + dot grid backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 30rem at 82% 8%, rgba(107, 175, 79, 0.13), transparent 60%),
    radial-gradient(40rem 26rem at 8% 96%, rgba(107, 175, 79, 0.07), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(233, 235, 238, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60rem 40rem at 70% 20%, black 30%, transparent 75%);
  mask-image: radial-gradient(60rem 40rem at 70% 20%, black 30%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1 .accent-line {
  color: var(--accent);
}
.hero .lede {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 0.3vw + 0.98rem, 1.15rem);
  max-width: 34rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.9rem;
  margin-top: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted-foreground);
}
.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}
.hero-proof b {
  font-weight: 550;
  color: var(--foreground);
}

/* One-line diagram */
.hero-diagram {
  min-width: 0;
}
.hero-diagram svg {
  width: 100%;
  height: auto;
}

/* Verticals strip — seam at the bottom of the dark block */
.verticals {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--border);
  padding-block: 1.4rem 1.5rem;
}
.verticals .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.6rem;
}
.verticals-label {
  font-size: 0.85rem;
  color: var(--faint-foreground);
  margin-right: 1rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.75rem;
  white-space: nowrap;
}
.chip-lead {
  color: var(--accent);
  border-color: rgba(107, 175, 79, 0.35);
  background: var(--accent-dim);
}

/* ---------- Solutions (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
}
.sol-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.sol-card:hover {
  border-color: rgba(107, 175, 79, 0.4);
  box-shadow: var(--glow-green-sm);
}
.sol-card .glyph {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent);
}
.sol-card .glyph svg {
  width: 100%;
  height: 100%;
}
.sol-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sol-card p {
  color: var(--muted-foreground);
  font-size: 0.96rem;
  max-width: 34rem;
}
.sol-spec {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--faint-foreground);
}
.sol-spec b {
  color: var(--accent);
  font-weight: 500;
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }

/* Featured card (Hybrid + EMS) — dark inset inside the light section */
.sol-featured {
  background: #1c1f24;
  border-color: rgba(107, 175, 79, 0.3);
  color: #e9ebee;
}
.sol-featured p {
  color: #9aa1ab;
}
.sol-featured .glyph {
  color: #7fc262;
}
.sol-featured .sol-spec {
  color: #6b727d;
}
.sol-featured .sol-spec b {
  color: #7fc262;
}
.sol-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: 3px;
  padding: 0.22rem 0.5rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.5rem);
  position: relative;
}
.steps::before {
  /* connective rail */
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0.5rem;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong) 60%, transparent);
}
.step {
  position: relative;
  padding-top: 2.6rem;
}
.step-no {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.1rem;
  padding-inline: 0.55rem;
  background: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step h3 {
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}
.terms-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}
.terms-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.terms-strip span::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Platform (dark showcase) ---------- */
.platform {
  position: relative;
  overflow: hidden;
}
.platform .container,
.platform .stats-strip {
  position: relative;
}

/* Ambient telemetry wall — ported from the EMS login's chart-recorder backdrop */
.telemetry-wall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2.5rem;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 70%, transparent 100%);
}
.wall-ch {
  flex: 0 0 auto;
  width: 100%;
}
.wall-ch svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wall-rule {
  stroke: rgba(233, 235, 238, 0.07);
  stroke-width: 1;
}
.wall-line {
  fill: none;
  stroke-width: 1.5;
}
.wall-scroll {
  animation: wall-drift linear infinite;
}
@keyframes wall-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-1600px); }
}
.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 26rem at 50% 0%, rgba(107, 175, 79, 0.09), transparent 65%);
  pointer-events: none;
}
.platform .section-head {
  position: relative;
  text-align: center;
  justify-items: center;
}
.platform .lede {
  margin-inline: auto;
}

/* Faux dashboard */
.dash {
  position: relative;
  max-width: 56rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  background: #191c21;
  border: 1px solid rgba(233, 235, 238, 0.1);
  border-radius: 14px;
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.75),
    var(--glow-green-sm);
  overflow: hidden;
}
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(233, 235, 238, 0.08);
  background: #1e2127;
}
.dash-titlebar .dots {
  display: flex;
  gap: 0.35rem;
}
.dash-titlebar .dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #33383f;
}
.dash-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa1ab;
}
.dash-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #7fc262;
}
.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6baf4f;
  box-shadow: 0 0 8px rgba(107, 175, 79, 0.9);
}
.dash-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1px;
  background: rgba(233, 235, 238, 0.07);
}
.dash-pane {
  background: #191c21;
  padding: 1.1rem 1.2rem;
  min-width: 0;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.kpi {
  border: 1px solid rgba(233, 235, 238, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #1c2025;
}
.kpi .kpi-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b727d;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.kpi .kpi-label i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  flex: none;
}
.kpi .kpi-value {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 550;
  color: #e9ebee;
  white-space: nowrap;
}
.kpi .kpi-value small {
  font-size: 0.68rem;
  font-weight: 400;
  color: #6b727d;
  margin-left: 0.2rem;
}
.dash-mimic svg {
  width: 100%;
  height: auto;
}
.dash-side-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b727d;
  margin-bottom: 0.7rem;
}
.sparkbars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 88px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(233, 235, 238, 0.1);
}
.sparkbars i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(107, 175, 79, 0.85), rgba(107, 175, 79, 0.35));
  min-height: 8%;
}
.sparkbars i.is-solar {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.85), rgba(234, 179, 8, 0.3));
}
.spark-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #565c66;
  margin-top: 0.45rem;
}
.dash-alarm {
  margin-top: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(107, 175, 79, 0.25);
  background: rgba(107, 175, 79, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7fc262;
}

/* Platform feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  position: relative;
}
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: rgba(28, 31, 36, 0.6);
}
.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.feature h3 svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
  flex: none;
}
.feature p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}
.platform-close {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
}
.platform-close p {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 550;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.platform-close p b {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Stats instrument strip ---------- */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(28, 31, 36, 0.45);
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--border);
  min-width: 0;
}
.stat:first-child {
  border-left: none;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--foreground);
  white-space: nowrap;
}
.stat-value .unit {
  font-size: 0.45em;
  font-weight: 450;
  color: var(--accent);
  margin-left: 0.15em;
}
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}
.stat-sub {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--faint-foreground);
}

/* ---------- Track record ---------- */
.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.4rem;
  align-items: stretch;
}
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  padding: 0.8rem 1.5rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.case-meta b {
  font-weight: 550;
  color: var(--foreground);
}
.case-meta .ok {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.case-meta .ok::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: var(--glow-green-sm);
}
.case-body {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: grid;
  gap: 1.1rem;
}
.case-body p {
  color: var(--muted-foreground);
  font-size: 0.97rem;
  max-width: 36rem;
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border-strong);
}
.case-metric .m-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 550;
  color: var(--foreground);
}
.case-metric .m-value span {
  font-size: 0.7em;
  color: var(--accent);
}
.case-metric .m-label {
  font-size: 0.8rem;
  color: var(--faint-foreground);
  margin-top: 0.2rem;
}
.record-side {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.record-side .blurb {
  border-left: 2px solid var(--brand);
  padding-left: 1.2rem;
  color: var(--muted-foreground);
  font-size: 0.97rem;
}
.record-side .blurb b {
  color: var(--foreground);
}
.next-card {
  flex: 1;
  text-decoration: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--muted-foreground);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.next-card:hover {
  border-color: rgba(107, 175, 79, 0.5);
  box-shadow: var(--glow-green-sm);
}
.next-card .mono-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.next-card h3 {
  color: var(--foreground);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.about-col h3 {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.about-col h3::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--brand);
  transform: translateY(-0.28rem);
}
.about-col p {
  color: var(--muted-foreground);
  font-size: 0.96rem;
}

/* ---------- Contact CTA band ---------- */
.contact-band {
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38rem 24rem at 85% 70%, rgba(107, 175, 79, 0.12), transparent 65%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.contact-alt {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted-foreground);
}
.contact-alt a {
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-alt a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.uae-map svg {
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 2.2rem;
}
.footer-brand img {
  height: 1.55rem;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  max-width: 22rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint-foreground);
  margin: 0 0 0.9rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--foreground);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--faint-foreground);
}
.footer-bottom .powered {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.footer-bottom .powered b {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Contact page ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45rem 24rem at 75% 0%, rgba(107, 175, 79, 0.1), transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 3.5vw + 0.8rem, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.page-hero .lede {
  margin-top: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.85rem;
  font-weight: 550;
}
.field label .req {
  color: var(--accent);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem; /* ≥16px — no iOS zoom */
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 8.5rem;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 175, 79, 0.2);
}
.form-actions {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.82rem;
  color: var(--faint-foreground);
}
.copy-panel {
  margin-top: 1.4rem;
  border: 1px solid rgba(107, 175, 79, 0.35);
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: none;
  gap: 0.7rem;
}
.copy-panel.show {
  display: grid;
}
.copy-panel p {
  font-size: 0.9rem;
  color: var(--foreground);
}
.copy-panel .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.copy-panel textarea {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  resize: vertical;
}

.rail {
  display: grid;
  gap: 1.1rem;
}
.rail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem 1.4rem;
}
.rail-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.rail-card h3 svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
  flex: none;
}
.rail-card p,
.rail-card a {
  font-size: 0.94rem;
  color: var(--muted-foreground);
}
.rail-card a {
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rail-card a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.rail-card .mono-line {
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.map-card {
  padding: 0;
  overflow: hidden;
}
.map-card .map-inner {
  background: #1c1f24;
  padding: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}
.map-card .map-inner svg {
  width: 100%;
  max-width: 17rem;
  height: auto;
}
.map-caption {
  padding: 0.9rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
}
.wa-btn {
  background: #22c05c;
  color: #0b1408;
}
.wa-btn:hover {
  background: #2bd66b;
  box-shadow: 0 0 20px rgba(34, 192, 92, 0.35);
}

/* ---------- SVG diagram text + shared utilities ---------- */
.section-divide {
  border-top: 1px solid var(--border);
}
svg .svg-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: var(--muted-foreground);
}
svg .svg-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 550;
  fill: var(--foreground);
}
svg .svg-value-lg {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 550;
  fill: var(--foreground);
}
svg .svg-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  fill: var(--accent);
}
svg .svg-faint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  fill: var(--faint-foreground);
}
svg .node-box {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1;
}
svg .node-box-load {
  fill: var(--surface-2);
  stroke: rgba(107, 175, 79, 0.55);
  stroke-width: 1.2;
}
svg .busbar {
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(107, 175, 79, 0.55));
}
svg .junction {
  fill: var(--brand);
}

/* ---------- Reveal animations (scoped to .js so no-JS users see everything) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

/* SVG flow animation — energy running through cables */
.flow {
  stroke-dasharray: 5 9;
  animation: dashflow 1.1s linear infinite;
}
.flow-slow {
  animation-duration: 1.7s;
}
@keyframes dashflow {
  to {
    stroke-dashoffset: -14;
  }
}
.pulse {
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Live diagram: comets, equipment, sim states ---------- */
.map-dot {
  filter: drop-shadow(0 0 5px rgba(107, 175, 79, 0.8));
}
.comet circle {
  pointer-events: none;
}
.comet.off {
  display: none;
}
.flow.off {
  animation-play-state: paused;
  opacity: 0.28;
}
.flow.rev {
  animation-direction: reverse;
}
.equip-img {
  filter: brightness(1.12) drop-shadow(0 4px 7px rgba(0, 0, 0, 0.45));
}
#sun, #moon {
  transition: opacity 1.4s ease;
}
.soc-seg {
  fill: rgba(233, 235, 238, 0.14);
  transition: fill 0.4s ease;
}
.soc-seg.on {
  fill: #6baf4f;
}
#rf-tag.curtailing rect {
  stroke: rgba(107, 175, 79, 0.95);
  fill: rgba(107, 175, 79, 0.2);
}
#rf-tag.curtailing text {
  fill: #a9df8e;
}
#rf-tag.curtailing {
  animation: pulse 1.1s ease-in-out infinite;
}
.sparkbars i {
  transition: opacity 0.5s ease, height 0.5s ease;
}
.sparkbars i.future {
  opacity: 0.16;
}
.sparkbars {
  position: relative;
}
.sparkbars i:hover {
  filter: brightness(1.45);
}

/* SVG text: clock, mini-mimic values + statuses */
svg .svg-clock {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0.08em;
  fill: var(--accent, #7fc262);
}
svg .svg-mm-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 550;
  fill: #e9ebee;
}
svg .svg-status {
  font-family: var(--font-mono);
  font-size: 8.6px;
  letter-spacing: 0.08em;
}
svg .svg-status.st-on {
  fill: #7fc262;
}
svg .svg-status.st-off {
  fill: #6b727d;
}
.glow-dot {
  filter: drop-shadow(0 0 4px rgba(107, 175, 79, 0.9));
}

/* Wind turbine rotor — spins only while generating */
#wind-rotor {
  transform-box: view-box;
  transform-origin: 208px 76px;
}
#wind-rotor.spin-1 { animation: rotor 3.4s linear infinite; }
#wind-rotor.spin-2 { animation: rotor 2s linear infinite; }
#wind-rotor.spin-3 { animation: rotor 1.1s linear infinite; }
@keyframes rotor {
  to { transform: rotate(360deg); }
}

/* Chart tooltips (solar bars + load profile) */
.spark-tip,
.profile-tip {
  position: absolute;
  top: -8px;
  transform: translate(-50%, -100%);
  background: #22262d;
  border: 1px solid rgba(107, 175, 79, 0.45);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #e9ebee;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.spark-tip.show,
.profile-tip.show {
  opacity: 1;
}

/* Crusher day-profile chart */
.profile-block {
  margin-top: 1.05rem;
}
.profile-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
}
.profile-head span {
  white-space: nowrap;
}
.profile-peak {
  color: #7fc262;
  letter-spacing: 0.06em;
}
.profile-wrap {
  position: relative;
  height: 96px;
  border-bottom: 1px solid rgba(233, 235, 238, 0.1);
  cursor: crosshair;
}
.profile-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Stats "+" prefix + unit breathing room */
.stat-value .unit-pre {
  margin-left: 0;
  margin-right: 0.12em;
}
.case-metric .m-value span {
  margin-left: 0.12em;
}

/* LIVE dot: glow + expanding ping ring */
@keyframes live-ping {
  0% {
    box-shadow: 0 0 8px rgba(107, 175, 79, 0.9), 0 0 0 0 rgba(107, 175, 79, 0.45);
  }
  70%, 100% {
    box-shadow: 0 0 8px rgba(107, 175, 79, 0.9), 0 0 0 8px rgba(107, 175, 79, 0);
  }
}
.live-dot {
  animation: live-ping 1.9s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ---------- Where We Deploy: segment slab (Ampd-style fused grid) ---------- */
.seg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 54rem;
  margin-inline: auto;
}
.seg-card {
  background: #17191e;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.75rem;
  transition: background-color 0.2s var(--ease-out);
}
.seg-card:hover {
  background: #1d2026;
}
.seg-scene {
  aspect-ratio: 2.7 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(62% 85% at 50% 46%, rgba(107, 175, 79, 0.08), transparent 78%);
}
.seg-scene svg {
  width: 58%;
  height: auto;
  max-height: 88%;
  transition: transform 0.22s var(--ease-out);
}
.seg-card:hover .seg-scene svg {
  transform: scale(1.04) translateY(-2px);
}
.seg-body {
  padding: 0 1rem;
  display: grid;
  gap: 0.15rem;
}
.seg-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.seg-card:hover .seg-title {
  color: var(--accent);
}
.seg-line {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}
.seg-cta {
  margin-top: 1.1rem;
  max-width: 54rem;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(28, 31, 36, 0.6);
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.seg-cta p {
  color: var(--muted-foreground);
  max-width: 34rem;
}
.seg-cta p b {
  color: var(--foreground);
}
.chip {
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}
a.chip:hover {
  border-color: rgba(107, 175, 79, 0.5);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .flow,
  .flow-slow,
  .pulse {
    animation: none;
  }
  .comet {
    display: none;
  }
  #wind-rotor.spin-1,
  #wind-rotor.spin-2,
  #wind-rotor.spin-3 {
    animation: none;
  }
  .live-dot {
    animation: none;
    box-shadow: 0 0 8px rgba(107, 175, 79, 0.9);
  }
  .wall-scroll {
    animation: none;
  }
  .site-header,
  .btn {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seg-card:last-child {
    grid-column: 1 / -1;
  }
  .span-7, .span-5 {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-diagram {
    order: 2;
    margin-top: 0.5rem;
  }

  .bento {
    gap: 0.9rem;
  }
  .span-7, .span-5, .span-12 {
    grid-column: span 12;
  }

  .seg-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.9rem;
  }
  .steps::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 1.02rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--border-strong) 70%, transparent);
  }
  .step {
    padding-top: 0;
    padding-left: 3.4rem;
  }

  .dash-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .kpi {
    padding: 0.5rem 0.55rem;
  }
  .kpi .kpi-value {
    font-size: 0.92rem;
  }

  .stats-strip .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-top: none;
  }
  .stat:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .record-grid,
  .contact-grid,
  .contact-layout,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uae-map {
    display: none; /* decorative only on the band — full map lives on contact page */
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .telemetry-wall {
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 26%, black 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 26%, black 70%, transparent 100%);
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* one-viewport compaction for the segments section */
#deploy.section {
  padding-block: clamp(3rem, 5vw, 3.75rem);
}
#deploy .section-head {
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}
