/* ==========================================================================
   VOGUEWALK — SINGLE-LINE DIAGRAM
   Ink / Paper / Volt. Archivo + IBM Plex Sans + IBM Plex Mono.
   Radius 0. No shadows. Hairlines. All type in normal flow.
   Desktop-first; small screens stack, never collide.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--volt); color: var(--ink); }

:root {
  --ink: #0A0F14;
  --panel: #121922;
  --line-d: #26313D;
  --fog: #8A97A6;
  --paper: #F3F5F7;
  --line-l: #D5DBE1;
  --slate: #4A5663;
  --volt: #D4FF3A;
  --fault: #FF6B5E;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --container: 1280px;
  --gutter: 48px;
  --gap: 24px;

  --ease: cubic-bezier(.2, .6, .2, 1);
}

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

/* ---------- surfaces ---------- */
.s-ink {
  --bg: var(--ink); --fg: #EDF1F5; --muted: var(--fog);
  --line: var(--line-d); --surface: var(--panel);
  background: var(--bg); color: var(--fg);
}
.s-paper {
  --bg: var(--paper); --fg: var(--ink); --muted: var(--slate);
  --line: var(--line-l); --surface: #FFFFFF;
  background: var(--bg); color: var(--fg);
}
.s-paper + .s-paper, .s-ink + .s-ink { border-top: 1px solid var(--line); }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 128px; }
.section--tight { padding-block: 72px; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.grid > * { min-width: 0; }
.c3  { grid-column: span 3; }
.c4  { grid-column: span 4; }
.c5  { grid-column: span 5; }
.c6  { grid-column: span 6; }
.c7  { grid-column: span 7; }
.c8  { grid-column: span 8; }
.c9  { grid-column: span 9; }
.c12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--sm { gap: 12px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.h1 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.h3 {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); }
.body { font-size: 17px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--volt { color: var(--volt); }
.mono { font-family: var(--font-mono); }
.volt { color: var(--volt); }
.muted { color: var(--muted); }
.measure { max-width: 68ch; }
.measure--sm { max-width: 52ch; }
.nowrap { white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #EDF1F5;
  border-bottom: 1px solid var(--line-d);
}
.nav__in {
  max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav__brand {
  font-family: var(--font-display); font-stretch: 112%;
  font-weight: 600; font-size: 16px; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
}
.nav__brand:hover { color: var(--volt); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: #C9D3DE;
  text-decoration: none; padding-block: 21px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #FFF; border-bottom-color: var(--volt); }
.nav .btn { height: 40px; padding-inline: 18px; font-size: 11px; }

/* ---------- buttons, links, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding-inline: 24px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; border-radius: 0;
  background: transparent; color: inherit; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.s-ink .btn--primary:hover { background: transparent; color: var(--volt); }
.s-paper .btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.s-ink .btn:not(.btn--primary):hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.s-paper .btn:not(.btn--primary):hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--sm { height: 40px; padding-inline: 16px; font-size: 11px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.s-ink .link:hover { color: var(--volt); border-bottom-color: var(--volt); }
.s-paper .link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.link svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link:hover svg { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 8px;
  border: 1px solid var(--line); color: var(--muted);
}
.tag--live { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.tag--live .dot { background: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); display: inline-block; }
.dot--off { background: var(--fog); }

/* ---------- fact strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 24px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.facts dd {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 600;
  font-size: 22px; line-height: 1.2; margin-top: 6px;
}

/* ---------- row lists ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 220px;
  gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease), color .18s var(--ease), padding .18s var(--ease);
}
.s-paper .row:hover { background: var(--ink); color: var(--paper); }
.s-ink .row:hover { background: var(--panel); }
.row__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
}
.row:hover .row__icon { border-color: var(--volt); color: var(--volt); }
.row__icon svg { width: 26px; height: 26px; }
.row__main { display: flex; flex-direction: column; gap: 4px; }
.row__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 19px; line-height: 1.2; }
.row__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.row:hover .row__desc { color: inherit; opacity: .78; }
.row__meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); text-align: right;
}
.s-paper .row:hover .row__meta { color: var(--volt); }
.s-paper .row:hover .tag { color: var(--paper); border-color: rgba(243, 245, 247, .45); }
.s-paper .row:hover .tag--live { color: var(--ink); border-color: var(--volt); }
.s-ink .row:hover .tag { color: var(--volt); border-color: var(--volt); }

/* ---------- console ---------- */
.console { background: var(--surface); border: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 12px 14px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--volt); }
.console__panel { padding: 20px; font-family: var(--font-mono); font-size: 14px; line-height: 1.85; }
.console__line { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; color: var(--muted); }
.console__line b { font-weight: 400; color: var(--fg); }
.console__line--volt, .console__line--volt b { color: var(--volt); }
.console__foot {
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- gate ---------- */
.gate { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.gate__panel { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.gate__switch {
  width: 180px; height: 180px;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--fog); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.gate__switch svg { width: 96px; height: 96px; }
.gate__switch[aria-pressed="true"] { color: var(--volt); border-color: var(--volt); }
.gate__state {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.gate__switch[aria-pressed="true"] + .gate__state { color: var(--volt); }
.s-ink.is-approved { --line: var(--volt); }

/* ---------- spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th {
  width: 190px; text-align: left; vertical-align: top;
  padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.spec td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ---------- page head ---------- */
.pagehead {
  background: var(--ink); color: #EDF1F5;
  border-bottom: 1px solid var(--line-d);
  padding-block: 96px 64px;
}
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 48px; align-items: end; }
.pagehead .h1 { font-size: clamp(36px, 5vw, 64px); }
.pagehead__mark { width: 96px; height: 96px; color: var(--volt); justify-self: end; }
.pagehead .lede { margin-top: 20px; color: var(--fog); max-width: 60ch; }

/* ---------- prose / legal ---------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 600;
  font-size: 26px; line-height: 1.2; margin: 48px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.toc a:hover { color: var(--fg); border-bottom-color: var(--volt); }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 12px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 0; font-size: 16px;
}
.field textarea { height: auto; min-height: 140px; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--fg); outline-offset: 1px; border-color: var(--fg);
}
.form__note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #EDF1F5; border-top: 1px solid var(--line-d); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fog); margin-bottom: 12px;
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: #C9D3DE; font-size: 14px; text-decoration: none; }
.footer a:hover { color: var(--volt); }
.footer__brand { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 28px; letter-spacing: .04em; }
.footer__note { margin-top: 10px; font-size: 13px; color: var(--fog); max-width: 34ch; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-d);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--fog);
}
.footer__ground { width: 28px; height: 28px; color: var(--fog); }
.motion-toggle {
  background: none; border: 1px solid var(--line-d); color: var(--fog);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 8px; cursor: pointer;
}
.motion-toggle:hover { color: var(--volt); border-color: var(--volt); }

/* ---------- circuit ---------- */
.circuit { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.circuit svg { width: 100%; height: auto; }
.circuit text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; fill: var(--muted); }
.circuit .wire { fill: none; stroke: var(--fog); stroke-width: 2; }
.js .circuit .wire {
  stroke-dasharray: 900; stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.1s var(--ease), stroke .4s var(--ease);
}
.js .circuit.is-live .wire { stroke-dashoffset: 0; }
.circuit .pin { fill: none; stroke: var(--fog); stroke-width: 1.5; }
.circuit .lever-open { opacity: 1; transition: opacity .16s linear; }
.circuit .lever-closed { opacity: 0; transition: opacity .16s linear; }
.circuit .node.is-closed .lever-open { opacity: 0; }
.circuit .node.is-closed .lever-closed { opacity: 1; }
.circuit .lamp-body { fill: transparent; stroke: var(--fog); transition: fill .4s var(--ease), stroke .4s var(--ease); }
.circuit.is-lit .lamp-body { fill: var(--volt); stroke: var(--volt); }
.circuit.is-lit .lamp-cross { stroke: var(--ink); }
.circuit.is-lit .wire { stroke: var(--volt); }
.circuit__caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- misc ---------- */
.divider { border-top: 1px solid var(--line); }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only:focus, .sr-only:focus-visible {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; margin: 0;
  overflow: visible; clip: auto; z-index: 999; padding: 10px 14px;
  background: var(--volt); color: var(--ink); font-family: var(--font-mono); font-size: 12px;
}
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
.s-paper :focus-visible { outline-color: var(--ink); }

/* ---------- motion ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
html[data-motion="reduced"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-motion="reduced"] .wire { stroke-dashoffset: 0 !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .circuit .wire { stroke-dashoffset: 0 !important; transition: none !important; }
}

/* ---------- desktop-first safety below 1024 (not a target, just no breakage) ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  .section { padding-block: 80px; }
  .c3, .c4, .c5, .c6, .c7, .c8, .c9 { grid-column: span 12; }
  .gate { grid-template-columns: 1fr; gap: 32px; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .pagehead__grid { grid-template-columns: 1fr; }
  .pagehead__mark { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  :root { --gutter: 20px; }
  .section { padding-block: 56px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row__meta { grid-column: 2; text-align: left; }
  .nav__in { flex-wrap: wrap; padding-block: 10px; gap: 12px 20px; }
  .nav__links { order: 3; width: 100%; gap: 20px; margin-left: 0; }
  .nav__links a { padding-block: 8px; }
  .nav .btn { margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
