/* ==========================================================================
   GESS — Ganesh Energy Storage Solutions
   Design system v3 · June 2026
   Author: GESS web build
   Sections: 1 Tokens · 2 Base · 3 Type · 4 Layout · 5 Controls · 6 Header
             7 Hero · 8 Blocks · 9 Data · 10 Forms · 11 Footer · 12 Motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Ink & surfaces */
  --ink:          #0B1C2C;
  --ink-2:        #16293B;
  --ink-3:        #22384C;
  --slate:        #45586A;
  --muted:        #5C6B78; /* 5.4:1 on white, 4.9:1 on --paper-2 (WCAG AA) */
  --line:         #E2E6E2;
  --line-strong:  #CFD6D0;
  --paper:        #FFFFFF;
  --paper-2:      #F7F8F5;
  --paper-3:      #EFF2EE;
  --surface:      #FFFFFF;
  --header-bg:    rgba(255, 255, 255, .94);

  /* Dark surfaces: sections, CTA band, footer */
  --dark:          #0B1C2C;
  --dark-deep:     #081724;
  --on-dark:       #FFFFFF;
  --on-dark-soft:  #B9C6D0;
  --on-dark-muted: #8FA0AD;
  --on-dark-faint: #93A5B3;
  --hairline-dark: rgba(255, 255, 255, .16);
  --hairline-dark-strong: rgba(255, 255, 255, .24);
  --on-ink:        #FFFFFF;
  --callout-ink:   #23412A;

  /* Brand green (naturals, mid-tone — no forest green) */
  --green:        #3E9B45;
  --green-deep:   #2C7436;
  --green-bright: #59B45F;
  --green-tint:   #EAF4E8;
  --green-line:   #C9E2C6;

  /* Accent for data / status */
  --amber-tint:   #FBF3E2;
  --amber-ink:    #8A5A12;
  --blue-tint:    #EAF0F7;
  --blue-ink:     #2A4E74;

  /* Type */
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(11, 28, 44, .06);
  --shadow-md: 0 2px 4px rgba(11, 28, 44, .04), 0 12px 32px rgba(11, 28, 44, .07);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--green-tint); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 3. TYPE ------------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); letter-spacing: -.032em; line-height: 1.03; font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.9rem); letter-spacing: -.028em; line-height: 1.08; }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.02rem; line-height: 1.35; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.62;
  color: var(--slate);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--green-bright); }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.strong { font-weight: 600; }
.text-slate { color: var(--slate); }
.text-muted { color: var(--muted); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 940px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }
.section--paper { background: var(--paper-2); }
.section--lines { border-top: 1px solid var(--line); }
.section--dark {
  background: var(--dark);
  color: var(--on-dark-soft);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lede, .section--dark p { color: var(--on-dark-soft); }
.section--dark .eyebrow { color: var(--green-bright); }
.section--dark .muted { color: var(--on-dark-muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head .lede { margin-bottom: 6px; }
.section-head--stack { grid-template-columns: 1fr; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }

/* Grid and flex children default to min-width:auto, which lets wide tables blow the layout out. */
.grid > *, .split > *, .system > *, .section-head > *, .cta-band__grid > *, .page-hero__grid > * { min-width: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .rule { background: var(--hairline-dark); }

/* 5. CONTROLS -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .002em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn svg { flex: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn--primary:hover { --btn-bg: #06131F; --btn-bd: #06131F; }

.btn--green { --btn-bg: var(--green-deep); --btn-bd: var(--green-deep); }
.btn--green:hover { --btn-bg: #245F2D; --btn-bd: #245F2D; }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--secondary:hover { --btn-bd: var(--ink); background: var(--paper-2); }

.btn--on-dark { --btn-bg: #fff; --btn-fg: #0B1C2C; --btn-bd: #fff; }
.btn--on-dark:hover { --btn-bg: #E9EEF1; --btn-bd: #E9EEF1; }
.btn--on-dark-ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(255,255,255,.34); }
.btn--on-dark-ghost:hover { --btn-bd: #fff; background: rgba(255,255,255,.07); }

.btn--sm { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--green-deep); border-color: var(--green-line); }
.link-arrow:hover svg { transform: translateX(3px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.tag--green { background: var(--green-tint); border-color: var(--green-line); color: var(--green-deep); }
.tag--amber { background: var(--amber-tint); border-color: #EBD9B4; color: var(--amber-ink); }
.tag--blue  { background: var(--blue-tint);  border-color: #CBDCEB; color: var(--blue-ink); }
.tag--dark  { border-color: rgba(255,255,255,.26); color: #C8D4DD; }

/* 6. HEADER ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(11, 28, 44, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
  height: 38px;
  width: auto;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.6px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.nav__caret { width: 9px; height: 6px; opacity: .55; }

.nav__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 330px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__item--has-drop:hover .nav__drop,
.nav__item--has-drop:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__drop a {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 5px;
  transition: background .14s var(--ease);
}
.nav__drop a:hover { background: var(--paper-2); }
.nav__drop b { display: block; font-size: 14.5px; font-weight: 600; }
.nav__drop span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav__drop .drop__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-deep);
  padding-top: 3px;
  flex: none;
}
.nav__drop-foot {
  margin: 6px 4px 2px;
  padding: 10px 12px 6px;
  border-top: 1px solid var(--line);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate);
  padding-right: 4px;
}
.header-phone:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .16s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter) 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav__group { padding-block: 6px; }
.mobile-nav__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 6px;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}
.mobile-nav a small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.mobile-nav .btn { margin-top: 20px; }

/* 7. HERO ------------------------------------------------------------------ */
.hero { padding-block: clamp(40px, 5vw, 76px) clamp(48px, 6vw, 84px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  justify-content: start;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 560px;
}
.hero__fact { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.hero__fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__fact dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.hero__fact dd { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

.plate {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 30px);
}
.plate::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 54px;
  height: 2px;
  background: var(--green);
}
.plate__media { position: relative; }
.plate__media img { width: 100%; mix-blend-mode: multiply; }
.plate__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate__cap b { color: var(--ink); font-weight: 500; }

.plate__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.plate__specs dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.plate__specs dd { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(28px, 3vw, 44px);
}
.spec-strip__item {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line);
  padding-left: 24px;
}
.spec-strip__item:first-child { padding-left: 0; }
.spec-strip__item:last-child { border-right: 0; }
.spec-strip dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.spec-strip dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.spec-strip dd span:not(.num) { font-size: .5em; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.spec-strip__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .01em;
}

/* Inner page hero */
.page-hero {
  padding-block: clamp(36px, 4vw, 60px) clamp(44px, 5vw, 68px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
}
.page-hero h1 { margin-bottom: 20px; max-width: 24ch; }
.page-hero__meta { display: grid; gap: 14px; padding-left: 26px; border-left: 1px solid var(--line-strong); }
.page-hero__meta div { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.page-hero__meta b { display: block; color: var(--ink); font-family: var(--sans); font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }

/* Jump nav */
.jump {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump__inner { display: flex; gap: 26px; align-items: center; height: 56px; min-width: max-content; }
.jump a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.jump a:hover { color: var(--ink); border-color: var(--green); }

/* 8. BLOCKS ---------------------------------------------------------------- */
/* Numbered capability cards */
.cap {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cap:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cap__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.cap h3 { margin-bottom: 10px; }
.cap p { font-size: 15px; color: var(--slate); line-height: 1.6; margin-bottom: 18px; }
.cap__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.cap__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.cap__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}
.cap__foot { margin-top: auto; }

/* Architecture stack */
.stack { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stack li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 122px;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background .16s var(--ease);
}
.stack li:hover { background: var(--paper-2); }
.stack__lvl { font-family: var(--mono); font-size: 11px; color: var(--green-deep); letter-spacing: .08em; }
.stack__name { font-size: 16px; font-weight: 600; }
.stack__name small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.stack__spec { font-family: var(--mono); font-size: 12px; color: var(--slate); text-align: right; }

.flow-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.flow-figure figcaption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-svg { width: 100%; height: auto; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline-dark);
}
.steps li {
  position: relative;
  padding: 26px 18px 0 0;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
}
.steps__num { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--on-dark-muted); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 15.5px; margin-bottom: 7px; }
.steps p { font-size: 13.5px; line-height: 1.55; color: var(--on-dark-soft); margin: 0; }

/* Alternate: light steps */
.steps--light { border-top-color: var(--line); }
.steps--light li::before { background: var(--green); }
.steps--light .steps__num { color: var(--muted); }
.steps--light p { color: var(--slate); }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stats > div {
  padding: 0 26px 0 24px;
  border-left: 1px solid var(--line);
}
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { order: 2; font-size: 13px; color: var(--slate); line-height: 1.45; margin-top: 10px; }
.stats .num {
  display: block;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats .num small { font-size: .46em; font-weight: 500; letter-spacing: -.01em; margin-left: 4px; color: var(--slate); }

/* Split feature */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.feature-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.feature-list svg { margin-top: 2px; color: var(--green-deep); }
.feature-list b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.feature-list span { font-size: 14.5px; color: var(--slate); }

/* Product / system block */
.system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 68px);
  border-top: 1px solid var(--line);
  align-items: stretch;
}
.system:first-of-type { border-top: 0; padding-top: 0; }
.system__body { display: flex; flex-direction: column; }
.system__foot { padding-top: 34px; }
.system__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.system__head h2 { margin: 0; }
.system__lede { color: var(--slate); font-size: 16px; margin-top: 14px; }

.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
}
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 400; color: var(--slate); width: 46%; }
.specs td { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* Certification cards */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cert {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cert:first-child { padding-left: 0; }
.cert:last-child { border-right: 0; }
.cert__code { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--green-deep); display: block; margin-bottom: 12px; }
.cert h3 { font-size: 16px; margin-bottom: 8px; }
.cert p { font-size: 13.5px; color: var(--slate); line-height: 1.55; margin-bottom: 14px; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.person { border-top: 2px solid var(--ink); padding-top: 22px; }
.person__mono {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.person h3 { font-size: 18px; margin-bottom: 3px; }
.person__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.person p { font-size: 14.5px; color: var(--slate); }

/* Timeline / journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.journey > div { position: relative; padding: 28px 22px 0 0; }
.journey > div::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.journey > div:first-child::before { background: var(--green); }
.journey__year { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--green-deep); display: block; margin-bottom: 12px; }
.journey h3 { font-size: 16px; margin-bottom: 8px; }
.journey p { font-size: 13.5px; color: var(--slate); line-height: 1.55; }

/* Application tiles */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app-tile { background: var(--surface); padding: 28px 24px 32px; }
.app-tile__icon { color: var(--green-deep); margin-bottom: 16px; }
.app-tile h3 { font-size: 15.5px; margin-bottom: 7px; }
.app-tile p { font-size: 13.5px; color: var(--slate); line-height: 1.55; margin: 0; }

/* Callout */
.callout {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--callout-ink);
}
.callout::before { content: ""; background: var(--green); border-radius: 2px; }
.callout--neutral { background: var(--paper-2); border-color: var(--line); color: var(--slate); }
.callout--neutral::before { background: var(--line-strong); }

/* CTA band */
.cta-band { background: var(--dark); color: var(--on-dark); padding-block: clamp(56px, 7vw, 92px); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: var(--on-dark-soft); font-size: 16.5px; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.6px solid var(--slate);
  border-bottom: 1.6px solid var(--slate);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq__body { padding: 0 0 22px; max-width: 72ch; color: var(--slate); font-size: 15px; }

/* 9. DATA ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.data-table td:first-child { font-weight: 500; color: var(--ink); }
.data-table tbody tr:hover { background: var(--paper-2); }
.data-table .num { font-variant-numeric: tabular-nums; }

.data-table--matrix th:not(:first-child) { width: 88px; text-align: center; }
.data-table--matrix td:not(:first-child) { text-align: center; }
.data-table--matrix td:nth-child(n+2) { color: var(--green-deep); font-weight: 600; }

.section--dark .data-table th,
.section--dark .data-table td { border-bottom-color: var(--hairline-dark); color: var(--on-dark-faint); }
.section--dark .data-table thead th { color: var(--on-dark-muted); border-bottom-color: var(--hairline-dark-strong); }
.section--dark .data-table td:first-child { color: #fff; }
.section--dark .data-table tbody tr:hover { background: rgba(255, 255, 255, .04); }

/* 10. FORMS ---------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2345586A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B6BFB8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(62, 155, 69, .14);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #B4453C; }
.check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start; font-size: 13.5px; color: var(--slate); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-deep); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form__note { font-size: 12.5px; color: var(--muted); max-width: 40ch; }
.form__status { font-size: 14px; padding: 14px 16px; border-radius: 4px; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: var(--green-tint); border: 1px solid var(--green-line); color: var(--callout-ink); }
.form__status--err { background: #FDF0EF; border: 1px solid #F0CFCB; color: #8C352D; }

.contact-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; }
.contact-list svg { color: var(--green-deep); margin-top: 3px; }
.contact-list b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.contact-list span { display: block; font-size: 15px; line-height: 1.5; }
.contact-list a { font-size: 15px; line-height: 1.5; }
.contact-list a:hover { color: var(--green-deep); }

/* 11. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--dark-deep); color: var(--on-dark-faint); padding-top: clamp(48px, 6vw, 76px); font-size: 14.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .72fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand__mark { background: #fff; border-radius: 6px; padding: 3px; height: 40px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: var(--on-dark-muted); }
.footer-brand p { color: var(--on-dark-faint); font-size: 14px; max-width: 38ch; line-height: 1.6; }
.footer-col h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--on-dark-faint); transition: color .16s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; color: var(--on-dark-faint); line-height: 1.7; }
.footer-cert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-cert span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  color: var(--on-dark-faint);
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  padding: 5px 9px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: var(--on-dark-muted);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a:hover { color: #fff; }

/* Fact columns (label + statement) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}
.fact__value { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.section--dark .fact { border-top-color: var(--hairline-dark); }
.section--dark .fact__label { color: var(--on-dark-muted); }
.section--dark .fact__value { color: #DDE5EA; }

.footer-cert .is-label {
  border: 0;
  padding-left: 0;
  padding-right: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Live 3D container block — shown in the hero only when a 3D theme is active.
   Six faces in CSS 3D space, slowly rotating, floating, pausable on hover.
   -------------------------------------------------------------------------- */
.cube-stage {
  display: block;
  position: relative;
  isolation: isolate;
  height: 300px;
  margin: 6px 0 4px;
  perspective: 1100px;
  perspective-origin: 50% 45%;
}

.hero .plate__media picture { display: none; }

.cube {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: cube-spin 26s linear infinite, cube-float 7s ease-in-out infinite;
}
.cube-stage:hover .cube { animation-play-state: paused; }

.cube__face {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgba(11, 28, 44, .22);
  box-sizing: border-box;
  backface-visibility: hidden;
}
.cube__face--front,
.cube__face--back { width: 300px; height: 130px; margin: -65px 0 0 -150px; }
.cube__face--right,
.cube__face--left { width: 120px; height: 130px; margin: -65px 0 0 -60px; }
.cube__face--top,
.cube__face--bottom { width: 300px; height: 120px; margin: -60px 0 0 -150px; }

.cube__face--front {
  transform: translateZ(60px);
  background: linear-gradient(170deg, #FEFEFE 0%, #EDF1F4 52%, #DCE3E8 100%);
  overflow: hidden;
}
.cube__face--back  { transform: rotateY(180deg) translateZ(60px); background: #D6DFE4; }
.cube__face--right { transform: rotateY(90deg) translateZ(150px); background: #C2CDD4; }
.cube__face--left  { transform: rotateY(-90deg) translateZ(150px); background: #DCE4E9; }
.cube__face--top   { transform: rotateX(90deg) translateZ(65px); background: linear-gradient(180deg, #FBFDFE, #E7EDF1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.cube__face--bottom{ transform: rotateX(-90deg) translateZ(65px); background: #B4C0C8; }

/* Brand band and label on the front face */
.cube__face--front::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -6px;
  bottom: -6px;
  width: 52px;
  background: var(--green);
  transform: skewX(-15deg);
  opacity: .95;
}
.cube__brand {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #0B1C2C;
}
.cube__brand small {
  display: block;
  font-size: 7px;
  letter-spacing: .14em;
  color: #5C6B78;
  margin-top: 3px;
}
/* Vent detail on the right face */
.cube__face--right::after {
  content: "";
  position: absolute;
  inset: 26px 18px;
  background: repeating-linear-gradient(180deg, rgba(11, 28, 44, .22) 0 2px, transparent 2px 7px);
}

.cube__shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 6px;
  width: 300px;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--depth, rgba(0, 0, 0, .3)) 0%, transparent 70%);
  filter: blur(3px);
  opacity: .9;
}

@keyframes cube-spin {
  from { transform: rotateX(-15deg) rotateY(0deg); }
  to   { transform: rotateX(-15deg) rotateY(360deg); }
}
@keyframes cube-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

/* Solar-charging scene (Fig. 07) */
.scene-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(10px, 1.8vw, 22px);
  overflow: hidden;
}
.scene { display: block; width: 100%; height: auto; }
.scene-ground-line { stroke: var(--line-strong); stroke-width: 1; opacity: .7; fill: none; }
.box-shadow { fill: currentColor; opacity: .05; }
.sun-core { fill: url(#sunG); }
.sun-glow { fill: url(#sunGlowG); animation: sun-pulse 6s ease-in-out infinite; }
.sun-rays path { stroke: #F59E0B; stroke-width: 3; stroke-linecap: round; opacity: .5; fill: none; }
.beams path { fill: url(#beamG); }
.pv-row > path:not(.pv-cell) { fill: url(#panelG); stroke: #0B2033; stroke-width: .8; }
.pv-cell { stroke: rgba(255, 255, 255, .2); stroke-width: .7; fill: none; }
.pv-rail { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
.flow-line { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 7; fill: none; opacity: .6; }
.flow-dot { fill: var(--green); }
.box-front { fill: url(#boxG); stroke: #B9C4CC; stroke-width: .8; }
.box-top { fill: url(#boxTopG); stroke: #B9C4CC; stroke-width: .8; }
.box-side { fill: #CDD6DC; stroke: #B9C4CC; stroke-width: .8; }
.box-detail { stroke: #AEBAC3; stroke-width: .9; fill: none; }
.box-stripe { fill: var(--green); opacity: .92; }
.box--back { opacity: .82; }
.charge-bar { fill: var(--green); animation: charge-pulse 2.6s ease-in-out infinite; }
.charge-bar:nth-of-type(2) { animation-delay: .18s; }
.charge-bar:nth-of-type(3) { animation-delay: .36s; }
.charge-bar:nth-of-type(4) { animation-delay: .54s; }
.box-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  fill: #0B1C2C;
}
.pylon path { stroke: var(--slate); stroke-width: 1.2; fill: none; }
.pylon circle { fill: var(--slate); }
.scene-labels text {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  fill: var(--muted);
}
.scene-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scene-cap b { color: var(--ink); font-weight: 500; }

@keyframes sun-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes charge-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

@media (max-width: 640px) {
  .scene-labels { display: none; }
}


@media (max-width: 900px) {
  .cube-stage { height: 250px; }
  .cube { transform: scale(.82); }
}
@media (max-width: 520px) {
  .cube-stage { height: 210px; }
  .cube { transform: scale(.66); }
}

@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-15deg) rotateY(-28deg); }
}

/* Theme picker (header + mobile drawer) */
.theme-menu { position: relative; }
.theme-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.theme-menu > summary::-webkit-details-marker { display: none; }
.theme-menu > summary:hover { border-color: var(--ink-3); }
.theme-menu[open] > summary { border-color: var(--ink); }
.theme-menu__sw {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--green); flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset;
}
.theme-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  width: 296px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.theme-menu__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}
.theme-menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.theme-menu__grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.theme-menu__grid a:hover { background: var(--paper-2); }
.theme-menu__grid a.is-active { background: var(--green-tint); color: var(--ink); font-weight: 600; }
.theme-menu__grid i {
  display: block;
  width: 14px; height: 14px; border-radius: 3px; flex: none;
  border: 1px solid rgba(0, 0, 0, .14);
}

.mobile-themes { margin-top: 22px; }
.mobile-themes .theme-menu__grid { grid-template-columns: 1fr 1fr; }
/* higher specificity than .mobile-nav a:not(.btn), which sets display:block */
.mobile-nav .mobile-themes a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  padding: 9px 8px;
  font-size: 15px;
}
.mobile-nav .mobile-themes a i { flex: none; }

@media (max-width: 900px) {
  .theme-menu { display: none; }
}
@media (min-width: 901px) {
  .mobile-themes { display: none; }
}

/* Theme preview badge — review build only, safe to delete for production */
.theme-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.theme-badge b { color: var(--green-bright); font-weight: 500; }
.theme-badge a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .8;
}
.theme-badge a:hover { opacity: 1; }

@media (max-width: 640px) {
  .theme-badge { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; gap: 8px; }
}


/* 12. MOTION --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.no-js .reveal { opacity: 1; transform: none; }

/* 13. RESPONSIVE ----------------------------------------------------------- */
/* The header picker takes space: drop the phone number earlier. */
@media (max-width: 1400px) {
  .header-phone { display: none; }
}
@media (max-width: 1280px) {
  .theme-menu > summary { padding: 9px 10px; }
  .theme-menu__label { font-size: 13px; }
}

@media (max-width: 1080px) {
  .header-phone { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__facts { max-width: none; }
  .plate { max-width: 620px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert:nth-child(2) { border-right: 0; }
  .cert:nth-child(3), .cert:nth-child(4) { border-bottom: 0; }
  .cert:nth-child(odd) { padding-left: 0; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 12px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section-head, .page-hero__grid, .split, .split--wide-left,
  .system, .cta-band__grid, .grid--aside { grid-template-columns: 1fr; }
  .page-hero__meta { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); padding-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-band__actions { justify-content: flex-start; }
  .people { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip__item:nth-child(2) { border-right: 0; }
  .spec-strip__item:nth-child(3) { padding-left: 0; }
  .spec-strip__item:nth-child(1), .spec-strip__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .spec-strip__item { padding-block: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .system__specs { order: 2; }
  .stack li { grid-template-columns: 60px minmax(0, 1fr); }
  .stack__spec { grid-column: 2; text-align: left; color: var(--muted); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.05rem, 8.4vw, 2.9rem); }
  .header-inner { height: 66px; }
  :root { --header-h: 66px; }
  .brand__mark { height: 32px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 7.6px; letter-spacing: .1em; }
  .hero { padding-top: 28px; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__fact { border-right: 0; padding-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .hero__fact:last-child { border-bottom: 0; padding-bottom: 0; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; padding-left: 0; }
  .steps, .journey { grid-template-columns: 1fr; }
  .apps, .certs { grid-template-columns: 1fr; }
  .cert { border-right: 0; padding-inline: 0; }
  .cert:nth-child(3) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero__meta { grid-template-columns: 1fr; gap: 12px; }
  .btn { width: 100%; }
  .btn--inline { width: auto; }
  .cta-band__actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  .site-header, .jump, .mobile-nav, .cta-band, .site-footer { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --------------------------------------------------------------------------
   Mobile refinements (<=640px)
   - 16px inputs: iOS Safari zooms the page when a focused field is smaller
   - larger touch targets for links that are inline on desktop
   - the smallest mono labels lifted to a legible size
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  .link-arrow { padding: 11px 0; }
  .footer-col a { display: inline-block; padding: 9px 0; }
  .footer-bottom ul a { display: inline-block; padding: 9px 0; }
  .theme-menu__grid a { padding: 12px 8px; }
  .mobile-nav .mobile-themes a { min-height: 44px; }
  .check input { width: 22px; height: 22px; }
  .check { gap: 12px; }
  .jump a { padding-block: 14px; }

  .brand__sub { font-size: 8.6px; }
  .eyebrow { font-size: 12px; }
  .spec-strip dt,
  .spec-strip__note,
  .fact__label,
  .plate__cap,
  .scene-cap,
  .plate__specs dt { font-size: 11px; }
}

/* Guard against accidental sideways scroll on touch devices */
body { overflow-x: clip; }
