/* ==========================================================================
   Energixia Group — site styles (light, corporate)
   Follows the existing energixia.net look: white pages, black type and buttons,
   Montserrat in tracked capitals, thin vertical rails beside section intros,
   rounded imagery, and occasional black bands for contrast.
   ========================================================================== */

/* ---------- Fonts (Montserrat variable, self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */
/* Layout: centred tracked headlines, split rows (copy | media), rail-marked intros */
:root {
  color-scheme: light;

  --paper: #ffffff;       /* page */
  --mist: #f2f4f7;        /* light band, cool like the pale skies in the imagery */
  --mist-2: #e8ecf1;
  --ink: #000000;         /* headings, buttons, black bands */
  --text: #262626;        /* running text */
  --muted: #6b6b6b;       /* secondary text, 5.3:1 on white */
  --line: #e3e3e3;
  --line-strong: #c4c4c4;
  --on-dark: #ffffff;
  --on-dark-muted: #b8b8b8;
  --line-dark: rgba(255, 255, 255, 0.28);

  /* data colours: used in diagrams and simulations only */
  --sun: #f0a020;
  --ion: #0fa3b5;
  --ion-ink: #0b7d8b;
  --grid: #56647c;
  --fault: #e0393e;
  --fault-ink: #c0262c;

  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-display: clamp(1.9rem, 1.05rem + 3.3vw, 4rem);
  --t-h2: clamp(1.45rem, 1.1rem + 1.6vw, 2.5rem);
  --t-h3: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  --t-lead: clamp(1.08rem, 0.98rem + 0.5vw, 1.45rem);
  --t-body: 0.97rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  --track-display: 0.08em;
  --track-label: 0.2em;

  --container: 1200px;
  --gutter: max(20px, min(5vw, 48px));
  --section: clamp(80px, 9vw, 140px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
@media (max-width: 900px) { :root { --header-h: 68px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band-dark :focus-visible, .why-card :focus-visible { outline-color: var(--on-dark); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.band-mist { background: var(--mist); padding-block: var(--section); }
.band-dark { background: var(--ink); color: var(--on-dark-muted); padding-block: var(--section); }
.band-dark h2, .band-dark h3, .band-dark .lead, .band-dark .eyebrow, .band-dark strong { color: var(--on-dark); }
.section + .section { padding-top: 0; }
.split { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}
.split > * { min-width: 0; }

/* ---------- Type ---------- */
.display, h1 {
  color: var(--ink);
  font-size: var(--t-display);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.35;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2, h2 {
  color: var(--ink);
  font-size: var(--t-h2);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: 1.4;
  text-transform: uppercase;
  text-wrap: balance;
}
h3 {
  color: var(--ink);
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.eyebrow {
  color: var(--ink);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  line-height: 1.6;
  text-transform: uppercase;
}
.lead {
  color: var(--ink);
  font-size: var(--t-lead);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-wrap: pretty;
}
.prose p { max-width: 64ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.num { font-variant-numeric: tabular-nums; }
.text-link {
  color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; transition: opacity 0.2s var(--ease);
}
.text-link:hover { opacity: 0.6; }
.band-dark .text-link { color: var(--on-dark); }

/* Rail: the thin vertical line beside section intros, with a solid mark next to the key line */
.rail { position: relative; padding-left: clamp(22px, 3vw, 34px); display: grid; gap: 18px; align-content: start; }
.rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.rail-mark { position: relative; }
.rail-mark::before {
  content: ""; position: absolute; top: 0.2em; bottom: 0.2em; width: 2px;
  left: calc(-1 * clamp(22px, 3vw, 34px) - 0.5px); background: var(--ink);
}
.band-dark .rail::before, .why-card .rail::before { background: var(--line-dark); }
.band-dark .rail-mark::before, .why-card .rail-mark::before { background: var(--on-dark); }
.rail .lead { max-width: 30ch; }
.rail .prose p { max-width: 46ch; }
.intro { margin-bottom: clamp(48px, 6vw, 88px); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.875rem; letter-spacing: 0.05em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); }
.btn-line { padding: 0; gap: 0; background: transparent; color: var(--ink); border-color: var(--ink); overflow: hidden; }
.btn-line .btn-text { padding: 0 18px 0 20px; }
.btn-line .btn-arrow { align-self: stretch; width: 46px; display: grid; place-items: center; border-left: 1px solid currentColor; }
.btn-line .btn-arrow svg { width: 15px; height: 15px; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.band-dark .btn-line, .why-card .btn-line { color: var(--on-dark); border-color: var(--on-dark); }
.band-dark .btn-line:hover, .why-card .btn-line:hover { background: var(--on-dark); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 0.82rem; }
.btn svg { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0); transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-solid, .site-header.is-open, .site-header.is-static {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.35em; margin-right: -0.35em; line-height: 1; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.94rem; letter-spacing: 0.02em; padding: 6px 0; transition: color 0.2s var(--ease); }
.nav a:not(.btn):hover { color: var(--muted); }
.nav a[aria-current="page"]:not(.btn) { color: var(--muted); }
.nav-toggle {
  display: none; align-items: center; gap: 10px; background: transparent; border: 0; padding: 10px 2px; cursor: pointer;
  color: var(--ink); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-toggle-icon { width: 22px; height: 12px; position: relative; }
.nav-toggle-icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5px; }
.nav-toggle-icon span:nth-child(3) { top: 10px; }
.is-open .nav-toggle-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper);
  padding: 24px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav li a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 1.35rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.mobile-nav li a[aria-current="page"] { color: var(--muted); }
.mobile-contact { margin-top: 32px; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.mobile-contact a { color: var(--ink); }
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .logo { font-size: 1.08rem; letter-spacing: 0.3em; margin-right: -0.3em; }
}

/* ---------- Home hero (light simulation) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(720px, min(100svh, 1000px));
  background: #e9eef5;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #d6e2f2 0%, #eef3f9 52%, #e1e6ed 53%, #cfd6e0 100%);
}
.hero-copy { padding-top: calc(var(--header-h) + clamp(24px, 4.5vh, 64px)); padding-bottom: clamp(20px, 3vh, 36px); text-align: center; display: grid; justify-items: center; }
.hero-copy .display { max-width: 1040px; text-wrap: balance; }
.hero-lead {
  margin-top: clamp(14px, 2vh, 22px); max-width: 52rem; color: var(--ink); text-wrap: balance;
  font-size: clamp(1rem, 0.94rem + 0.32vw, 1.2rem); line-height: 1.7; letter-spacing: 0.03em;
}
.hero-copy .actions { margin-top: clamp(20px, 3vh, 30px); }
.hero-stage { flex: 1 1 auto; min-height: 300px; }
@media (min-width: 1000px) { .hero-stage { min-height: 330px; } }
.hero-controls {
  margin-bottom: clamp(14px, 2.4vh, 24px);
  display: grid; align-items: center; gap: 14px 22px;
  grid-template-columns: auto minmax(180px, 1.15fr) repeat(4, minmax(0, 1fr)) auto;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(0, 0, 0, 0.07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(30, 40, 60, 0.08);
}
.hero-controls > * { min-width: 0; }
.ctl-play {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.ctl-play:hover { background: var(--ink); color: var(--paper); }
.ctl-play svg { width: 15px; height: 15px; }
.ctl-play .i-play { display: none; }
.ctl-play.is-paused .i-play { display: block; }
.ctl-play.is-paused .i-pause { display: none; }
.ctl-time { display: grid; gap: 2px; }
.ctl-label, .ctl-readout dt { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4; }
.ctl-label b { color: var(--ink); font-weight: 600; letter-spacing: 0.06em; }
.ctl-readout { display: contents; }
.ctl-readout > div { display: grid; gap: 1px; padding-left: 16px; border-left: 1px solid var(--line); }
.ctl-readout dd { color: var(--ink); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-readout dd small { display: block; color: var(--muted); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.02em; }
.ctl-readout [data-tone="solar"] { color: #b86e00; }
.ctl-readout [data-tone="ion"] { color: var(--ion-ink); }
.ctl-readout [data-tone="fault"] { color: var(--fault-ink); }
.ctl-blackout[aria-pressed="true"] { background: var(--fault-ink); border-color: var(--fault-ink); color: var(--paper); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #b9c2d0 0%, #b9c2d0 25%, var(--sun) 40%, #f7c873 52%, var(--sun) 66%, #b9c2d0 80%, #b9c2d0 100%); border-radius: 2px; }
.range::-moz-range-track { height: 2px; background: linear-gradient(90deg, #b9c2d0 0%, #b9c2d0 25%, var(--sun) 40%, #f7c873 52%, var(--sun) 66%, #b9c2d0 80%, #b9c2d0 100%); border-radius: 2px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 1199px) {
  .hero-controls { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ctl-readout { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .ctl-readout > div:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-stage { min-height: 0; height: clamp(210px, 60vw, 320px); flex: none; }
  .hero-controls { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px; }
  .ctl-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .ctl-readout > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ctl-blackout { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; text-align: center;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(214, 226, 242, 0.75), transparent 70%),
    radial-gradient(ellipse 60% 60% at 85% 10%, rgba(232, 238, 246, 0.9), transparent 70%),
    linear-gradient(180deg, #f3f6fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .display { margin-inline: auto; max-width: 1040px; text-wrap: balance; }
.page-lead { margin: clamp(16px, 2.4vw, 26px) auto 0; max-width: 52ch; color: var(--ink); font-size: var(--t-lead); line-height: 1.65; letter-spacing: 0.04em; }
.page-hero .actions { margin-top: 30px; justify-content: center; }
.subnav { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, background-color 0.2s;
}
.subnav a:hover { border-color: var(--ink); background: var(--paper); }
.subnav .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Vision (black band with live lines) ---------- */
.vision { padding: 0; display: grid; }
@media (min-width: 900px) { .vision { grid-template-columns: 1fr 1fr; min-height: 640px; } }
.vision-copy { display: flex; align-items: center; padding-block: var(--section); }
.vision-copy .inner {
  width: 100%; max-width: calc(var(--container) / 2);
  margin-left: auto; padding-right: clamp(24px, 4vw, 64px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}
@media (max-width: 899px) { .vision-copy .inner { max-width: none; padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); } }
.vision-copy .lead { color: var(--on-dark); max-width: 26ch; }
.vision-copy .prose p { color: var(--on-dark-muted); }
.vision-art { position: relative; min-height: 320px; background: #050505; }
.vision-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .vision-art { min-height: 0; height: clamp(240px, 60vw, 360px); } }

/* ---------- Service rows (copy | media, alternating) ---------- */
.rows { display: grid; gap: clamp(80px, 9vw, 140px); }
.row { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) {
  .row { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); }
  .row--flip { grid-template-columns: 7fr 5fr; }
  .row--flip .row-copy { order: 2; }
}
.row > * { min-width: 0; }
@media (min-width: 900px) {
  .row--stretch { align-items: stretch; }
  .row--stretch .row-media, .row--stretch .row-media picture { display: block; height: 100%; }
  .row--stretch .row-media .media-cover { height: 100%; aspect-ratio: auto; }
}
.row-copy { display: grid; gap: 22px; justify-items: start; }
.row-copy p { max-width: 46ch; }
.row-media { position: relative; }
.row-media img { width: 100%; border-radius: var(--radius); }
.row-media .media-cover { aspect-ratio: 5 / 4; object-fit: cover; }
.row-media figcaption { margin-top: 12px; color: var(--muted); font-size: var(--t-label); letter-spacing: 0.08em; }
.visual { width: 100%; aspect-ratio: 4 / 3; }
.visual svg { width: 100%; height: 100%; overflow: visible; }

/* OS dashboard visual */
.osv .tick { stroke: #c3c9d2; stroke-width: 1.4; }
.osv .tick.major { stroke: #8c95a3; stroke-width: 2; }
.osv .track { fill: none; stroke: #edf0f4; stroke-width: 14; }
.osv .soc-arc { fill: none; stroke: url(#socGrad); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
.osv .lbl { fill: var(--muted); font: 500 11px var(--font); letter-spacing: 0.18em; text-transform: uppercase; }
.osv .big { fill: var(--ink); font: 300 56px var(--font); letter-spacing: 0.02em; }
.osv .state { fill: var(--ink); font: 500 11px var(--font); letter-spacing: 0.16em; }
.osv .chip { fill: none; stroke: var(--ink); stroke-width: 1; }
.osv .chip-text { fill: var(--ink); font: 600 9.5px var(--font); letter-spacing: 0.16em; }
.osv .panel { fill: var(--paper); stroke: #c9ced6; stroke-width: 1.5; }
.osv .clock { fill: var(--ink); font: 400 26px var(--font); letter-spacing: 0.04em; }
.osv .axis { stroke: #e3e6eb; stroke-width: 1; }
.osv .sun-area { fill: url(#sunGrad); }
.osv .sun-line { fill: none; stroke: var(--sun); stroke-width: 2; }
.osv .price-line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 4; }
.osv .now { stroke: var(--ink); stroke-width: 1; }
.osv .now-dot { fill: var(--ink); }
.osv .mini { fill: var(--muted); font: 500 9px var(--font); letter-spacing: 0.14em; }

/* Second-life cells visual */
.cellv .tray { fill: var(--mist); stroke: #c9ced6; stroke-width: 1.5; }
.cellv .can { fill: var(--paper); stroke: #b8c0cc; stroke-width: 1.2; }
.cellv .core { fill: #dfe4ea; transition: fill 0.35s var(--ease); }
.cellv .cap { fill: var(--paper); stroke: #c9ced6; stroke-width: 1; }
.cellv .g-a .core { fill: var(--ion); }
.cellv .g-b .core { fill: var(--sun); }
.cellv .g-c .core { fill: #e9858c; }
.cellv .scan { stroke: var(--ink); stroke-width: 1.5; opacity: 0; }
.cellv .legend text { fill: var(--ink); font: 500 10.5px var(--font); letter-spacing: 0.14em; }
/* the visuals scale down on phones, so their small labels get bigger */
@media (max-width: 640px) {
  .osv .lbl { font-size: 13px; }
  .osv .state { font-size: 12.5px; letter-spacing: 0.12em; }
  .osv .mini { font-size: 11.5px; letter-spacing: 0.1em; }
  .osv .chip-text { font-size: 11px; letter-spacing: 0.12em; }
  .cellv .legend text { font-size: 15px; letter-spacing: 0.1em; }
  .cellv .legend circle { r: 7.5px; }
}

/* ---------- Why Energixia (photo with black card) ---------- */
.why { position: relative; isolation: isolate; padding-block: clamp(64px, 8vw, 120px); }
.why-bg { position: absolute; inset: 0; z-index: -1; }
.why-bg picture { display: block; height: 100%; }
.why-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.why-card {
  background: var(--ink); color: var(--on-dark-muted); border-radius: var(--radius);
  max-width: 520px; padding: clamp(32px, 4vw, 52px);
}
.why-card .lead, .why-card .eyebrow, .why-card h3 { color: var(--on-dark); }
.why-list { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; gap: 18px; }
.why-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.why-list svg { width: 26px; height: 26px; color: var(--on-dark); margin-top: 2px; }
.why-list h3 { font-size: 0.95rem; letter-spacing: 0.06em; }
.why-list p { font-size: var(--t-small); line-height: 1.7; }
@media (max-width: 700px) {
  .why { padding: 0; }
  .why-bg { position: relative; height: 240px; }
  .why .container { padding-left: 0; padding-right: 0; }
  .why-card { border-radius: 0; max-width: none; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
}

/* ---------- Stats and figures ---------- */
.stats { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat-figure { color: var(--ink); font-size: clamp(2.8rem, 1.9rem + 3.6vw, 5rem); font-weight: 300; letter-spacing: 0.03em; line-height: 1.05; }
.stat-rule, .figure-rule { position: relative; height: 1px; background: var(--line-strong); margin: 18px 0 16px; }
.stat-rule::before, .figure-rule::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 22px; background: var(--ink); }
.stat p { max-width: 36ch; color: var(--ink); }
.stat cite { display: block; margin-top: 10px; font-style: normal; color: var(--muted); font-size: var(--t-label); letter-spacing: 0.04em; line-height: 1.6; }
.stat cite a { color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure-num { color: var(--ink); font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.3rem); font-weight: 300; letter-spacing: 0.04em; line-height: 1.1; }
.figure .figure-rule { max-width: 170px; }
.figure-label { color: var(--ink); font-size: var(--t-label); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; max-width: 22ch; }

/* ---------- Partners ---------- */
.partner-groups { display: grid; gap: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { .partner-groups { grid-template-columns: 1fr 2fr; } }
.partner-group h3 { margin-bottom: 14px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 900px) { .partner-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.partner-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.partner-name { color: var(--ink); font-size: 1.02rem; font-weight: 500; letter-spacing: 0.04em; }
.partner-role { color: var(--muted); font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Founder ---------- */
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); background: var(--mist); }
.portrait figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.portrait figcaption strong { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; }
.portrait figcaption span { color: var(--muted); font-size: var(--t-small); }
@media (min-width: 900px) { .portrait { max-width: 520px; justify-self: end; width: 100%; } }

/* ---------- Careers (black band, card slider) ---------- */
.careers-grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 900px) { .careers-grid { grid-template-columns: 5fr 6fr; align-items: center; } }
.careers-grid > * { min-width: 0; }
.slides {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.job-card {
  scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px); display: grid; gap: 16px; align-content: start; min-height: 330px;
}
.job-card h3 { color: var(--on-dark); font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.job-card .loc { color: var(--on-dark-muted); font-size: var(--t-label); letter-spacing: 0.08em; }
.job-card p { font-size: var(--t-small); line-height: 1.75; }
.job-card .btn { justify-self: start; margin-top: 8px; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.slider-dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slider-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 0.2s; }
.slider-dot[aria-current="true"]::before { background: var(--on-dark); }

/* Careers page: accordion */
.jobs { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; padding: 26px 0; }
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { grid-column: 1; grid-row: 1; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.job-meta { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--t-small); }
.job-toggle { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: var(--radius-sm); display: grid; place-items: center; }
.job-toggle svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.job[open] .job-toggle svg { transform: rotate(45deg); }
.job-body { padding: 0 0 32px; display: grid; gap: 24px; }
@media (min-width: 900px) { .job-body { grid-template-columns: 1fr 1fr; gap: 40px; } .job-summary, .job-body .actions { grid-column: 1 / -1; } }
.job-body h4 { color: var(--ink); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.job-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

/* ---------- Points (icon list) ---------- */
.points { display: grid; gap: 0 clamp(28px, 4vw, 64px); }
@media (min-width: 760px) { .points { grid-template-columns: 1fr 1fr; } }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.point svg { width: 32px; height: 32px; color: var(--ink); grid-row: span 2; margin-top: 2px; }
.point h3 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.point p { max-width: 46ch; }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; gap: 4px 40px; padding: 0 0 36px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--ink); }
.timeline li.is-now::before { background: var(--ink); }
.timeline li.is-next::before { border-style: dashed; }
.timeline time { color: var(--ink); font-size: 1.5rem; font-weight: 300; letter-spacing: 0.06em; line-height: 1.3; }
.timeline p { max-width: 54ch; }
@media (min-width: 760px) { .timeline li { grid-template-columns: 120px 1fr; } }

/* ---------- Notice / panels ---------- */
.notice { background: var(--mist); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; justify-items: start; }
.notice .h2 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem); }
.notice p { max-width: 64ch; }
.notice.is-dark { background: var(--ink); color: var(--on-dark-muted); }
.notice.is-dark .h2, .notice.is-dark .eyebrow { color: var(--on-dark); }
.capabilities { display: grid; gap: 0 clamp(28px, 4vw, 56px); }
@media (min-width: 760px) { .capabilities { grid-template-columns: 1fr 1fr; } }
.capability { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.capability h3 { display: flex; align-items: center; gap: 12px; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.capability h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--tone, var(--ink)); flex: none; }
.capability .tag { color: var(--ion-ink); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Technology visuals ---------- */
.viz { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 30px); }
.band-mist .viz { border-color: transparent; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03); }
.viz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.viz-title { color: var(--ink); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.viz-note { color: var(--muted); font-size: var(--t-label); letter-spacing: 0.03em; line-height: 1.6; margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: var(--t-label); list-style: none; margin: 0; padding: 0; }
.legend i { display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: 3px; }
.legend i.sq { width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; }
.toggle { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.toggle button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle button[aria-pressed="true"].is-fault { background: var(--fault-ink); }

/* Single-line diagram */
.sld svg { width: 100%; height: auto; overflow: visible; }
.sld .wire { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.sld .flow { fill: none; stroke-width: 3; stroke-dasharray: 4 12; stroke-linecap: round; }
.sld .flow.solar { stroke: var(--sun); }
.sld .flow.ion { stroke: var(--ion); }
.sld .box { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.4; }
.sld .lbl { fill: var(--ink); font: 600 12.5px var(--font); letter-spacing: 0.04em; }
.sld .sub { fill: var(--muted); font: 500 10.5px var(--font); letter-spacing: 0.02em; }
.sld .bus { stroke: var(--ink); stroke-width: 4; stroke-linecap: square; }
.sld .node { fill: var(--ink); }
.sld .breaker-arm { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transition: transform 0.4s var(--ease); transform-box: fill-box; transform-origin: 0% 50%; }
.sld[data-mode="island"] .breaker-arm { transform: rotate(-32deg); stroke: var(--fault-ink); }
.sld[data-mode="island"] .grid-side { opacity: 0.35; }
.sld .state-island { opacity: 0; transition: opacity 0.3s; }
.sld[data-mode="island"] .state-island { opacity: 1; }
.sld[data-mode="island"] .state-grid { opacity: 0; }
.sld .state-grid { transition: opacity 0.3s; }
@media (prefers-reduced-motion: no-preference) {
  .sld .flow { animation: flow 1.1s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -16; } }
.sld-hint { display: none; }
@media (max-width: 700px) {
  .sld-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .sld-scroll svg { min-width: 680px; }
  .sld-hint { display: block; color: var(--muted); font-size: var(--t-label); margin-top: 6px; }
}

.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: minmax(140px, 0.6fr) 1.4fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec strong { color: var(--ink); font-weight: 500; font-size: var(--t-small); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 520px) { .spec li { grid-template-columns: 1fr; gap: 4px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
@media (min-width: 900px) { .steps.cols-4 { grid-template-columns: repeat(4, 1fr); column-gap: 28px; } .steps.cols-3 { grid-template-columns: repeat(3, 1fr); column-gap: 28px; } }
.steps li { counter-increment: step; padding: 22px 0; border-top: 1px solid var(--line-strong); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.16em; }
.steps h3 { font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }
.steps p { font-size: var(--t-small); line-height: 1.75; max-width: 36ch; }

/* Energixia OS chart */
.os-chart { position: relative; }
.os-chart svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.os-chart .grid line { stroke: #ececec; }
.os-chart .axis text { fill: var(--muted); font: 500 11px var(--font); }
.os-chart .price { fill: none; stroke: var(--ink); stroke-width: 2; }
.os-chart .price-area { fill: url(#priceFill); }
.os-chart .bar-charge { fill: var(--sun); }
.os-chart .bar-discharge { fill: var(--ion); }
.os-chart .soc { fill: none; stroke: var(--ion-ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.os-chart .cursor line { stroke: var(--ink); stroke-width: 1; opacity: 0.5; }
.os-tip {
  position: absolute; pointer-events: none; min-width: 176px; padding: 10px 12px; border-radius: 10px;
  background: var(--paper); color: var(--text); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 30, 50, 0.12);
  font-size: var(--t-label); line-height: 1.6; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s;
}
.os-tip.is-on { opacity: 1; transform: none; }
.os-tip b { color: var(--ink); font-weight: 600; display: block; letter-spacing: 0.06em; }
.os-tip .t-charge { color: #b86e00; } .os-tip .t-discharge { color: var(--ion-ink); }
@media (max-width: 700px) { .os-chart .axis text { font-size: 22px; } }

/* Second-life grading demo */
.cellgrid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; }
@media (max-width: 900px) { .cellgrid { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; } }
@media (max-width: 520px) { .cellgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.cell {
  aspect-ratio: 0.72; position: relative; border-radius: 4px; background: var(--mist); border: 1px solid var(--mist-2);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* the bar inside each module shows its measured health */
.cell::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 10%; height: var(--fill, 0%); border-radius: 2px; background: var(--line-strong); transition: height 0.5s var(--ease); }
.cell.is-scan { background: #dfe5ee; border-color: #b9c3d1; }
.cell.g-a { background: #e4f5f7; border-color: #a6dbe1; } .cell.g-a::after { background: var(--ion); }
.cell.g-b { background: #fdf2de; border-color: #f2d199; } .cell.g-b::after { background: var(--sun); }
.cell.g-c { background: #fcebec; border-color: #f0bcc0; } .cell.g-c::after { background: #e9858c; }
.grades { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grade { border-top: 2px solid var(--tone); padding-top: 10px; }
.grade b { color: var(--ink); display: block; font-weight: 300; font-size: 1.8rem; line-height: 1.1; letter-spacing: 0.04em; }
.grade span { font-size: var(--t-label); color: var(--muted); line-height: 1.5; display: block; }
.grade.a { --tone: var(--ion); } .grade.b { --tone: var(--sun); } .grade.c { --tone: #e9858c; }
.recovered { margin-top: 14px; color: var(--muted); font-size: var(--t-small); }
.recovered b { color: var(--ink); font-weight: 600; }

/* Laser glass */
.glass-canvas { width: 100%; height: clamp(240px, 30vw, 330px); border-radius: 10px; background: #eef3f9; }
.glass-ctl { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; color: var(--muted); font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; }
.meter { margin-top: 12px; display: grid; gap: 8px; }
.meter-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; font-size: var(--t-label); color: var(--muted); }
.meter-bar { height: 6px; border-radius: 3px; background: var(--mist-2); position: relative; overflow: hidden; }
.meter-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--sun); transition: width 0.25s var(--ease); }
.meter-bar.reflect span { background: var(--grid); }

.research { display: grid; }
.research article { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.research article:last-child { border-bottom: 1px solid var(--line); }
.research h3 { font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); }
.checks svg { width: 20px; height: 20px; color: var(--ink); margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta { background: var(--mist); padding-block: clamp(80px, 9vw, 130px); text-align: center; }
.cta .h2 { max-width: 22ch; margin-inline: auto; }
.cta p { margin: 18px auto 0; max-width: 54ch; color: var(--ink); }
.cta .actions { margin-top: 30px; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.field label .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0.02em; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: #8f8f8f; }
.input:hover { border-color: #9a9a9a; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { min-height: 170px; resize: vertical; }
.form-note { font-size: var(--t-label); color: var(--muted); }
.form-status { font-size: var(--t-small); min-height: 1.5em; }
.form-status.is-ok { color: var(--ion-ink); }
.form-status.is-error { color: var(--fault-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list span { color: var(--muted); font-size: var(--t-label); letter-spacing: 0.16em; text-transform: uppercase; }
.contact-list a, .contact-list address { color: var(--ink); font-style: normal; font-size: 1.02rem; letter-spacing: 0.03em; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .split--contact { grid-template-columns: 7fr 5fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(64px, 7vw, 96px); padding-bottom: 28px; font-size: var(--t-small); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr 0.8fr 1.3fr 1.5fr; gap: 48px; } }
.footer-brand p { margin-top: 18px; max-width: 32ch; color: var(--muted); }
.site-footer h2 { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.2em; color: var(--ink); margin-bottom: 16px; line-height: 1.6; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-contact a { color: var(--ink); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { display: grid; gap: 8px; font-style: normal; color: var(--ink); }
.subscribe { display: grid; gap: 12px; }
.subscribe p { color: var(--muted); }
.subscribe-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.subscribe .input { min-height: 46px; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; color: var(--muted); font-size: var(--t-label);
}
.footer-bottom .acks { display: grid; gap: 4px; }
.funding img { width: clamp(240px, 26vw, 330px); height: auto; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
.social:hover { border-color: var(--ink); }
.social svg { width: 16px; height: 16px; }

/* ---------- Language switch ---------- */
.nav a.lang, .mobile-nav a.lang {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; transition: border-color 0.2s var(--ease);
}
.nav a.lang:hover, .mobile-nav a.lang:hover { border-color: var(--ink); color: var(--ink); }
.mobile-nav a.lang { justify-self: start; margin-top: 8px; letter-spacing: 0.08em; }

/* ---------- Site jobs (home) ---------- */
.site-jobs { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 14px; }
.site-jobs li { display: grid; grid-template-columns: 10px 1fr; column-gap: 14px; row-gap: 2px; align-items: baseline; }
.site-jobs i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--ink)); }
.site-jobs strong { color: var(--ink); font-weight: 500; font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-jobs span { grid-column: 2; font-size: var(--t-small); line-height: 1.7; }

/* ---------- Storage duration map ---------- */
.dmap-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
@media (min-width: 640px) { .dmap-grid { grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr); column-gap: 18px; row-gap: 16px; align-items: center; } }
.dmap-gutter { display: none; }
@media (min-width: 640px) { .dmap-gutter { display: block; } }
.dmap-zones { position: relative; height: 30px; margin-bottom: 4px; }
.dmap-zones span {
  position: absolute; left: var(--a); width: calc(var(--b) - var(--a)); bottom: 0; padding: 0 6px 7px;
  border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
}
.dmap-zones span::before, .dmap-zones span::after { content: ""; position: absolute; bottom: -4px; width: 1px; height: 8px; background: var(--ink); }
.dmap-zones span::before { left: 0; }
.dmap-zones span::after { right: 0; }
@media (max-width: 639px) { .dmap-zones, .dmap-gutter.z { display: none; } }
.dmap-name { color: var(--ink); font-size: var(--t-small); line-height: 1.4; letter-spacing: 0.02em; margin-top: 12px; }
@media (min-width: 640px) { .dmap-name { margin-top: 0; text-align: right; } }
.dmap-track {
  position: relative; height: 12px; border-radius: 6px;
  background:
    linear-gradient(var(--paper), var(--paper)) 33.3% 0 / 1px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 53.1% 0 / 1px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 72.8% 0 / 1px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 88.2% 0 / 1px 100% no-repeat,
    var(--mist-2);
}
.dmap-track i { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); min-width: 12px; border-radius: 6px; background: var(--ion); }
.dmap-track i.is-new { background: repeating-linear-gradient(135deg, var(--ion) 0 6px, #46bccb 6px 9px); }
.dmap-axis { position: relative; height: 24px; margin-top: 2px; }
.dmap-axis span { position: absolute; left: var(--x); top: 4px; transform: translateX(-50%); color: var(--muted); font-size: 0.7rem; letter-spacing: 0.04em; white-space: nowrap; }
.dmap-axis span:first-child { transform: none; }
.dmap-axis span.wk { transform: translateX(-100%); }
@media (max-width: 639px) { .dmap-axis .wk { display: none; } }
.dmap-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--muted); font-size: var(--t-label); list-style: none; padding: 0; }
.dmap-key i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; background: var(--ion); margin-right: 8px; vertical-align: 0; }
.dmap-key i.is-new { background: repeating-linear-gradient(135deg, var(--ion) 0 6px, #46bccb 6px 9px); }
.visual.dmapv { aspect-ratio: auto; display: grid; align-content: center; }

/* ---------- Capabilities: 3 columns, tags ---------- */
@media (min-width: 1000px) { .capabilities.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.capabilities.cols-1 { grid-template-columns: 1fr; }

/* ---------- Grants and programmes ---------- */
.grants { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(24px, 3vw, 40px); }
@media (min-width: 640px) { .grants { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grants { grid-template-columns: repeat(4, 1fr); } }
.grant { padding: 22px 0 28px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.grant .eyebrow { margin: 0; }
.grant h3 { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.grant p { font-size: var(--t-small); line-height: 1.75; max-width: 34ch; }

/* ---------- Ukrainian page: scene banner ---------- */
.ua-scene { margin-top: clamp(36px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; background: #e9eef5; }
.ua-scene img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 640px) { .ua-scene img { aspect-ratio: 4 / 3; } }

/* ---------- Partner profile ---------- */
.spec a { color: var(--ink); }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 56px; }
.lost { min-height: 100svh; display: grid; align-content: center; text-align: center; padding-top: var(--header-h); }
.lost .code { color: var(--line-strong); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 200; letter-spacing: 0.1em; line-height: 1; }
.lost .lead { margin-inline: auto; }
.lost .actions { justify-content: center; }

/* Without JavaScript the simulation controls do nothing, so hide them */
html:not(.js) .hero-controls, html:not(.js) [data-run], html:not(.js) .glass-ctl, html:not(.js) .slider-nav { display: none; }
/* …and show the graded battery module straight away */
html:not(.js) .cellv [data-grade="a"] .core { fill: var(--ion); }
html:not(.js) .cellv [data-grade="b"] .core { fill: var(--sun); }
html:not(.js) .cellv [data-grade="c"] .core { fill: #e9858c; }
@media (prefers-reduced-motion: reduce) { .cellv .core { transition: none; } }

@media print {
  .site-header, .mobile-nav, .hero-canvas, .hero-controls, .vision-art { display: none !important; }
}
