/* ============================================================
   THE ELEPHANT — style.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Barlow+Condensed:wght@600;700&family=JetBrains+Mono:wght@300;400&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:           #0C0B09;
  --bg-raised:    #121109;
  --text:         #F0EBE1;
  --text-muted:   #9A9189;
  --text-dim:     #5A5450;
  --accent:       #C8923A;
  --danger:       #C05050;
  --success:      #4A9B6A;
  --border:       rgba(200, 146, 58, 0.12);
  --border-dim:   rgba(240, 235, 225, 0.06);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Grain Overlay ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.barlow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  border-top: 1px solid var(--border-dim);
}

section:first-child {
  border-top: none;
}

/* ── Section Title Decoration ─────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.6rem;
}

.chapter-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border-top: none;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
}

.hero-subtitle {
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 0 auto 2rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-descriptor {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: normal;
  color: var(--accent);
  max-width: 520px;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-descriptor-sub {
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.85;
}

.hero-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── PROLOGUE ─────────────────────────────────────────────── */
#prologue {
  background: var(--bg-raised);
}

.prologue-quote {
  border-left: 3px solid var(--accent);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  background: rgba(200, 146, 58, 0.04);
  border-radius: 0 4px 4px 0;
}

.prologue-quote p {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  font-weight: 300;
}

.prologue-quote p + p {
  margin-top: 1.2rem;
}

/* ── THE CAST ─────────────────────────────────────────────── */
#cast .cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.cast-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

@media (hover: hover) {
  .cast-card:hover {
    border-color: var(--border);
  }
}

.cast-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.cast-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.cast-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cast-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── CHAPTER I: BAR PROBLEM ───────────────────────────────── */
#bar-problem {
  position: relative;
}

#bar-problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192, 80, 80, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.8;
}

/* Vertical Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--danger), rgba(192, 80, 80, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 12px rgba(192, 80, 80, 0.5);
}

.timeline-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.verdict-box {
  border: 1px solid rgba(192, 80, 80, 0.4);
  border-left: 4px solid var(--danger);
  background: rgba(192, 80, 80, 0.06);
  padding: 1.5rem 2rem;
  border-radius: 0 4px 4px 0;
  margin-top: 2rem;
}

.verdict-box p {
  font-size: 1.1rem;
  color: var(--danger);
  font-style: italic;
  font-weight: 400;
}

/* ── DIVIDER ──────────────────────────────────────────────── */
#divider {
  padding: 6rem 0;
  text-align: center;
  background: var(--bg);
}

.divider-quote {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.3;
}

/* ── INTERLUDE: WAITING STAFF ─────────────────────────────── */
#waiting-staff {
  background: var(--bg-raised);
}

.arch-diagram {
  display: flex;
  gap: 4rem;
  margin: 3rem 0;
  align-items: flex-start;
}

.arch-col {
  flex: 1;
}

.arch-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.arch-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.arch-node {
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em;
}

.arch-node--diner {
  background: rgba(80, 120, 192, 0.15);
  border: 1px solid rgba(80, 120, 192, 0.4);
  color: #7BA4D4;
}

.arch-node--vendor {
  background: rgba(200, 146, 58, 0.12);
  border: 1px solid rgba(200, 146, 58, 0.3);
  color: var(--accent);
}

.arch-node--waiter {
  background: rgba(200, 146, 58, 0.08);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.arch-node--kitchen {
  background: rgba(240, 235, 225, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
}

.arch-arrow {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  animation: arrowPulse 2.2s ease-in-out infinite;
}

.arch-arrow span {
  font-size: 1rem;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

.arch-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-dim);
  margin: 0 1rem;
}

.interlude-quote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  max-width: 620px;
  margin-top: 2.5rem;
  font-weight: 300;
}

/* ── CHAPTER II: MISE EN PLACE ────────────────────────────── */
#mise-en-place {
  background: var(--bg);
}

.mise-body {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.mise-mantra {
  font-style: italic;
  color: var(--accent);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  text-align: center;
  margin: 3rem 0;
  font-weight: 300;
}

/* Flip Cards */
.guardrails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.guardrail-card {
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.guardrail-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.guardrail-card.flipped .guardrail-card__inner {
  transform: rotateY(180deg);
}

.guardrail-card__front,
.guardrail-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guardrail-card__front {
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
}

.guardrail-card__back {
  background: rgba(74, 155, 106, 0.08);
  border: 1px solid rgba(74, 155, 106, 0.3);
  transform: rotateY(180deg);
}

.guardrail-question {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.guardrail-hint {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.guardrail-answer {
  font-size: 0.95rem;
  color: var(--success);
  line-height: 1.55;
  font-weight: 400;
}

.mise-closing {
  font-style: italic;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 2rem auto 0;
  line-height: 1.7;
  font-weight: 300;
}

/* ── TERMINAL ─────────────────────────────────────────────── */
.terminal-wrap {
  background: #0A0908;
  border: 1px solid rgba(200, 146, 58, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #1A1916;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(200, 146, 58, 0.1);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot--red   { background: #FF5F57; }
.terminal-dot--amber { background: #FEBC2E; }
.terminal-dot--green { background: #28C840; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 2;
  min-height: 80px;
}

.terminal-line {
  display: block;
  opacity: 0;
  white-space: pre;
  transition: opacity 0.15s;
}

.terminal-line.show { opacity: 1; }
.terminal-line.t-dim     { color: var(--text-dim); }
.terminal-line.t-normal  { color: var(--text); }
.terminal-line.t-accent  { color: var(--accent); }
.terminal-line.t-warning { color: #D4A84B; }
.terminal-line.t-danger  { color: var(--danger); }
.terminal-line.t-success { color: var(--success); }
.terminal-line.t-blank   { color: transparent; user-select: none; }

/* ── CHAPTER III: MANAGER'S RHYTHM ───────────────────────── */
#managers-rhythm {
  position: relative;
}

#managers-rhythm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 155, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.rhythm-prose {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.85;
  margin-bottom: 2rem;
  font-weight: 300;
}

.rhythm-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  line-height: 1.8;
  margin-top: 2rem;
  font-weight: 300;
}

/* ── CHAPTER IV: THE SWITCHOVER ───────────────────────────── */
#switchover-chapter {
  background: var(--bg-raised);
}

.switchover-prose {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.85;
  margin-bottom: 2rem;
  font-weight: 300;
}

.finale-block {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 0;
}

.finale-line {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  font-style: italic;
  font-weight: 300;
  line-height: 2;
}

.finale-line--big {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
  font-style: normal;
}

/* ── CHAPTER V: THE SCALE ─────────────────────────────────── */
#the-scale {
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  background: var(--bg-raised);
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
  display: block;
}

.stat-number--success { color: var(--success); }
.stat-number--danger  { color: var(--danger); }

.stat-sublabel {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.7;
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

.scale-body {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 3rem;
}

.contrast-box {
  border: 1px solid rgba(192, 80, 80, 0.3);
  border-left: 4px solid var(--danger);
  background: rgba(192, 80, 80, 0.05);
  border-radius: 0 6px 6px 0;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
}

.contrast-box h3 {
  font-size: 1rem;
  color: var(--danger);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contrast-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.contrast-stat {
  text-align: center;
}

/* ── COMPARISON TABLE ─────────────────────────────────────── */
#comparison {
  background: var(--bg-raised);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

.comparison-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-dim);
  text-align: left;
  color: var(--text-muted);
}

.comparison-table th:nth-child(2) { color: var(--danger); }
.comparison-table th:nth-child(3) { color: var(--success); }

.comparison-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(240, 235, 225, 0.04);
  color: var(--text-muted);
  font-weight: 300;
  vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td:first-child {
  color: var(--text);
  font-weight: 400;
}

.comparison-table td.cell-danger {
  color: var(--danger);
  font-weight: 400;
}

.comparison-table td.cell-success {
  color: var(--success);
  font-weight: 400;
}

@media (hover: hover) {
  .comparison-table tbody tr:hover td {
    background: rgba(200, 146, 58, 0.03);
  }
}

/* ── CLOSING ──────────────────────────────────────────────── */
#closing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
  background: var(--bg);
}

.closing-stanza {
  margin-bottom: 3.5rem;
}

.closing-line {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}

.closing-quiet {
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.closing-quiet .closing-line {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-dim);
}

.closing-finale {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 4rem;
  line-height: 1.3;
}

.closing-meta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ── THE BILL ──────────────────────────────────────────────── */
#the-bill {
  background: var(--bg-raised);
}

.bill-box {
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.bill-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.bill-rows {
  display: flex;
  flex-direction: column;
}

.bill-row {
  display: grid;
  grid-template-columns: 6rem 1fr 1fr 1fr;
  align-items: center;
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bill-row:last-child { border-bottom: none; }

.bill-row--danger {
  background: rgba(192, 80, 80, 0.05);
}

.bill-period {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bill-day, .bill-month, .bill-year {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bill-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bill-num::before { content: '$'; font-size: 0.6em; vertical-align: super; opacity: 0.8; }

.accent-num { color: var(--accent); }
.danger-num { color: var(--danger); }

.bill-unit {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bill-footnote {
  padding: 0.75rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
}

.bill-kicker {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.9;
  text-align: center;
  margin-top: 2.5rem;
}

/* ── ESCALATION STAIRCASE ──────────────────────────────── */
.escalation {
  margin: 3rem 0;
}

.escalation__prose {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 1.2rem;
}

.escalation__stair {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stair-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stair-bar {
  height: 4px;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent) 0%, rgba(200,146,58,0.4) 100%);
  border-radius: 2px;
  min-width: 20px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stair-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.stair-check {
  font-size: 0.85rem;
  color: var(--success);
  margin-left: auto;
  padding-right: 0.5rem;
}

/* ── CLOSING ASIDE ─────────────────────────────────────── */
.closing-aside {
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  margin-top: 0;
  margin-bottom: 3rem;
}

/* ── BILL RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
  .bill-row {
    grid-template-columns: 5rem 1fr 1fr;
  }
  .bill-year { display: none; }
  .bill-num { font-size: 1.2rem; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #cast .cast-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contrast-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container, .container--wide {
    padding: 0 1.25rem;
  }

  section { padding: 4.5rem 0; }

  #cast .cast-grid {
    grid-template-columns: 1fr;
  }

  .guardrails-grid {
    grid-template-columns: 1fr;
  }

  .arch-diagram {
    flex-direction: column;
    gap: 2rem;
  }

  .arch-divider {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contrast-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-table {
    font-size: 0.82rem;
  }

  .comparison-table td,
  .comparison-table th {
    padding: 0.7rem 0.75rem;
  }

  .guardrail-card {
    height: 200px;
  }

  .closing-line {
    font-size: clamp(1.3rem, 6vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    letter-spacing: 0.12em;
  }
}
