:root {
  --night: #0a0f1f; --night-2: #141b33; --night-3: #27304f;
  --paper: #f4f2ec; --white: #fff; --ink: #0d1222; --muted: #586072; --line: #dcd8cd;
  --signal: #ffb627; --signal-2: #ff7a3d; --green: #27c26b; --on-night: #aab2c8;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
  --top: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.5 var(--font); }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
a { color: inherit; }

.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 40px); background: var(--night); color: var(--white); border-bottom: 1px solid var(--night-3); }
.name { font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; text-decoration: none; font-size: 18px; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 12px; color: var(--on-night); }
.top nav a.go { background: var(--signal); color: var(--ink); border-radius: 999px; font-weight: 700; padding: 7px 16px; }
@media (max-width: 560px) { .top nav a:not(.go) { display: none; } }

/* Story: without animation the beats simply stack */
.story { background: var(--night); color: var(--white); padding: 24px 0; }
#scene, #stars, .hint { display: none; }
.beat { max-width: 680px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 32px); }
.eyebrow, .when { display: block; font: 500 13px/1.3 var(--mono); letter-spacing: .02em; color: var(--signal); margin-bottom: 10px; }
.beat h1 { font-size: clamp(54px, 9vw, 124px); line-height: .92; font-weight: 900; font-stretch: 118%; letter-spacing: -.035em; }
.beat .big { margin-top: 16px; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.2; font-weight: 600; color: var(--white); }
.beat h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; font-weight: 800; font-stretch: 108%; letter-spacing: -.025em; }
.beat p { margin-top: 12px; color: var(--on-night); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }
.beat .stat { color: var(--white); font-size: clamp(19px, 1.7vw, 24px); }
.beat .stat strong { color: var(--signal); font-weight: 800; }
.face { display: block; width: 64px; height: 84px; object-fit: cover; object-position: 50% 12%; border-radius: 10px; border: 2px solid var(--signal); margin-bottom: 12px; }
.link { display: inline-block; margin-top: 12px; color: var(--signal); font-weight: 700; }
.cta { display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 800; text-decoration: none; font-size: 18px; }

.s-on .story { height: 880vh; padding: 0; }
.s-on .pin { position: sticky; top: var(--top); height: calc(100vh - var(--top)); height: calc(100svh - var(--top)); overflow: hidden; background: var(--night); }
.s-on #sky, .s-on #stars { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.s-on #scene { overflow: visible; }
.s-on .beat-end p { color: var(--white); font-weight: 600; }
.s-on #scene { display: block; position: absolute; left: 0; right: 0; bottom: 0; top: 43%; width: 100%; height: 57%; }
.s-on .beat { position: absolute; z-index: 3; left: 0; right: 0; top: 0; max-width: none; margin: 0; padding: 16px; opacity: 0; visibility: hidden; }
.s-on .beat-hero { opacity: 1; visibility: visible; }
.s-on .hint { display: block; margin-top: 16px; font: 500 13px/1 var(--mono); color: var(--signal); }
@media (min-width: 881px) and (min-aspect-ratio: 1/1) {
  .s-on #scene { left: 42%; top: 0; bottom: 0; width: 58%; height: 100%; }
  .s-on .beat { left: clamp(24px, 6vw, 96px); right: auto; top: 50%; width: 38%; padding: 0; margin-top: -150px; }
  .s-on .beat-hero { width: 56%; }
}
/* Phones held sideways */
@media (max-height: 480px) {
  .s-on #scene { left: 48%; top: 0; bottom: 0; width: 52%; height: 100%; }
  .s-on .beat { left: 16px; right: auto; top: 10px; width: 46%; padding: 0; }
  .s-on .beat h1 { font-size: 44px; }
  .s-on .beat h2 { font-size: 22px; }
  .s-on .beat p { margin-top: 6px; font-size: 13px; }
  .s-on .beat .big { font-size: 17px; }
  .s-on .when, .s-on .eyebrow { margin-bottom: 4px; font-size: 11px; }
  .s-on .face { display: none; }
  .s-on .link, .s-on .cta { margin-top: 6px; }
  .s-on .cta { padding: 7px 14px; font-size: 14px; }
}
/* Very small phones */
@media (max-height: 640px) and (min-height: 481px) {
  .s-on .beat { padding: 12px 14px; }
  .s-on .beat h2 { font-size: 24px; }
  .s-on .beat p { margin-top: 6px; font-size: 14px; }
  .s-on .beat .stat { font-size: 16px; }
  .s-on .face { width: 40px; height: 52px; margin-bottom: 6px; }
  .s-on .when { margin-bottom: 6px; font-size: 12px; }
  .s-on .link, .s-on .cta { margin-top: 6px; }
  .s-on .cta { padding: 8px 16px; font-size: 15px; }
  .s-on #scene { top: 50%; height: 50%; }
}

/* Ordinary sections */
.sec { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 40px); }
.wrap { max-width: 1160px; margin: 0 auto; }
.title { font-size: clamp(32px, 4vw, 56px); line-height: 1; font-weight: 900; font-stretch: 112%; letter-spacing: -.03em; margin-bottom: clamp(24px, 3vw, 40px); }
.title-gap { margin-top: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.v .when { color: var(--signal-2); }
.v h3 { font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.v p { color: var(--muted); }
.v .link { margin-top: auto; padding-top: 16px; color: var(--ink); }
.v-star { grid-column: 1 / -1; background: #0f3d3e; border-color: #0f3d3e; color: var(--white); }
.v-star .when { color: #ffb82e; }
.v-star h3 { font-size: clamp(38px, 5vw, 64px); font-weight: 900; }
.v-star p { color: #dcefe9; font-size: clamp(17px, 1.6vw, 21px); max-width: 44em; }
.v-star .link { color: #ffb82e; }
.sec-alt { background: var(--white); }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 88px); }
.line { list-style: none; }
.line li { padding: 16px 0; border-top: 1px solid var(--line); }
.line span { display: block; font: 500 13px/1.3 var(--mono); color: var(--muted); margin-bottom: 4px; }
.line strong { display: block; font-size: 19px; line-height: 1.25; font-weight: 700; }
.line em { display: block; font-style: normal; color: var(--muted); font-size: 16px; margin-top: 2px; }
.sec-end { background: var(--night); color: var(--white); text-align: center; }
.sec-end h2 { font-size: clamp(36px, 6vw, 84px); line-height: .98; font-weight: 900; font-stretch: 112%; letter-spacing: -.03em; max-width: 14em; margin: 0 auto; }
.links { margin-top: 26px; color: var(--on-night); }
.foot { margin-top: 12px; color: var(--on-night); font-size: 14px; }
@media (max-width: 880px) { .cards, .two { grid-template-columns: 1fr; } }
