:root {
  --navy: #0c1a22;
  --cyan: #2a9bb0;
  --lime: #c6e04a;
  --steel: #c5ced3;
  --ink: #102028;
  --paper: #e8eef1;
  --mute: #5c6d75;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--mono); background: rgba(42,155,176,0.12); padding: 0.05em 0.35em; }
.steel-veil { pointer-events: none; position: fixed; inset: 0; z-index: 6; opacity: 0.14; background-image: url("images/texture.webp"); background-size: 280px auto; mix-blend-mode: multiply; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 80; background: var(--lime); padding: 8px; }
.pipebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: rgba(12,26,34,0.94); color: var(--steel); }
.brand { font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--cyan); font-weight: 400; }
.nav-toggle { display: none; background: var(--lime); color: var(--navy); border: 0; padding: 8px 12px; font-weight: 700; }
.pipe-nav { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.pipe-nav a { color: #8aa0aa; }
.pipe-nav a.is-active, .pipe-nav a:hover { color: #fff; }
.pipe-nav a.live { background: var(--lime); color: var(--navy); padding: 7px 12px; font-weight: 700; }
.circuit { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; background: var(--navy); color: var(--cyan); font-family: var(--mono); font-size: 12px; text-align: center; }
.circuit li { padding: 10px; border-right: 1px solid rgba(42,155,176,0.3); position: relative; }
.circuit li::after { content: "→"; position: absolute; right: -6px; color: var(--lime); }
.circuit li:last-child { border-right: 0; }
.circuit li:last-child::after { content: ""; }
.gas-hero { position: relative; min-height: 78vh; display: grid; align-items: end; color: #e8eef1; }
.gas-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gas-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,26,34,0.88), rgba(12,26,34,0.25)); }
.gh-copy { position: relative; z-index: 1; padding: 8vh 6vw; max-width: 720px; }
.kicker { font-family: var(--mono); letter-spacing: 0.16em; font-size: 11px; color: var(--lime); margin: 0 0 12px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.1; }
h1 { font-size: clamp(32px, 5.4vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
.lead { max-width: 42em; }
.quiet { color: var(--mute); max-width: 46em; }
.loss-demo { margin: 16px 0; padding: 14px; background: rgba(12,26,34,0.55); border: 1px solid rgba(198,224,74,0.35); }
.lever { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; }
.lever input { flex: 1; accent-color: var(--lime); }
.hot { color: var(--lime); }
.ok { color: #8fd0a0; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid currentColor; font-weight: 700; }
.btn.fill { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.btn.ghost { color: #fff; }
.loop { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.navy { background: var(--navy); color: var(--paper); }
.navy .quiet, .navy .kicker { color: var(--cyan); }
.navy .app-link { color: var(--lime); }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.tri article, .grid6 article, .grid3 article, .io > div { background: #fff; border: 1px solid rgba(16,32,40,0.12); padding: 16px; }
.navy .grid3 article, .navy .io > div { background: rgba(232,238,241,0.06); color: var(--paper); }
.tri ul, .io ul, .bound { margin: 0; padding-left: 1.1em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 28px 0; }
.row.rev { direction: rtl; }
.row.rev > * { direction: ltr; }
.num { font-family: var(--mono); color: var(--lime); font-size: 12px; letter-spacing: 0.12em; }
.row figure { margin: 0; }
.row figcaption { margin-top: 8px; font-size: 13px; color: var(--cyan); }
.grid6, .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.bound { max-width: 46em; }
footer { padding: 18px 22px 36px; background: var(--navy); color: #8aa0aa; font-family: var(--mono); font-size: 12px; }
@media (max-width: 900px) {
  .circuit { grid-template-columns: 1fr 1fr; }
  .circuit li::after { content: ""; }
  .tri, .row, .row.rev, .grid6, .grid3, .io { grid-template-columns: 1fr; }
  .row.rev { direction: ltr; }
  .nav-toggle { display: inline-block; }
  .pipe-nav { display: none; position: absolute; right: 10px; top: 52px; flex-direction: column; background: var(--navy); border: 1px solid var(--lime); padding: 10px; min-width: 180px; }
  .pipe-nav.open { display: flex; }
}
