/* ═══════════════════════════════════════════════════════════════
   SIVO
   A mind glowing in the dark. Near-black void, an ethereal orb and
   drifting nebula, a luminous green-white presence, and a live
   instrument reading out one agent's endless attempt. Failure is the
   one warm-red note in the cold.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --void:    #07080b;
  --panel:   #0c0e13;
  --panel-2: #11141b;
  --panel-3: #171b23;
  --grid:    #161a21;   /* faint chart grid */
  --grid-2:  #1f242d;

  /* names kept (--ink*, --pen) so app.js and inline SVG adapt automatically */
  --ink:   #e9ede9;
  --ink-2: #9ba49d;
  --ink-3: #6c736e;
  --ink-4: #474d49;

  --rule:      #1b2028;
  --rule-soft: #14181e;
  --rule-hard: #333c46;

  --pen:    #a6ecc9;   /* the luminous accent: alive, working, present */
  --pen-2:  #6fbf98;
  --glow:   rgba(150, 230, 190, .5);

  --fail:    #e26a5e;  /* the one warm note: failure, still locked */
  --fail-bg: #241412;
  --live:    #8fe3b8;
  --gold:    #c9b17a;

  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  --shell: 1240px;
  --pad: clamp(18px, 4vw, 46px);
  --measure: 68ch;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 62px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--void);
}

/* ambient cosmic wash + faint grain, fixed behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 720px at 50% -8%, rgba(120, 210, 165, .10), transparent 60%),
    radial-gradient(900px 900px at 50% 112%, rgba(70, 120, 100, .06), transparent 60%),
    radial-gradient(1000px 800px at 100% 0%, rgba(90, 140, 120, .05), transparent 55%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p, dl, ol, ul, figure, blockquote { margin: 0; }
sup { font-size: .62em; }
a { color: inherit; }

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

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }
.grow { flex: 1; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

.rule      { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-hard { border: 0; border-top: 1px solid var(--rule-hard); margin: 14px 0 0; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--pen); color: var(--void); padding: 10px 16px; font-family: var(--mono); font-size: 12px; }
.skip:focus { left: 8px; top: 8px; }

.desig, .panel-title, .panel-note, .meta, .tape-label, .r-k, .unit,
.rib b, .foot-stats dt, .card .now, .ops-chart-cap, .rib-note {
  font-family: var(--mono);
}

/* blinking presence cursor */
.cursor {
  display: inline-block; width: .48em; height: 1.05em; margin-left: 5px;
  background: var(--pen); box-shadow: 0 0 10px var(--glow);
  transform: translateY(3px); animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── top bar ─────────────────────────────────────────────────── */

.rule-bar {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.rule-bar-in {
  display: flex; align-items: center; gap: 18px; height: 40px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.rb-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; letter-spacing: .18em; white-space: nowrap; }
.mark { color: var(--pen); flex-shrink: 0; filter: drop-shadow(0 0 6px var(--glow)); }
.rb-ca {
  appearance: none; background: none; border: 0; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: none;
  color: var(--ink-3); cursor: pointer; text-align: left;
  min-width: 0; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rb-ca #contractCA { color: var(--pen); text-shadow: 0 0 10px var(--glow); }
.rb-ca:hover #contractCA { color: #d6ffe9; }
.rb-ca.copied #contractCA { color: var(--live); text-shadow: none; }
.rb-x { display: inline-flex; align-items: center; color: var(--ink-3); flex-shrink: 0; transition: color .15s; }
.rb-x:hover { color: var(--pen); filter: drop-shadow(0 0 6px var(--glow)); }
.rb-wallet { text-transform: none; letter-spacing: .02em; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-runtime { letter-spacing: .06em; color: var(--ink-2); }

.status { display: inline-flex; align-items: center; gap: 7px; color: var(--live); font-weight: 500; white-space: nowrap; }
.beacon { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 3.2s ease-in-out infinite; }
.status.stalled { color: var(--ink-4); }
.status.stalled .beacon { background: var(--ink-4); box-shadow: none; animation: none; }
@keyframes pulse { 0%,100% { opacity: .4 } 50% { opacity: 1 } }

/* ── faceplate + the cosmos ──────────────────────────────────── */

.masthead { position: relative; padding: 40px 0 0; overflow: hidden; }
.cosmos { position: absolute; inset: -10% -10% 0 -10%; z-index: 0; pointer-events: none; }
.nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 32% 42%, rgba(120, 200, 160, .12), transparent 72%),
    radial-gradient(closest-side at 62% 52%, rgba(150, 210, 180, .10), transparent 72%),
    radial-gradient(closest-side at 48% 38%, rgba(200, 235, 215, .07), transparent 64%),
    radial-gradient(closest-side at 78% 30%, rgba(90, 150, 125, .09), transparent 70%);
  filter: blur(38px); opacity: .9;
  animation: drift 42s ease-in-out infinite alternate;
}
.orb {
  position: absolute; left: 50%; top: 46%; width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, .92) 0%,
    rgba(198, 245, 222, .55) 11%,
    rgba(120, 200, 165, .22) 28%,
    rgba(60, 110, 90, .10) 46%,
    transparent 66%);
  filter: blur(6px); opacity: .55;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .5; }
  50%      { transform: translate(-50%, -50%) scale(1.05); opacity: .62; }
}

.faceplate { position: relative; z-index: 1; }
.faceplate-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.faceplate-top .unit-mid { color: var(--ink-4); }
.faceplate-top #datelineNo { color: var(--pen); white-space: nowrap; }
.faceplate > .rule { margin: 12px 0 0; border-color: var(--rule); }

.wordmark {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(64px, 15vw, 200px);
  line-height: .9; letter-spacing: -.04em; margin: 18px 0 0;
  color: #f4f8f4;
  text-shadow: 0 0 60px rgba(166, 236, 201, .22), 0 0 20px rgba(255, 255, 255, .12);
}
.objective {
  margin: 20px 0 0; max-width: 62ch;
  font-family: var(--sans); font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.5; color: var(--ink-2);
}

/* target ribbon */
.ribbon { display: flex; flex-wrap: wrap; margin-top: 26px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rib {
  display: inline-flex; align-items: baseline; gap: 9px;
  padding: 11px 20px 11px 0; margin-right: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  border-right: 1px solid var(--rule); white-space: nowrap;
}
.rib:last-child { border-right: 0; margin-right: 0; }
.rib b { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.rib #tAddress { white-space: normal; word-break: break-all; }
.rib .stamped { color: var(--fail); }
.rib-note { margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-4); }

/* ── channel selector ───────────────────────────────────────── */

.sections { display: flex; flex-wrap: wrap; margin-top: 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sections a {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: 12px 22px; border-right: 1px solid var(--rule);
  transition: background .18s, color .18s;
}
.sections a:first-child { border-left: 1px solid var(--rule); }
.sections a span { font-size: 9.5px; color: var(--pen); letter-spacing: .05em; }
.sections a:hover { background: var(--panel-2); color: var(--ink); }

/* ── panel primitive ─────────────────────────────────────────── */

.panel { border: 1px solid var(--rule-hard); background: var(--panel); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85), 0 0 0 1px rgba(160,230,195,.03); }
.panel-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 15px; border-bottom: 1px solid var(--rule-hard);
  background: linear-gradient(to bottom, rgba(160,230,195,.05), transparent);
}
.panel-bar .desig { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pen); border: 1px solid var(--pen-2); padding: 2px 7px; }
.panel-bar .panel-title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.panel-bar .panel-note { margin-left: auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ── PANEL 01: operations console ────────────────────────────── */

.ops { padding: 26px 0 8px; }
.ops-panel { overflow: hidden; }

.ops-chart {
  position: relative; height: 150px;
  border-bottom: 1px solid var(--rule-hard);
  background-color: var(--panel);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px);
  background-size: 13px 13px, 13px 13px, 65px 65px, 65px 65px;
}
#chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.axis-y { position: absolute; left: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: .04em; z-index: 2; pointer-events: none; }
.axis-y.top { top: 6px; }
.axis-y.mid { top: 50%; transform: translateY(-50%); }
.axis-y.bot { bottom: 6px; }
.ops-chart-cap { padding: 9px 15px; border-bottom: 1px solid var(--rule-hard); font-size: 10.5px; letter-spacing: .02em; color: var(--ink-3); line-height: 1.5; }
.ops-chart-cap b { color: var(--ink-2); font-weight: 500; }

.ops-body { display: grid; grid-template-columns: 1fr 316px; }

.tape-col { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--rule-hard); }
.tape-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; border-bottom: 1px solid var(--rule); background: rgba(160,230,195,.03); }
.tape-label { display: inline-flex; align-items: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--pen); box-shadow: 0 0 8px var(--glow); margin-right: 8px; animation: pulse 1.8s ease-in-out infinite; }
.toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); user-select: none; }
.toggle:hover { color: var(--ink); }
.toggle input { accent-color: var(--pen); width: 12px; height: 12px; }

.tape {
  flex: none; min-height: 0; height: clamp(380px, 50vh, 540px);
  overflow-y: auto; overflow-x: hidden;
  padding: 8px 0; font-family: var(--mono); font-size: 12px; line-height: 1.8;
  scrollbar-width: thin; scrollbar-color: var(--rule-hard) transparent;
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 100% 21.6px; background-position: 0 8px;
}
.tape::-webkit-scrollbar { width: 10px; }
.tape::-webkit-scrollbar-thumb { background: var(--rule-hard); }

.ln { display: flex; gap: 12px; padding: 0 16px; word-break: break-all; }
.ln.zebra { background: rgba(255,255,255,.018); }
.ln.fresh { animation: feed .5s ease-out; }
@keyframes feed { from { opacity: 0 } to { opacity: 1 } }
.ln .t { color: var(--ink-4); flex-shrink: 0; }
.ln .b { min-width: 0; }
.ln.miss .b { color: var(--ink-3); }
.ln.miss .addr-out { color: var(--ink-2); }
.ln.miss .verdict { color: var(--fail); letter-spacing: .08em; font-size: 10.5px; text-transform: uppercase; }
.ln.system .b { color: var(--gold); }
.ln.angle, .ln.reflection { padding: 11px 16px; margin: 4px 0; background: var(--panel-3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: inset 2px 0 0 var(--pen-2); }
.ln.angle .b { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.ln.reflection .b { font-family: var(--sans); font-style: italic; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.ln.reflection .b::before { content: "Closing note. "; font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fail); }

.tape-foot { padding: 10px 15px; border-top: 1px solid var(--rule-hard); font-family: var(--mono); font-size: 10px; color: var(--ink-3); line-height: 1.6; }

.rig-col { display: flex; flex-direction: column; }
.rig-col .readout { padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.readout .r-k { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.readout .r-v { font-size: 22px; margin-top: 4px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.readout.hero { background: rgba(160,230,195,.045); }
.readout.hero .r-v { font-size: 30px; color: #f2f7f3; text-shadow: 0 0 24px rgba(166,236,201,.18); }
.readout .r-v.stamped { color: var(--fail); }
.workingon { padding: 15px 16px; margin-top: auto; border-top: 1px solid var(--rule-hard); background: rgba(160,230,195,.03); }
.workingon .r-k { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.wo-name { font-family: var(--mono); font-size: 14px; color: var(--pen); margin-top: 6px; }
.meter { margin-top: 11px; height: 4px; background: var(--panel-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--pen); box-shadow: 0 0 10px var(--glow); transition: width .4s linear; }

/* ── bands & section heads ──────────────────────────────────── */

.band { padding: 62px 0; border-top: 1px solid var(--rule); }
.band.plate { background: var(--panel); border-top: 1px solid var(--rule-hard); border-bottom: 1px solid var(--rule-hard); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head-l { display: flex; flex-direction: column; gap: 10px; }
.sec-head .desig { align-self: flex-start; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pen); border: 1px solid var(--pen-2); padding: 3px 8px; }
.sec-head h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -.025em; line-height: 1; color: #f2f6f2; }
.sec-head .meta { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: right; line-height: 1.85; }
.sec-intro { max-width: var(--measure); color: var(--ink-2); font-size: 16px; margin-top: 20px; }

/* ── PANEL 02: scale ────────────────────────────────────────── */

.scale { margin-top: 30px; border: 1px solid var(--rule-hard); background: var(--panel); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85); padding: 20px 22px 16px; }
#scale { width: 100%; height: 120px; display: block; overflow: visible; }
.scale figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.scale figcaption .hot { color: var(--pen); }
.remaining { margin-top: 24px; border: 1px solid var(--rule-hard); background: var(--panel); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85); padding: 20px 24px 24px; }
.remaining-k { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 15px; }
.nines { font-size: clamp(13px, 1.78vw, 19px); line-height: 1.55; color: var(--ink); word-break: break-all; letter-spacing: -.01em; }
.nines span { color: var(--ink-3); }

/* ── PANEL 03: methods ──────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; margin-top: 32px; border: 1px solid var(--rule-hard); background: var(--panel); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85); }
.card { padding: 20px 22px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .2s; }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.2; margin-bottom: 9px; letter-spacing: -.01em; color: var(--ink); }
.card p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.card .now { display: none; margin-top: 12px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pen); }
.card.on { background: rgba(160,230,195,.05); box-shadow: inset 3px 0 0 var(--pen); }
.card.on .now { display: inline-block; }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 42px; }
.idea { border-top: 1px solid var(--rule-hard); padding-top: 20px; }
.idea h3 { font-family: var(--sans); font-weight: 700; font-size: 22px; margin-bottom: 12px; letter-spacing: -.02em; color: var(--ink); }
.idea p { color: var(--ink-2); font-size: 15px; max-width: 54ch; }

/* ── PANEL 04: ledger ───────────────────────────────────────── */

.table-scroll { overflow-x: auto; margin-top: 28px; border: 1px solid var(--rule-hard); background: var(--panel); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85); }
.ledger-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ledger-table th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--rule-hard); white-space: nowrap; }
.ledger-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); vertical-align: top; }
.ledger-table tr.row { cursor: pointer; transition: background .12s; }
.ledger-table tr.row:hover td { background: var(--panel-2); }
.ledger-table td.n, .ledger-table td.k, .ledger-table td.w { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ledger-table td.n { color: var(--ink); }
.chip { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fail); border: 1px solid var(--fail); background: var(--fail-bg); padding: 2px 8px; white-space: nowrap; }
tr.detail td { background: var(--panel-2); padding: 2px 14px 18px; }
tr.detail .why { max-width: var(--measure); font-size: 15px; color: var(--ink-2); font-style: italic; }
tr.detail .why strong { display: block; font-family: var(--mono); font-style: normal; color: var(--ink); font-weight: 500; font-size: 13px; letter-spacing: .02em; margin-bottom: 6px; }
.empty { padding: 26px 14px; color: var(--ink-3); font-style: italic; }

/* ── PANEL 05: briefing ─────────────────────────────────────── */

.steps { list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule-hard); }
.steps li { padding: 26px 28px 28px; border-right: 1px solid var(--rule); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; padding-right: 0; }
.step-n { font-family: var(--mono); font-weight: 600; font-size: 30px; line-height: 1; color: var(--pen); text-shadow: 0 0 18px var(--glow); }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; margin: 14px 0 10px; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
.steps p { font-size: 14.5px; color: var(--ink-2); }
.pullquote { margin: 52px auto 0; max-width: 60ch; text-align: center; font-family: var(--sans); font-weight: 600; font-size: clamp(21px, 2.7vw, 31px); line-height: 1.3; letter-spacing: -.02em; padding: 34px 0; border-top: 1px solid var(--rule-hard); border-bottom: 1px solid var(--rule-hard); color: #eef3ef; }

/* ── colophon ────────────────────────────────────────────────── */

.foot { padding: 0 0 64px; position: relative; overflow: hidden; }
.foot .shell { border-top: 1px solid var(--rule-hard); padding-top: 52px; position: relative; z-index: 1; }
.foot-line { font-family: var(--sans); font-weight: 700; font-size: clamp(38px, 8vw, 92px); line-height: .98; letter-spacing: -.04em; color: #f2f6f2; }
.foot-line em { font-style: normal; color: var(--pen); text-shadow: 0 0 40px var(--glow); }
.foot-stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.foot-stats dt { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.foot-stats dd { margin: 6px 0 0; font-size: 20px; color: var(--ink-2); }
.foot-stats dd.stamped { color: var(--fail); }

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

@media (max-width: 1000px) {
  .ops-body { grid-template-columns: 1fr; }
  .tape-col { border-right: 0; border-bottom: 1px solid var(--rule-hard); }
  .rig-col { flex-direction: row; flex-wrap: wrap; }
  .rig-col .readout { flex: 1 1 33%; border-bottom: 0; border-right: 1px solid var(--rule); }
  .rig-col .readout.hero { flex-basis: 100%; }
  .workingon { flex-basis: 100%; margin-top: 0; }
  .ideas { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; padding-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .steps li:nth-child(1), .steps li:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .faceplate-top .unit-mid { display: none; }
  .orb { width: 460px; height: 460px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 94px; }
  .rule-bar-in { height: auto; padding: 7px var(--pad); flex-wrap: wrap; gap: 6px 12px; font-size: 9.5px; justify-content: space-between; }
  .rb-wallet, .rb-runtime, .rule-bar-in .grow { display: none; }
  .rb-ca { max-width: 58vw; }
  .wordmark { font-size: clamp(58px, 22vw, 120px); }
  .rib { margin-right: 14px; padding-right: 14px; font-size: 11px; }
  .sections { flex-wrap: nowrap; overflow-x: auto; }
  .sections a { padding: 10px 14px; font-size: 9.5px; white-space: nowrap; }
  .sections a:first-child { border-left: 0; }
  .rig-col .readout { flex-basis: 50%; }
  .sec-head .meta { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps li:last-child { border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .tape { height: 56vh; font-size: 11px; }
  .ln { gap: 9px; padding: 0 11px; }
  .foot-stats { gap: 28px; }
  .orb { width: 360px; height: 360px; top: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .beacon, .dot-live, .cursor { opacity: .9; }
  .orb, .nebula { animation: none !important; }
}
