:root {
  --bg: #0b0d12;
  --bg-alt: #0f1219;
  --surface: #151a24;
  --surface-2: #1b2130;
  --line: rgba(233, 230, 223, .1);
  --text: #ece8e0;
  --muted: #98a0ae;
  --red: #e2483d;
  --red-soft: rgba(226, 72, 61, .14);
  --gold: #f0bd5e;
  --radius: 18px;
  --wrap: 1120px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Placeholder text: easy to spot and replace */
.ph { color: var(--muted); }
.tag {
  display: inline-block; vertical-align: middle;
  font: 600 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px dashed rgba(240, 189, 94, .5);
  padding: 4px 6px; border-radius: 6px; margin-left: 4px;
}

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold)); }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 58;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { background: rgba(11, 13, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
body.menu-open .topbar { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img { transform: rotate(-180deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font: 700 1.05rem/1.05 var(--display); letter-spacing: .01em; }
.brand-bottom { font: 500 .68rem/1.4 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

/* Three-bar menu button, turns into an X */
.menu-btn {
  position: relative; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(21, 26, 36, .6);
  display: grid; place-content: center; gap: 5px; cursor: pointer;
  transition: background .25s, border-color .25s;
}
.menu-btn:hover { background: var(--surface-2); border-color: rgba(233, 230, 223, .25); }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s cubic-bezier(.7, 0, .2, 1), opacity .25s, width .3s; }
.menu-btn span:nth-child(2) { width: 14px; justify-self: end; }
.menu-btn:hover span:nth-child(2) { width: 20px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: radial-gradient(120% 80% at 100% 0%, #24142a 0%, var(--bg) 60%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px clamp(24px, 8vw, 120px) 40px;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .7s cubic-bezier(.7, 0, .2, 1);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px;
  font: 600 clamp(1.8rem, 5.5vw, 3.4rem)/1.25 var(--display);
  text-decoration: none; padding: 4px 0;
  transform: translateY(110%); transition: transform .6s cubic-bezier(.2, .8, .2, 1), color .2s;
}
.menu.open .menu-list a { transform: none; transition-delay: calc(.25s + var(--i, 0) * .05s), 0s; }
.menu-list a:hover { color: var(--gold); }
.menu-num { font: 500 .8rem var(--body); color: var(--red); letter-spacing: .1em; }
.menu-foot { margin-top: 40px; color: var(--muted); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; opacity: 0; transition: opacity .4s .6s; }
.menu.open .menu-foot { opacity: 1; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 18, .8) 0%, rgba(7, 9, 18, .3) 45%, rgba(7, 9, 18, 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 18, 0) 18%); }
.hero-content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px clamp(16px, 4vw, 40px) 120px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(21, 26, 36, .7); border: 1px solid var(--line); font-size: .82rem; letter-spacing: .04em; color: var(--muted); backdrop-filter: blur(6px); animation: rise .8s .1s both; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(226, 72, 61, .6); animation: ping 2s infinite; }
.topic { max-width: 720px; min-height: 18rem; margin-top: 22px; transition: opacity .35s, transform .35s; }
.topic.swap { opacity: 0; transform: translateY(12px); }
.topic-kicker { font: 600 .8rem var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; animation: rise .8s .2s both; }
.topic-title { font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: 1.02; font-weight: 700; margin-bottom: 22px; animation: rise .9s .3s both; }
.topic-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.topic-text { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #c9c5bd; max-width: 560px; animation: rise .9s .45s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; animation: rise .9s .55s both; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ef5a4f; }
.btn-ghost { border: 1px solid rgba(233, 230, 223, .25); background: rgba(11, 13, 18, .35); }
.btn-ghost:hover { border-color: var(--text); }
.topic-nav { display: flex; align-items: center; gap: 14px; margin-top: 40px; animation: rise .9s .65s both; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(21, 26, 36, .6); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.round:hover { background: var(--surface-2); border-color: rgba(233, 230, 223, .3); }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(233, 230, 223, .25); cursor: pointer; transition: width .35s, background .35s; position: relative; }
.dots button::before { content: ''; position: absolute; inset: -18px -4px; }
.dots button[aria-selected="true"] { width: 26px; background: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(233, 230, 223, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite; }

/* The tide map */
.hero-map, .hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero { background: radial-gradient(90% 70% at 75% 45%, #10172a 0%, var(--bg) 70%); }
.map-tip { position: absolute; z-index: 4; max-width: 280px; padding: 14px 16px; border-radius: 14px; background: rgba(15, 18, 27, .94); border: 1px solid rgba(240, 189, 94, .35); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: .88rem; line-height: 1.45; pointer-events: none; }
.map-tip strong { display: block; font: 600 1rem var(--display); color: var(--gold); margin-bottom: 4px; }
.tide { width: 330px; max-width: 100%; margin-top: 32px; padding: 16px 18px 14px; border-radius: 18px; background: rgba(11, 13, 18, .78); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: rise .9s .8s both; }
.tide-head { display: flex; align-items: center; gap: 12px; }
.tide-head p { margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tide-month { font: 600 1.25rem var(--display); }
.tide-share { font-size: .8rem; color: var(--muted); }
.tide-play { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.tide-play span, .tide-play span::before { position: absolute; top: 15px; width: 4px; height: 14px; border-radius: 2px; background: var(--text); }
.tide-play span { left: 16px; }
.tide-play span::before { content: ''; top: 0; left: 8px; }
.tide-play.paused span { left: 18px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--text); }
.tide-play.paused span::before { display: none; }
.tide-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 14px; }
.tide-months button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 54px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 .68rem var(--body); cursor: pointer; }
.tide-months button span { width: 100%; height: calc(4px + var(--h, 0) * 30px); border-radius: 3px; background: rgba(240, 189, 94, .3); transition: background .3s; }
.tide-months button[aria-selected="true"] { color: var(--text); }
.tide-months button[aria-selected="true"] span { background: var(--gold); box-shadow: 0 0 12px rgba(240, 189, 94, .5); }
.tide-legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .76rem; color: var(--muted); }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.lg-visit { background: #ffc864; box-shadow: 0 0 8px #ffc864; }
.lg-local { background: rgba(233, 230, 223, .7); margin-left: 8px; }

/* Sections */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.alt::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap.narrow { max-width: 820px; }
.eyebrow { font: 600 .78rem var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: #c9c5bd; max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.question { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.question-tag { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.question p { font: 500 1.25rem/1.4 var(--display); color: var(--text); margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.stat-num { font: 700 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); margin-bottom: 12px; background: linear-gradient(180deg, var(--text), #a7a29a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unit { font-size: .5em; color: var(--gold); -webkit-text-fill-color: var(--gold); margin-left: 4px; }
.stat-label { font-weight: 500; margin-bottom: 10px; }
.stat-src { font-size: .82rem; margin: 0; }

/* Timeline: the line fills as you scroll */
.timeline { position: relative; margin-top: 80px; padding-left: 40px; display: grid; gap: 40px; }
.timeline-line { position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--red), var(--gold)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.event { position: relative; }
.event::before { content: ''; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--gold); transition: background .4s; }
.event.in::before { background: var(--gold); }
.event-year { font: 600 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.event h3 { margin-bottom: 6px; }

/* Research */
.research { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.bars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: .9rem; }
.bar { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: 10px; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s .3s cubic-bezier(.2, .8, .2, 1); }
.panel.in .bar span { transform: scaleX(1); }
.quote blockquote { margin: 18px 0 12px; font: 400 1.4rem/1.4 var(--display); font-style: italic; }

/* Solutions */
.solutions { list-style: none; padding: 0; margin: 48px 0 0; counter-reset: s; display: grid; gap: 14px; }
.solutions li { counter-increment: s; display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.solutions li::before { content: '0' counter(s); grid-row: span 2; font: 700 2.4rem/1 var(--display); color: var(--red); }
.solutions h3 { margin-bottom: 4px; }
.solutions p { margin: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.member { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 18px 24px; transition: transform .35s; }
.member:hover { transform: translateY(-6px); }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; font: 600 1.5rem var(--display); background: conic-gradient(from 200deg, var(--red), var(--gold), var(--red)); color: #170d0d; }
.member h3 { font-size: 1.15rem; margin-bottom: 4px; }
.member p { margin: 0; font-size: .9rem; }

/* Sources */
.sources { margin: 32px 0 0; padding-left: 22px; display: grid; gap: 14px; font-size: .95rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .9rem; }

/* Section backgrounds (scenes.js) */
.section, .pblock { isolation: isolate; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.pblock > .scene { left: 50%; width: 100vw; transform: translateX(-50%); }
.section > .wrap, .pblock > :not(.scene) { position: relative; z-index: 1; }
/* Cards let the section's background show through a little. */
.stat, .fact, .world, .callout, .rent, .link, .panel, .member, .question, .limits { background-color: rgba(21, 26, 36, .8); }

/* Source numbers, e.g. [13] */
.cite { display: inline-block; font: 600 .68em/1 var(--body); color: var(--muted); text-decoration: none; padding: 3px 5px; margin-left: 2px; border-radius: 5px; background: var(--surface-2); vertical-align: .15em; white-space: nowrap; transition: color .2s, background .2s; }
.cite::before { content: '['; }
.cite::after { content: ']'; }
.cite:hover { color: var(--gold); background: rgba(240, 189, 94, .12); }
.small { font-size: .85rem; }
.eyebrow.gold { color: var(--gold); }
.unit.pre { margin: 0 2px 0 0; }

/* "The catch": one in five */
.catch { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-top: 56px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(240, 189, 94, .08), rgba(226, 72, 61, .06)); border: 1px solid rgba(240, 189, 94, .2); }
.catch h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.catch p:last-child { margin: 0; color: #c9c5bd; }
.people { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); }
.people span { position: relative; width: clamp(34px, 6vw, 52px); aspect-ratio: 1 / 2.2; opacity: .22; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.people span::before { content: ''; position: absolute; left: 22%; right: 22%; top: 0; aspect-ratio: 1; border-radius: 50%; background: var(--text); }
.people span::after { content: ''; position: absolute; left: 0; right: 0; top: 34%; bottom: 0; border-radius: 40% 40% 10px 10px; background: var(--text); }
.catch.in .people span { transform: none; transition-delay: calc(var(--i, 0) * .12s); }
.people span:nth-child(1) { --i: 1; } .people span:nth-child(2) { --i: 2; } .people span:nth-child(3) { --i: 3; } .people span:nth-child(4) { --i: 4; } .people span:nth-child(5) { --i: 5; }
.catch.in .people .lit { opacity: 1; }
.people .lit::before, .people .lit::after { background: var(--gold); box-shadow: 0 0 24px rgba(240, 189, 94, .5); }

/* Season bar */
.season { margin-top: 40px; }
.season-title { font-weight: 600; margin-bottom: 12px; }
.season-bar { display: flex; gap: 3px; height: 64px; border-radius: 14px; overflow: hidden; }
.seg { width: var(--w); display: flex; flex-direction: column; justify-content: center; padding: 0 14px; font-size: .78rem; line-height: 1.25; white-space: nowrap; overflow: hidden; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.seg b { font: 700 1.05rem var(--display); }
.season.in .seg { transform: none; }
.season.in .seg.shoulder { transition-delay: .2s; }
.season.in .seg.rest { transition-delay: .4s; }
.seg.peak { background: var(--red); color: #fff; }
.seg.shoulder { background: #b7614f; color: #fff; }
.seg.rest { background: var(--surface-2); color: var(--muted); }

/* Perspective chapters */
.pnav { position: sticky; top: 68px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; margin: 36px calc(-1 * clamp(16px, 4vw, 40px)) 0; padding: 10px clamp(16px, 4vw, 40px); background: var(--bg); box-shadow: 0 12px 16px -8px var(--bg); scrollbar-width: none; }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.pnav a:hover { border-color: rgba(233, 230, 223, .3); }
.pnav a.active { background: var(--red); border-color: var(--red); color: #fff; }
.pblock { position: relative; padding: clamp(64px, 9vw, 110px) 0 0; scroll-margin-top: 130px; }
.pblock + .pblock { margin-top: clamp(32px, 6vw, 60px); border-top: 1px solid var(--line); }
.pblock-head { position: relative; max-width: 780px; }
.pnum { position: absolute; right: -10%; top: -40px; font: 700 clamp(9rem, 22vw, 16rem)/1 var(--display); font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(240, 189, 94, .18); pointer-events: none; z-index: -1; }
.ptitle { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h4 { font: 600 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.fact { padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fact-num { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--display); color: var(--gold); margin-bottom: 10px; }
.fact p:last-child { margin: 0; font-size: .95rem; color: #c9c5bd; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.side { padding: 24px 24px 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: .95rem; }
.side li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.side.good { background: linear-gradient(160deg, rgba(92, 184, 128, .1), transparent 70%), rgba(17, 21, 30, .86); }
.side.good h4, .side.good li::before { color: #74c995; }
.side.good li::before { content: '+'; }
.side.bad { background: linear-gradient(160deg, rgba(226, 72, 61, .12), transparent 70%), rgba(17, 21, 30, .86); }
.side.bad h4, .side.bad li::before { color: #f07a70; }
.side.bad li::before { content: '−'; }
.pfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.world, .fix { padding: 24px; border-radius: var(--radius); }
.world { background: var(--surface); border: 1px solid var(--line); }
.world h4 { color: #8fb8ff; }
.fix { background: var(--red-soft); border: 1px solid rgba(226, 72, 61, .3); }
.fix h4 { color: var(--red); }
.world p, .fix p { margin: 0; font-size: .95rem; }
.callout { margin-top: 16px; padding: 26px 28px; border-radius: var(--radius); border-left: 3px solid var(--red); background: var(--surface); }
.callout h4 { color: var(--red); }
.callout p { margin: 0; }
.good-callout { border-left-color: #74c995; }
.good-callout h4 { color: #74c995; }

/* Rent vs salary */
.rent { margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rent-title { font-weight: 600; margin-bottom: 16px; }
.rent-row { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 14px; margin-bottom: 12px; }
.rent-label { font-size: .9rem; color: #c9c5bd; }
.rent-row b { font: 700 1.2rem var(--display); text-align: right; }
.rent-bar { height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.rent-bar span { display: block; height: 100%; width: var(--w); border-radius: 8px; background: #8fb8ff; transform-origin: left; transform: scaleX(0); transition: transform 1.3s .2s cubic-bezier(.2, .8, .2, 1); }
.rent-bar .hot { background: linear-gradient(90deg, var(--red), var(--gold)); transition-delay: .5s; }
.rent.in .rent-bar span { transform: scaleX(1); }
.rent p:last-child { margin: 6px 0 0; }

/* Compact timeline inside a chapter */
.timeline.compact { margin-top: 40px; gap: 22px; }
.timeline.compact .event p:last-child { margin: 0; }
.timeline-title { font: 600 1.25rem var(--display); margin: 0 0 4px; }

/* Connections */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.link { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s, border-color .35s; }
.link:hover { transform: translateY(-4px); border-color: rgba(240, 189, 94, .35); }
.link-pair { font: 600 1.15rem var(--display); margin-bottom: 10px; }
.link-pair span { color: var(--red); margin: 0 4px; }
.link p:last-child { margin: 0; font-size: .95rem; color: #c9c5bd; }

.tradeoff { margin: 32px 0; color: var(--muted); max-width: 760px; }
.limits { margin-top: 32px; padding: 28px; border-radius: var(--radius); border: 1px dashed rgba(233, 230, 223, .2); }
.limits ul { margin: 0; padding-left: 20px; color: #c9c5bd; font-size: .95rem; }
.limits li { margin-bottom: 8px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(226, 72, 61, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(226, 72, 61, 0); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .split, .research { grid-template-columns: 1fr; }
  .stats, .team { grid-template-columns: repeat(2, 1fr); }
  .catch, .sides, .pfoot { grid-template-columns: 1fr; }
  .facts, .links { grid-template-columns: 1fr 1fr; }
  .pnum { right: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats, .facts, .links { grid-template-columns: 1fr; }
  .rent-row { grid-template-columns: 1fr 60px; }
  .rent-label { grid-column: 1 / -1; margin-bottom: -6px; }
  .season-bar { height: auto; flex-direction: column; border-radius: 12px; }
  .seg { width: auto; flex-direction: row; gap: 8px; align-items: baseline; padding: 12px 14px; }
  .seg.peak { width: 100%; }
  .seg.shoulder { width: 65%; }
  .seg.rest { width: 71%; }
  .team { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-fade { background: linear-gradient(180deg, rgba(7, 9, 18, .72) 0%, rgba(7, 9, 18, .5) 45%, rgba(7, 9, 18, .08) 72%, rgba(11, 13, 18, .6) 92%, var(--bg) 100%); }
  .tide { width: auto; padding: 12px 14px 10px; }
  .tide-months button { height: 44px; }
  .map-tip { max-width: 240px; }
  .topic { min-height: 21rem; }
  .solutions li { grid-template-columns: 52px 1fr; column-gap: 14px; }
  .solutions li::before { font-size: 1.9rem; }
  .brand-top { font-size: .95rem; }
}
@media (max-width: 560px), (orientation: portrait) and (max-width: 1100px) {
  .hero { align-items: flex-start; }
  .hero-content { padding-top: 96px; padding-bottom: 150px; }
  .hero-fade { background: linear-gradient(180deg, rgba(7, 9, 18, .55) 0%, rgba(7, 9, 18, .62) 40%, rgba(7, 9, 18, .25) 68%, rgba(7, 9, 18, 0) 82%); }
  .topic-text, .topic-kicker, .chip { text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
  /* The month panel becomes a strip along the bottom of the first screen. */
  .tide { position: absolute; left: 16px; right: 16px; bottom: 14px; width: auto; max-width: 560px; margin: 0 auto; padding: 10px 12px 8px; }
  .tide-head { gap: 10px; }
  .tide-play { width: 36px; height: 36px; }
  .tide-play span { top: 11px; left: 12px; }
  .tide-play.paused span { top: 11px; left: 14px; }
  .tide-month { font-size: 1.05rem; }
  .tide-months { margin-top: 8px; }
  .tide-months button { height: 38px; }
  .tide-legend { display: none; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
