/* ---------- Theme tokens ----------
   Light = warm paper. Dark = the same page at night. Photo bands stay dark in both. */
:root {
  --bg: #f6f2ea;
  --surface: #fffcf6;
  --ink: #1f1d1a;
  --muted: #6b655c;
  --line: #e2dbcd;
  --accent: #e2593a;      /* sunset coral, from the cover film */
  --glow: #ffc857;        /* cursor + highlights */
  --night: #0b0e16;       /* photo bands, cards */
  --night-ink: #f3efe7;
  --p1: #8f9bb3;
  --p2: #3fb8a8;
  --p3: #f0a63a;
  --p4: #ef6f9a;
  --p5: #7b7ff0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1017;
    --surface: #151922;
    --ink: #ebe7df;
    --muted: #9a958c;
    --line: #262b37;
    --accent: #ff7a59;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1017;
  --surface: #151922;
  --ink: #ebe7df;
  --muted: #9a958c;
  --line: #262b37;
  --accent: #ff7a59;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

h1, h2, .band-title, .p-title, .question, .org, .back-org, .locked-title, .lead, .hi-email {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.015em;
}
em { font-style: italic; font-weight: 400; }

.kicker, .hint, .card-top, .sector, .now-list dt, .meter-label, .training .kicker, .photo-credit, .bk b, .p-num {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.kicker { margin: 0 0 14px; color: var(--muted); }
.dim { opacity: 0.6; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

/* Things arrive as you reach them */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Cursor (fine pointers only) ---------- */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .peekable { cursor: none; }
  .cursor-dot, .cursor-ring { display: block; position: fixed; left: 0; top: 0; pointer-events: none; z-index: 90; }
  .cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--glow); }
  .cursor-ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--glow) 70%, transparent);
    display: grid; place-items: center;
    transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, opacity 0.25s;
  }
  .cursor-ring.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: color-mix(in srgb, var(--glow) 18%, transparent); }
  .cursor-label { font: 700 10px "Space Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--glow); opacity: 0; transition: opacity 0.2s; }
  .cursor-ring.big .cursor-label { opacity: 1; }
  body:not(.cursor-on) .cursor-dot, body:not(.cursor-on) .cursor-ring { opacity: 0; }
}

/* ---------- Peek photo ---------- */
.peek {
  position: fixed; left: 0; top: 0; z-index: 80; width: 220px; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); background: var(--night);
  pointer-events: none; opacity: 0; transform: scale(0.9) rotate(-3deg);
  transition: opacity 0.25s, transform 0.25s;
}
.peek img, .peek video { width: 100%; height: 100%; object-fit: cover; }
.peek video, .peek.film img { display: none; }
.peek.film video { display: block; }
.peek.show { opacity: 1; transform: scale(1) rotate(-3deg); }
.peekable { border-bottom: 1px dashed var(--accent); cursor: pointer; }
.peekable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 14px 24px;
  color: var(--night-ink); transition: background 0.3s, color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); color: var(--ink); border-bottom-color: var(--line); }
.logo {
  font: 600 20px "Fraunces", Georgia, serif; text-decoration: none; position: relative; overflow: hidden;
  /* the logo catches the light once, shortly after the page loads */
  background: linear-gradient(110deg, var(--logo-ink) 44%, var(--glow) 50%, var(--logo-ink) 56%) 100% 0 / 300% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 1.6s 1.2s ease-out 1 both;
}
.top { --logo-ink: var(--night-ink); }
.top.solid { --logo-ink: var(--ink); }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; opacity: 0.75; }
.nav a:hover { opacity: 1; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter-label { opacity: 0.75; }
.pips { display: flex; gap: 4px; }
.pips i { width: 14px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.25; transition: background 0.4s, opacity 0.4s; }
.pips i.on { background: var(--glow); opacity: 1; }
.theme-toggle { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer; opacity: 0.8; }

/* ---------- Cover ---------- */
.cover { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); color: var(--night-ink); }
.cover-media { position: absolute; inset: -6% 0; will-change: transform; }
.cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,22,0.35) 0%, rgba(11,14,22,0.05) 40%, rgba(11,14,22,0.75) 100%); }
.cover-content { position: absolute; left: 0; right: 0; bottom: 12vh; max-width: 1120px; margin: 0 auto; padding: 0 24px; will-change: transform, opacity; }
.cover-content .kicker { color: rgba(243,239,231,0.8); }
.cover-name { font-size: clamp(64px, 13vw, 168px); line-height: 0.88; margin: 0 0 22px; letter-spacing: -0.03em; }
.typed { font: 400 italic clamp(22px, 3vw, 32px) "Fraunces", Georgia, serif; margin: 0; min-height: 1.4em; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 4px; vertical-align: -0.12em; background: var(--glow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue {
  position: absolute; right: 24px; bottom: 32px; writing-mode: vertical-rl;
  font: 12px "Space Mono", monospace; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; opacity: 0.8;
}
.scroll-cue::after { content: ""; display: block; width: 1px; height: 48px; margin: 10px auto 0; background: currentColor; animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--glow); color: #1f1d1a; border-block: 1px solid rgba(0,0,0,0.1); }
.ticker-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker-track span { font: 700 13px "Space Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 22px; white-space: nowrap; }
.ticker-track span::after { content: "✦"; margin-left: 44px; opacity: 0.5; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Now ---------- */
.now { padding-top: 120px; padding-bottom: 120px; }
.lead { font-size: clamp(28px, 4.2vw, 52px); line-height: 1.15; font-weight: 400; margin: 0 0 80px; max-width: 22ch; }
.huh-host { position: relative; white-space: nowrap; }
.huh {
  position: absolute; left: 100%; top: -0.55em; margin-left: 6px;
  font: 700 0.45em "Space Mono", monospace; color: var(--accent); transform: rotate(-12deg); letter-spacing: 0.02em;
}
.now-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.now-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; }
.now-list dt { color: var(--accent); margin-bottom: 6px; }
.now-list dd { margin: 0; font-size: 17px; line-height: 1.45; }

/* ---------- Photo bands ---------- */
.band { position: relative; min-height: 88vh; overflow: hidden; background: var(--night); color: var(--night-ink); display: flex; align-items: flex-end; }
.band-img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: center 78%; will-change: transform; }
.band-how .band-img { object-position: center 45%; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,22,0.1), rgba(11,14,22,0.7)); }
.band-content { position: relative; width: 100%; padding-top: 120px; padding-bottom: 96px; }
.band-content .kicker { color: rgba(243,239,231,0.75); }
.band-title { font-size: clamp(48px, 9vw, 120px); line-height: 0.95; margin: 0; letter-spacing: -0.03em; }
.band-title em { color: var(--glow); }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); margin: 0; line-height: 1; }
.hint { color: var(--muted); margin: 0; }

/* ---------- Level cards ---------- */
.levels { padding-top: 120px; padding-bottom: 100px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.card-inner {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.card-inner.flipped { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.card.tilting .card-inner { transition: transform 0.12s linear; }
.face {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; text-align: left;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; padding: 20px;
}
.front {
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 28%, var(--night)) 0%, var(--night) 70%);
  color: var(--night-ink); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px -20px rgba(0,0,0,0.5);
}
.front::after { /* a soft sheen that follows the tilt */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at calc(50% + var(--ry) * 4) calc(30% - var(--rx) * 4), rgba(255,255,255,0.14), transparent 70%);
}
.card-top { display: flex; justify-content: space-between; color: rgba(243,239,231,0.65); font-size: 11px; }
.now-badge { background: var(--glow); color: #1f1d1a; border-radius: 999px; padding: 0 8px; font-weight: 700; }
.planet {
  width: 38%; aspect-ratio: 1; border-radius: 50%; margin: 18px auto 10px;
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--c) 40%, #fff) 0%, var(--c) 35%, color-mix(in srgb, var(--c) 35%, #000) 100%);
  box-shadow: 0 0 40px -6px var(--c);
  transform: translate(calc(var(--ry) * -0.8), calc(var(--rx) * 0.8));
  transition: transform 0.12s linear;
}
/* company logo, worn like a badge on the planet */
.card-logo {
  align-self: center; display: flex; align-items: center; gap: 10px;
  height: 42px; margin: -30px 0 12px; padding: 8px 14px; border-radius: 10px;
  background: #fff; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.55);
  transform: translate(calc(var(--ry) * -0.5), calc(var(--rx) * 0.5)); transition: transform 0.12s linear;
}
.card-logo.dark { background: #1a1d27; border: 1px solid rgba(255,255,255,0.12); }
.card-logo img { height: 100%; width: auto; max-width: 132px; object-fit: contain; }
.card-logo img[src$="udaan.png"] { height: 120%; }
.card-logo img[src$="lyft.svg"] { height: 150%; margin: -6px 0; }
.tagline { text-align: center; font: italic 400 clamp(18px, 1.8vw, 21px)/1.3 "Fraunces", Georgia, serif; color: rgba(243,239,231,0.88); margin-top: 4px; padding: 0 8px; }
.card-bottom { margin-top: auto; display: grid; gap: 2px; }
.role { font-size: 12px; color: rgba(243,239,231,0.7); line-height: 1.3; }
.org { font-size: clamp(20px, 2vw, 26px); line-height: 1.1; }
.sector { color: var(--c); font-size: 10px; margin-top: 4px; }
.card.current .front { outline: 2px solid var(--glow); outline-offset: -2px; }

.back { transform: rotateY(180deg); background: var(--surface); color: var(--ink); border: 1px solid var(--line); gap: 10px; font-size: 14.5px; line-height: 1.45; overflow-y: auto; }
.back-org { font-size: 20px; border-bottom: 3px solid var(--c); padding-bottom: 6px; margin-bottom: 2px; }
.bk b { display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; font-weight: 400; }
.bk.learned { margin-top: auto; font-style: italic; color: var(--ink); }
.bk.learned b { color: var(--accent); font-style: normal; }
.card-inner:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.training { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.training .kicker { margin-right: 10px; color: var(--accent); }

/* ---------- Star map ---------- */
.starmap-sec { padding-top: 60px; padding-bottom: 120px; }
.starmap { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 48px; align-items: center; }
.starmap svg { width: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 5; }
.sun-label { font: 700 13px "Space Mono", monospace; fill: #fff; }
.spin { transform-origin: 180px 180px; animation: orbit linear infinite; }
.spin circle { transition: r 0.3s, filter 0.3s; transform-box: fill-box; }
.s1 { animation-duration: 20s; } .s2 { animation-duration: 34s; } .s3 { animation-duration: 50s; }
.s4 { animation-duration: 70s; } .s5 { animation-duration: 95s; }
.spin.lit circle { filter: drop-shadow(0 0 8px currentColor) brightness(1.3); }
.starmap.hovering .spin { animation-play-state: paused; }
@keyframes orbit { to { transform: rotate(360deg); } }
.sectors { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sectors li { display: grid; grid-template-columns: 14px 1fr; column-gap: 14px; padding: 10px 12px; border-radius: 10px; cursor: default; transition: background 0.2s; }
.sectors li:hover, .sectors li.lit { background: var(--surface); }
.sectors b { font-weight: 500; font-size: 19px; }
.sectors small { grid-column: 2; color: var(--muted); font: 12px "Space Mono", monospace; }
.swatch { width: 14px; height: 14px; border-radius: 50%; grid-row: span 2; margin-top: 7px; }

/* ---------- How I work ---------- */
.band-how { min-height: auto; align-items: center; }
.band-how .band-shade { background: rgba(11,14,22,0.72); }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { border-top: 1px solid rgba(243,239,231,0.18); }
.principles li:last-child { border-bottom: 1px solid rgba(243,239,231,0.18); }
.principles button { width: 100%; display: flex; align-items: baseline; gap: 22px; padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.p-num { color: var(--glow); }
.p-title { font-size: clamp(26px, 4.4vw, 54px); line-height: 1.05; transition: color 0.25s, transform 0.35s; }
.principles button:hover .p-title, .principles li.open .p-title { color: var(--glow); transform: translateX(8px); }
.principles p { margin: 0; max-width: 56ch; padding: 0 0 0 calc(22px + 2.2em); color: rgba(243,239,231,0.82); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.45s ease, opacity 0.35s, padding 0.35s; }
.principles li.open p { max-height: 160px; opacity: 1; padding-bottom: 24px; }

/* ---------- Questions (the moon) ---------- */
.questions { position: relative; min-height: 100svh; background: #000; color: var(--night-ink); overflow: hidden; display: flex; align-items: center; }
.moon { position: absolute; right: -8vw; top: 50%; width: min(70vw, 900px); transform: translate(var(--mx, 0px), calc(-50% + var(--my, 0px))); transition: transform 0.6s cubic-bezier(.2,.7,.2,1); opacity: 0.9; }
.questions-content { position: relative; width: 100%; padding-top: 120px; padding-bottom: 120px; }
.questions .kicker { color: rgba(243,239,231,0.7); }
.question { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; font-weight: 400; max-width: 18ch; min-height: 3.4em; margin: 0 0 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid currentColor; background: transparent; cursor: pointer; text-decoration: none; font-weight: 500; }
.btn-ghost:hover { background: var(--glow); border-color: var(--glow); color: #1f1d1a; }
.photo-credit { position: absolute; right: 24px; bottom: 24px; margin: 0; color: rgba(243,239,231,0.45); font-size: 10px; }

/* ---------- Chapter 0 ---------- */
.chapter0 { position: relative; min-height: 80vh; overflow: hidden; display: grid; place-items: center; align-content: center; padding: 120px 24px; background: #cfd3cf; }
.fog-img { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(var(--blur, 22px)) saturate(0.7); transition: filter 0.8s ease; }
.fog-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(240,240,236,0.25), rgba(240,240,236,0.75)); }
.locked {
  position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 560px;
  padding: 36px 32px; border-radius: 18px; border: 1px dashed rgba(31,29,26,0.35);
  background: rgba(255,252,246,0.55); backdrop-filter: blur(6px); color: #1f1d1a; cursor: pointer;
}
.locked.shake { animation: shake 0.45s; }
@keyframes shake { 20% { transform: translateX(-8px) rotate(-1deg); } 40% { transform: translateX(8px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.lock { font-size: 40px; line-height: 1; }
.locked-title { font-size: clamp(26px, 3.4vw, 36px); }
.locked-copy { color: #4a463f; }
.locked-teaser { font: 13px "Space Mono", monospace; color: var(--accent); margin-top: 4px; }
.locked-msg { position: relative; margin: 18px 0 0; min-height: 1.6em; color: #1f1d1a; font: 14px "Space Mono", monospace; text-align: center; }

/* ---------- Say hi ---------- */
.hi { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 64px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.hi-photo { margin: 0; position: relative; }
.hi-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; transform: rotate(-2deg); transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.hi-photo:hover img { transform: rotate(0deg) scale(1.02); }
.hi-photo figcaption { margin-top: 14px; color: var(--muted); font: 13px "Space Mono", monospace; }
.hi-text h2 { font-size: clamp(56px, 9vw, 120px); line-height: 0.9; margin: 0 0 20px; letter-spacing: -0.03em; }
.hi-text p { max-width: 42ch; margin: 0 0 28px; }
.hi-email { display: inline-block; font-size: clamp(22px, 3vw, 36px); font-weight: 400; color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; margin-bottom: 28px; }
.hi-email:hover { color: var(--ink); }
.channels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 500; }
.channels a { text-decoration: none; border-bottom: 1px solid var(--line); }
.channels a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 32px 24px 48px; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.pale-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fb3e8; box-shadow: 0 0 8px #7fb3e8; flex: none; }

/* ---------- Toast + rocket ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, calc(100% + 40px));
  background: var(--night); color: var(--night-ink); border: 1px solid var(--glow); border-radius: 12px;
  padding: 12px 18px; max-width: calc(100% - 32px); font-weight: 500; transition: transform 0.35s ease;
}
.toast.show { transform: translate(-50%, 0); }
.rocket { position: fixed; left: -60px; bottom: -60px; font-size: 48px; z-index: 96; pointer-events: none; }
.rocket.launch { animation: launch 2.4s ease-in forwards; }
@keyframes launch { to { transform: translate(calc(100vw + 120px), calc(-100vh - 120px)) rotate(10deg); } }

/* ---------- Smaller screens ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .meter { margin-left: auto; }
  .now-grid { grid-template-columns: 1fr; }
  .starmap { grid-template-columns: 1fr; }
  .starmap svg { max-width: 300px; margin: 0 auto; }
  .hi { grid-template-columns: 1fr; gap: 40px; }
  .hi-photo { max-width: 360px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { padding: 12px 16px; gap: 14px; }
  .meter-label { display: none; }
  .cover-content { padding: 0 16px; bottom: 14vh; }
  .scroll-cue { right: 16px; }
  .now, .levels, .hi { padding-top: 80px; padding-bottom: 80px; }
  .lead { margin-bottom: 56px; }
  /* Cards become a swipeable row */
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 74%; scroll-snap-align: center; }
  .band { min-height: 70vh; }
  .band-content { padding-bottom: 64px; }
  .principles button { gap: 14px; padding: 18px 0; }
  .principles p { padding-left: calc(14px + 2.2em); }
  .moon { right: -30vw; width: 110vw; opacity: 0.55; }
  .question { min-height: 4.6em; }
  .chapter0 { padding: 80px 16px; }
  .locked { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .logo { color: currentColor; background: none; }
}
