/* Layout: fixed 1600x900 stage scaled to fit; each slide is a 3-row grid (head / body / reserved footer); wavehoover site tokens, single dark theme */
:root {
  --navy-0: #0a0f1a;
  --navy-1: #111827;
  --navy-2: #1a2234;
  --sand: #d4a574;
  --sand-light: #e8c9a4;
  --sand-dim: rgba(212, 165, 116, 0.15);
  --sand-line: rgba(212, 165, 116, 0.3);
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #9ca3af;
  --grid: rgba(244, 244, 245, 0.08);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--navy-0);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.stage {
  width: 1600px; height: 900px;
  position: absolute; left: 50%; top: 50%;
  transform-origin: center center;
  background: var(--navy-0);
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  padding: 80px 120px 110px;
  display: grid; grid-template-rows: auto 1fr; gap: 36px;
  align-content: start;
  opacity: 0; visibility: hidden;
  transition: opacity 400ms ease;
  background:
    radial-gradient(1200px 700px at 85% 110%, rgba(212,165,116,0.07), transparent 60%),
    var(--navy-0);
}
.slide.center { grid-template-rows: 1fr; align-content: center; }
.slide.active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.head { display: flex; flex-direction: column; gap: 18px; }
.body { min-height: 0; display: flex; flex-direction: column; gap: 32px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sand);
}
h1, h2 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: 116px; line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: 68px; line-height: 1.08; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--sand-light); }
p { margin: 0; }
.lede { font-size: 30px; line-height: 1.45; color: var(--ink-2); max-width: 1200px; }
.small { font-size: 20px; color: var(--ink-3); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.source { font-family: var(--font-mono); font-size: 16px; color: var(--ink-3); letter-spacing: 0.02em; }

/* Title */
.title-slide { grid-template-rows: auto 1fr auto; padding-bottom: 80px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.02em; }
.title-slide .mid { align-self: center; display: flex; flex-direction: column; gap: 28px; }
.byline { display: flex; justify-content: space-between; align-items: end; }
.who { font-size: 26px; color: var(--ink-2); }
.who strong { color: var(--ink); font-weight: 500; display: block; font-size: 32px; }

/* Polls */
.poll { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; height: 100%; }
.poll .q { display: flex; flex-direction: column; gap: 28px; }
.poll .question { font-family: var(--font-display); font-size: 76px; line-height: 1.1; text-wrap: balance; }
.joincard {
  border: 1px solid var(--sand-line); border-radius: 6px; background: var(--navy-1);
  padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.joincard .label { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.joincard .url { font-size: 34px; font-weight: 500; }
.joincard .code { font-family: var(--font-mono); font-size: 46px; color: var(--sand); letter-spacing: 0.06em; }
.qr { background: var(--navy-1); padding: 14px; border: 1px solid var(--sand-line); border-radius: 4px; line-height: 0; }
.qr img, .qr canvas, .qr svg { width: 200px; height: 200px; display: block; }

/* Charts */
.chart-wrap { display: grid; grid-template-columns: 1fr 330px; gap: 56px; align-items: stretch; min-height: 0; flex: 1; }
.chart { min-width: 0; min-height: 0; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.side { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.kv { display: flex; flex-direction: column; gap: 6px; }
.kv .v { font-family: var(--font-display); font-size: 60px; line-height: 1; }
.kv .k { font-size: 20px; color: var(--ink-2); line-height: 1.4; }
.kv.hi .v { color: var(--sand); }
.kv.lo .v { color: var(--ink-3); }
.assume { font-size: 16px; color: var(--ink-3); line-height: 1.5; }

/* Coach vs. ETF */
.bm { gap: 20px; }
.bm .chart { height: 250px; flex: none; }
.bm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bm-table th, .bm-table td { text-align: right; padding: 7px 0 7px 20px; font-size: 20px; }
.bm-table th:first-child { text-align: left; padding-left: 0; }
.bm-table thead th { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; border-bottom: 1px solid var(--sand-line); }
.bm-table tbody th { font-weight: 500; }
.bm-table tr.hi th, .bm-table tr.hi td { color: var(--sand); }
.bm-table tr.lo th, .bm-table tr.lo td { color: var(--ink-2); }
.bm-table tbody tr + tr th, .bm-table tbody tr + tr td { border-top: 1px solid var(--grid); }
.bm-table tr.check th, .bm-table tr.check td { color: var(--ink-3); font-style: italic; }
.bm-table td.inv { color: var(--ink-3); }

/* Toolkit */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.methods .m { border: 1px solid var(--sand-dim); border-radius: 6px; background: var(--navy-1); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.methods .n { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em; color: var(--sand); }
.methods .k { font-family: var(--font-display); font-size: 38px; line-height: 1.1; color: var(--ink); }
.methods p { margin: 0; font-size: 21px; line-height: 1.4; color: var(--ink-2); }
.methods p.q { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--sand); }

/* Quote */
.quote { font-family: var(--font-display); font-size: 84px; line-height: 1.12; letter-spacing: -0.01em; max-width: 1300px; text-wrap: balance; }

/* Stats */
.stat-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start; }
.stat { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stat .v { font-family: var(--font-display); font-size: 170px; line-height: 0.9; letter-spacing: -0.03em; }
.stat .k { font-size: 26px; color: var(--ink-2); line-height: 1.4; }
.stat.dim .v { color: var(--ink-3); }
.stat.hi .v { color: var(--sand); }
.arrow { font-family: var(--font-display); font-size: 110px; color: var(--sand-line); line-height: 1; padding-top: 20px; }
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.points li { display: grid; grid-template-columns: 40px 1fr; font-size: 32px; line-height: 1.35; }
.points li::before { content: "—"; color: var(--sand); }

/* Exercises */
.exercise { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: start; }
.prompt { font-family: var(--font-display); font-size: 48px; line-height: 1.22; text-wrap: balance; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps li { font-size: 28px; line-height: 1.4; color: var(--ink-2); display: grid; grid-template-columns: 40px 1fr; }
.steps li::before { content: "—"; color: var(--sand); }
.steps strong { color: var(--ink); font-weight: 500; }
.timer {
  border: 1px solid var(--sand-line); border-radius: 6px; background: var(--navy-1);
  padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; user-select: none; font: inherit; color: inherit;
}
.timer:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
.timer .t { font-family: var(--font-mono); font-size: 76px; font-variant-numeric: tabular-nums; color: var(--ink); }
.timer.running .t { color: var(--sand); }
.timer.done .t { color: var(--sand-light); }
.timer .hint { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Timeline */
.timeline svg { width: 100%; height: 300px; display: block; overflow: visible; }

/* Backwards plan */
.asks { gap: 28px; }
.asks .k { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.asks div { font-family: var(--font-display); font-size: 32px; line-height: 1.2; display: flex; flex-direction: column; gap: 8px; }
.ax.goal-ax { fill: var(--sand); }
.ax.curve-lbl { fill: var(--ink-2); font-size: 17px; }
.asks .n, .flow .n { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em; color: var(--sand); }
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow li { font-size: 26px; line-height: 1.35; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--sand-line); padding-top: 18px; }

/* Accountability options */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.opt { border: 1px solid var(--sand-dim); border-radius: 6px; background: var(--navy-1); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.opt .k { font-family: var(--font-display); font-size: 44px; color: var(--sand); line-height: 1.1; }
.opt p { margin: 0; font-size: 24px; line-height: 1.45; color: var(--ink-2); }
.checkin { border: 1px solid var(--sand-line); border-radius: 6px; background: var(--navy-1); padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; }
.checkin .k { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.checkin ol { margin: 0; padding-left: 28px; display: flex; flex-direction: column; gap: 12px; font-size: 28px; line-height: 1.35; color: var(--ink); }

/* Accountability */
.acc { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.acc .stat .v { font-size: 150px; }
.todo { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; counter-reset: s; }
.todo li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; font-size: 30px; line-height: 1.35; }
.todo li::before { content: counter(s); font-family: var(--font-mono); font-size: 22px; color: var(--sand); padding-top: 6px; }

/* Q&A */
.qa { display: grid; grid-template-columns: 1fr 300px; gap: 80px; align-items: center; height: 100%; }
.close-recap { margin: 40px 0 0; font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.me { display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--sand-line); padding-top: 32px; }
.me img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sand-line); flex: none; }
.me .who { display: flex; flex-direction: column; gap: 8px; }
.me strong { font-size: 40px; font-weight: 500; color: var(--ink); }
.me span { font-size: 24px; color: var(--ink-2); }
.handles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.handles li { display: grid; grid-template-columns: 150px auto auto; justify-content: start; align-items: baseline; gap: 20px; }
.handles .k { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.handles .v { font-family: var(--font-mono); font-size: 28px; color: var(--sand); }
.handles .n { font-size: 22px; color: var(--ink-2); }
.handles.creds li { grid-template-columns: 150px 1fr; }
.handles .t { font-size: 26px; line-height: 1.35; color: var(--ink); }
.qa .card { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qa .site { font-family: var(--font-mono); font-size: 24px; color: var(--sand); }

/* Sources */
.sources { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 56px; max-width: 1360px; }
.sources li { break-inside: avoid; margin-bottom: 14px; }
.sources li { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.sources li strong { color: var(--ink); font-weight: 500; }

/* Chrome */
.footer {
  position: absolute; left: 120px; right: 120px; bottom: 40px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  pointer-events: none; z-index: 2;
}
.controls {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 8px; z-index: 10;
}
.controls button {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  background: var(--navy-1); color: var(--ink-2);
  border: 1px solid var(--sand-dim); border-radius: 4px; padding: 8px 12px; cursor: pointer;
}
.controls button:hover { color: var(--ink); border-color: var(--sand-line); }
.controls button:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
body.clean .controls { display: none; }

/* SVG chart text */
.ax { font-family: var(--font-mono); font-size: 15px; fill: var(--ink-3); }
.lbl { font-family: var(--font-body); font-size: 19px; font-weight: 500; }

/* Exercise side column: timer plus Menti join card */
.side-stack { display: flex; flex-direction: column; gap: 20px; }
.joincard.mini { padding: 18px; gap: 8px; }
.joincard.mini .label { font-size: 13px; }
.joincard.mini .qr { padding: 8px; }
.joincard.mini .qr img, .joincard.mini .qr canvas, .joincard.mini .qr svg { width: 120px; height: 120px; }
.joincard.mini .url { font-size: 22px; }
.joincard.mini .code { font-size: 28px; }

/* Logo in the corner of the outro */
.brand.corner { position: absolute; top: 80px; left: 120px; }

/* The next five years */
.salary-chart { height: 440px; flex: none; }
