/* ──────────────────────────────────────────────────────────────────
   DOOMERCAST · war-room palette
   the doomer was right eventually
   ────────────────────────────────────────────────────────────────── */

:root {
  /* surfaces — clinical ink, no warmth */
  --void:        #050505;
  --ink:         #0a0a0b;
  --ink-2:       #111113;
  --ink-3:       #18181c;
  --ink-4:       #1f1f25;

  /* lines */
  --line:        rgba(255, 255, 255, 0.06);
  --line-2:      rgba(220, 38, 38, 0.20);
  --line-blood:  rgba(220, 38, 38, 0.55);

  /* tokens */
  --bone:        #ebe7df;
  --bone-dim:    #b6b1a4;
  --mute:        #6e6a5e;
  --mute-2:      #3d3a33;

  /* accents */
  --blood:       #dc2626;
  --blood-2:     #991b1b;
  --rust:        #b91c1c;
  --jaundice:    #c4b400;     /* sickly warning */
  --bile:        #84cc16;     /* draws-good for bulls */
  --plasma:      #3aa18a;     /* ok flag */

  /* directional (in trader semantics) */
  --bull:        #84cc16;     /* draws are bullish for crude */
  --bear:        #dc2626;     /* builds are bearish */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  position: relative;

  /* atmospheric — barely-there glow under the regime gauge */
  background-image:
    radial-gradient(900px 500px at 85% 18%, rgba(220, 38, 38, 0.10), transparent 65%),
    radial-gradient(700px 400px at -10% 35%, rgba(220, 38, 38, 0.04), transparent 65%);
}

/* scanline overlay — subtle CRT */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 99;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

/* ── helpers ─────────────────────────────────────────────────── */
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-feature-settings: "tnum" 1, "ss01" 1; }
.serif { font-family: 'Fraunces', 'Times New Roman', serif; font-optical-sizing: auto; }
.italic { font-style: italic; }
.up { color: var(--bull); }
.down { color: var(--bear); }
.dim { color: var(--mute); }
.rust { color: var(--rust); }
.small { font-size: 11.5px; }

/* layout */
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ── TICKER BAR ─────────────────────────────────────────────── */
.ticker-bar {
  border-bottom: 1px solid var(--line-blood);
  background:
    linear-gradient(180deg, rgba(220,38,38,0.05), rgba(0,0,0,0)),
    var(--void);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker-bar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 9px; padding-bottom: 9px; gap: 32px;
}
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--blood); font-weight: 600; letter-spacing: 0.12em; }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blood); box-shadow: 0 0 10px var(--blood);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }
.ticker-feed { display: flex; gap: 26px; color: var(--bone-dim); flex: 1; justify-content: center; }
.ticker-feed b { color: var(--bone); font-weight: 500; margin-right: 6px; }
.ticker-feed em { font-style: normal; color: var(--bone); }
.clock { color: var(--mute); }

/* ── MASTHEAD ────────────────────────────────────────────────── */
.masthead {
  border-bottom: 1px solid var(--line);
  padding-top: 26px; padding-bottom: 22px;
}
.masthead .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-glyph {
  width: 28px; height: 28px;
  display: inline-block;
  background: var(--blood);
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(220, 38, 38, 0.5),
    0 0 24px rgba(220, 38, 38, 0.55);
  align-self: center;
}
.brand-glyph::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 230, 230, 0.75), transparent 60%);
}
.brand-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.brand-tag {
  color: var(--mute);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-style: italic;
}
.brand.small .brand-glyph { width: 18px; height: 18px; }
.brand.small .brand-name { font-size: 14px; }

nav {
  display: flex; gap: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  justify-self: center;
}
nav a { color: inherit; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: all 0.15s; }
nav a:hover { color: var(--bone); }
nav a.active { color: var(--blood); border-bottom-color: var(--blood); }

.masthead-meta {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
  line-height: 1.5;
}
.masthead-meta b {
  display: block;
  color: var(--bone);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ── HERO / REGIME ──────────────────────────────────────────── */
.hero {
  padding: 56px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-blood), transparent);
  opacity: 0.5;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px; align-items: center;
}

.kicker {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 18px;
  font-weight: 500;
}
.kicker.rust { color: var(--rust); }

h1.rip {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 350;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
  color: var(--bone);
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
  /* slight lean for unease */
  transform: skew(-1.5deg);
  display: inline-block;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 540px;
  font-weight: 300;
}
.hero-sub b { color: var(--bone); font-weight: 500; }

/* regime gauge ─ war room readout */
.regime-gauge {
  border: 1px solid var(--line-blood);
  background:
    linear-gradient(180deg, rgba(220,38,38,0.04), rgba(0,0,0,0.4));
  padding: 26px 28px 24px;
  position: relative;
}
.regime-gauge::before {
  content: "▓▓▓"; position: absolute; top: -8px; left: 24px;
  background: var(--void); color: var(--blood);
  font-size: 10px; letter-spacing: 0.4em;
  padding: 0 8px;
}
.rg-label {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 16px;
  font-weight: 600;
}
.rg-levels {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.rg-step {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--ink-4);
  padding: 8px 6px;
  text-align: center;
  background: var(--ink-2);
}
.rg-step.active {
  color: var(--blood);
  border-color: var(--blood);
  background: rgba(220, 38, 38, 0.1);
  box-shadow: inset 0 0 18px rgba(220, 38, 38, 0.15);
  font-weight: 600;
}
.rg-step.terminal { border-style: dashed; color: var(--mute-2); }

.rg-bar { height: 4px; background: var(--ink-3); position: relative; margin-bottom: 22px; }
.rg-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--plasma), var(--jaundice) 50%, var(--blood));
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.5);
}

.rg-flags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.rg-flags > div { display: flex; align-items: center; gap: 8px; }
.f-bad { color: var(--blood); }
.f-warn { color: var(--jaundice); }
.f-ok { color: var(--plasma); }

/* ── SECTION HEAD ───────────────────────────────────────────── */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 350;
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: var(--bone);
}
.head-right {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
  line-height: 1.6;
}
.head-right b { color: var(--bone); font-weight: 500; }

/* ── FORECAST CARDS ────────────────────────────────────────── */
.forecast { padding: 56px 0 56px; border-bottom: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 22px 20px 18px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--line-blood);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.06);
}
.card-corner {
  position: absolute; top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--blood);
  box-shadow: 0 0 8px var(--blood);
}
.card-name {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 500;
}
.card-unit {
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  margin-top: 22px;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
  color: var(--bone);
  font-feature-settings: "tnum" 1;
}
.card-num .sign { font-size: 0.62em; opacity: 0.85; margin-right: 1px; vertical-align: 0.06em; }
.card-num .sign.small { font-size: 0.45em; opacity: 0.55; }
.card-range {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mute);
}
.card-range b { color: var(--bone-dim); font-weight: 400; }

.card-call {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 4px 8px;
  margin-top: 10px;
  font-weight: 500;
}
.card-call.draw { color: var(--bull); }
.card-call.up   { color: var(--blood); }
.card-call.build { color: var(--bear); }

.spark { display: block; width: 100%; height: 36px; margin-top: 16px; color: var(--blood); }
.spark .spark-line { color: inherit; stroke: currentColor; }

/* ── OVERRIDE SLIDER (per card) ──────────────────────────── */
.override { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.override.has-override { border-top-color: var(--jaundice); }
.override-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute);
}
.override-row b { color: var(--bone); font-weight: 500; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0; }
.override-row .ov-yours.active { color: var(--jaundice); }
.override-row .ov-reset {
  font-size: 9px; letter-spacing: 0.14em;
  color: var(--mute);
  background: transparent;
  border: 1px solid var(--mute-2);
  padding: 2px 6px;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s;
}
.override-row .ov-reset:hover { color: var(--blood); border-color: var(--blood); }
.override-row .ov-reset.hidden { display: none; }
.override input[type="range"] {
  width: 100%; margin-top: 8px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 12px;
}
.override input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--ink-4); border-radius: 1px;
}
.override input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--bone);
  border: 1px solid var(--blood);
  border-radius: 50%;
  margin-top: -6px;
  cursor: ew-resize;
  transition: transform 0.1s, background 0.1s;
}
.override input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.override.has-override input[type="range"]::-webkit-slider-thumb {
  background: var(--jaundice);
  border-color: var(--jaundice);
  box-shadow: 0 0 8px var(--jaundice);
}

/* ── POSITIONING SECTION ─────────────────────────────────── */
.positioning { padding: 56px 0; border-bottom: 1px solid var(--line); }
.pos-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.pos-panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 24px 28px 20px;
}
.pos-title {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blood);
  font-weight: 600;
  margin-bottom: 16px;
}
.pos-foot {
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin-top: 14px;
  font-style: italic;
}

/* COT rows */
.cot-rows { display: flex; flex-direction: column; gap: 10px; }
.cot-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--ink);
}
.cot-row .cot-name {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}
.cot-row .cot-bar {
  position: relative;
  height: 6px;
  background: var(--ink-4);
  display: flex;
  align-items: center;
}
.cot-row .cot-bar-mid {
  position: absolute; left: 50%; top: -2px; bottom: -2px;
  width: 1px; background: var(--mute-2);
}
.cot-row .cot-bar-fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--bull);
}
.cot-row .cot-bar-fill.short { background: var(--blood); }
.cot-row .cot-stats {
  display: flex; flex-direction: column; gap: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  text-align: right;
}
.cot-row .cot-net { color: var(--bone); font-weight: 500; }
.cot-row .cot-tag {
  font-size: 9px; letter-spacing: 0.16em;
  border: 1px solid currentColor;
  padding: 2px 6px;
  display: inline-block;
}
.cot-tag.long       { color: var(--bull); }
.cot-tag.short      { color: var(--blood); }
.cot-tag.balanced   { color: var(--mute); }
.cot-tag.stretched-long  { color: var(--jaundice); border-style: dashed; }
.cot-tag.stretched-short { color: var(--blood); border-style: dashed; }

/* Refinery panel */
.refinery-panel { display: flex; flex-direction: column; }
.ref-big { margin-bottom: 18px; }
.ref-big-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 350;
  font-size: 32px;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ref-big-sub {
  font-size: 12px;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
}
.ref-big-sub b { color: var(--bone); font-weight: 500; }

.ref-meter { margin: 18px 0; }
.ref-meter-track {
  position: relative;
  height: 8px;
  background: var(--ink-4);
  border-radius: 0;
}
.ref-meter-fill {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--blood), var(--jaundice), var(--bull));
}
.ref-meter-zero {
  position: absolute; left: 50%; top: -3px; bottom: -3px;
  width: 1px; background: var(--bone-dim);
}
.ref-meter-scale {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.ref-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ref-meta b {
  display: block; margin-top: 4px;
  color: var(--bone);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* responsive: positioning */
@media (max-width: 900px) {
  .pos-grid { grid-template-columns: 1fr; }
  .ref-meta { grid-template-columns: 1fr; }
}

/* ── THE CALL ─────────────────────────────────────────────── */
.call-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(220, 38, 38, 0.025) 50%, transparent);
}
.call-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}
.call-left h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 22px;
  color: var(--bone);
}
.call-left p {
  font-size: 14.5px;
  color: var(--bone-dim);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 14px;
}
.call-left p b { color: var(--bone); font-weight: 500; }

.levels {
  border: 1px solid var(--line-blood);
  background: var(--ink-2);
  padding: 6px 0;
}
.lv-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.lv-row:last-child { border-bottom: none; }
.lv-row.pivot { background: rgba(220, 38, 38, 0.06); }
.lv-tag {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid currentColor;
  font-weight: 600;
}
.lv-tag.bear { color: var(--blood); }
.lv-tag.bull { color: var(--bull); }
.lv-tag.piv  { color: var(--jaundice); }
.lv-name { color: var(--bone-dim); }
.lv-px { color: var(--bone); font-weight: 500; }

/* ── TAPE TO WATCH ──────────────────────────────────────────── */
.tape { padding: 56px 0; border-bottom: 1px solid var(--line); }
.watchlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.watch-item {
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  align-items: start;
  transition: border-color 0.2s;
}
.watch-item:hover { border-color: var(--line-2); }
.watch-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mute);
  border-left: 2px solid currentColor;
  padding-left: 10px;
  align-self: stretch;
  display: flex; align-items: center;
}
.watch-item.esc      .watch-tag { color: var(--blood); }
.watch-item.de-esc   .watch-tag { color: var(--bull); }
.watch-item.structural .watch-tag { color: var(--jaundice); }
.watch-item.event    .watch-tag { color: var(--bone-dim); }
.watch-item.demand   .watch-tag { color: var(--plasma); }

.watch-body h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.watch-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--bone-dim);
}
.watch-px {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--bone);
  text-align: right;
  letter-spacing: -0.02em;
  white-space: nowrap;
  align-self: center;
}
.watch-item.esc .watch-px      { color: var(--blood); }
.watch-item.de-esc .watch-px   { color: var(--bull); }

/* ── LAST PRINT TABLE ──────────────────────────────────────── */
.last-print { padding: 56px 0; border-bottom: 1px solid var(--line); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-table th {
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-blood);
  font-weight: 500;
}
.lp-table th.num { text-align: right; }
.lp-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
}
.lp-table td.name { color: var(--bone-dim); }
.lp-table td.num { text-align: right; }
.lp-table td.dim { color: var(--mute); }
.lp-table tr:hover td { background: rgba(220, 38, 38, 0.025); }

.hit { color: var(--bull); }
.miss { color: var(--blood); }
.pill {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-weight: 500;
}
.pill.hit { color: var(--bull); }
.pill.miss { color: var(--blood); }

/* ── SCOREBOARD ────────────────────────────────────────────── */
.scoreboard { padding: 56px 0; border-bottom: 1px solid var(--line); }
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.score-stat {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.score-stat:last-child { border-right: none; }
.score-stat .lbl {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.score-stat .big {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  font-size: 64px;
  line-height: 1;
  margin: 14px 0 8px;
  color: var(--bone);
  letter-spacing: -0.04em;
}
.score-stat .big .unit { font-size: 0.42em; opacity: 0.55; margin-left: 4px; letter-spacing: 0; }
.score-stat .ctx { font-size: 11.5px; color: var(--bone-dim); }
.score-stat .ctx b.up { color: var(--bull); font-weight: 500; }
.score-stat .ctx b { color: var(--bone); font-weight: 500; }

/* ── METHODOLOGY ───────────────────────────────────────────── */
.method { padding: 56px 0; border-bottom: 1px solid var(--line); }
.method-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.equation {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--bone-dim);
  background: var(--ink-2);
  border: 1px solid var(--line-blood);
  padding: 24px 28px;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}
.eq-var { color: var(--blood); font-weight: 500; }
.eq-comment { color: var(--mute); }

.inputs { display: grid; gap: 8px; }
.ipt {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-size: 12.5px;
}
.ipt .lbl { color: var(--bone-dim); }
.ipt .val { color: var(--bone); }
.ipt .src {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blood);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 36px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--mute);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
}
footer p { margin: 12px 0 0; max-width: 540px; line-height: 1.7; }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid, .method-grid, .call-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .watchlist { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .score-stat:nth-child(2) { border-right: none; }
  .score-stat:nth-child(1), .score-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  nav { display: none; }
  .masthead .wrap { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .score-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .ticker-feed { display: none; }
  .watch-item { grid-template-columns: 1fr; }
  .watch-tag { border-left: none; border-top: 2px solid currentColor; padding: 6px 0 0; }
  .watch-px { text-align: left; }
  h1.rip { font-size: 84px; }
}
