/* GoalPost BTC: shared styles */

:root {
  --btc: #f7931a;
  --btc-dim: #c97010;
  --bg: #0c0c0d;
  --bg2: #161618;
  --bg3: #1c1c1e;
  --text: #ecebe8;
  --text-dim: #9b9ba0;  /* ~7:1 on --bg */
  --border: rgba(255,255,255,0.1);
}

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

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── TICKER ── */
.ticker {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ticker-item { display: flex; align-items: center; gap: 0.5rem; }
.ticker-label { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.65rem; }
.ticker-value { color: var(--btc); font-weight: 500; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--btc); animation: pulse 2s infinite; flex-shrink: 0; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '₿';
  position: absolute;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40vw;
  color: rgba(247,147,26,0.03);
  font-family: 'Playfair Display', serif;
  pointer-events: none;
  animation: slowspin 60s linear infinite;
}

@keyframes slowspin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-left {
  padding: 6rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btc);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadein 0.8s 0.2s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideup 0.8s 0.4s forwards;
}

.hero-title span { color: var(--btc); }

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeup 0.8s 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--btc);
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.3s;
  width: fit-content;
  opacity: 0;
  animation: fadeup 0.8s 0.8s forwards;
}

.hero-cta:hover {
  background: var(--text);
  gap: 1.25rem;
}

.hero-cta-arrow { transition: transform 0.3s; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }

.hero-right {
  padding: 6rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* ── STAT CARDS ── */
.stat-card {
  border-left: 2px solid var(--btc);
  padding: 1.5rem 2rem;
  background: var(--bg2);
  opacity: 0;
  animation: slideright 0.8s forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.5s; }
.stat-card:nth-child(2) { animation-delay: 0.7s; }
.stat-card:nth-child(3) { animation-delay: 0.9s; }

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--btc);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── THESIS SECTION ── */
.thesis {
  padding: 8rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  border-top: 1px solid var(--border);
}

.thesis-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btc);
  position: sticky;
  top: 5rem;
}

.thesis-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text);
}

.thesis-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.thesis-content p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── GOALPOSTS MOVING ── */
.goalposts {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 4rem;
  overflow: hidden;
  position: relative;
}

.goalposts-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.goalposts-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btc);
  margin-bottom: 3rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.timeline-year {
  background: var(--bg3);
  padding: 2rem;
  position: relative;
  transition: background 0.3s;
}

.timeline-year:hover { background: #232326; }

.timeline-year-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.timeline-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--btc);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.timeline-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--btc);
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── METHODOLOGY ── */
.methodology {
  padding: 8rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
  align-items: start;
  border-top: 1px solid var(--border);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.method-item {
  background: var(--bg);
  padding: 2rem;
}

.method-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.method-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btc);
  margin-bottom: 0.5rem;
}

.method-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.methodology-right {
  position: sticky;
  top: 5rem;
}

.quote-block {
  border-left: 2px solid var(--btc);
  padding: 2rem;
  background: var(--bg2);
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.quote-attr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btc-dim);
}

/* ── DAILY SECTIONS ── */
.daily-section {
  padding: 6rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.daily-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.daily-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btc);
  margin-bottom: 1.5rem;
}

.daily-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.daily-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--btc);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.daily-username {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.daily-screenshot {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  display: block;
}

.daily-screenshot-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.daily-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--btc);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: gap 0.3s;
}

.daily-cta:hover { gap: 0.75rem; }

/* Chart of the day */
.chart-img {
  width: 100%;
  border: 1px solid var(--border);
  display: block;
}

.chart-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  text-align: center;
}

/* Musing preview */
.musing-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.musing-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.musing-preview {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.daily-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 768px) {
  .daily-section { padding: 3rem 1.5rem; }
  .daily-section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .daily-amount { font-size: 2rem; }
  .musing-title { font-size: 1.3rem; }
}

/* ── FOOTER CTA ── */
.footer-cta {
  background: var(--btc);
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '₿';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30vw;
  color: rgba(0,0,0,0.05);
  font-family: 'Playfair Display', serif;
  pointer-events: none;
}

.footer-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--bg);
  margin-bottom: 1rem;
  position: relative;
}

.footer-cta p {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: 3rem;
  position: relative;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  color: var(--btc);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.footer-cta-btn:hover {
  background: var(--bg2);
  gap: 1.25rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}

footer a {
  color: var(--btc);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideup {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideright {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── SCROLLED REVEALS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {

  /* Ticker: show only BTC price and pulse dot on mobile */
  .ticker {
    padding: 0.5rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .ticker-extra { display: none; }

  /* Hero: stack vertically */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero::after { display: none; }
  .hero-left {
    padding: 3rem 1.5rem 2rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .hero-right {
    padding: 2rem 1.5rem 3rem;
    gap: 1.5rem;
  }
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero-title { font-size: clamp(3rem, 12vw, 4rem); }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .hero-cta { width: 100%; justify-content: center; }

  /* Stat cards: tighten padding */
  .stat-card { padding: 1rem 1.25rem; }
  .stat-value { font-size: 2rem; }

  /* Thesis: single column */
  .thesis {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 2rem;
  }
  .thesis-label { position: static; }
  .thesis-content h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .thesis-content p { font-size: 1rem; }

  /* Goalposts timeline: 2x2 grid on mobile */
  .goalposts { padding: 3rem 1.5rem; }
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .timeline-year { padding: 1.25rem; }
  .timeline-amount { font-size: 1.4rem; }
  .timeline-desc { font-size: 0.75rem; }

  /* Methodology: single column */
  .methodology {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 3rem;
  }
  .methodology-right { position: static; }
  .method-grid { grid-template-columns: 1fr; }
  .method-item { padding: 1.25rem; }

  /* Footer CTA */
  .footer-cta { padding: 4rem 1.5rem; }
  .footer-cta h2 { font-size: clamp(1.8rem, 8vw, 3rem); }
  .footer-cta-btn { width: 100%; justify-content: center; }

  /* Footer: stack */
  footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }
}

/* ── EXTRA SMALL (phones < 400px) ── */
@media (max-width: 400px) {
  .timeline { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
}

/* ════════════════════════════════════════════════════════════════════
   v2: multi-page site: nav, data explorer, archive, musings, about
   ════════════════════════════════════════════════════════════════════ */

a { color: var(--btc); }
:focus-visible { outline: 2px solid var(--btc); outline-offset: 2px; }

/* ── NAV (lives in the sticky ticker) ── */
.ticker-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0;
}
.ticker-brand span { color: var(--btc); }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--btc); border-bottom-color: var(--btc); }

/* ── PAGE SCAFFOLD ── */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 4rem 6rem;
}
.page-narrow { max-width: 780px; }

.page-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btc);
  margin-bottom: 1.25rem;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.page-title span { color: var(--btc); }
.page-lede {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btc);
  margin: 4rem 0 1.25rem;
}

.note {
  border-left: 2px solid var(--btc);
  background: var(--bg2);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 80ch;
}
.note strong { color: var(--text); font-weight: 500; }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.stat-strip .cell { background: var(--bg); padding: 1.25rem 1.5rem; min-width: 0; }
.stat-strip .stat-label { margin-bottom: 0.4rem; }
.stat-strip .stat-value { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.stat-strip .stat-desc { font-size: 0.72rem; overflow-wrap: anywhere; }

/* ── FILTERS ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label, .field .field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input[type="text"], .field input[type="search"], .field input[type="date"], .field select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  color-scheme: dark;
  min-width: 0;
}
.field input:focus, .field select:focus { border-color: var(--btc); outline: none; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.55rem 0;
}
.check input { accent-color: var(--btc); width: 1rem; height: 1rem; }
.btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--btc);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--bg3); border-color: var(--btc); }
.filters .result-count {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-bottom: 0.6rem;
}

/* ── CHARTS ── */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.chart-card { background: var(--bg); padding: 2rem; min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.chart-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 75ch;
  margin-bottom: 1.25rem;
}
.chart { width: 100%; height: 400px; }
.chart-card.wide .chart { height: 460px; }
.chart-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px dashed var(--border);
}

/* ── DATA TABLE ── */
.table-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
table.data th {
  position: sticky;
  top: 0;
  background: var(--bg3);
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
table.data th button {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  gap: 0.4rem;
}
table.data th button:focus-visible { outline: 2px solid var(--btc); }
table.data th[aria-sort] button::after { content: '↕'; opacity: 0.35; }
table.data th[aria-sort="ascending"] button::after { content: '↑'; opacity: 1; color: var(--btc); }
table.data th[aria-sort="descending"] button::after { content: '↓'; opacity: 1; color: var(--btc); }
table.data th.num, table.data td.num { text-align: right; }
table.data td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  white-space: nowrap;
}
table.data tbody tr:hover td { background: var(--bg2); }
table.data td.btc { color: var(--btc); }
table.data td a { text-decoration: none; }
table.data td a:hover { text-decoration: underline; }

/* ── ARCHIVE GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.shot {
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  scroll-margin-top: 9rem;
}
.shot:hover { border-color: var(--btc); transform: translateY(-2px); }
.shot.highlight { border-color: var(--btc); box-shadow: 0 0 0 3px rgba(247,147,26,0.3); }
.shot button {
  all: unset;
  cursor: zoom-in;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg3);
}
.shot button:focus-visible { outline: 2px solid var(--btc); outline-offset: -2px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot figcaption { padding: 0.9rem 1rem 1rem; }
.shot .amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--btc);
  line-height: 1.1;
}
.shot .who {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text);
  margin: 0.35rem 0 0.2rem;
  overflow-wrap: anywhere;
}
.shot .when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── LIGHTBOX ── */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.lightbox::backdrop { background: rgba(6,6,7,0.94); }
.lightbox-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}
.lightbox figure {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 1rem;
}
.lightbox img {
  max-height: calc(100vh - 8rem);
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--border);
}
.lightbox figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text);
  text-align: center;
}
.lightbox figcaption .amount { color: var(--btc); }
.lightbox .nav-btn, .lightbox .close-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--btc);
  font-size: 1.4rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}
.lightbox .nav-btn:hover, .lightbox .close-btn:hover { border-color: var(--btc); }
.lightbox .close-btn { position: fixed; top: 1rem; right: 1rem; font-size: 1.1rem; }

/* ── MUSINGS ── */
.musing-index {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-bottom: 5rem;
}
.musing-index li { border-bottom: 1px solid var(--border); }
.musing-index a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  transition: color 0.2s, padding 0.2s;
}
.musing-index a:hover { color: var(--btc); padding-left: 0.5rem; }
.musing-index time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}
article.musing {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 4rem;
}
article.musing .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
article.musing .meta .block { color: var(--btc-dim); }
article.musing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2rem;
}
article.musing h2 a { color: inherit; text-decoration: none; }
article.musing h2 a:hover { color: var(--btc); }
article.musing p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
  opacity: 0.88;
  margin-bottom: 1.4rem;
}
article.musing figure { margin: 2rem 0 2.25rem; }
article.musing figure img { width: 100%; border: 1px solid var(--border); display: block; }
article.musing figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── ABOUT / RESOURCES ── */
.prose p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.prose p strong { color: var(--text); font-weight: 500; }
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--text);
  margin: 3.5rem 0 1.25rem;
}
.resource-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 1rem; }
.resource-list a {
  display: block;
  background: var(--bg);
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s;
}
.resource-list a:hover { background: var(--bg2); }
.resource-list .name { color: var(--btc); font-weight: 500; }
.resource-list .desc { display: block; color: var(--text-dim); font-size: 0.88rem; margin-top: 0.3rem; line-height: 1.6; }
.resource-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 2rem 0 0.75rem;
}
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.support-grid > div { background: var(--bg2); padding: 1.75rem; text-align: center; min-width: 0; }
.support-grid .kind { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--btc); margin-bottom: 1rem; }
.support-grid img { width: 170px; height: 170px; border: 4px solid var(--btc); background: #fff; }
.support-grid code {
  display: block;
  margin-top: 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ── HOME: live chart of the day ── */
.daily-section .chart { height: 380px; border: 1px solid var(--border); }

/* ── v2 responsive ── */
@media (max-width: 1100px) {
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ticker { row-gap: 0.4rem; }
  .site-nav {
    order: 10;
    width: 100%;
    margin-left: 0;
    gap: 1.1rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }
  .page { padding: 3rem 1rem 4rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .cell { padding: 1rem; }
  .stat-strip .stat-value { font-size: 1.35rem; }
  .filters { padding: 1rem; }
  .filters .field { flex: 1 1 140px; }
  .filters .result-count { margin-left: 0; width: 100%; padding-bottom: 0; }
  .chart-card { padding: 1.25rem 1rem; }
  .chart, .chart-card.wide .chart { height: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .shot figcaption { padding: 0.7rem; }
  .shot .amount { font-size: 1.1rem; }
  .lightbox-inner { grid-template-columns: 1fr; padding: 3.5rem 0.75rem 0.75rem; }
  .lightbox .nav-btn { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .musing-index a { flex-direction: column; gap: 0.25rem; }
}
@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; }
  .reveal { opacity: 1; transform: none; }
}

/* Live stats line under a chart (e.g. The Dip Effect) */
p.chart-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0.75rem 0 0;
}
p.chart-note b { color: var(--btc); font-weight: 500; }

/* ── v2.1 cleanup: orange reserved for data and actions ── */
.hero-eyebrow, .thesis-label, .goalposts-label, .daily-label, .page-eyebrow, .section-label {
  color: var(--text-dim);
}
.hero-eyebrow::before, .thesis-label::before, .goalposts-label::before, .daily-label::before,
.page-eyebrow::before, .section-label::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: var(--btc);
  vertical-align: middle;
  margin-right: 0.65rem;
}
.support-grid .kind { color: var(--text-dim); }

.group-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 4.5rem 0 0.5rem;
}
.group-title:first-of-type { margin-top: 3rem; }
.group-lede {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

@media (max-width: 768px) {
  .site-nav { gap: 0.85rem; }
  .site-nav a { letter-spacing: 0.06em; font-size: 0.64rem; }
}

/* ════════════════════════════════════════════════════════════════════
   v2.2: fewer boxes. Space and type do the grouping; frames stay only
   where an edge means something (screenshots, controls, the table).
   ════════════════════════════════════════════════════════════════════ */

/* Hero stats: the number is the design */
.stat-card { border-left: none; background: none; padding: 0; }
.hero-right { gap: 2.75rem; }

/* Goalpost timeline: columns of text over the orange bar, no tiles */
.goalposts { background: none; border-bottom: none; }
.timeline { gap: 2.5rem; }
.timeline-year { background: none; padding: 0 0 1.25rem; }
.timeline-year:hover { background: none; }
.timeline-bar { height: 2px; }

/* Pull quotes and notes keep their rule, lose the panel */
.quote-block, .note { background: none; }

/* Data page: stats, filters and charts sit on the page */
.stat-strip { background: none; border: none; gap: 2rem 2.5rem; margin: 1rem 0 1.5rem; }
.stat-strip .cell { background: none; padding: 0; }
.filters { background: none; border: none; border-bottom: 1px solid var(--border); padding: 0 0 1.5rem; }
.chart-grid { background: none; border: none; gap: 3.5rem 4rem; }
.chart-card { background: none; padding: 0; }
.group-title { border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 4.5rem; }

/* Archive: the screenshot keeps a thin edge, the card around it goes */
.shot { background: none; border: none; }
.shot:hover { transform: none; border: none; }
.shot button { border: 1px solid var(--border); border-radius: 3px; transition: border-color 0.2s, transform 0.2s; }
.shot:hover button { border-color: var(--btc); transform: translateY(-2px); }
.shot.highlight { box-shadow: none; border: none; }
.shot.highlight button { border-color: var(--btc); box-shadow: 0 0 0 3px rgba(247,147,26,0.3); }
.shot figcaption { padding: 0.75rem 0 0; }

/* About: plain lists and two open columns */
.resource-list { background: none; border: none; border-top: 1px solid var(--border); gap: 0; }
.resource-list a { background: none; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.resource-list a:hover { background: none; }
.resource-list a:hover .name { text-decoration: underline; }
.support-grid { background: none; border: none; gap: 2rem; }
.support-grid > div { background: none; padding: 0; }

/* Small radius on screenshots and controls only */
.daily-screenshot, article.musing figure img, .lightbox img { border-radius: 3px; }
.btn, .hero-cta, .footer-cta-btn, .field input, .field select, .lightbox .nav-btn, .lightbox .close-btn { border-radius: 3px; }

@media (max-width: 768px) {
  .timeline { gap: 1.75rem 1.25rem; }
  .stat-strip { gap: 1.5rem 1.25rem; }
  .chart-grid { gap: 3rem; }
  .group-title { padding-top: 2.25rem; margin-top: 3rem; }
  .filters { padding: 0 0 1.25rem; }
  .shot figcaption { padding: 0.6rem 0 0; }
}

/* ── Musing images: click to view full; tall phone captures get a compact preview ── */
article.musing .fig-btn { all: unset; display: block; cursor: zoom-in; position: relative; }
article.musing .fig-btn:focus-visible { outline: 2px solid var(--btc); outline-offset: 3px; }
article.musing figure.tall .fig-btn {
  max-width: 400px;
  max-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
}
article.musing figure.tall img { border: none; border-radius: 0; }
article.musing figure.tall .fig-btn::after {
  content: 'View full screenshot';
  position: absolute;
  inset: auto 0 0 0;
  padding: 4rem 0 1rem;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--btc);
  background: linear-gradient(to bottom, rgba(12,12,13,0), var(--bg) 70%);
}
article.musing figure.tall .fig-btn:hover::after { text-decoration: underline; }

/* Viewer: tall images scroll at a readable width instead of shrinking to fit */
.lightbox.tall figure { justify-content: flex-start; overflow-y: auto; }
.lightbox.tall img { max-height: none; width: min(100%, 560px); }
