/* ============================================================
   Bright Spark Electrical - demo site
   Concept: the page as an electrical schematic.
   Busbars, wire-traces, junction nodes, current pulses,
   reference designators, engineering title-block footer.
   ============================================================ */

:root {
  --ink:      #0E0D09;
  --ink-2:    #14130D;
  --ink-3:    #1C1A12;
  --ink-card: #1A1810;
  --cream:    #F2EDDF;
  --paper:    #FBF8EE;

  --spark:    #FFB300;
  --spark-hi: #FFC73A;
  --spark-lo: #E59A00;

  --txt:      #ECE7D6;   /* light text on dark   */
  --txt-d:    #1A1810;   /* dark text on cream   */
  --mut:      #8E8872;   /* muted on dark        */
  --mut-2:    #5E5A4A;
  --mut-l:    #6B6553;   /* muted on cream       */

  --trace:    rgba(255, 179, 0, 0.34);
  --trace-d:  rgba(255, 179, 0, 0.16);
  --line-d:   rgba(236, 231, 214, 0.10);
  --line-l:   #DED7C2;

  --f-disp: "Big Shoulders Display", sans-serif;
  --f-body: "Hanken Grotesk", sans-serif;
  --f-mono: "IBM Plex Mono", monospace;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--txt);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--spark); color: var(--ink); }

/* ---- atmosphere layers ---- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blueprint {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(236,231,214,0.07) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 50%, transparent 100%);
}

/* ============================================================
   RAILS - page-edge bus + charge gauge
   ============================================================ */
.rail {
  position: fixed; top: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center;
  width: 60px; padding: 18px 0; pointer-events: none;
}
.rail-left  { left: 0; }
.rail-right { right: 0; top: 96px; }

.rail-cap {
  font-family: var(--f-mono); color: var(--spark-lo); font-size: 0.8rem;
}
.rail-wire {
  flex: 1; width: 2px; margin: 14px 0; position: relative;
  background: linear-gradient(var(--trace-d), var(--trace), var(--trace-d));
  overflow: hidden;
}
.rail-pulse {
  position: absolute; left: -2px; width: 6px; height: 60px;
  background: linear-gradient(var(--spark-hi), transparent);
  filter: blur(1px);
  animation: railflow 4.5s linear infinite;
}
@keyframes railflow {
  from { top: -60px; }  to { top: 100%; }
}
.rail-label {
  writing-mode: vertical-rl; font-family: var(--f-mono);
  font-size: 0.6rem; letter-spacing: 0.22em; color: var(--mut-2);
  margin: 14px 0;
}

/* right gauge */
.rail-pct {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  color: var(--spark); letter-spacing: 0.05em;
}
.gauge {
  flex: 1; width: 8px; margin: 12px 0; position: relative;
  border: 1px solid var(--trace-d); border-radius: 6px;
  background: rgba(236,231,214,0.04); overflow: hidden;
  display: flex; align-items: flex-end;
}
.gauge-fill {
  width: 100%; height: 0%;
  background: linear-gradient(var(--spark-hi), var(--spark-lo));
  box-shadow: 0 0 14px rgba(255,179,0,0.6);
  transition: height 0.15s linear;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; z-index: 1; }

.sec-title {
  font-family: var(--f-disp); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 0.9;
  letter-spacing: 0.005em; color: var(--txt);
  margin: 20px 0 50px;
}

/* reference designator block */
.ref {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 0.74rem;
}
.ref-node {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--spark); background: var(--ink);
  box-shadow: 0 0 10px rgba(255,179,0,0.5); flex-shrink: 0;
}
.ref-id { color: var(--spark); font-weight: 600; letter-spacing: 0.08em; }
.ref-line { width: clamp(40px, 8vw, 110px); height: 1px; background: var(--trace); }
.ref-name {
  color: var(--mut); text-transform: uppercase; letter-spacing: 0.22em;
}
.ref--dark .ref-node { background: var(--paper); }
.ref--dark .ref-name { color: var(--mut-l); }

/* crosshair marks */
.xhair {
  position: absolute; width: 18px; height: 18px; z-index: 2;
}
.xhair::before, .xhair::after {
  content: ""; position: absolute; background: var(--trace);
}
.xhair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.xhair::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.xh-tl { top: 26px; left: 26px; }
.xh-tr { top: 26px; right: 26px; }
.xh-br { bottom: 26px; right: 26px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.02em; padding: 15px 24px; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 4px;
  transition: all 0.28s var(--ease); white-space: nowrap;
}
.btn-block { width: 100%; justify-content: center; }
.btn-spark {
  background: var(--spark); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255,179,0,0.5);
}
.btn-spark:hover {
  background: var(--spark-hi); transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(255,179,0,0.7);
}
.btn-line {
  background: transparent; color: var(--txt);
  border-color: rgba(236,231,214,0.26);
}
.btn-line:hover { border-color: var(--spark); color: var(--spark-hi); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 13, 9, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-d);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  height: 80px; transition: height 0.35s var(--ease);
}
.site-header.scrolled .header-inner { height: 64px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--spark); color: var(--ink); border-radius: 5px;
  box-shadow: 0 0 20px -4px rgba(255,179,0,0.55);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text {
  font-family: var(--f-disp); font-weight: 900; font-size: 1.32rem;
  line-height: 0.86; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--txt); display: flex; flex-direction: column;
}
.logo-text small {
  font-family: var(--f-mono); font-size: 0.52rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--spark); margin-top: 3px;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--txt);
  padding: 9px 13px; border-radius: 4px; transition: all 0.2s ease;
}
.nav a i {
  font-style: normal; font-size: 0.62rem; color: var(--spark-lo);
}
.nav a:hover { background: rgba(255,179,0,0.08); color: var(--spark-hi); }

/* phone readout */
.readout {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.82rem; font-weight: 500;
  color: var(--txt); padding: 9px 14px;
  border: 1px solid var(--line-d); border-radius: 4px;
  background: rgba(236,231,214,0.03);
  transition: border-color 0.2s ease;
}
.readout:hover { border-color: var(--spark-lo); }
.rd-led {
  width: 7px; height: 7px; border-radius: 50%; background: #45d364;
  box-shadow: 0 0 8px #45d364; animation: blink 2.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.nav-toggle {
  display: none; width: 46px; height: 46px; margin-left: auto;
  background: var(--spark); border: none; border-radius: 5px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: all 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: 168px; overflow: hidden;
  background: var(--ink);
}
.hero-halo {
  position: absolute; top: -160px; right: 4%;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,0,0.20), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; padding-bottom: 70px; }

.sys-line {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--mut); margin-bottom: 26px;
}
.sys-dot {
  width: 8px; height: 8px; background: var(--spark);
  box-shadow: 0 0 10px var(--spark);
  animation: blink 1.8s infinite;
}

.hero-title {
  font-family: var(--f-disp); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 13vw, 11rem); line-height: 0.82;
  letter-spacing: -0.005em; color: var(--txt);
  max-width: 14ch;
}
.ht-line { display: block; }
.ht-fill { font-style: normal; color: var(--spark); }
.ht-out {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 2px var(--spark-lo);
}

.hero-foot {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: end; margin-top: 44px; max-width: 880px;
}
.hero-lead { font-size: 1.04rem; color: var(--mut); }
.hero-lead strong { color: var(--txt); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* node-map art - bleeds off the right edge */
.hero-art {
  position: absolute; top: 70px; right: -90px;
  width: min(46vw, 540px); pointer-events: none;
  opacity: 0.92;
}
.nodemap { width: 100%; height: auto; overflow: visible; }
.trace-base path { fill: none; stroke: var(--trace); stroke-width: 1.4; }
.trace-live path {
  fill: none; stroke: var(--spark-hi); stroke-width: 2.8; stroke-linecap: round;
  stroke-dasharray: 32 546;
  filter: drop-shadow(0 0 5px rgba(255,199,58,0.9));
  animation: flow 3.2s linear infinite;
}
.trace-live path:nth-child(2) { animation-delay: 0.6s; }
.trace-live path:nth-child(3) { animation-delay: 1.2s; }
.trace-live path:nth-child(4) { animation-delay: 1.8s; }
.trace-live path:nth-child(5) { animation-delay: 2.4s; }
@keyframes flow { from { stroke-dashoffset: 578; } to { stroke-dashoffset: 0; } }

.pads circle {
  fill: var(--ink); stroke: var(--trace); stroke-width: 1.6;
}
.pad-labels text {
  fill: var(--mut); font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 1.5px;
}
.core-ring {
  fill: none; stroke: var(--spark-lo); stroke-width: 1.4;
  stroke-dasharray: 3 7; transform-origin: 220px 220px;
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.core {
  fill: var(--spark);
  filter: drop-shadow(0 0 22px rgba(255,179,0,0.7));
}
.core-bolt { fill: var(--ink); }

/* instrument data strip */
.datastrip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 60px; border: 1px solid var(--line-d);
  background: rgba(236,231,214,0.02);
}
.datastrip li {
  padding: 18px 20px; border-right: 1px solid var(--line-d);
  display: flex; flex-direction: column; gap: 4px;
}
.datastrip li:last-child { border-right: none; }
.ds-k {
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--spark-lo);
}
.ds-v { font-family: var(--f-disp); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }

/* ticker */
.ticker {
  margin-top: 70px; border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d); padding: 15px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; gap: 26px; width: max-content; animation: scroll 42s linear infinite; }
.ticker-track span {
  font-family: var(--f-disp); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; color: var(--txt); letter-spacing: 0.03em;
}
.ticker-track i { color: var(--spark); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES - local bus + tapped components
   ============================================================ */
.services { background: var(--ink-2); }

.circuit-bus { position: relative; }
.bus-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--trace-d), var(--trace) 12%, var(--trace) 88%, var(--trace-d));
  overflow: visible;
}
.bus-pulse {
  position: absolute; top: -3px; width: 70px; height: 8px;
  background: linear-gradient(90deg, transparent, var(--spark-hi));
  filter: blur(1px);
  animation: busflow 5s linear infinite;
}
@keyframes busflow { from { left: -70px; } to { left: 100%; } }

.components {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.component {
  position: relative;
  background: var(--ink-card); border: 1px solid var(--line-d);
  padding: 30px 28px 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
/* technical corner brackets */
.component::before, .component::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1.5px solid var(--spark-lo);
}
.component::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.component::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.component.up   { margin-top: 40px; }
.component.mid  { margin-top: 88px; }
.component.down { margin-top: 136px; }

/* tap-off wire to the bus */
.tap {
  position: absolute; left: 42px; bottom: 100%; width: 2px;
  background: var(--trace);
}
.up   .tap { height: 40px; }
.mid  .tap { height: 88px; }
.down .tap { height: 136px; }
.tap::before {
  content: ""; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--spark);
}
.tap::after {
  content: ""; position: absolute; bottom: -3px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--spark);
}

.component:hover { transform: translateY(-6px); border-color: var(--spark-lo); }
.component.live { background: var(--ink-3); border-color: var(--trace); }

.comp-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.comp-ref {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--spark); border: 1px solid var(--trace);
  padding: 3px 8px; border-radius: 3px;
}
.comp-ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-d); border-radius: 5px; color: var(--spark);
  background: rgba(255,179,0,0.04);
}
.comp-ico svg { width: 24px; height: 24px; }
.comp-flag {
  position: absolute; top: 0; right: 28px; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; background: var(--spark); color: var(--ink);
  padding: 4px 9px; border-radius: 3px;
}
.component h3 {
  font-family: var(--f-disp); font-weight: 800; font-size: 1.55rem;
  text-transform: uppercase; line-height: 0.95; color: var(--txt);
  margin-bottom: 9px;
}
.component p { font-size: 0.94rem; color: var(--mut); }
.spec { margin-top: 18px; display: grid; gap: 7px; border-top: 1px dashed var(--line-d); padding-top: 16px; }
.spec li {
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--txt);
  display: flex; gap: 8px;
}
.spec li b { color: var(--spark); }

/* ============================================================
   EV FEATURE
   ============================================================ */
.ev { background: var(--ink); overflow: hidden; }
.ev-halo {
  position: absolute; right: -180px; top: 20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,0,0.16), transparent 64%);
  filter: blur(26px);
}
.ev-inner {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 60px;
  align-items: center;
}
.ev-text { color: var(--mut); font-size: 1.05rem; max-width: 540px; margin-top: -20px; }

.ev-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  margin: 34px 0 34px; border: 1px solid var(--line-d);
  background: var(--line-d);
}
.ev-points div {
  background: var(--ink); padding: 22px 20px;
  position: relative;
}
.ev-points b {
  font-family: var(--f-mono); font-size: 0.7rem; color: var(--spark-lo);
}
.ev-points strong {
  display: block; font-family: var(--f-disp); font-weight: 700;
  font-size: 1.2rem; text-transform: uppercase; color: var(--txt);
  margin: 4px 0 4px;
}
.ev-points span { font-size: 0.86rem; color: var(--mut); }

/* charger unit */
.ev-art { display: grid; place-items: center; position: relative; }
.unit {
  position: relative; width: 250px;
  background: linear-gradient(165deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-d); border-radius: 16px;
  padding: 18px 20px 26px;
  box-shadow: 0 50px 80px -34px rgba(0,0,0,0.85),
              inset 0 1px 0 rgba(236,231,214,0.06);
}
.unit-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.unit-ref { font-family: var(--f-mono); font-size: 0.66rem; color: var(--mut); letter-spacing: 0.08em; }
.unit-led {
  width: 9px; height: 9px; border-radius: 50%; background: var(--spark);
  box-shadow: 0 0 12px var(--spark); animation: blink 2s infinite;
}
.unit-screen {
  background: var(--ink); border: 1px solid var(--trace);
  border-radius: 10px; padding: 22px 18px; text-align: center;
}
.unit-pct {
  font-family: var(--f-disp); font-weight: 900; font-size: 3.4rem;
  line-height: 1; color: var(--spark);
  text-shadow: 0 0 26px rgba(255,179,0,0.6);
}
.unit-pct small { font-size: 1.2rem; }
.unit-msg {
  display: block; font-family: var(--f-mono); font-size: 0.66rem;
  letter-spacing: 0.16em; color: var(--mut); margin: 8px 0 14px;
}
.unit-bar {
  height: 8px; background: rgba(236,231,214,0.08);
  border-radius: 8px; overflow: hidden;
}
.unit-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--spark-lo), var(--spark-hi));
}
.unit-stats {
  display: flex; justify-content: center; gap: 7px; margin-top: 12px;
  font-family: var(--f-mono); font-size: 0.66rem; color: var(--spark-lo);
}
.unit-bolt {
  position: absolute; top: 44%; right: -26px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--spark); display: grid; place-items: center;
  color: var(--ink);
  box-shadow: 0 0 34px rgba(255,179,0,0.7);
  animation: hover 4s ease-in-out infinite;
}
.unit-bolt svg { width: 22px; height: 22px; }
@keyframes hover { 0%,100%{transform:translateY(-4px);} 50%{transform:translateY(4px);} }
.unit-cable {
  position: absolute; left: calc(50% - 125px); bottom: 4px;
  width: 70px; height: 90px;
  border: 4px solid var(--ink-3); border-top: none; border-right: none;
  border-radius: 0 0 0 36px;
}

/* ============================================================
   PROCESS - series circuit
   ============================================================ */
.process { background: var(--ink-2); }
.series { position: relative; }
.series-line {
  position: absolute; top: 6px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--trace-d), var(--trace) 10%, var(--trace) 90%, var(--trace-d));
  overflow: visible;
}
.series-pulse {
  position: absolute; top: -3px; width: 60px; height: 8px;
  background: linear-gradient(90deg, transparent, var(--spark-hi));
  filter: blur(1px);
  animation: busflow 4.4s linear infinite;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 46px; padding-right: 16px; }
.step-node {
  position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--spark);
  box-shadow: 0 0 12px rgba(255,179,0,0.5);
}
.step::after {
  content: ""; position: absolute; top: 6px; left: 14px;
  width: 22px; height: 2px; background: var(--trace);
}
.step-no {
  font-family: var(--f-disp); font-weight: 900; font-size: 3rem;
  color: transparent; -webkit-text-stroke: 1.4px var(--mut-2);
  display: block; line-height: 1; margin-bottom: 10px;
}
.step h3 {
  font-family: var(--f-disp); font-weight: 800; font-size: 1.5rem;
  text-transform: uppercase; color: var(--txt); margin-bottom: 7px;
}
.step p { font-size: 0.92rem; color: var(--mut); }

/* ============================================================
   REVIEWS - field reports
   ============================================================ */
.reviews { background: var(--ink); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.report {
  background: var(--ink-card); border: 1px solid var(--line-d);
  padding: 28px 26px; display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.report:hover { transform: translateY(-5px); border-color: var(--spark-lo); }
.report header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px dashed var(--line-d);
}
.rep-id { font-family: var(--f-mono); font-size: 0.72rem; color: var(--mut); letter-spacing: 0.08em; }
.stars { color: var(--spark); letter-spacing: 2px; font-size: 0.85rem; }
.report blockquote {
  flex: 1; font-family: var(--f-disp); font-weight: 500;
  font-size: 1.22rem; line-height: 1.3; color: var(--txt);
}
.report figcaption {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-d);
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--spark);
  display: flex; flex-direction: column; gap: 3px;
}
.report figcaption span { color: var(--mut); font-size: 0.74rem; }
.reviews-note {
  margin-top: 28px; text-align: center; font-family: var(--f-mono);
  font-size: 0.78rem; color: var(--mut-2);
}

/* ============================================================
   CONTACT - control panel
   ============================================================ */
.contact { background: var(--ink-2); }
.panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--paper); color: var(--txt-d);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,0.8);
}
.panel-l { padding: clamp(36px, 5vw, 64px); }
.panel-l .sec-title { color: var(--txt-d); margin-bottom: 22px; }
.panel-l > p { color: var(--mut-l); font-size: 1.02rem; max-width: 380px; }

.contact-list { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line-l);
}
.cl-k {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--spark-lo); width: 56px; flex-shrink: 0;
}
.contact-list a, .contact-list li > span:last-child {
  font-family: var(--f-disp); font-weight: 700; font-size: 1.12rem;
  text-transform: uppercase; color: var(--txt-d);
}
.contact-list a:hover { color: var(--spark-lo); }

/* form - instrument card */
.quote-form {
  background: var(--ink-card); color: var(--txt);
  padding: clamp(30px, 4vw, 48px);
}
.qf-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line-d);
}
.qf-title {
  font-family: var(--f-disp); font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; color: var(--txt);
}
.qf-id { font-family: var(--f-mono); font-size: 0.72rem; color: var(--spark); }
.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field label {
  display: block; font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--mut); margin-bottom: 6px;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 0.94rem;
  padding: 12px 13px; color: var(--txt);
  background: var(--ink); border: 1px solid var(--line-d);
  border-radius: 4px; transition: all 0.2s ease; resize: vertical;
}
.field select { color: var(--txt); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--spark);
  box-shadow: 0 0 0 3px rgba(255,179,0,0.16);
}
.field input.invalid, .field select.invalid {
  border-color: #e0564a; box-shadow: 0 0 0 3px rgba(224,86,74,0.16);
}
.quote-form .btn { margin-top: 6px; }
.form-note {
  margin-top: 12px; font-family: var(--f-mono); font-size: 0.78rem;
  text-align: center; min-height: 1.1em;
}
.form-note.ok { color: var(--spark-hi); }
.form-note.err { color: #e0564a; }

/* ============================================================
   FOOTER - engineering title block
   ============================================================ */
.site-footer { background: var(--ink); padding: 70px 0 40px; border-top: 1px solid var(--line-d); }
.footer-top {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--mut);
  padding: 6px 10px; transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--spark-hi); }
.footer-phone {
  font-family: var(--f-disp); font-weight: 900; font-size: 1.5rem;
  color: var(--spark); text-transform: uppercase;
}

/* title block */
.titleblock {
  display: grid;
  grid-template-columns: 2.4fr 1.1fr 0.8fr 1.6fr 0.8fr 0.9fr;
  border: 1px solid var(--line-d); border-bottom: none;
}
.tb-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  display: flex; flex-direction: column; gap: 3px;
}
.tb-cell:last-child { border-right: none; }
.tb-k {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mut-2);
}
.tb-v {
  font-family: var(--f-disp); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; color: var(--txt);
}
.tb-v a { color: var(--spark); }
.tb-v a:hover { color: var(--spark-hi); }

.footer-base {
  margin-top: 22px; font-family: var(--f-mono); font-size: 0.74rem;
  color: var(--mut-2); text-align: center;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1320px) {
  .rail { display: none; }
}
@media (max-width: 1024px) {
  .hero-art { opacity: 0.4; right: -150px; width: 60vw; }
}
@media (max-width: 920px) {
  .nav, .header-call { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 32px 22px;
    background: rgba(14,13,9,0.97); border-bottom: 1px solid var(--line-d);
    backdrop-filter: blur(14px);
  }
  .nav.open a { padding: 14px 6px; border-bottom: 1px solid var(--line-d); }

  .hero-art {
    display: block; position: static;
    width: min(380px, 84vw); margin: 40px auto 0;
    opacity: 1;
  }
  .pad-labels text { font-size: 13px; }
  .hero { padding-top: 138px; }
  .hero-foot { grid-template-columns: 1fr; gap: 26px; align-items: start; }

  .components { grid-template-columns: 1fr; }
  .component.up, .component.mid, .component.down { margin-top: 0; }
  .bus-line, .tap { display: none; }

  .ev-inner { grid-template-columns: 1fr; gap: 48px; }
  .ev-art { order: -1; }

  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .datastrip { grid-template-columns: 1fr 1fr; }
  .datastrip li:nth-child(2) { border-right: none; }
  .ev-points { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .series-line { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(odd) { border-right: 1px solid var(--line-d); }
  .tb-wide { grid-column: 1 / -1; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* keep the small decorative node-map alive even with reduce-motion on */
  .trace-live path { animation: flow 3.2s linear infinite !important; }
  .core-ring { animation: spin 16s linear infinite !important; }
}
