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

:root {
  /* BASE BACKGROUND (almost black, MTA-night feel) */
  --bg:        #121212;   /* near-black */
  --panel:     #171717;   /* main cards / sections */
  --panel-2:   #202020;   /* hover / elevated surfaces */

  /* TEXT (soft cream for subway signage contrast) */
  --text:      #f8f2ea;
  --muted:     rgba(248, 242, 234, 0.6);

  /* BORDERS (subtle, not harsh white) */
  --border:    rgba(248, 242, 234, 0.14);

  /* NYC SUBWAY ACCENTS (muted, realistic tones) */
  --accent-yellow: #ead956; /* toned MTA yellow (your target) */
  --accent-red:    #ff4a3d; /* subway red signage */
  --accent-green:  #2fbf71; /* transit green */
  --accent-blue:   #3a86ff; /* transit blue */

  /* UI */
  --radius:    8px;
  --max-w:     860px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
/* ── FORCE HELVETICA SYSTEM-WIDE ── */
body,
h1, h2, h3, h4, h5, h6,
p,
a,
span,
button,
input,
textarea,
select {
  font-family: Helvetica, Arial, sans-serif !important;
}
a { text-decoration: none; color: inherit; }

.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── HEADER ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: bg;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.article-hero {
  position: relative;

  min-height: 70vh;

  background: bg;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.article-tag {
  background: #3878e8;

  border: 4px solid white;

  border-radius: 12px;

  color: white;

  font-size: 18px;

  font-weight: 500;

  padding: 10px 28px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  text-transform: none;

  letter-spacing: 0;
}

.article-title {
  margin: 0;
  color: white;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-family: Helvetica, Arial, sans-serif !important;
}

/* .article-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.6;
} */
.article-hero .container {
  max-width: 1200px;
  width: 100%;
  padding: 0 5vw;
}


.article-meta {
  color: white;

  font-size: 20px;

  font-weight: 400;

  display: flex;

  align-items: center;
}

.meta-dot { opacity: 0.4; }

/* ── DIVIDER ──────────────────────────────────── */
.article-divider {
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.4;
}

/* ── ARTICLE BODY ─────────────────────────────── */
.article-body {
  padding: 250px 0 96px;
}

.article-body .container > * + * {
  margin-top: 0.75rem;
}

.article-body p {
  color: rgba(255,255,255,0.68);
  margin: 0;
}

.article-body h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-body h2 + p {
  margin-top: 0.1rem;
}

.hero-top-line {
  position: absolute;

  top: 100px;
  left: 0;
  right: 0;

  height: 2px;
  background: rgba(255,255,255,0.9);
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-left {
  flex: 1;
  max-width: 1200px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 22px; /* <-- controls spacing between title, blue box, meta */
}

.hero-arrow {
  background: transparent;
  border: none;

  color: white;

  font-size: 320px;

  line-height: 1;

  cursor: pointer;

  transition: transform 0.2s ease;
}

.hero-arrow:hover {
  transform: translateY(8px);
}
.hero-arrow {
  margin-left: auto;
}

.lead {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

.viz-block {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 600px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0.5rem 0 0.75rem;
  overflow: visible;
}

.viz-placeholder {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  font-style: italic;
  margin: 0 !important;
}

.viz-caption {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin-top: 0.5rem !important;
}

/* ── CALLOUT ──────────────────────────────────── */
.callout {
  background: var(--navy-mid);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 2rem 0;
}

.callout p {
  color: rgba(255,255,255,0.8) !important;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 !important;
}

/* ── METHODOLOGY ──────────────────────────────── */
.methodology {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 3rem !important;
}

.methodology h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.methodology p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 0 !important;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner .logo { font-size: 16px; }

.site-footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  .article-hero { padding: 56px 0 48px; }
  .nav-links { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .viz-block { min-height: 280px; }
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200, 150, 62, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

/* ── VIZ CONTROLS ── */
.controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }

.mode-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.mode-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}

.mode-btn:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); }
.mode-btn.active { background: var(--accent); border-color: var(--accent); color: var(--navy); }

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.slider-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.year-display {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  min-width: 56px;
  text-align: right;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--navy);
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(200,150,62,0.3);
}

input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--navy);
  cursor: pointer;
}

/* ── CHART ── */
.chart-container {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px 20px;
  position: relative;
  margin-top: 28px;
}


.chart-stat { position: absolute; top: 24px; right: 28px; text-align: right; }

.chart-stat-num {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.chart-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.axis text { fill: rgba(255,255,255,0.35); font-family: 'DM Sans', sans-serif; font-size: 11px; }
.axis line, .axis path { stroke: rgba(255,255,255,0.08); }
.grid line { stroke: rgba(255,255,255,0.05); }
.grid path { stroke: none; }

.line-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.area-path { fill: url(#areaGradient); }
.dot { fill: var(--accent); stroke: var(--navy-mid); stroke-width: 2; cursor: pointer; }

.tooltip {
  position: absolute;
  background: #0d1b2a;
  border: 1px solid rgba(200,150,62,0.4);
  border-radius: 4px;
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 13px;
  z-index: 10;
}

.tooltip-month { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.tooltip-val {font-size: 18px; color: var(--accent); }

.upload-prompt { text-align: center; padding: 48px 24px; }
.upload-prompt h3 {font-size: 20px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.upload-prompt p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.upload-btn-label {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.upload-btn-label:hover { opacity: 0.85; }
#csv-upload { display: none; }

.viz-block { overflow: hidden; }

#chart svg {
  display: block;
  width: 100%;
  height: auto;
}

#legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.year-display,
#year-display,
#active-year-stat,
.slider-label {
  font-family: Georgia, serif;
}

#year-display {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 150, 62, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  line-height: 1;
}

.peak-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
}

.peak-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 3px;
  border: 1px solid rgba(200,150,62,0.5);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.18s;
}

.peak-btn:hover {
  background: rgba(200,150,62,0.12);
}

.peak-label {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.analysis-callout {
  background: rgba(200,150,62,0.07);
  border: 1px solid rgba(200,150,62,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.analysis-icon { font-size: 18px; line-height: 1.5; flex-shrink: 0; }

.analysis-callout p {
  font-size: 14px !important;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.6;
  margin: 0 !important;
}

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

/* ═══════════════════════════════
   SCROLLYTELLING LAYOUT
═══════════════════════════════ */

.story-intro {
  padding: 80px 0 48px;
  text-align: center;
}

.section-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #f0e6d3;
  margin-bottom: 16px;
}
#section-intro .section-title {
  line-height: 1;
}

.section-lead {
  font-size: 1.15rem;
  color: #a89880;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.scrolly-outer {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

.scrolly-sticky {
  position: sticky;
  top: 24px;
  width: 58%;
  flex-shrink: 0;
  align-self: flex-start;
  height: fit-content;
}

.scrolly-steps {
  width: 38%;
  flex-shrink: 0;
  padding-top: 40px;
  padding-bottom: 80vh;
}

/* ═══════════════════════════════
   SCROLL STEP CARDS
═══════════════════════════════ */

.scroll-step {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,150,62,0.2);
  border-left: 3px solid #c8963e;
  border-radius: 8px;
  padding: 24px 20px;
  transition: border-color 0.3s, background 0.3s;
}

.step-card.is-active {
  background: rgba(200,150,62,0.08);
  border-color: #c8963e;
}

.step-card--unlock {
  border-color: #5ecec8;
  border-left-color: #5ecec8;
}

.step-card--unlock.is-active {
  background: rgba(94,206,200,0.08);
}

.step-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c8963e;
  margin-bottom: 8px;
}

.step-card--unlock .step-eyebrow { color: #5ecec8; }

.step-card h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  color: #f0e6d3;
  margin: 0 0 10px;
}

.step-card p {
  font-size: 0.92rem;
  color: #a89880;
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════
   LOCKED CONTROLS
═══════════════════════════════ */

#chart-controls { transition: opacity 0.4s; }

#chart-controls.locked {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

/* ═══════════════════════════════
   UNLOCK TOAST
═══════════════════════════════ */

.unlock-toast {
  text-align: center;
  margin-top: 14px;
  padding: 10px 20px;
  background: rgba(94,206,200,0.12);
  border: 1px solid #5ecec8;
  border-radius: 24px;
  color: #5ecec8;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: toastPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════
   STUB SECTIONS
═══════════════════════════════ */

.story-section {
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.stub-viz { margin-top: 32px; }

.stub-box {
  background: var(--navy-light);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 60px 32px;
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

.scrolly-sticky .viz-block { overflow: visible; }

/* ═══════════════════════════════
   MOBILE — SCROLLYTELLING
═══════════════════════════════ */

@media (max-width: 768px) {
  .scrolly-outer { flex-direction: column; }
  .scrolly-sticky { position: sticky; top: 0; width: 100%; z-index: 10; }
  .scrolly-steps { width: 100%; padding-top: 24px; }
  .scroll-step { min-height: 50vh; }
}

/* ═══════════════════════════════
   SECTION 2 — CAPITAL PLAN
═══════════════════════════════ */

.capital-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.capital-chart-wrap {
  flex: 0 0 65%;
  max-width: 65%;
  position: relative;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.capital-stat { margin-bottom: 16px; }

.capital-stat-num {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.capital-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

#treemap-container {
  position: relative;
  width: 100%;
}

.capital-tooltip {
  position: absolute;
  background: #0d1b2a;
  border: 1px solid rgba(200,150,62,0.4);
  border-radius: 4px;
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 13px;
  z-index: 20;
  min-width: 160px;
}

.capital-tt-category {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.capital-tt-agency {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.capital-tt-val {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  color: var(--accent);
}

.capital-sidebar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.capital-sidebar-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -12px;
}

.capital-agency-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capital-agency-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}

.capital-agency-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}

.capital-agency-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

.capital-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.capital-legend::-webkit-scrollbar { width: 4px; }
.capital-legend::-webkit-scrollbar-track { background: transparent; }
.capital-legend::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.capital-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.capital-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.capital-legend-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.capital-callout {
  background: rgba(200,150,62,0.07);
  border: 1px solid rgba(200,150,62,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.capital-callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.capital-callout-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.capital-callout-total {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 4px;
}

.capital-callout-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ═══════════════════════════════
   MOBILE — CAPITAL PLAN
═══════════════════════════════ */

@media (max-width: 768px) {
  .capital-layout { flex-direction: column; }
  .capital-chart-wrap { flex: none; max-width: 100%; width: 100%; }
}

/* ═══════════════════════════════
   SECTION 4 — FUNDING CUT SIMULATOR
═══════════════════════════════ */

.chart-stat-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.sim-route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}
.sim-route-btn.cut {
  opacity: 0.2;
  filter: grayscale(1);
  transform: scale(0.9);
}

.sim-route-btn:hover { transform: scale(1.1); }
.sim-route-btn.cut:hover { transform: scale(0.95); }
#commute-sticky {
  position: sticky;
  top: 24px;
  width: 60%;
  flex-shrink: 0;
  align-self: flex-start;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#commute-steps {
  width: 60%;
  flex-shrink: 0;
  padding-top: 40px;
  padding-bottom: 80vh;
}

.commute-scroll-step {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.sim-map-wrap {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sim-map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #commute-sticky { position: sticky; top: 0; width: 100%; z-index: 10; }
  #commute-steps  { width: 100%; padding-top: 24px; }
  .commute-scroll-step { min-height: 50vh; }
}
/* ═══════════════════════════════
   SECTION 2 — CAPITAL SCROLLYTELLING
═══════════════════════════════ */

#capital-sticky {
  position: sticky;
  top: 24px;
  width: 58%;
  flex-shrink: 0;
  align-self: flex-start;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#capital-steps {
  width: 38%;
  flex-shrink: 0;
  padding-top: 40px;
  padding-bottom: 80vh;
}

.capital-scroll-step {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

@media (max-width: 768px) {
  #capital-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
  }
  #capital-steps {
    width: 100%;
    padding-top: 24px;
  }
  .capital-scroll-step {
    min-height: 50vh;
  }
}

/* ═══════════════════════════════════════
   CARD DECK LAYOUT
═══════════════════════════════════════ */

.card-deck {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 40px;
}

/* ═══════════════════════════════════════
   FLIP CARD
═══════════════════════════════════════ */

.flip-card {
  width: 320px;
  height: 500px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  border-radius: 16px;
}

/* ═══════════════════════════════════════
   FRONT CONTENT LAYOUT
═══════════════════════════════════════ */

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers circle + title */
  justify-content: center;
  height: 100%;
  gap: 12px;
}

/* ═══════════════════════════════════════
   NUMBER CIRCLE (now inline, not floating)
═══════════════════════════════════════ */

.card-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: #2360A5;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ensure it NEVER shows on back */
.flip-back .card-number {
  display: none;
}

/* ═══════════════════════════════════════
   FLIP INNER
═══════════════════════════════════════ */

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

/* ═══════════════════════════════════════
   FACES
═══════════════════════════════════════ */

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 24px;

  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  backface-visibility: hidden;

  border: 2.5px solid #f8f2ea;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;
  box-sizing: border-box;
}

/* FRONT */
.flip-front {
  background: #1a1a1a;
  color: white;
}

/* BACK */
.flip-back {
  background: #0f0f0f;
  color: #f0f0f0;
  transform: rotateY(180deg);

  font-size: 18px;
  line-height: 1.6;

  overflow-y: auto;
}

/* ═══════════════════════════════════════
   TEXT
═══════════════════════════════════════ */

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.flip-front h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.hint {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 10px;
}

/* ═══════════════════════════════════════
   SUBWAY SEAT VISUALIZATION — Section 3
═══════════════════════════════════════ */

.subway-car-section {
  padding: 48px 0 64px;
  position: relative;
}

.subway-car-wrap {
  position: relative;
  background: #232733;
  border-radius: 8px;
  overflow: hidden;
}

/* ── OVERHEAD LIGHT BAR ── */
.overhead-light-bar {
  width: 100%;
  height: 28px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overhead-light-tube {
  width: 92%;
  height: 12px;
  background: linear-gradient(
    to right,
    rgba(255,255,197,0.0) 0%,
    rgba(255,255,197,0.9) 6%,
    #ffffc5 20%,
    #fffff0 50%,
    #ffffc5 80%,
    rgba(255,255,197,0.9) 94%,
    rgba(255,255,197,0.0) 100%
  );
  border-radius: 4px;
  box-shadow:
    0 0 10px 4px rgba(255,255,197,0.55),
    0 0 24px 10px rgba(255,255,180,0.25),
    0 0 50px 20px rgba(255,255,150,0.1);
  animation: flicker 9s ease-in-out infinite;
}

.overhead-light-bar::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,197,0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

@keyframes flicker {
  0%, 93%, 100% { opacity: 1; }
  94%           { opacity: 0.75; }
  95%           { opacity: 1; }
  96.5%         { opacity: 0.85; }
  97%           { opacity: 1; }
}

/* ── CAR INTERIOR ── */
.subway-car-interior {
  background: #232733;
  padding: 32px 40px 0;
}

/* ── SEAT ROW ── */
.seat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── INDIVIDUAL SEAT ── */
.subway-seat {
  position: relative;
  cursor: pointer;
  padding: 12px;
  border-radius: 22px;
  background: #2e3340;
  border: 2.5px solid #3d4255;
  transition: box-shadow 1.2s ease, background 1.2s ease, border-color 1.2s ease;
}

.seat-back-panel {
  height: 130px;
  background: #3a3f50;
  border-radius: 14px 14px 8px 8px;
  border: 2.5px solid #4a1800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 1.2s ease, border-color 1.2s ease;
}

.seat-label {
  font-family: Helvetica, Arial, sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.4;
  transition: color 1.2s ease;
}

.seat-cushion-panel {
  height: 52px;
  background: #3a3f50;
  border-radius: 8px 8px 16px 16px;
  border: 2.5px solid #4a1800;
  border-top: none;
  margin-top: -2px;
  transition: background 1.2s ease, border-color 1.2s ease;
}

/* ── LIT STATE ── */
.subway-seat.seat-lit {
  background: #edebd9;
  border-color: #4a1800;
  box-shadow:
    0 0 12px 4px rgba(245,102,0,0.25),
    0 0 28px 10px rgba(245,102,0,0.1);
}

.subway-seat.seat-lit .seat-back-panel {
  background: #f56600;
  border-color: #4a1800;
}

.subway-seat.seat-lit .seat-label {
  color: #fff;
}

.subway-seat.seat-lit .seat-cushion-panel {
  background: #d95c00;
  border-color: #4a1800;
}

/* ── HOVER (keeps lit look on hover) ── */
.subway-seat:hover .seat-back-panel {
  background: #f56600;
  border-color: #4a1800;
}
.subway-seat:hover .seat-label { color: #fff; }
.subway-seat:hover .seat-cushion-panel {
  background: #d95c00;
  border-color: #4a1800;
}
.subway-seat:hover {
  background: #edebd9;
  border-color: #4a1800;
  box-shadow:
    0 0 12px 4px rgba(245,102,0,0.25),
    0 0 28px 10px rgba(245,102,0,0.1);
}

/* ── FLOOR RAIL ── */
.subway-floor-rail {
  height: 18px;
  margin: 20px 16px 0;
  background: #1a1a1a;
  border-radius: 4px;
  border-top: 3px solid #2e3340;
}

/* ── TOOLTIP ── */
.seat-tooltip {
  margin-top: 24px;
  background: #1c1c1c;
  border: 1px solid rgba(234,217,86,0.25);
  border-radius: 10px;
  padding: 16px 22px;
  min-height: 60px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.seat-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.seat-tooltip-demo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 4px;
}

.seat-tooltip-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.subway-car-caption {
  font-size: 12px;
  color: rgba(248,242,234,0.35);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

@media (max-width: 600px) {
  .seat-row { gap: 12px; }
  .seat-back-panel { height: 100px; }
  .seat-label { font-size: 10px; }
  .subway-car-interior { padding: 20px 16px 0; }
}
/* ═══════════════════════════════
   CAPITAL PLAN — SUBWAY CAR CELLS
═══════════════════════════════ */

.treemap-cell {
  transition: transform 0.15s ease;
}

.treemap-cell:hover {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.car-body {
  transition: filter 0.15s ease;
}
text {
  font-family: Helvetica, Arial, sans-serif !important;
}
/* ═══════════════════════════════════════
   SECTION 5 — NEXT STOP TRACK + POSTER CARDS
═══════════════════════════════════════ */

.next-stop-track {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 48px;
  padding: 0 24px;
  position: relative;
}

.track-line {
  flex: 1;
  height: 3px;
  background: rgba(248,242,234,0.2);
  position: relative;
}

.track-line.active {
  background: var(--accent-yellow);
}

.track-stop {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid rgba(248,242,234,0.3);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.track-stop.active {
  border-color: var(--accent-yellow);
  background: var(--accent-yellow);
}

.track-stop-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(248,242,234,0.4);
  white-space: nowrap;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-stop.active .track-stop-label {
  color: var(--accent-yellow);
}

/* ── POSTER CARDS ── */

.poster-deck {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 56px;
  padding: 0 24px;
}

.poster-card {
  width: 300px;
  background: #111;
  border: 3px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.poster-card:hover {
  border-color: rgba(248,242,234,0.4);
  transform: translateY(-4px);
}

.poster-card-header {
  padding: 20px 20px 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.poster-line-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
}

.poster-card-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.poster-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poster-card-body p {
  font-size: 14px;
  color: rgba(248,242,234,0.7);
  line-height: 1.65;
  margin: 0;
}

.poster-card-source {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(248,242,234,0.35);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── WINDOW ROW (decorative) ── */
.poster-window-row {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.03);
}

.poster-window {
  flex: 1;
  height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
}