:root {
  --bg: #0b0908;
  --paper: #14100f;
  --white: #f2f0eb;
  --red: #c81f2a;
  --red-dark: #7a1218;
  --muted: #a39d94;
  --ink: #ddd8d0;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--red-dark) #000;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background-color: var(--red-dark);
  border: 2px solid #000;
  border-radius: 6px;
}

html, body {
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

img { max-width: 100%; display: block; }

.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100;
  background: rgba(255,255,255,0.05);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(200,31,42,0.7);
}

/* ---- Masthead ---- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.5rem 1.1rem;
  border-bottom: 1px solid #221a18;
  max-width: 46rem;
  margin: 0 auto;
}
.masthead-brand {
  font-family: 'Butcherman', cursive;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
}
.masthead-brand span { color: var(--red); }
.masthead-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 1.3rem;
}
.masthead-nav a:hover { color: var(--white); }

/* ---- Article ---- */
.article {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.section-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}
.section-label a { color: var(--red); text-decoration: none; }
.section-label a:hover { text-decoration: underline; }

.article h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 1rem;
}

.dek {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1rem;
}

.byline {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid #221a18;
  padding-bottom: 1.75rem;
  margin: 0 0 2rem;
}

/* ---- Figures ---- */
figure { margin: 2.5rem 0; }
.hero-figure img, .inline-figure img {
  width: 100%;
  border: 1px solid #221a18;
  filter: grayscale(0.8) contrast(1.2) brightness(0.62) sepia(0.28) hue-rotate(-40deg) saturate(2);
}
figcaption {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ---- Body typography ---- */
.article p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.article em {
  color: var(--red);
  font-style: normal;
}
.article h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  color: var(--white);
  margin: 3rem 0 1.2rem;
  line-height: 1.15;
}

/* ---- Reveal (lightweight, not scroll-jacked) ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Equation ---- */
.equation-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: var(--paper);
  border-left: 3px solid var(--red);
}
.eq-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--white);
}
.eq-total {
  color: var(--red);
}
.eq-op {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  color: var(--muted);
}
.eq-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  margin-top: 0.4rem;
}

/* ---- Stat cards (inline, not full-height) ---- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.stat-row.three { grid-template-columns: repeat(3, 1fr); }
.stat-card {
  background: var(--paper);
  border: 1px solid #221a18;
  padding: 1.25rem 1.1rem;
}
.stat-number {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Ticker widget ---- */
.ticker-widget {
  margin: 2rem 0;
  padding: 1.4rem;
  text-align: center;
  background: var(--paper);
  border-top: 1px dashed var(--red-dark);
  border-bottom: 1px dashed var(--red-dark);
}
.ticker-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.ticker {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.ticker-sub {
  font-family: 'Special Elite', monospace;
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.6rem 0 0;
}

/* ---- Hour grid (simple on-view fill, no scroll-scrub) ---- */
.hour-grid-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--paper);
  text-align: center;
}
.hour-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  margin-bottom: 1.5rem;
}
.hour-cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s ease;
}
.hour-cell.filled {
  background: var(--red);
}
.grid-total {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--white);
}
.grid-total-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Pull quote ---- */
.pull-quote {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--white);
  border-left: 3px solid var(--red);
  padding-left: 1.25rem;
  margin: 2.5rem 0;
  line-height: 1.2;
}

/* ---- Countdown ---- */
.countdown-block {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: var(--paper);
}
.countdown-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.countdown-item { text-align: center; }
.countdown-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--white);
}
.countdown-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 8rem;
}
.countdown-minus {
  font-family: 'Special Elite', monospace;
  font-size: 0.72rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.countdown-result {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--red-dark);
}
.countdown-result-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  color: var(--red);
  line-height: 1;
}
.countdown-result-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ---- Final headline ---- */
.final-headline {
  font-family: 'Butcherman', cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 4rem);
  color: var(--red);
  text-shadow: 0 0 30px rgba(200,31,42,0.4);
  text-align: center;
  margin: 3rem 0 1rem;
  transform: rotate(-1deg);
}
.final-text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 30rem;
  margin: 0 auto 2.5rem;
}

.close-line {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.3rem;
  text-align: center;
  color: var(--white);
  margin: 2.5rem 0 0.75rem;
}
.close-links {
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  margin: 0 0 3rem;
}
.close-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--red-dark);
}
.close-links a:hover { color: var(--white); }

/* ---- Sources ---- */
.sources {
  border-top: 1px dashed var(--red-dark);
  padding-top: 1.75rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.sources h3 {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  color: var(--red);
  margin: 0 0 1rem;
}
.sources ul {
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
  line-height: 1.9;
}
.sources a { color: var(--muted); }
.sources a:hover { color: var(--white); }
.photo-credit {
  font-size: 0.68rem;
  opacity: 0.75;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .stat-row, .stat-row.three { grid-template-columns: 1fr 1fr; }
  .hour-grid { grid-template-columns: repeat(10, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
