/* $SI. Amber phosphor on CRT black, beige monitor plastic, Caslon for the decree.
   The one loud element is the CRT readout in #reflections; the rest stays quiet. */

:root {
  --void: #000000;          /* CRT glass, page ground */
  --phosphor: #FFB000;      /* amber P3 phosphor */
  --phosphor-dim: #9C6B00;  /* phosphor at rest, rules, focus trails */
  --glow: rgba(255, 176, 0, .55);
  --bezel: #C9C1AC;         /* beige monitor plastic */
  --bezel-shade: #A39B85;
  --bezel-ink: #2B2718;     /* text printed on the plastic */
  --smoke: #948D7A;         /* secondary text on black */
  --text: #EDE3C8;          /* body text on black: warm, not white */
  --nvda: #76B900;          /* NVIDIA green, the NVDA unit only */
  --line: rgba(255, 176, 0, .18);

  --f-decree: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --f-italic: "Libre Caslon Text", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-crt: "VT323", ui-monospace, monospace;

  /* type scale: 1.25 major third from 17px */
  --s-1: .8rem;
  --s0: 1.0625rem;
  --s1: 1.33rem;
  --s2: 1.66rem;
  --s3: 2.07rem;
  --s4: clamp(2.2rem, 5vw, 3.2rem);
  --s5: clamp(3.1rem, 10.5vw, 7.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  margin: 0;
  font-variant-ligatures: no-common-ligatures;
  background: var(--void);
  color: var(--text);
  font: 400 var(--s0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--phosphor); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--phosphor); color: var(--void); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--phosphor); color: var(--void); padding: 8px 12px; }

section { padding: clamp(64px, 10vw, 128px) var(--gutter); }
section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

h2 { font: 400 var(--s4)/1.08 var(--f-decree); color: var(--text); letter-spacing: -.01em; }
h3 { font: 600 var(--s0)/1.3 var(--f-body); color: var(--text); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.text-link { font-size: var(--s-1); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--phosphor); text-decoration: none; font: 400 1.7rem/1 var(--f-crt); }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--smoke); text-decoration: none; font-size: .94rem; }
.nav nav a:hover { color: var(--phosphor); }
.ca-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bezel); color: var(--bezel-ink);
  border: 0; border-radius: 6px; padding: 7px 12px;
  box-shadow: inset 0 -2px 0 var(--bezel-shade);
  font: 500 .88rem/1 var(--f-body);
}
.ca-short { font-family: var(--f-crt); font-size: 1.12rem; letter-spacing: .02em; }
.ca-act { border-left: 1px solid var(--bezel-shade); padding-left: 10px; }

.x-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: .9rem; }
.x-link:hover { color: var(--phosphor); }
.btn-x { gap: 10px; }

/* ---------- headline ticker ---------- */
.ticker {
  position: sticky; top: 61px; z-index: 19;
  display: flex; align-items: stretch;
  background: #0A0700; border-bottom: 1px solid var(--line);
  font-size: .9rem; overflow: hidden;
}
.ticker-label {
  flex: none; display: flex; align-items: center; padding: 0 14px;
  background: var(--phosphor); color: var(--void); text-decoration: none;
  font: 400 1.2rem/1 var(--f-crt);
}
.ticker-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker var(--ticker-dur, 90s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li { display: flex; align-items: center; gap: 10px; padding: 10px 28px 10px 0; white-space: nowrap; }
.ticker-track li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 6px var(--glow); }
.ticker-track a { color: var(--text); text-decoration: none; }
.ticker-track a:hover { color: var(--phosphor); text-decoration: underline; }
.ticker-track .src { color: var(--smoke); font-size: .8rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { padding-top: 0; padding-bottom: clamp(48px, 7vw, 88px); text-align: center; }
.hero-art { max-width: none; position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero-art img {
  width: 100%; max-width: 1080px; margin: 0 auto;
  aspect-ratio: 3 / 1; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
          mask-image: linear-gradient(#000 72%, transparent);
}
.hero-copy { max-width: 58rem; margin-top: clamp(-40px, -3vw, -12px); position: relative; }
.hero h1 {
  font: 400 var(--s5)/.98 var(--f-decree);
  letter-spacing: -.02em;
  color: var(--phosphor);
  text-shadow: 0 0 18px var(--glow), 0 0 60px rgba(255, 140, 0, .25);
}
.lede { max-width: 40rem; margin: 26px auto 0; font-size: var(--s1); line-height: 1.55; color: var(--text); }
.lede em { font-family: var(--f-italic); font-style: italic; color: var(--phosphor); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.ca-line { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; align-items: baseline; font-size: .9rem; color: var(--smoke); }
.ca-line code { font: 400 1.18rem/1.2 var(--f-crt); color: var(--text); word-break: break-all; }
.link-btn { background: none; border: 0; padding: 0; color: var(--phosphor); text-decoration: underline; text-underline-offset: .18em; }

/* buttons: beige plastic keys */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; border: 0;
}
.btn-primary { background: var(--phosphor); color: var(--void); box-shadow: 0 0 0 1px var(--phosphor), 0 0 28px rgba(255, 176, 0, .28); }
.btn-primary:hover { background: #FFC23D; text-decoration: none; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(237, 227, 200, .35); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--phosphor); color: var(--phosphor); text-decoration: none; }

/* ---------- market tape ---------- */
.tape { padding-top: 0; padding-bottom: 0; }
.tape dl {
  margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tape dl > div { padding: 18px 16px; border-left: 1px solid var(--line); }
.tape dl > div:first-child { border-left: 0; }
.tape dt { font-size: .82rem; color: var(--smoke); }
.tape dd { margin: 4px 0 0; font: 400 1.9rem/1 var(--f-crt); color: var(--phosphor); white-space: nowrap; }
.tape dd.up { color: var(--phosphor); }
.tape dd.down { color: #E0674A; }
.tape-src { margin-top: 10px; font-size: .8rem; color: var(--smoke); text-align: right; }

/* ---------- reflections: the CRT ---------- */
.reflections {
  display: grid; gap: 40px 56px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "intro intro" "crt ledger" "how how";
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
}
.reflections > * { max-width: none; margin: 0; }
.refl-intro { grid-area: intro; max-width: 44rem; }
.refl-intro p { margin-top: 16px; color: var(--text); font-size: var(--s1); line-height: 1.5; }

.crt {
  grid-area: crt;
  background: linear-gradient(180deg, #D6CFBB, var(--bezel) 30%, var(--bezel-shade));
  border-radius: 22px;
  padding: clamp(14px, 2.4vw, 26px) clamp(14px, 2.4vw, 26px) 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 80px rgba(255, 150, 0, .10);
}
.screen {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #1A1000 0%, #050300 60%, #000 100%);
  border-radius: 16px / 22px;
  padding: clamp(20px, 3.5vw, 36px);
  color: var(--phosphor);
  font-family: var(--f-crt);
  box-shadow: inset 0 0 0 3px #1D1A12, inset 0 0 40px rgba(0, 0, 0, .9);
  text-shadow: 0 0 6px var(--glow);
}
.screen::after { /* scanlines, only inside the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
}
.scr-line { font-size: 1.35rem; line-height: 1.2; }
.counter { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 4px; font-size: clamp(3.4rem, 9.5vw, 6.2rem); line-height: .9; font-variant-numeric: tabular-nums; }
.counter .unit { font-size: .42em; color: var(--nvda); text-shadow: 0 0 8px rgba(118, 185, 0, .6); }
.scr-usd { color: var(--text); opacity: .85; text-shadow: none; }
.scr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 0; padding-top: 18px; border-top: 1px dashed rgba(255, 176, 0, .35); }
.scr-grid dt { font-size: 1.1rem; opacity: .72; line-height: 1.1; }
.scr-grid dd { margin: 6px 0 0; font-size: 1.75rem; line-height: 1; }
.scr-status { margin-top: 20px; font-size: 1.1rem; opacity: .7; }
.scr-status::after { content: "_"; animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
.screen.stale { color: var(--phosphor-dim); }
.bezel-foot { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; color: var(--bezel-ink); font-size: .85rem; font-weight: 500; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #7CFF4F; box-shadow: 0 0 6px #7CFF4F; }
.screen.stale + .bezel-foot .led { background: #D9A100; box-shadow: 0 0 6px #D9A100; }
.tick { animation: tick .9s ease-out; }
@keyframes tick { from { text-shadow: 0 0 22px #FFD37A, 0 0 40px var(--glow); color: #FFE2A0; } }
@keyframes blink { 50% { opacity: 0; } }

.ledger { grid-area: ledger; align-self: start; }
.ledger h3 { font-size: .95rem; color: var(--smoke); font-weight: 500; }
.ledger-list { list-style: none; margin: 12px 0 0; padding: 0; }
.ledger-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ledger-list .ep { font: 400 1.05rem/1 var(--f-crt); color: var(--smoke); min-width: 3.2ch; }
.ledger-list .amt { font: 400 1.5rem/1 var(--f-crt); color: var(--phosphor); }
.ledger-list .amt small { font-size: .7em; color: var(--nvda); margin-left: 6px; }
.ledger-list .when { font-size: .85rem; color: var(--smoke); text-align: right; }
.ledger-note { margin-top: 16px; font-size: .88rem; color: var(--smoke); }

.how { grid-area: how; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: how; }
.how li { counter-increment: how; padding-top: 16px; border-top: 1px solid var(--phosphor-dim); }
.how li::before { content: counter(how); display: block; font: 400 1.6rem/1 var(--f-crt); color: var(--phosphor); margin-bottom: 10px; }
.how h4 { font: 600 1rem/1.3 var(--f-body); color: var(--text); }
.how p { margin-top: 6px; font-size: .95rem; color: var(--smoke); line-height: 1.55; }

/* ---------- chart ---------- */
.chart { padding-top: 0; }
.chart-frame { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #0B0B0B; }
.chart-frame iframe { display: block; width: 100%; height: min(78vh, 700px); min-height: 460px; border: 0; }

/* ---------- the order ---------- */
.order { background: linear-gradient(#000, #0A0700 30%, #0A0700 70%, #000); }
.timeline { list-style: none; margin: 40px auto 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--phosphor-dim), var(--phosphor)); }
.timeline li { position: relative; padding: 0 0 44px 44px; max-width: 46rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--void); box-shadow: inset 0 0 0 2px var(--phosphor); }
.timeline li:last-child::before { background: var(--phosphor); box-shadow: 0 0 14px var(--glow); }
.timeline time { font: 400 1.25rem/1 var(--f-crt); color: var(--phosphor); }
.timeline h3 { margin-top: 8px; font: 400 var(--s2)/1.15 var(--f-decree); }
.timeline p { margin-top: 10px; color: var(--text); opacity: .9; }
.timeline blockquote { margin: 16px 0 0; padding: 0; font: italic 400 var(--s1)/1.45 var(--f-italic); color: var(--phosphor); }

.meaning { margin-top: 56px; }
.meaning-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 28px; }
.meaning-cols h3 { font: 400 var(--s1)/1.2 var(--f-decree); color: var(--phosphor); }
.meaning-cols p { margin-top: 10px; color: var(--text); opacity: .9; font-size: .98rem; }

/* ---------- news ---------- */
.news-meta { font-size: .85rem; color: var(--smoke); }
.desk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.desk-tabs button {
  background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; min-height: 40px;
  box-shadow: inset 0 0 0 1px rgba(237, 227, 200, .25); color: var(--text); font-size: .92rem;
}
.desk-tabs button[aria-selected="true"] { background: var(--bezel); color: var(--bezel-ink); box-shadow: inset 0 -2px 0 var(--bezel-shade); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.wire { list-style: none; margin: 0; padding: 0; }
.wire li { border-top: 1px solid var(--line); }
.wire a { display: block; padding: 16px 0; text-decoration: none; color: var(--text); }
.wire a:hover .t { color: var(--phosphor); }
.wire .src { display: flex; gap: 10px; align-items: baseline; font-size: .82rem; color: var(--smoke); }
.wire .src b { font-weight: 600; color: var(--text); opacity: .85; }
.wire .tag { font: 400 .95rem/1 var(--f-crt); color: var(--phosphor); }
.wire .t { display: block; margin-top: 4px; font: 500 1.08rem/1.4 var(--f-body); }
.wire .sum { display: block; margin-top: 6px; font-size: .92rem; color: var(--smoke); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wire .empty { padding: 24px 0; color: var(--smoke); }
.labs { position: sticky; top: 90px; padding: 20px; border-radius: 14px; background: #0B0800; box-shadow: inset 0 0 0 1px var(--line); }
.labs h3 { font: 400 var(--s1)/1.2 var(--f-decree); color: var(--phosphor); }
.labs ol { list-style: none; margin: 12px 0 0; padding: 0; }
.labs li { padding: 12px 0; border-top: 1px solid var(--line); }
.labs li:first-child { border-top: 0; }
.labs a { text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.4; display: block; }
.labs a:hover { color: var(--phosphor); }
.labs .src { font-size: .78rem; color: var(--smoke); display: block; margin-bottom: 3px; }
.more { margin-top: 20px; }

/* ---------- buy ---------- */
.buy { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: st; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--bezel); color: var(--bezel-ink); font: 400 1.6rem/1 var(--f-crt); box-shadow: inset 0 -2px 0 var(--bezel-shade); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--smoke); font-size: .96rem; }
.buy-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- footer ---------- */
.foot { padding: 48px var(--gutter) 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.foot img { border-radius: 10px; }
.foot p { font-size: .84rem; color: var(--smoke); max-width: 42rem; }
.foot nav { display: flex; gap: 18px; font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tape dl { grid-template-columns: repeat(3, 1fr); }
  .tape dl > div:nth-child(4) { border-left: 0; }
  .tape dl > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .reflections { grid-template-columns: 1fr; grid-template-areas: "intro" "crt" "ledger" "how"; }
  .how { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .labs { position: static; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .x-link span { display: none; }
  .ticker { top: 57px; font-size: .85rem; }
  .ca-chip { margin-left: auto; }
  .hero-art img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .hero-copy { margin-top: -28px; }
  .lede { font-size: 1.12rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tape dl { grid-template-columns: repeat(2, 1fr); }
  .tape dl > div { border-left: 0; padding: 14px 4px; }
  .tape dl > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
  .tape dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tape dd { font-size: 1.65rem; }
  .tape-src { text-align: left; }
  .scr-grid { grid-template-columns: 1fr; gap: 12px; }
  .scr-grid div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .scr-grid dd { margin: 0; font-size: 1.5rem; }
  .how { grid-template-columns: 1fr; gap: 20px; }
  .meaning-cols, .steps { grid-template-columns: 1fr; }
  .chart-frame iframe { height: 560px; min-height: 0; }
  .foot { grid-template-columns: 1fr; text-align: left; }
  .buy-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scr-status::after, .tick { animation: none; }
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}
