/* ═════════════════════════════════════════════════════════════════════════
   PCB MANUFACTURING — design system

   One accent, one grid, one type scale. Everything on this site is built
   from the primitives below; there is no component that invents its own
   colour or its own spacing.

   Rules this file obeys, and which new CSS should obey too:

     · Dark industrial ground, #080909 → #111313. No large gradients.
     · One accent: industrial green #7CFFB2. It marks data, never decoration.
     · Amber appears only as a process hint — fewer than one element in
       twenty, and never on a button.
     · Numbers are engineering instruments: IBM Plex Mono, tabular, large.
     · Hierarchy comes from scale, weight and whitespace — not from boxes.
     · Cards are rare. Thin rules and open space do the dividing.
   ═════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plex-mono-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ground */
  --bg-0: #080909;
  --bg-1: #0c0d0d;
  --bg-2: #111313;

  /* ink */
  --fg: #f3f3f0;
  --fg-2: #8d9290;
  --fg-3: #7d8381;
  --fg-4: #454a48;      /* graphics only — strokes, glyphs, hairlines. Never text. */

  /* structure */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.045);
  --grid: rgba(255, 255, 255, 0.025);

  /* one accent, plus one process hint used sparingly */
  --accent: #7cffb2;
  --accent-dim: rgba(124, 255, 178, 0.14);
  --accent-line: rgba(124, 255, 178, 0.34);
  --copper: #c98a52;
  --copper-dim: rgba(201, 138, 82, 0.16);

  /* glass, used on the nav and a few control surfaces only */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(255, 255, 255, 0.1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --w: 1360px;
  --gut: 40px;
  --nav-h: 64px;
}

/* ── base ─────────────────────────────────────────────────────────────── */

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

html {
  background: var(--bg-0);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-dim); color: var(--fg); }

/* the engineering grid: one pixel, almost invisible, faded at the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 30%, #000 20%, transparent 78%);
}

main, header, footer { position: relative; z-index: 1; }

/* ── type ─────────────────────────────────────────────────────────────── */

.display {
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.h2 {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.h3 { font-size: 17px; line-height: 1.4; font-weight: 500; }
.lede {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: var(--fg-2);
  font-weight: 400;
}
.body-2 { font-size: 14px; line-height: 1.75; color: var(--fg-2); }

/* the label above every section: small, mono, spaced, never decorative */
.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-line);
  flex: none;
}
.kicker--plain::before { display: none; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.dim { color: var(--fg-3); }
.tiny {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.nowrap { white-space: nowrap; }

/* ── layout ───────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.sec { padding: clamp(72px, 9vw, 148px) 0; }
.sec--tight { padding: clamp(48px, 5vw, 84px) 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 64px); }
.sec-head .h2 { margin-top: 18px; }
.sec-head .lede { margin-top: 20px; max-width: 62ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

/* ── bilingual text ──────────────────────────────────────────────────────
   Both languages are in the HTML; the one that does not match <html lang> is
   hidden. Toggling is one attribute change — no DOM rewriting, no flash of
   untranslated text, and both languages stay in the document for search. */
html[lang="en"] .t-zh { display: none; }
html[lang^="zh"] .t-en { display: none; }

/* Keyboard focus is visible on everything interactive, in the accent. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.16s var(--ease);
}
.btn:hover { background: rgba(124, 255, 178, 0.2); border-color: var(--accent); }
.btn:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg-2);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--fg); background: transparent; }
.btn--wide { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color 0.35s var(--ease), gap 0.35s var(--ease);
}
.link-arrow::after { content: "→"; color: var(--accent); }
.link-arrow:hover { color: var(--fg); gap: 16px; }

/* ── badges: honest labels for anything that is not real data ─────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge--demo { border-color: var(--copper-dim); color: var(--copper); }
.badge--live { border-color: var(--accent-line); color: var(--accent); }

/* ── nav ──────────────────────────────────────────────────────────────── */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
    -webkit-backdrop-filter 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.top.is-scrolled {
  background: rgba(8, 9, 9, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo svg { width: 26px; height: 26px; overflow: visible; }
.logo b {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 0;
  transition: color 0.35s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-here { color: var(--accent); }
.nav-links a.is-here::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.top-cta { flex: none; padding: 10px 16px; font-size: 10.5px; }
.burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  position: relative;
  cursor: pointer;
  flex: none;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px; height: 1px;
  background: var(--fg-2);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 21px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  flex: 1;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin: 22px 0 0; }
.hero-sub {
  margin-top: 22px !important;
  max-width: 40ch;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.7;
  color: var(--fg-2);
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* the stage: the board sits in it, with technical annotation around it */
.stage { position: relative; }
.stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1.44 / 1;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  overflow: hidden;
}
.stage-box canvas { width: 100%; height: 100%; }
.stage-corner {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.stage-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.stage-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.stage-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.stage-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* hover readout for a trace, via or pad */
.probe {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  padding: 6px 9px;
  background: rgba(8, 9, 9, 0.92);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity 0.18s var(--ease);
}
.probe.on { opacity: 1; }

/* hud: the technical annotation around the board */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud-item {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  white-space: nowrap;
}
.hud-item.on { opacity: 1; }
.hud-item b { color: var(--fg-2); font-weight: 500; }
.hud-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--line);
}
.hud-item.l::before { right: -20px; }
.hud-item.r::before { left: -20px; }
.hud-item.l { left: 5%; }
.hud-item.r { right: 5%; text-align: right; }

/* hero status bar: the system, stated once */
.status {
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
}
.status-in {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gut);
  overflow-x: auto;
  scrollbar-width: none;
}
.status-in::-webkit-scrollbar { display: none; }
.status-node {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  flex: none;
}
.status-node i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 255, 178, 0.1);
  animation: pulse 3.4s var(--ease-io) infinite;
}
.status-node:nth-child(3) i { animation-delay: 0.5s; }
.status-node:nth-child(5) i { animation-delay: 1s; }
.status-node:nth-child(7) i { animation-delay: 1.5s; }
.status-node:nth-child(9) i { animation-delay: 2s; }
.status-node:last-child i { background: var(--copper); box-shadow: 0 0 0 3px var(--copper-dim); }
.status-rail {
  flex: 1 1 28px;
  min-width: 18px;
  height: 1px;
  background: var(--line);
  position: relative;
}
.status-rail::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  animation: rail 5.5s linear infinite;
}
@keyframes rail { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ── metrics: the capability statement, as instruments ────────────────── */

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 34px 22px 30px 0;
  border-right: 1px solid var(--line-2);
}
.metric:last-child { border-right: 0; }
.metric-n {
  display: block;
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.metric-n u { text-decoration: none; color: var(--fg-3); font-size: 0.5em; margin-left: 4px; }
.metric-l {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.metric-s {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* ── explorer ─────────────────────────────────────────────────────────── */

.explorer {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}
.ctl { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.ctl:first-child { padding-top: 0; }
.ctl-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ctl-h span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ctl-h b {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  min-width: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.seg button:hover { border-color: rgba(255, 255, 255, 0.22); color: var(--fg); }
.seg button[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
}

.explorer-stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.x-status { margin-top: 18px; border-top: 1px solid var(--line); }
.x-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.x-row i { font-style: normal; color: var(--accent); }
.x-row i.warn { color: var(--copper); }
.x-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* ── anatomy: the stack, drawn as a section through the board ─────────── */

.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 2px; }
.layer {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  cursor: pointer;
  text-align: left;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.layer + .layer { margin-top: 2px; }
.layer:hover, .layer[aria-pressed="true"] { border-color: var(--accent-line); background: var(--bg-2); }
.layer[aria-pressed="true"] { transform: translateX(8px); }
.stack:hover .layer:not(:hover) { transform: translateX(0); }
.layer-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.layer-name { font-size: 14px; color: var(--fg); }
.layer-thick { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.layer-bar { height: 100%; width: 100%; }
.layer--copper .layer-bar { background: linear-gradient(90deg, var(--accent-dim), rgba(124,255,178,0.34)); }
.layer--mask .layer-bar { background: rgba(255, 255, 255, 0.05); }
.layer--core .layer-bar { background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.07)); }
.layer--prepreg .layer-bar { background: linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0.05)); }
.layer-detail {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 26px 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.layer-detail dl { margin: 0; display: grid; gap: 14px; }
.layer-detail dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.layer-detail dd { margin: 5px 0 0; font-size: 13.5px; color: var(--fg); }

/* ── flow: ten steps, with the board changing beside them ─────────────── */

.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.flow-steps { border-top: 1px solid var(--line); }
.flow-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
  opacity: 0.36;
  transition: opacity 0.6s var(--ease);
}
.flow-step.on { opacity: 1; }
.flow-step em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.flow-step.on em { color: var(--accent); }
.flow-step h3 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 13.5px; color: var(--fg-2); line-height: 1.7; }
.flow-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.flow-tags span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: 2px;
}
.flow-stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.flow-phase {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 14px;
  min-height: 16px;
}

/* ── quality ──────────────────────────────────────────────────────────── */

.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.qcell {
  padding: 32px 26px 34px 0;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
}
.qcell:nth-child(3n) { border-right: 0; padding-right: 0; }
.qcell svg { width: 100%; height: 62px; color: var(--fg-4); margin-bottom: 20px; }
.qcell h3 { font-size: 15px; }
.qcell .mono { font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: 10px; }
.qcell p { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--fg-2); }

/* ── traceability ─────────────────────────────────────────────────────── */

.trace { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trace-node {
  flex: 1 1 120px;
  padding: 22px 18px 24px 0;
  border-right: 1px solid var(--line-2);
  position: relative;
}
.trace-node:last-child { border-right: 0; }
.trace-node::after {
  content: "";
  position: absolute;
  top: 29px; right: -4px;
  width: 7px; height: 1px;
  background: var(--line);
}
.trace-node:last-child::after { display: none; }
.trace-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.trace-v { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--fg); }
.trace-s { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--accent); }
.trace-s i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }

/* ── factory console ──────────────────────────────────────────────────── */

.console { border: 1px solid var(--line); background: var(--bg-1); }
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.console-top b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.console-body { display: grid; grid-template-columns: repeat(2, 1fr); }
.console-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
}
.console-row:nth-child(2n) { border-right: 0; }
.console-row span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.console-bar { width: 78px; height: 2px; background: var(--line); position: relative; }
.console-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.console-state { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }

/* ── applications ─────────────────────────────────────────────────────── */

.apps { border-top: 1px solid var(--line); }
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left 0.5s var(--ease);
}
.app-row:hover { padding-left: 14px; }
.app-row h3 {
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.app-row p { font-size: 13.5px; color: var(--fg-2); }
.app-row svg { width: 74px; height: 40px; color: var(--fg-4); flex: none; }
.app-row:hover svg { color: var(--accent-line); }

/* ── case studies ─────────────────────────────────────────────────────── */

.case { border: 1px solid var(--line); background: var(--bg-1); padding: clamp(26px, 3vw, 40px); }
.case-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.case h3 { font-size: clamp(18px, 2vw, 24px); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; border-top: 1px solid var(--line-2); padding-top: 26px; }
.case-grid dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); }
.case-grid dd { margin: 9px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--fg-2); }
.case-grid dd b { display: block; color: var(--fg); font-weight: 500; font-family: var(--mono); font-size: 14px; }

/* ── resources ────────────────────────────────────────────────────────── */

.docs { border-top: 1px solid var(--line); }
.doc {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 120px 92px 24px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left 0.45s var(--ease), color 0.4s var(--ease);
}
.doc:hover { padding-left: 12px; }
.doc-ico { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.doc h3 { font-size: 14.5px; font-weight: 500; }
.doc p { font-size: 12.5px; color: var(--fg-3); margin-top: 4px; }
.doc-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--fg-3); }
.doc-arrow { color: var(--accent); font-family: var(--mono); }

/* ── quote ────────────────────────────────────────────────────────────── */

.drop {
  border: 1px dashed var(--line);
  background: var(--bg-1);
  padding: clamp(34px, 5vw, 68px) 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--accent-line); background: var(--bg-2); }
.drop-ico { margin: 0 auto 20px; width: 40px; height: 40px; color: var(--fg-4); }
.drop h3 { font-size: 16px; }
.drop p { margin-top: 10px; font-size: 13px; color: var(--fg-3); }
.drop-formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.drop input { display: none; }
.files { margin-top: 24px; border-top: 1px solid var(--line); }
.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 96px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-2);
}
.file-row b { font-weight: 400; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row span { color: var(--fg-3); text-align: right; }
.analysis { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.analysis div { background: var(--bg-1); padding: 18px 20px; }
.analysis dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); }
.analysis dd { margin: 8px 0 0; font-family: var(--mono); font-size: 17px; color: var(--fg); }

/* ── timeline ─────────────────────────────────────────────────────────── */

.timeline { border-top: 1px solid var(--line); }
.tl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
}
.tl b { font-family: var(--mono); font-size: 15px; font-weight: 400; color: var(--accent); }
.tl h3 { font-size: 15px; margin-bottom: 6px; }
.tl p { font-size: 13px; color: var(--fg-2); line-height: 1.7; }

/* ── contact ──────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.contact-cell { background: var(--bg-1); padding: 30px 26px; }
.contact-cell h3 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; }
.contact-cell a.big { display: block; margin-top: 16px; font-size: 15px; color: var(--accent); word-break: break-all; }
.contact-cell p { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--fg-2); }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 110px); }
.foot-in {
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap: 40px;
  align-items: start;
  padding: clamp(44px, 5vw, 72px) 0 40px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.foot-tag { margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color 0.35s var(--ease);
}
.foot-nav a:hover { color: var(--accent); }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.foot-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-certs span { border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 2px; color: var(--fg-3); }

/* ── scroll reveal ────────────────────────────────────────────────────── */

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .rv.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  :root { --gut: 32px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric { border-bottom: 1px solid var(--line-2); }
  .metric:nth-child(3n) { border-right: 0; }
  .metric:nth-child(n + 4) { border-bottom: 0; }
  .qgrid { grid-template-columns: repeat(2, 1fr); }
  .qcell:nth-child(3n) { border-right: 1px solid var(--line-2); padding-right: 26px; }
  .qcell:nth-child(2n) { border-right: 0; padding-right: 0; }
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: block; margin-left: auto; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 620px; }
  .split, .explorer, .anatomy, .flow { grid-template-columns: 1fr; }
  .explorer-stage, .layer-detail, .flow-stage { position: static; }
  .stage-box { aspect-ratio: 1.5 / 1; }
  .layer-detail { margin-top: 22px; }
  .flow-stage { order: -1; margin-bottom: 28px; }

  /* the mobile nav is a panel inside the fixed bar, never a full-screen
     overlay: iOS keeps the browser chrome colour when the page stays put */
  .nav-links.open {
    display: grid;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px var(--gut) 18px;
    background: rgba(8, 9, 9, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 15px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; }
  .nav-links.open a.is-here::after { display: none; }
}

@media (max-width: 720px) {
  :root { --gut: 20px; --nav-h: 58px; }
  body { font-size: 14.5px; }
  .sec { padding: 64px 0; }

  /* mobile hero: the board comes first, then the claim, then the actions.
     It is the product — it should not be the third thing on the screen. */
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero-grid { display: flex; flex-direction: column; gap: 30px; }
  .hero-grid > .stage { order: -1; }
  .hero-grid > .hero-copy { order: 1; }
  .stage-box { aspect-ratio: 1.28 / 1; }
  .hud-item { font-size: 9px; }
  .hud-item--opt { display: none; }
  .hud-item.l::before, .hud-item.r::before { width: 10px; }
  .hero-acts .btn { flex: 1 1 auto; justify-content: center; }
  .status-in { padding: 0 var(--gut); }

  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 24px 16px 22px 0; }
  .metric-n { font-size: 30px; }
  .metric:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n + 4) { border-bottom: 1px solid var(--line-2); }

  .qgrid, .case-grid, .contact-grid, .analysis { grid-template-columns: 1fr; }
  .qcell { border-right: 0; padding-right: 0; }
  .console-body { grid-template-columns: 1fr; }
  .console-row { border-right: 0; }
  .app-row { grid-template-columns: 1fr; gap: 14px; }
  .app-row svg { display: none; }
  .doc { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; }
  .doc-meta:nth-of-type(1) { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .layer { grid-template-columns: 74px minmax(0, 1fr) auto; padding: 0 12px; gap: 12px; }
  .tl { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
  .trace { flex-direction: column; }
  .trace-node { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 18px 0; }
  .trace-node::after { display: none; }
  .seg { gap: 5px; }
  .seg button { min-width: 40px; padding: 7px 9px; font-size: 10.5px; }
  .file-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .file-row span:nth-of-type(2) { display: none; }
}

/* Motion is never switched off on these sites. What reduces is travel and
   speed — the scan keeps sweeping, the board keeps settling, the counters
   keep counting; they just move less while doing it. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { transform: none; transition-duration: 0.4s; }
  .status-rail::after, .status-node i { animation-duration: 9s; }
  .app-row:hover { padding-left: 0; }
}
