/* ═══════════════════════════════════════════════════════════════════════
   VOLTWAY ELECTRICAL, concept site for Apex Quantum
   High-voltage precision. Near-black, electric cyan, warning yellow.
   No photographs anywhere: everything visual is authored SVG or CSS.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('/fonts/inter-tight-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-tight-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/inter-tight-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-tight-600-normal.woff2') format('woff2');
}

:root {
  --ink:      #07090A;
  --ink2:     #0B0F11;
  --panel:    #121719;
  --panel2:   #171D20;
  --panel3:   #1C2327;

  --line:     #222C30;
  --line2:    #2E3A40;
  --trace:    #1A2F35;
  --trace2:   #23464F;

  --text:     #E6EEF1;
  --body:     #AFBAC0;
  --mute:     #8A969C;

  --cyan:     #3DE0F0;
  --cyan-ink: #0A2529;
  --yellow:   #F5C518;
  --red:      #FF6B5A;
  /* the FI code needs a hue that is neither a fault nor a pass, so it gets
     a token like everything else rather than a hex dropped in at the
     point of use */
  --violet:   #9B8CFF;
  --violet2:  #B6ABFF;

  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  --pad: clamp(1rem, 4vw, 3rem);
  --wrap: 1360px;
  --chamfer: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.004em;
}
/* NB: no overflow-x: clip on body. It stops Chrome capturing a correct
   full-page screenshot (the tail of the capture re-renders the top of the
   document), so every element below has to stay inside the viewport on
   its own. Verified from 360px to 1600px. */

h1, h2, h3 {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
strong { color: var(--text); font-weight: 500; }
em { font-style: normal; color: var(--cyan); }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
/* One hover language across the page: the rule under a link thickens, and a
   link drawn in a neutral colour takes the accent at the same time. */
a:hover { color: var(--cyan); text-decoration-thickness: 2px; }

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

.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
.dim { color: var(--mute); }
.sep { color: var(--mute); padding: 0 0.35em; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* the header is sticky, so anchored sections need to clear it */
section[id], .hero, footer, #main { scroll-margin-top: 88px; }

.skip {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--cyan); color: var(--ink);
  font: 500 0.9rem/1 var(--sans);
  padding: 0.85rem 1.4rem;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; color: var(--ink); }

/* ─────────────── concept banner: hazard strip, never hidden ─────────────── */
.concept {
  position: relative;
  background: var(--yellow);
  color: var(--ink);
  border-bottom: 1px solid #0B0F11;
}
.concept::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 8px, var(--ink) 8px 16px);
}
.concept__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.6rem var(--pad) 0.65rem;
  display: flex; align-items: baseline; gap: 0.75rem;
  flex-wrap: wrap;
}
.concept__tag {
  flex: none;
  font: 600 0.66rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink); color: var(--yellow);
  padding: 0.38rem 0.5rem 0.32rem;
}
.concept__text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  max-width: 92ch;
}
.concept__link {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  text-decoration-thickness: 2px;
}
.concept__link:hover { color: #000; }
.concept :focus-visible { outline-color: var(--ink); }
@media (max-width: 719px) {
  .concept__inner { padding-block: 0.5rem 0.55rem; gap: 0.5rem; }
  /* the middle sentence is the one that disclaims the prices and the phone
     numbers, so it stays: the banner can afford another line here */
  .concept__text { font-size: 0.78rem; }
  .concept__tag { font-size: 0.6rem; padding: 0.3rem 0.4rem 0.26rem; }
}

/* the honesty marker rides the sticky header, so it is on screen at every
   scroll position without the full banner eating a phone viewport */
.chip {
  display: none;
  align-items: baseline; gap: 0.4rem;
  margin-right: auto;
  padding: 0.34rem 0.55rem 0.3rem;
  border: 1px solid rgba(245, 197, 24, 0.55);
  background: rgba(245, 197, 24, 0.1);
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { background: var(--yellow); }
.chip:hover .chip__k, .chip:hover .chip__v { color: var(--ink); }
.chip__k {
  font: 600 0.6rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--yellow);
}
.chip__v { font: 400 0.6rem/1 var(--mono); letter-spacing: 0.06em; color: var(--mute); }
@media (min-width: 560px) { .chip { display: inline-flex; } }

/* ─────────────── header ─────────────── */
.head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 9, 10, 0.88);
  backdrop-filter: blur(14px) saturate(130%);
}
.head__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.7rem var(--pad);
  display: flex; align-items: center; gap: 1rem;
}
.head__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--trace2) 12%, var(--cyan) 50%, var(--trace2) 88%, transparent);
  opacity: 0.6;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--cyan);
}
@media (max-width: 559px) { .brand { margin-right: auto; } }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 1.08rem; font-weight: 600; letter-spacing: -0.045em;
  color: var(--text); text-transform: uppercase;
}
.brand__sub {
  font: 400 0.56rem/1 var(--mono);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute); margin-top: 0.3rem;
}
.brand:hover .brand__name { color: var(--cyan); }

.nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.6rem); }
.nav__list { display: flex; gap: clamp(0.5rem, 1.5vw, 1.5rem); }
.nav__list a {
  display: block;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--body); text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
}
.nav__list a:hover { color: var(--cyan); border-bottom-color: var(--trace2); }
.nav__list a[aria-current='true'] { color: var(--cyan); border-bottom-color: var(--cyan); }

.head__cta {
  position: relative;
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--cyan);
  padding: 0.68rem 1rem 0.62rem;
  text-decoration: none;
  white-space: nowrap;
}
.head__cta:hover { background: var(--text); color: var(--ink); }

.navtoggle {
  display: none;
  align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line2);
  color: var(--text);
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}
.navtoggle__bars { display: grid; gap: 3px; }
.navtoggle__bars span { display: block; width: 15px; height: 1.5px; background: var(--cyan); }
.navtoggle[aria-expanded='true'] { border-color: var(--cyan); color: var(--cyan); }

/* ─────────────── buttons ─────────────── */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 0.18rem;
  font-family: var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  min-height: 52px;
}
.btn--prime {
  background: var(--yellow); color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  align-items: center;
}
.btn--prime:hover { background: #FFD83F; color: var(--ink); }
.btn--ghost {
  background: transparent; color: var(--cyan);
  border-color: var(--trace2);
  align-items: flex-start;
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(61, 224, 240, 0.07); color: var(--cyan); }
.btn__kicker {
  font: 400 0.6rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute);
}
.btn__mono { font: 500 1rem/1.1 var(--mono); letter-spacing: -0.02em; }

.link { color: var(--cyan); text-decoration: underline; }
/* a phone never hovers, so the biggest tel link on the page cannot rely on
   hover for its only affordance: it is underlined like its siblings */
.link--big {
  font: 500 1.35rem/1.1 var(--mono); letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* ─────────────── hero ─────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(2.2rem, 4.4vw, 5rem) 0 clamp(2.2rem, 3.8vw, 4rem);
}
.ct {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.ct-base path { stroke: var(--trace); stroke-width: 1.1; }
.ct-pads circle { fill: #14272D; }
.ct-wire path { stroke: var(--trace2); stroke-width: 1.6; }
.ct-pulse .ct-p {
  stroke: var(--cyan);
  stroke-width: 2.3;
  stroke-dasharray: 6 94;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px rgba(61, 224, 240, 0.8));
  animation: ct-run 7s linear infinite;
}
@keyframes ct-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.ct-p1 { animation-duration: 6.2s; animation-delay: -0.4s; }
.ct-p2 { animation-duration: 8.4s; animation-delay: -2.1s; }
.ct-p3 { animation-duration: 7.1s; animation-delay: -4.6s; }
.ct-p4 { animation-duration: 9.6s; animation-delay: -1.3s; }
.ct-p5 { animation-duration: 6.8s; animation-delay: -5.2s; }
.ct-p6 { animation-duration: 10.4s; animation-delay: -3.3s; }
.ct-p7 { animation-duration: 7.7s; animation-delay: -6.1s; }
.ct-p8 { animation-duration: 8.9s; animation-delay: -0.9s; }

.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(118% 92% at 14% 38%, rgba(7, 9, 10, 0.97) 0%, rgba(7, 9, 10, 0.84) 34%, rgba(7, 9, 10, 0.38) 68%, rgba(7, 9, 10, 0) 100%),
    linear-gradient(180deg, rgba(7, 9, 10, 0.6) 0%, rgba(7, 9, 10, 0) 22%, rgba(7, 9, 10, 0) 72%, rgba(7, 9, 10, 0.92) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
  font: 400 0.7rem/1 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; flex-wrap: wrap;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: var(--cyan); margin-right: 0.8rem;
}
/* once the eyebrow has to wrap, the rule goes above it so both lines stay
   flush left instead of one indenting past the other */
@media (max-width: 560px) {
  .eyebrow { display: block; }
  .eyebrow::before { display: block; margin: 0 0 0.65rem; }
}

.hero__h1 {
  font-size: clamp(2.6rem, 1.4rem + 6.4vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
}
.hero__h1 em { color: var(--cyan); }

.hero__lede {
  max-width: 54ch;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.58;
  color: var(--body);
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(1rem, 2vw, 2rem);
}
.hero__facts li {
  padding: 0.95rem 0.9rem 0.95rem 0;
  display: flex; flex-direction: column; gap: 0.35rem;
  position: relative;
}
.hero__facts li + li { padding-left: 1rem; }
.hero__facts li + li::before {
  content: ''; position: absolute; left: 0; top: 0.95rem; bottom: 0.95rem;
  width: 1px; background: var(--line);
}
.hero__facts li::after {
  content: ''; position: absolute; left: 0; top: -1px; width: 16px; height: 1px;
  background: var(--cyan);
}
.hero__facts li:first-child::after { left: 0; }
.hero__facts-k {
  font: 400 0.62rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
}
.hero__facts-v { font-size: 0.86rem; color: var(--text); line-height: 1.35; }

/* test instrument readout */
.meter {
  position: relative;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px rgba(61, 224, 240, 0.06), 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  align-self: start;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}
.meter__top {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.5);
}
.meter__led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: led 2.4s ease-in-out infinite;
}
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.meter__title {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text);
}
.meter__ref {
  margin-left: auto;
  font: 400 0.68rem/1 var(--mono);
  color: var(--mute);
}
.meter__rows { margin: 0; padding: 0.45rem 1.1rem 0.8rem; }
.meter__row {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.52rem 0;
  border-bottom: 1px dashed var(--line);
}
.meter__row:last-child { border-bottom: 0; }
.meter__rows dt {
  font: 400 0.73rem/1.2 var(--mono);
  letter-spacing: 0.02em;
  color: var(--mute);
}
.meter__rows dd {
  margin: 0 0 0 auto;
  font: 500 0.95rem/1.1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: right;
}
.meter__rows .is-good { color: var(--cyan); }
.meter__foot {
  position: relative;
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.35);
}
.meter__foot p { font-size: 0.78rem; line-height: 1.5; color: var(--mute); margin: 0; }
.meter__scan {
  position: absolute; left: 0; top: 0; height: 1px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan { 0% { left: -40%; } 100% { left: 100%; } }

/* between phone and desktop the meter has a whole row to itself, so it
   spreads into a two-column instrument panel rather than a narrow card */
@media (min-width: 620px) and (max-width: 899px) {
  .meter { max-width: none; }
  .meter__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.4rem;
  }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); align-items: start; }
  .meter { justify-self: end; margin-top: 3.2rem; }
  .hero__facts { grid-column: 1 / -1; }
}

/* ─────────────── band + section head ─────────────── */
.band {
  position: relative;
  padding: clamp(2.6rem, 4.4vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.band--grid::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(46, 58, 64, 0.3) 0 1px, transparent 1px 132px);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.band--board { background: var(--ink2); }
.band--light { background: var(--ink2); }
.band--about { background: linear-gradient(180deg, var(--ink), var(--ink2)); }
.band--contact { background: var(--ink2); }
.band > .wrap { position: relative; z-index: 1; }

.shead {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.6rem 1.1rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.4rem);
}
.shead__idx {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding-top: 0.35rem;
}
.shead__idx::after { content: ' /'; color: var(--mute); }
.shead__h {
  font-size: clamp(1.7rem, 1.2rem + 2.3vw, 3.1rem);
  letter-spacing: -0.045em;
  max-width: 24ch;
}
.shead__rule { display: none; }
.shead__note {
  grid-column: 2;
  margin: 0;
  font: 400 0.78rem/1.5 var(--mono);
  letter-spacing: -0.005em;
  color: var(--mute);
  max-width: 48ch;
}
@media (min-width: 1000px) {
  .shead { grid-template-columns: auto minmax(0, 1fr) auto; }
  .shead__rule {
    display: block; height: 1px; align-self: center;
    background: linear-gradient(90deg, var(--line2), var(--trace2));
    grid-column: 3; min-width: 60px;
  }
  .shead__h { grid-column: 2; }
  .shead__note { grid-column: 2 / 4; }
}

/* ─────────────── 01 services ─────────────── */
.svc {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 680px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc { grid-template-columns: repeat(3, 1fr); } }

.svc__item {
  position: relative;
  background: var(--ink);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column;
}
.svc__item:hover { background: var(--panel); }
.svc__idx {
  font: 400 0.64rem/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--mute);
}
/* each glyph sits on a chamfered pad with a trace stub running back into
   the grid, so the service cards speak the same language as the hero */
/* each glyph sits on a chamfered pad with a trace running off into the
   card, so the service grid speaks the same language as the hero */
.svc__pad { display: flex; align-items: center; margin: 1.1rem 0; }
.svc__pad::after {
  content: '';
  flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--trace2), rgba(35, 70, 79, 0));
}
.svc__glyph {
  flex: none;
  width: 68px; height: 68px;
  padding: 13px;
  color: var(--cyan);
  border: 1px solid var(--trace2);
  background: linear-gradient(145deg, rgba(61, 224, 240, 0.08), rgba(61, 224, 240, 0));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.svc__item:hover .svc__glyph { border-color: var(--cyan); }
.svc__h {
  font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.38rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
  max-width: 20ch;
}
.svc__item p { font-size: 0.925rem; line-height: 1.6; }
/* scoped to the card so it outranks .svc__item p: on its own this rule set
   0.75rem mono and lost to the 0.925rem body size, which is why the spec
   line was rendering a quarter bigger than it was written and wrapping */
.svc__item .svc__meta {
  margin-top: auto;
  padding-top: 1.2rem;
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: -0.01em;
  color: var(--cyan);
}
/* the call card has no price line to anchor it, so the number does that
   job: it keeps the card weighted and gives the section a second exit */
.svc__call {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line2);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.svc__call-k {
  font: 400 0.64rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute);
}
.svc__call-v {
  font: 500 1.3rem/1.1 var(--mono);
  letter-spacing: -0.03em;
  color: var(--yellow);
  text-decoration: none;
}
.svc__call-v:hover { color: var(--yellow); text-decoration: underline; }
.svc__call-n { font-size: 0.8rem; line-height: 1.5; color: var(--mute); }

.svc__item--call { background: var(--panel); }
.svc__item--call .svc__h { margin-top: 0; }
.svc__h--call { color: var(--yellow); }
.svc__item--call::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--yellow);
}

/* ─────────────── 02 the board ─────────────── */
.board__intro {
  max-width: 62ch;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
  font-weight: 300;
  color: var(--body);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
}
.board { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); align-items: start; }
}
/* Below that breakpoint the board collapses to one column, and with the
   three check cards left between them, tapping a breaker changed something
   613px further down the page: on a 844px phone the readout was never on
   screen at the moment of the tap, which empties the device of its point.
   display:contents dissolves the wrapper so the head, the panel and the
   cards all become items of the same grid and can be ordered. The desktop
   layout above never sees any of this. */
@media (max-width: 1099px) {
  .board__unit { display: contents; }
  .board__panels { order: 1; }
  .checks { order: 2; margin-top: 0; }
}

.board__case {
  background: linear-gradient(180deg, #1A2125, #101517);
  border: 1px solid var(--line2);
  box-shadow: inset 0 1px 0 rgba(230, 238, 241, 0.05), 0 40px 80px -50px #000;
  padding: 0.9rem;
}
.board__caseline {
  display: flex; justify-content: space-between; gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}
.board__casetext {
  font: 400 0.62rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  color: var(--mute);
}
.board__rail {
  position: relative;
  display: flex; gap: 0.5rem;
  background: #0A0E10;
  border: 1px solid #262F34;
  padding: 0.55rem;
}
/* a sliver of DIN rail shows between the modules, as it does on a real board */
.board__rail::before {
  content: '';
  position: absolute; left: 0.55rem; right: 0.55rem; bottom: 1.7rem; height: 14px;
  background: linear-gradient(180deg, #4F5A60, #2B3438 55%, #434E54);
  z-index: 0;
}
.board__main {
  position: relative; z-index: 1;
  flex: none;
  width: 54px;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.25rem;
  background: linear-gradient(180deg, #2B3338, #1D2429);
  border: 1px solid #39444A;
}
.board__main-k, .board__main-v {
  font: 500 0.6rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--text);
}
.board__main-sw {
  width: 20px; height: 54px;
  background: var(--red);
  border: 1px solid #0B0F11;
  margin: auto 0;
  box-shadow: inset 0 -16px 0 -12px rgba(0, 0, 0, 0.5);
}
.board__ways {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
}
@media (min-width: 620px) { .board__ways { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
/* the rail sliver only makes sense on a single row of modules */
/* On one row the rail sliver and the busbar under it are correct. Once the
   rail wraps to 5 + 5, a single busbar run serves the bottom five ways and
   leaves the top five connected to nothing, so both come off together
   rather than have the signature device contradict its own wiring. */
@media (max-width: 619px) { .board__rail::before { display: none; } }

.mcb {
  appearance: none;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.15rem 0.45rem;
  background: linear-gradient(180deg, #232B30, #171E22);
  border: 1px solid #333E44;
  color: var(--body);
  cursor: pointer;
  min-height: 208px;
  overflow: hidden;
}
.mcb:hover { border-color: var(--trace2); background: linear-gradient(180deg, #2A343A, #1B2328); }
.mcb__rating {
  width: calc(100% + 0.3rem);
  margin: -0.3rem -0.15rem 0;
  padding: 0.3rem 0.1rem 0.26rem;
  background: #D4DBDE;
  color: #090C0D;
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: -0.03em;
  text-align: center;
}
.mcb__unit { font-size: 0.82em; font-weight: 500; }
.mcb__curve {
  font: 500 0.58rem/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.mcb__body {
  flex: none;
  height: 50px;
  width: 62%; min-width: 16px;
  background: #0E1315;
  border: 1px solid #2B3539;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 2px;
}
/* every way on a working board is switched on; selection is the cyan
   highlight, not the lever position */
.mcb__lever {
  display: block; width: 100%; height: 38%;
  background: #B4BEC2;
  border: 1px solid #0B0F11;
  margin-bottom: 56%;
  box-shadow: inset 0 -3px 0 -1px rgba(0, 0, 0, 0.35);
}
.mcb[aria-selected='true'] .mcb__lever { background: var(--yellow); }
.mcb__window {
  display: block; width: 100%; height: 30%;
  background: #2ED17F;
  margin-bottom: auto;
}
.mcb__way {
  font: 500 0.6rem/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--mute);
}
.mcb__name {
  flex: 1 1 auto;
  min-height: 0;
  writing-mode: vertical-rl;
  /* what each way feeds is the one thing the rail itself has to tell you,
     so it is not set at 9px in mid grey. 0.72rem is 11.5px and the tracking
     comes off to pay for the extra width in a 48px column. */
  font: 400 0.72rem/1 var(--sans);
  letter-spacing: 0.01em;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
  margin: 0.2rem 0;
}
.mcb[aria-selected='true'] {
  border-color: var(--cyan);
  background: linear-gradient(180deg, #16343A, #0E2126);
  box-shadow: 0 0 0 1px rgba(61, 224, 240, 0.45), 0 0 22px -4px rgba(61, 224, 240, 0.4);
  z-index: 2;
}
.mcb[aria-selected='true'] .mcb__rating { background: var(--cyan); color: var(--cyan-ink); }
.mcb[aria-selected='true'] .mcb__name { color: var(--text); }
.mcb[aria-selected='true'] .mcb__way { color: var(--cyan); }
.mcb[aria-selected='true']::after {
  content: ''; position: absolute; inset: 0;
  border-top: 2px solid var(--cyan);
  pointer-events: none;
}
.mcb--spd .mcb__rating { background: var(--yellow); color: var(--ink); }
.mcb--sw .mcb__rating { background: #E4EAEC; }

.board__busbar { display: flex; flex-direction: column; gap: 4px; padding: 0.9rem 0 0.6rem; }
.board__busline { height: 3px; background: #6B4A1E; }
.board__busline--n { background: #2B3C57; }
.board__busline--e { background: #3E4F2A; height: 2px; }
.board__legend { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0; }
.board__key {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 400 0.6rem/1 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute);
}
.board__swatch { width: 12px; height: 3px; display: block; }
.board__swatch--l { background: #6B4A1E; }
.board__swatch--n { background: #2B3C57; }
.board__swatch--e { background: #3E4F2A; }
/* Declared after the two rules above so it wins on source order. On one row
   the busbar under the rail is correct; once the rail wraps to 5 + 5 a single
   run serves the bottom five ways and leaves the top five connected to
   nothing, so it comes off with the DIN rail sliver rather than have the
   signature device contradict its own wiring. */
@media (max-width: 619px) {
  .board__busbar, .board__legend { display: none; }
  .board__rail { margin-bottom: 0.2rem; }
}

.board__hint {
  margin: 0.9rem 0 0;
  font: 400 0.72rem/1.5 var(--mono);
  color: var(--mute);
}

.checks {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(1.3rem, 2.3vw, 2rem);
}
@media (min-width: 680px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.checks__item { background: var(--ink); padding: 1.1rem 1.2rem 1.25rem; }
.checks__n {
  display: block;
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.checks__h { font-size: 0.97rem; letter-spacing: -0.025em; margin-bottom: 0.45rem; }
.checks__item p { font-size: 0.84rem; line-height: 1.55; color: var(--mute); }

.cpanel {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-top: 2px solid var(--cyan);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
}
.cpanel:focus-visible { outline-offset: 2px; }
.cpanel__head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.cpanel__sym { width: 42px; height: 42px; flex: none; color: var(--cyan); }
.cpanel__way {
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute);
  margin: 0.2rem 0 0.5rem;
}
.cpanel__h { font-size: 1.18rem; letter-spacing: -0.03em; }

.spec { margin: 0 0 1.3rem; border-top: 1px solid var(--line); }
.spec__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 440px) {
  .spec__row { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.8rem; align-items: baseline; }
}
.spec dt {
  font: 400 0.7rem/1.4 var(--mono);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mute);
}
.spec dd {
  margin: 0;
  font: 400 0.84rem/1.45 var(--mono);
  letter-spacing: -0.015em;
  color: var(--text);
}
.spec__lim { color: var(--mute); }
.spec__ok {
  display: inline-block;
  font-size: 0.78em; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--trace2);
  padding: 0.05rem 0.3rem;
  margin-left: 0.3rem;
}
.cpanel__note {
  font-size: 0.9rem; line-height: 1.6;
  color: var(--body);
  background: var(--ink);
  border-left: 2px solid var(--yellow);
  padding: 0.9rem 1rem;
  margin: 0;
}
.cpanel__notek {
  display: block;
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

/* ─────────────── 03 EICR ─────────────── */
.eicr__top {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
  align-items: start;
}
@media (min-width: 980px) {
  .eicr__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.eicr__intro {
  max-width: 54ch;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
  font-weight: 300;
  margin: 0;
}
.codes {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
}
@media (min-width: 620px) { .codes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) {
  .codes { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto 1fr auto; }
  @supports (grid-template-rows: subgrid) {
    .code { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
  }
}

.code {
  background: var(--ink);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  position: relative;
}
.code::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--mute);
}
.code--c1::before { background: var(--red); }
.code--c2::before { background: var(--yellow); }
.code--c3::before { background: var(--cyan); }
.code--fi::before { background: var(--violet); }
.code__id {
  font: 600 2.1rem/1 var(--mono);
  letter-spacing: -0.06em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.code--c1 .code__id { color: var(--red); }
.code--c2 .code__id { color: var(--yellow); }
.code--c3 .code__id { color: var(--cyan); }
.code--fi .code__id { color: var(--violet2); }
.code__h { font-size: 1.08rem; letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.code__means { font-size: 0.92rem; color: var(--body); }
.code__do, .code__eg {
  font-size: 0.84rem; line-height: 1.55;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
}
.code__eg { margin-bottom: 0; }
.code__dok, .code__egk {
  display: block;
  font: 500 0.6rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.warnbox {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-left: 3px solid var(--yellow);
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  margin: 0;
}
.warnbox__k {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.warnbox p:last-child { font-size: 0.97rem; color: var(--body); }

.extract { border: 1px solid var(--line2); background: var(--panel); }
.extract__top {
  display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line2);
  background: var(--ink);
}
.extract__t, .extract__r {
  font: 500 0.68rem/1.3 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.extract__t { color: var(--text); }
.extract__r { color: var(--mute); }
.extract__foot {
  padding: 0.9rem 1.1rem 1.1rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--mute);
  border-top: 1px solid var(--line2);
}

/* ─────────────── tables ─────────────── */
.tscroll { overflow-x: auto; }
.tscroll:focus-visible { outline-offset: -2px; }
table { width: 100%; border-collapse: collapse; }
.extract__table { min-width: 560px; }
.ledger__table { min-width: 720px; }
thead th {
  text-align: left;
  font: 500 0.62rem/1.2 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
tbody td {
  padding: 0.72rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.5;
  vertical-align: top;
  color: var(--body);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(61, 224, 240, 0.04); }
td.mono { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); white-space: nowrap; letter-spacing: -0.02em; }

.tag {
  display: inline-block;
  font: 600 0.7rem/1 var(--mono);
  padding: 0.28rem 0.4rem;
  color: var(--ink);
}
.tag--c2 { background: var(--yellow); }
.tag--c3 { background: var(--cyan); }

.ledger {
  border: 1px solid var(--line2);
  background: var(--panel);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
}
.ledger tbody td:nth-child(2) { color: var(--text); }

/* On a phone both tables are wider than the screen, and in each one the
   column that matters, what came up and the outcome, is the one off the
   right edge. Sideways scrolling hides the best writing on the page, so
   below 760px every row becomes a card and each cell carries its own
   heading from data-k. The real thead stays for screen readers. */
@media (max-width: 760px) {
  .ledger .tscroll, .extract .tscroll { overflow-x: visible; }
  .ledger__table, .extract__table { min-width: 0; display: block; }
  .ledger__table thead, .extract__table thead {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .ledger__table tbody, .extract__table tbody { display: block; }
  .ledger__table tbody tr, .extract__table tbody tr {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line2);
  }
  .ledger__table tbody tr:last-child, .extract__table tbody tr:last-child { border-bottom: 0; }
  .ledger__table tbody tr:hover td, .extract__table tbody tr:hover td { background: none; }
  .ledger__table tbody td, .extract__table tbody td {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 0 0.9rem;
    align-items: baseline;
    padding: 0.3rem 1.1rem;
    border-bottom: 0;
  }
  .ledger__table tbody td::before, .extract__table tbody td::before {
    content: attr(data-k);
    font: 500 0.62rem/1.6 var(--mono);
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--mute);
  }
  .ledger__table tbody td[data-k='What came up'],
  .extract__table tbody td[data-k='Observation'] { padding-top: 0.55rem; }
  /* the code chip is a grid item now, so stop it stretching the column */
  .extract__table tbody td .tag { justify-self: start; }
}

/* ─────────────── 04 lighting ─────────────── */
.light { display: grid; gap: clamp(1.8rem, 3.5vw, 3rem); }
@media (min-width: 1000px) {
  .light { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); align-items: start; }
}
.light__fig { margin: 0; }
.plan {
  width: 100%; height: auto;
  background:
    repeating-linear-gradient(0deg, rgba(46, 58, 64, 0.3) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(46, 58, 64, 0.3) 0 1px, transparent 1px 20px),
    #0A0E10;
  border: 1px solid var(--line2);
  display: block;
}
.plan__wall { fill: none; stroke: #5A6A71; stroke-width: 9; }
.plan__win path { stroke: var(--cyan); stroke-width: 2.5; fill: none; }
.plan__door path { stroke: #5A6A71; stroke-width: 2; fill: none; }
.plan__door .plan__swing { stroke: #39454B; stroke-dasharray: 5 5; }
.plan__island rect { fill: rgba(46, 58, 64, 0.35); stroke: #4C5A61; stroke-width: 1.5; }
.plan__beams circle {
  fill: rgba(245, 197, 24, 0.07);
  stroke: rgba(245, 197, 24, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
.plan__dl circle { fill: #0A0E10; stroke: var(--yellow); stroke-width: 2; }
.plan__dl path { stroke: var(--yellow); stroke-width: 1.6; }
.plan__pend circle { fill: none; stroke: var(--cyan); stroke-width: 2; }
.plan__pend circle:nth-child(even) { fill: var(--cyan); }
.plan__strip { stroke: #FFB347; stroke-width: 5; stroke-linecap: round; fill: none; }
.plan__sw rect { fill: #121719; stroke: var(--text); stroke-width: 1.5; }
.plan__swlab { fill: var(--text); font: 600 11px var(--mono); }
.plan__feed { stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 7 4; fill: none; }
.plan__tag path { fill: rgba(61, 224, 240, 0.07); stroke: var(--trace2); stroke-width: 1.2; }
.plan__work rect { fill: rgba(90, 106, 113, 0.18); stroke: #46545B; stroke-width: 1.2; }
.plan__dim path { stroke: #6E7C83; stroke-width: 1; fill: none; }
.plan__lab {
  fill: var(--body);
  font: 400 11px var(--mono);
  letter-spacing: 0.08em;
}
.plan__lab--strip { fill: #FFC778; }
.light__cap {
  margin-top: 0.8rem;
  font: 400 0.74rem/1.5 var(--mono);
  color: var(--mute);
}
/* below tablet the drawing is too small to carry its own annotation, so the
   labels come off and the legend underneath does the explaining */
@media (max-width: 700px) {
  .plan__lab, .plan__swlab, .plan__tag { display: none; }
  /* the feed runs from the circuit tag into the room; with the tag gone
     it is a dashed stub attached to nothing, so it goes too. The dimension
     lines go with it: a pair of ticked rules with no figures between them
     is not a simplified drawing, it is a drawing whose text failed to load.
     The switch squares stay, because a square is a whole symbol and the
     legend underneath says what it means, the same way it does for the
     downlights, which never carried a label either. */
  .plan__feed, .plan__dim { display: none; }
}
.light__copy p { font-size: 0.96rem; }
.light__key {
  display: grid; gap: 0.9rem;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.light__key li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.55; }
.light__kk { flex: none; width: 16px; height: 16px; margin-top: 0.25rem; display: block; }
.light__kk--dl { border: 2px solid var(--yellow); border-radius: 50%; }
.light__kk--pd { border: 2px solid var(--cyan); border-radius: 50%; background: radial-gradient(circle, var(--cyan) 30%, transparent 32%); }
.light__kk--st { background: #FFB347; height: 5px; margin-top: 0.6rem; }
.light__kk--sw { border: 2px solid var(--text); }
.light__tail {
  font-size: 0.9rem;
  color: var(--mute);
  border-left: 2px solid var(--trace2);
  padding-left: 1rem;
}

/* ─────────────── 05 quotes ─────────────── */
.quotes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--ink); padding: clamp(1.25rem, 2.2vw, 1.7rem); position: relative; }
.quote blockquote { margin: 0 0 1.1rem; }
.quote blockquote::before {
  content: '';
  display: block; width: 22px; height: 2px;
  background: var(--cyan);
  margin-bottom: 1.1rem;
}
.quote blockquote p {
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 300;
  margin: 0;
}
.quote__who {
  font: 400 0.7rem/1.4 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

/* ─────────────── 06 about ─────────────── */
.about { display: grid; gap: clamp(1.8rem, 3.5vw, 3.2rem); }
@media (min-width: 980px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.about__lede {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.about__copy p { max-width: 56ch; }
.pledge { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .pledge { grid-template-columns: repeat(2, 1fr); } }
.pledge__item { background: var(--panel); padding: clamp(1.1rem, 2vw, 1.5rem); }
.pledge__n {
  display: block;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.pledge__h { font-size: 1rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.pledge__item p { font-size: 0.86rem; line-height: 1.55; color: var(--mute); }

.coverage {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(1.4rem, 2.3vw, 2rem);
}
@media (min-width: 860px) { .coverage { grid-template-columns: repeat(3, 1fr); } }
.coverage li {
  background: var(--ink);
  padding: 1.1rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.coverage__k {
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
}
.coverage__v { font-size: 0.88rem; line-height: 1.55; color: var(--body); }

/* ─────────────── 07 contact ─────────────── */
.contact { display: grid; gap: clamp(1.8rem, 3.5vw, 3rem); }
@media (min-width: 940px) {
  .contact { grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr); align-items: start; }
}
.form {
  background: var(--panel);
  border: 1px solid var(--line2);
  padding: clamp(1.3rem, 2.6vw, 2.1rem);
}
.form__grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin: 0; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line2);
  padding: 0.75rem 0.85rem;
  width: 100%;
  min-height: 48px;
}
.field textarea { resize: vertical; line-height: 1.55; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan);
}
.field ::placeholder { color: var(--mute); opacity: 1; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.form__foot {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.form__small { font-size: 0.8rem; color: var(--mute); margin: 0; max-width: 34ch; }
.form__status {
  margin: 1.1rem 0 0;
  font: 400 0.84rem/1.55 var(--mono);
  color: var(--yellow);
  border-left: 2px solid var(--yellow);
  padding-left: 0.9rem;
}
.form__status:empty { display: none; }

.details {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-top: 2px solid var(--cyan);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
}
.details__h {
  font-size: 1.15rem; letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.details__list { margin: 0; }
.details__row {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.details__list dt {
  font: 500 0.6rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute);
}
.details__list dd { margin: 0; font-size: 0.92rem; color: var(--text); line-height: 1.5; }
.details__note {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
}

/* ─────────────── footer ─────────────── */
.foot {
  position: relative;
  background: var(--ink);
  padding-bottom: 2.5rem;
}
.foot__pulse { line-height: 0; border-bottom: 1px solid var(--line); }
.foot__pulse svg { width: 100%; height: 40px; display: block; }
.foot__trace { stroke: var(--trace); stroke-width: 1.4; fill: none; }
.foot__tracep {
  stroke: var(--cyan); stroke-width: 2.2; fill: none;
  stroke-dasharray: 5 95; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(61, 224, 240, 0.8));
  animation: ct-run 5.5s linear infinite;
}
.foot__grid {
  display: grid; gap: 2rem;
  padding: clamp(1.9rem, 3vw, 2.7rem) 0 clamp(1.6rem, 2.4vw, 2.2rem);
}
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; } }
.brand__mark--foot { width: 34px; height: 34px; color: var(--cyan); }
.foot__name {
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.04em;
  text-transform: uppercase; color: var(--text);
  margin: 0.8rem 0 0.6rem;
}
.foot__line { font-size: 0.86rem; color: var(--mute); max-width: 36ch; }
.foot__h {
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
/* The areas are not links, so they are set in mute and the links keep the
   body colour: in this footer nothing reads as clickable unless it is. Each
   link is a block with its own padding so there is something for a thumb to
   land on, and the negative margin keeps its row the same height as a
   plain one. */
.foot__list { display: grid; gap: 0; }
.foot__list li { font-size: 0.875rem; color: var(--body); padding-block: 0.3rem; }
.foot__list--plain li { color: var(--mute); }
.foot__list a { display: block; margin-block: -0.3rem; padding-block: 0.3rem; color: var(--body); text-decoration: none; }
.foot__list a:hover { color: var(--cyan); text-decoration: underline; }

.foot__bottom {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.foot__small { font-size: 0.8rem; line-height: 1.6; color: var(--mute); max-width: 78ch; margin: 0; }
.foot__small strong { color: var(--yellow); font-weight: 500; }
.foot__mono {
  font: 400 0.68rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--mute);
  margin: 0;
  white-space: nowrap;
}

/* ─────────────── reveal, only when JS is driving it ─────────────── */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ─────────────── small screens ─────────────── */
@media (max-width: 879px) {
  .navtoggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line2);
    padding: 0.5rem var(--pad) 1.2rem;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .head__cta { margin-top: 1rem; text-align: center; }
  .head { position: sticky; }
  .head__inner { position: relative; }
}

@media (max-width: 480px) {
  .hero__h1 { letter-spacing: -0.045em; }
  .mcb { min-height: 196px; }
  /* the name keeps its size here: a 48px column has room for it and this is
     the label that tells you what the way actually feeds */
  .mcb__body { height: 44px; }
  .board__main { width: 42px; }
  .board__main-sw { width: 16px; height: 40px; }
  .foot__bottom { flex-direction: column; }
  /* the build line is one long mono string; below ~340px it is the only
     thing on the page wide enough to push a scrollbar, so let it break */
  .foot__mono { white-space: normal; }
}

/* ─────────────── reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .ct-pulse { display: none; }
  .foot__tracep { display: none; }
  .meter__scan { display: none; }
  .meter__led { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
