@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/plex-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --board: #0b0d10;
  --panel: #101319;
  --s2: #151b24;
  --line: #1e2530;
  --line-lit: #2c3646;
  --green: #37ff7c;
  --green-dim: #1f9e4e;
  --amber: #ffb020;
  --red: #ff4d4d;
  --text: #e8e4d8;
  --muted: #8b93a1;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-s: 4px;
  --r-m: 8px;
  --sh-1: 0 1px 0 rgba(0,0,0,.4), 0 4px 18px rgba(0,0,0,.35);
  --sh-2: 0 2px 0 rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5), 0 0 24px rgba(55,255,124,.05);
  --sh-glow: 0 0 0 1px var(--line-lit), 0 12px 36px rgba(0,0,0,.55), 0 0 30px rgba(55,255,124,.08);
  --t-fast: 160ms;
  --t-med: 340ms;
  --t-slow: 700ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--board);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(11,13,16,.94); z-index: 10;
}
.wordmark { font-weight: 700; letter-spacing: .12em; }
.wordmark span { color: var(--amber); }
.topbar nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.topbar nav a:hover { color: var(--green); }
.ticker-badge {
  border: 1px solid var(--green-dim); color: var(--green);
  padding: 4px 10px; font-size: 13px; letter-spacing: .08em;
}

/* The exchange floor plate behind the hero: vignetted so the board number
   stays dominant, ambient video when motion is allowed, still webp otherwise. */
.hero-plate { position: relative; overflow: hidden; }
.hero-plate::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(11,13,16,.30) 0%, rgba(11,13,16,.78) 62%, rgba(11,13,16,.96) 100%),
    linear-gradient(rgba(11,13,16,.35), rgba(11,13,16,.92));
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .85;
}
.hero-plate:not(.has-video) .hero-video,
.hero-plate .hero-video:not([data-live]) { background: url("assets/plate floor.webp") center/cover; }
.hero-plate .hero { position: relative; z-index: 2; }
.hero { text-align: center; padding: 64px 20px 40px; max-width: 980px; margin: 0 auto; }

/* The facade plate under the lore: text sits on the stone. */
.facade-plate {
  position: relative;
  background:
    linear-gradient(rgba(11,13,16,.82), rgba(11,13,16,.88)),
    url("assets/plate facade.webp") center 30% / cover no-repeat;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 72px;
}
.facade-plate .section { padding-top: 64px; padding-bottom: 56px; }
.facade-plate p { text-shadow: 0 1px 8px rgba(0,0,0,.8); }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-plate { background: url("assets/plate floor.webp") center/cover; }
}
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .3em; margin-bottom: 28px; }

.board {
  display: inline-block; background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 26px 44px; margin-bottom: 40px;
  box-shadow: 0 0 60px rgba(55,255,124,.06) inset;
}
.board-label { color: var(--muted); font-size: 12px; letter-spacing: .35em; }
.board-number {
  font-size: clamp(48px, 9vw, 88px); font-weight: 700;
  color: var(--green); text-shadow: 0 0 24px rgba(55,255,124,.35);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.board-delta { font-size: 20px; margin-left: 14px; vertical-align: middle; }
.board-delta.up { color: var(--green); }
.board-delta.down { color: var(--red); }
.board-sub { color: var(--muted); font-size: 12px; letter-spacing: .18em; margin-top: 8px; }

h1 {
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 1.3; font-weight: 700; margin-bottom: 16px;
}
.sub { color: var(--amber); font-size: clamp(15px, 2vw, 18px); margin-bottom: 12px; }
.sub2 { color: var(--muted); font-size: clamp(13px, 1.6vw, 16px); max-width: 62ch; margin: 0 auto 32px; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 12px 22px; font-family: var(--mono); font-size: 14px;
  text-decoration: none; letter-spacing: .05em; border-radius: 3px;
}
.btn.primary { background: var(--green); color: #06220f; font-weight: 700; }
.btn.primary:hover { background: #5fffa0; }
.btn.ghost { border: 1px solid var(--line); color: var(--muted); padding: 12px 16px; font-size: 13px; }

.tape-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #07090b; }
.tape { display: inline-flex; gap: 34px; padding: 10px 0; white-space: nowrap; animation: tape 60s linear infinite; }
.tape span { font-size: 13px; letter-spacing: .06em; }
.tape .sym { color: var(--text); font-weight: 700; }
.tape .up { color: var(--green); }
.tape .down { color: var(--red); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { max-width: 1060px; margin: 0 auto; padding: 72px 24px 8px; }
.section h2 { color: var(--amber); letter-spacing: .3em; font-size: 18px; margin-bottom: 14px; }
.lede { max-width: 760px; margin-bottom: 28px; }
.fine { color: var(--muted); font-size: 12px; margin: 18px 0 0; }

.table-wrap { overflow-x: auto; overflow-y: auto; max-height: 470px; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 400; letter-spacing: .1em; font-size: 12px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
th:nth-child(4), td:nth-child(4),
th:nth-child(5), td:nth-child(5) { text-align: right; }
tbody tr:hover { background: #0e1218; }
tr:last-child td { border-bottom: none; }
td.up { color: var(--green); }
td.down { color: var(--red); }
td .tier { border: 1px solid var(--line); padding: 1px 7px; font-size: 11px; color: var(--text); border-radius: 3px; }

.desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.desk-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.desk-head { display: flex; align-items: flex-start; gap: 12px; }
.desk-card canvas { width: 48px; height: 48px; image-rendering: pixelated; border-radius: 4px; flex-shrink: 0; }
.desk-name { font-weight: 700; color: var(--text); line-height: 1.3; }
.desk-pnl { font-size: 12px; white-space: nowrap; }
.desk-pnl.up { color: var(--green); }
.desk-pnl.down { color: var(--red); }
.desk-card p { color: var(--muted); font-size: 13px; }

.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip canvas { width: 72px; height: 72px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 4px; }
.strip canvas.gold { border-color: var(--amber); box-shadow: 0 0 14px rgba(255,176,32,.25); }

.divs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.div-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.div-card .n { color: var(--green); font-size: 13px; margin-bottom: 8px; letter-spacing: .2em; }
.div-card p { font-size: 14px; }

.manifesto p { max-width: 820px; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.8; }
.manifesto .sig { color: var(--amber); margin-top: 18px; letter-spacing: .2em; }

.deskrow-wrap { max-width: 1440px; margin: 24px auto 0; padding: 0 24px; }
.deskrow { width: 100%; display: block; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }

/* THE MACHINE diagram */
.machine-wrap { overflow-x: auto; }
.machine { width: 100%; min-width: 720px; display: block; font-family: var(--mono); }
.mnode rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.mnode.dim rect { fill: #0d1015; }
.mnode.gold rect { stroke: var(--amber); filter: drop-shadow(0 0 10px rgba(255,176,32,.25)); }
.mnode.burn rect { stroke: #8c2f2f; }
.mnode.burn .mtitle { fill: var(--red); }
.mnode.out rect { stroke: var(--green-dim); filter: drop-shadow(0 0 10px rgba(55,255,124,.18)); }
.mnode.out .mtitle { fill: var(--green); }
.mtitle { fill: var(--text); font-size: 22px; font-weight: 700; text-anchor: middle; letter-spacing: .06em; }
.mtitle.sm { font-size: 17px; }
.mnode.gold .mtitle { fill: var(--amber); }
.msub { fill: var(--muted); font-size: 13px; text-anchor: middle; }
.flow { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 7 6; animation: mflow 1.2s linear infinite; opacity: .85; }
.flow.amber { stroke: var(--amber); }
.flow.red { stroke: var(--red); }
@keyframes mflow { to { stroke-dashoffset: -13; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }

.note-feed {
  margin-top: 20px; padding: 12px 16px;
  background: #07090b; border: 1px solid var(--line); border-radius: 6px;
  display: flex; gap: 14px; align-items: baseline; min-height: 46px;
}
.note-label { color: var(--amber); font-size: 11px; letter-spacing: .25em; white-space: nowrap; }
#noteFeed { font-size: 14px; color: var(--text); }
#noteFeed b { color: var(--green); }
#noteFeed.fade { animation: fadein .6s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.live-bar {
  margin-bottom: 22px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px;
}
.live-bar b { color: var(--amber); }
.live-bar .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.live-bar .dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.live-bar .dot.off { background: var(--red); box-shadow: 0 0 8px var(--red); }

.algos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.algo-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.algo-name { font-weight: 700; color: var(--green); margin-bottom: 10px; }
.algo-card pre {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  color: var(--muted); white-space: pre-wrap; overflow-x: auto;
}

.art-grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.art-showcase { text-align: center; }
#artCycler {
  width: 264px; height: 264px; image-rendering: pixelated;
  border: 1px solid var(--line); border-radius: 8px; background: #14100c;
}
.art-caption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { border: 1px solid var(--green-dim); color: var(--green); font-size: 12px; padding: 4px 10px; border-radius: 3px; }
.art-copy p { margin-bottom: 14px; }
@media (max-width: 760px) { .art-grid { grid-template-columns: 1fr; } .art-showcase { margin: 0 auto; } }

footer {
  margin-top: 80px; padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 13px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--green); }
code.ca {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 14px; font-size: 13px; color: var(--amber); letter-spacing: .04em;
}
code.ca a { color: var(--amber); text-decoration: none; }

/* -------------------------------- docs -------------------------------- */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.toc { position: sticky; top: 70px; align-self: start; font-size: 13px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--green); }
.docs h2 { color: var(--amber); letter-spacing: .2em; font-size: 16px; margin: 44px 0 12px; }
.docs h2:first-child { margin-top: 0; }
.docs h3 { color: var(--green); font-size: 14px; margin: 22px 0 8px; }
.docs p, .docs li { max-width: 74ch; margin-bottom: 10px; font-size: 14px; }
.docs ul { padding-left: 22px; margin-bottom: 12px; }
.docs .callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 12px 16px; border-radius: 4px; margin: 14px 0; font-size: 13.5px; max-width: 74ch; }
.docs table { margin: 10px 0 18px; }
.docs code { background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; font-size: 12.5px; word-break: break-all; }
@media (max-width: 820px) { .docs-layout { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 10px; } }

/* ------------------------------- mobile ------------------------------- */
@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 8px 12px; }
  .wordmark { white-space: nowrap; font-size: 14px; }
  .ticker-badge { font-size: 12px; padding: 3px 8px; }
  .topbar nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { white-space: nowrap; }
  .hero { padding: 40px 16px 32px; }
  .board { display: block; margin: 0 0 32px; padding: 18px 16px; }
  .board-number { font-size: clamp(34px, 13vw, 88px); }
  .board-delta { display: block; margin: 6px 0 0; font-size: 16px; }
  .section { padding: 56px 16px 8px; }
  .art-grid { gap: 20px; }
  #artCycler { width: 200px; height: 200px; }
}

/* --------------------------- reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tape { animation: none; flex-wrap: wrap; white-space: normal; }
  html { scroll-behavior: auto; }
  #noteFeed.fade { animation: none; }
}


/* ============================ EARNINGS BOARD ============================ */
.eb-board {
  border: 1px solid var(--line); border-radius: 6px;
  background: #07090b;
  box-shadow: 0 0 60px rgba(55,255,124,.05) inset;
  overflow: hidden;
}

/* ---- status bar ---- */
.eb-status {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: 12px; letter-spacing: .08em;
}
.eb-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.eb-board[data-state="live"]    .eb-dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: eb-blink 2.4s steps(1) infinite; }
.eb-board[data-state="preview"] .eb-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.eb-board[data-state="stale"]   .eb-dot { background: var(--red);   box-shadow: 0 0 8px var(--red); }
@keyframes eb-blink { 50% { opacity: .35; } }
.eb-state-label { font-weight: 700; }
.eb-board[data-state="live"]    .eb-state-label { color: var(--green); }
.eb-board[data-state="preview"] .eb-state-label { color: var(--amber); }
.eb-board[data-state="stale"]   .eb-state-label { color: var(--red); }
.eb-status .eb-clock { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- summary strip ---- */
.eb-summary {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.eb-stat { padding: 14px 16px; border-right: 1px solid var(--line); }
.eb-stat:last-child { border-right: none; }
.eb-stat .k { color: var(--muted); font-size: 11px; letter-spacing: .22em; }
.eb-stat .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; }
.eb-stat .v.up { color: var(--green); }
.eb-stat .v.down { color: var(--red); }
.eb-stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---- desk grid ---- */
.eb-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
}
@media (max-width: 1000px) { .eb-grid { grid-template-columns: repeat(2, 1fr); } }
.eb-card {
  background: var(--panel);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.eb-card.rank1 { box-shadow: 0 0 0 1px var(--amber) inset, 0 0 24px rgba(255,176,32,.10) inset; }

.eb-head { display: flex; align-items: center; gap: 12px; }
.eb-avatar {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 4px;
  image-rendering: pixelated; border: 1px solid var(--line);
}
.eb-card.rank1 .eb-avatar { border-color: var(--amber); box-shadow: 0 0 14px rgba(255,176,32,.25); }
.eb-id { min-width: 0; }
.eb-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.eb-wallet {
  color: var(--muted); font-size: 11.5px; text-decoration: none; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.eb-wallet:hover { color: var(--green); }
.eb-wallet::after { content: " ↗"; font-size: 10px; }
.eb-rank {
  margin-left: auto; align-self: flex-start;
  border: 1px solid var(--line); border-radius: 3px;
  color: var(--muted); font-size: 11px; padding: 1px 7px; letter-spacing: .08em;
}
.eb-card.rank1 .eb-rank { border-color: var(--amber); color: var(--amber); }

.eb-navrow { display: flex; flex-direction: column; gap: 2px; }
.eb-nav {
  font-size: 22px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; line-height: 1.15;
  text-shadow: 0 0 18px rgba(55,255,124,.18);
}
.eb-nav .k { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .25em; text-shadow: none; }
.eb-pnl { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.eb-pnl .pct { font-size: 14px; font-weight: 700; line-height: 1.3; }
.eb-pnl .usd { font-size: 11.5px; color: var(--muted); }
.eb-pnl.up .pct { color: var(--green); }
.eb-pnl.down .pct { color: var(--red); }

.eb-spark { width: 100%; height: 36px; display: block; }
.eb-spark polyline { fill: none; stroke-width: 1.5; }
.eb-spark .line.up { stroke: var(--green); }
.eb-spark .line.down { stroke: var(--red); }
.eb-spark .base { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }

.eb-pos { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.eb-pos li {
  border: 1px solid var(--line); border-radius: 3px;
  font-size: 11.5px; padding: 2px 8px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.eb-pos li b { color: var(--text); font-weight: 700; }
.eb-pos li.cash { border-style: dashed; }

.eb-trade {
  border-top: 1px solid var(--line);
  padding-top: 10px; margin-top: auto;
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.eb-side {
  font-weight: 700; font-size: 10.5px; letter-spacing: .12em;
  padding: 1px 6px; border-radius: 3px; margin-right: 6px;
}
.eb-side.buy  { color: var(--green); border: 1px solid var(--green-dim); }
.eb-side.sell { color: var(--red);   border: 1px solid #8c2f2f; }
.eb-trade .sym { color: var(--text); font-weight: 700; }
.eb-trade .ago { float: right; font-size: 11px; }
.eb-trade .why { display: block; color: var(--muted); }
.eb-trade .why::before { content: "» "; color: var(--green-dim); }

/* ---- live pulse on change ---- */
@keyframes eb-flash { 0% { background: rgba(255,176,32,.22); } 100% { background: transparent; } }
.eb-flash { animation: eb-flash 1.1s ease-out; border-radius: 3px; }

/* ---- empty and error ---- */
.eb-empty {
  padding: 56px 24px; text-align: center; color: var(--muted); font-size: 14px;
}
.eb-empty b { color: var(--amber); display: block; letter-spacing: .2em; margin-bottom: 8px; }

/* ---- mobile ---- */
@media (max-width: 680px) {
  .section { padding: 56px 16px 8px; }
  .eb-summary { grid-template-columns: repeat(2, 1fr); }
  .eb-stat:nth-child(2) { border-right: none; }
  .eb-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .eb-grid { grid-template-columns: 1fr; }
  .eb-status .eb-clock { margin-left: 0; width: 100%; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .eb-board[data-state="live"] .eb-dot { animation: none; }
  .eb-flash { animation: none; }
}

/* ============================ TERMINAL LUXE (v2 polish) ============================ */

/* room atmosphere: fine grain over everything, phosphor dust, never on text panels */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: .028; mix-blend-mode: overlay;
}

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

/* nav: underline slides in like a quote highlight */
.topbar nav a {
  position: relative; padding-bottom: 2px;
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 0 1px;
  transition: color var(--t-fast) var(--ease-out), background-size var(--t-med) var(--ease-out);
}
.topbar nav a:hover { background-size: 100% 1px; }

/* buttons: tactile press, phosphor bloom */
.btn { transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-med) var(--ease-out), background var(--t-fast) linear; will-change: transform; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(55,255,124,.28); }
.btn.primary:active { transform: translateY(0) scale(.97); box-shadow: 0 2px 8px rgba(55,255,124,.2); }
.btn.ghost:hover { border-color: var(--line-lit); color: var(--text); transform: translateY(-1px); }

/* section headings: rule extends right, breathing letterforms */
.section h2 { display: flex; align-items: center; gap: 18px; }
.section h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-lit), transparent); }

/* panels share one elevation language */
.eb-board, .algo-card, .div-card, .table-wrap, .live-bar, .note-feed, .board {
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
}
.algo-card, .div-card {
  transition: transform var(--t-med) var(--ease-spring), border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  will-change: transform;
}
.algo-card:hover, .div-card:hover { transform: translateY(-4px); border-color: var(--line-lit); box-shadow: var(--sh-2); }
.eb-card { transition: background var(--t-fast) linear; }
.eb-card:hover { background: var(--s2); }
td .tier { transition: background var(--t-fast) linear, color var(--t-fast) linear; }
tbody tr:hover td .tier { background: var(--line); }
tbody tr { transition: box-shadow var(--t-fast) linear; }
tbody tr:hover { box-shadow: inset 2px 0 0 var(--green-dim); }

/* pixel doges pop on approach */
.strip canvas { transition: transform var(--t-med) var(--ease-spring); will-change: transform; }
.strip canvas:hover { transform: translateY(-6px) scale(1.12); z-index: 2; position: relative; }
#artCycler { transition: box-shadow var(--t-slow) var(--ease-out); }

/* tape: edges dissolve, pauses for reading */
.tape-wrap { position: relative; }
.tape-wrap { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-wrap:hover .tape { animation-play-state: paused; }

/* boards carry a phosphor glow that follows the cursor */
.eb-board, .board { position: relative; }
.eb-board::after, .board::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 40%), rgba(55,255,124,.07), transparent 70%);
  opacity: 0; transition: opacity var(--t-med) linear;
}
.eb-board.lit::after, .board.lit::after { opacity: 1; }

/* scanline micro texture, panels only, barely there */
.board::before, .eb-board .eb-status::after { content: none; }
.board { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }

/* hero load sequence (js adds .booted stages; no-js shows everything) */
.js .hero .eyebrow, .js .hero .board, .js .hero .sub, .js .hero .sub2, .js .hero .cta-row {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.js .hero.booted .eyebrow { opacity: 1; transform: none; }
.js .hero.booted .board { opacity: 1; transform: none; transition-delay: 120ms; }
.js .hero.booted .sub2 { opacity: 1; transform: none; transition-delay: 520ms; }
.js .hero.booted .sub { opacity: 1; transform: none; transition-delay: 640ms; }
.js .hero.booted .cta-row { opacity: 1; transform: none; transition-delay: 780ms; }
.js h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.js h1 .w > span { display: inline-block; transform: translateY(110%); transition: transform 640ms var(--ease-out); }
.js .hero.booted h1 .w > span { transform: none; }

/* scroll reveals: rows flip on like the board */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.on { opacity: 1; transform: none; }

/* machine: flows hold still until the section is seen */
.js #machine .flow { animation-play-state: paused; }
.js #machine.seen .flow { animation-play-state: running; }

/* sparkline draw on reveal */
.js .eb-spark .line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 900ms var(--ease-out); }
.js .eb-spark.drawn .line { stroke-dashoffset: 0; }

/* deskrow: gentle parallax depth (js drives --py) */
.deskrow { transform: translateY(var(--py, 0)); will-change: transform; }

footer { box-shadow: 0 -1px 0 var(--line), 0 -24px 60px -50px rgba(55,255,124,.35); }

html { scroll-padding-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  .js .hero .eyebrow, .js .hero .board, .js .hero .sub, .js .hero .sub2, .js .hero .cta-row,
  .js h1 .w > span, .js .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .eb-spark .line { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .eb-board::after, .board::after { display: none; }
  .btn, .algo-card, .div-card, .strip canvas { transition: none; }
  .deskrow { transform: none; }
}
