:root {
  color-scheme: dark;
  --night: #111b29;
  --cream: #f7efe3;
  --coral: #f4ad84;
  --ink: #17252d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--cream); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.skip-link { position: fixed; z-index: 50; top: -80px; left: 12px; padding: 12px 18px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; padding: 0 clamp(24px, 4vw, 72px); border-bottom: 1px solid rgba(255,255,255,.22); }
.wordmark { text-decoration: none; font-size: 23px; font-weight: 800; letter-spacing: -.09em; }
.wordmark span { color: var(--coral); }
.header-note, .header-link, .eyebrow, .scroll-cue, .text-link, .stage-bottom, .site-footer { font-family: "Courier New", Courier, monospace; font-size: 11px; font-weight: 700; letter-spacing: .075em; }
.header-note { opacity: .74; }
.header-note span { padding: 0 7px; color: var(--coral); }
.header-link { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.75); padding-bottom: 6px; }
.header-link span { font-size: 18px; margin-left: 10px; font-weight: 400; }

.story { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--night); isolation: isolate; }
.stage::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 14, 22, .28) 0, transparent 53%); opacity: var(--shade, 1); }
.stage-grain { position: absolute; z-index: 10; inset: 0; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.stage-glow { position: absolute; z-index: 0; width: min(95vw, 1180px); aspect-ratio: 1; left: 51%; top: 55%; transform: translate(-50%, -50%) scale(var(--glow-scale, .35)); border-radius: 50%; background: radial-gradient(circle, rgba(255, 199, 150, .57) 0, rgba(249, 119, 112, .25) 25%, rgba(129, 84, 150, .12) 48%, transparent 71%); filter: blur(38px); opacity: var(--glow-opacity, .3); pointer-events: none; }
.orb, .orb-halo, .orb-ring { position: absolute; left: var(--orb-x, 72%); top: var(--orb-y, 69%); border-radius: 50%; transform: translate(-50%, -50%) scale(var(--orb-scale, .1)); pointer-events: none; }
.orb { z-index: 4; width: min(48vw, 620px); aspect-ratio: 1; background: radial-gradient(circle at 35% 27%, #fff8df 0, #ffe5b8 12%, #ffc398 37%, #ef937f 69%, #d36d7e 100%); box-shadow: inset -24px -26px 45px rgba(143, 50, 91, .17), 0 0 90px 14px rgba(255, 185, 128, .38); opacity: var(--orb-opacity, 1); }
.orb-halo { z-index: 1; width: min(78vw, 1000px); aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 210, 159, .22) 0, rgba(255, 172, 137, .16) 26%, rgba(243, 119, 145, .09) 50%, transparent 70%); filter: blur(20px); transform: translate(-50%, -50%) scale(var(--halo-scale, .14)); opacity: var(--halo-opacity, .45); }
.orb-ring { z-index: 3; width: min(60vw, 770px); aspect-ratio: 1; border: 1px solid rgba(255,235,202,.36); transform: translate(-50%, -50%) scale(var(--ring-scale, .08)); opacity: var(--ring-opacity, 0); }
.orb-ring-two { width: min(78vw, 1000px); border-color: rgba(255,235,202,.22); }
.light-trail { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: var(--trail-opacity, .1); pointer-events: none; }
.horizon { position: absolute; left: -10%; width: 120%; height: 44vh; bottom: -2px; transform: translateY(var(--horizon-shift, 100%)); opacity: var(--horizon-opacity, 0); pointer-events: none; }
.horizon-back { z-index: 5; background: #a88a9c; clip-path: polygon(0 52%, 9% 55%, 18% 46%, 28% 49%, 38% 40%, 48% 47%, 58% 31%, 68% 41%, 78% 28%, 88% 39%, 100% 28%, 100% 100%, 0 100%); filter: blur(1px); }
.horizon-front { z-index: 6; height: 32vh; background: #395569; clip-path: polygon(0 50%, 13% 41%, 25% 47%, 39% 34%, 53% 42%, 66% 26%, 79% 32%, 90% 18%, 100% 25%, 100% 100%, 0 100%); transform: translateY(var(--horizon-front-shift, 100%)); }
.ghost-word { position: absolute; z-index: 2; left: 50%; bottom: 7%; transform: translate(-50%, var(--ghost-y, 80px)); white-space: nowrap; font-size: clamp(120px, 20vw, 370px); font-weight: 800; letter-spacing: -.11em; color: rgba(255,255,255,.26); opacity: var(--ghost-opacity, 0); pointer-events: none; }
.stage-bottom { position: absolute; z-index: 12; bottom: 40px; left: clamp(24px, 4vw, 72px); right: clamp(24px, 4vw, 72px); display: flex; justify-content: space-between; color: rgba(255,255,255,.82); }
.progress-track { position: absolute; z-index: 12; bottom: 26px; left: clamp(24px, 4vw, 72px); right: clamp(24px, 4vw, 72px); height: 1px; background: rgba(255,255,255,.31); }
.progress-track span { display: block; height: 2px; width: 0; background: var(--cream); }

.story-copy { position: relative; z-index: 11; margin-top: -100svh; pointer-events: none; }
.beat { min-height: 100svh; padding: 120px clamp(24px, 4vw, 72px) 100px; display: flex; align-items: center; }
.beat-inner { max-width: min(620px, 48vw); pointer-events: auto; opacity: var(--text-opacity, 1); transform: translateY(var(--text-shift, 0px)); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 30px; line-height: 1.5; }
.eyebrow-line { display: block; width: 22px; height: 2px; background: var(--coral); flex: 0 0 auto; }
.eyebrow-sep { opacity: .5; }
.beat h1, .beat h2, .explanation h2 { margin: 0 0 30px; line-height: .92; font-size: clamp(66px, 7.8vw, 137px); font-weight: 600; letter-spacing: -.078em; }
.beat em, .explanation em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.09em; }
.beat-copy { max-width: 455px; margin: 0 0 28px; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; }
.beat-one, .beat-two, .beat-three { color: #fff7e9; }
.beat-four { color: #fff7e9; }
.beat-four .eyebrow-line, .beat-five .eyebrow-line { background: #954d54; }
.beat-five { color: var(--ink); align-items: flex-start; padding-top: 135px; }
.beat-five .beat-inner { max-width: 820px; }
.scroll-cue, .text-link { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-top: 15px; }
.scroll-icon { display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 51px; height: 51px; font: 300 24px Arial, sans-serif; transition: transform .2s ease, background .2s ease, color .2s ease; }
.scroll-cue:hover .scroll-icon { transform: translateY(4px); background: #fff7e9; color: var(--ink); }
.text-link { padding-bottom: 7px; border-bottom: 1px solid currentColor; }
.text-link span { font-size: 19px; font-weight: 400; }
.beat-five .text-link { padding: 13px 17px; border: 0; border-radius: 3px; background: var(--ink); color: var(--cream); }

.explanation { position: relative; z-index: 13; min-height: 90svh; padding: 130px clamp(24px, 4vw, 72px); display: flex; flex-direction: column; justify-content: center; background: #14232d; color: #f9f0e5; }
.explanation h2 { max-width: 1100px; font-size: clamp(74px, 9vw, 150px); }
.explanation p:not(.eyebrow) { max-width: 560px; font-size: 19px; line-height: 1.65; color: #c9d5d7; }
.explanation .text-link { align-self: flex-start; }
.site-footer { position: relative; z-index: 13; display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(24px, 4vw, 72px); background: #0b151d; color: #bac6cb; }

@media (max-width: 850px) {
  .site-header { height: 68px; }
  .header-note { display: none; }
  .beat { align-items: flex-end; padding-top: 110px; padding-bottom: 130px; }
  .beat-five { align-items: flex-end; }
  .beat-inner { max-width: 640px; }
  .beat h1, .beat h2 { font-size: clamp(67px, 10vw, 105px); }
  .orb, .orb-halo, .orb-ring { left: var(--orb-x-mobile, 66%); top: var(--orb-y-mobile, 32%); }
  .orb { width: min(65vw, 500px); }
  .orb-halo { width: 110vw; }
  .orb-ring-one { width: 80vw; }
  .orb-ring-two { width: 110vw; }
  .stage::before { background: linear-gradient(0deg, rgba(5,14,22,.48) 0, transparent 60%); }
  .beat-four, .beat-five { text-shadow: 0 1px 12px rgba(255,255,255,.18); }
  .horizon { height: 32vh; }
  .horizon-front { height: 23vh; }
}

@media (max-width: 600px) {
  .site-header { padding-inline: 22px; }
  .wordmark { font-size: 20px; }
  .header-link { font-size: 10px; }
  .beat { padding: 90px 25px 120px; min-height: 100svh; }
  .beat-inner { max-width: 100%; }
  .beat h1, .beat h2 { font-size: clamp(61px, 13.3vw, 80px); }
  .beat-copy { max-width: 30ch; font-size: 16px; }
  .eyebrow { font-size: 10px; margin-bottom: 19px; }
  .orb, .orb-halo, .orb-ring { left: var(--orb-x-mobile, 69%); top: var(--orb-y-mobile, 26%); }
  .orb { width: 78vw; }
  .orb-halo { width: 132vw; }
  .orb-ring-one { width: 92vw; }
  .orb-ring-two { width: 125vw; }
  .stage-bottom { left: 24px; right: 24px; bottom: 36px; font-size: 9px; }
  .progress-track { left: 24px; right: 24px; bottom: 24px; }
  .ghost-word { font-size: 30vw; }
  .explanation { min-height: 78svh; padding: 100px 25px; }
  .explanation h2 { font-size: clamp(60px, 12.3vw, 88px); }
  .explanation p:not(.eyebrow) { font-size: 16px; }
  .site-footer { padding-inline: 25px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-icon { transition: none; }
  .beat-inner { opacity: 1 !important; transform: none !important; }
  .stage { background: var(--night) !important; }
  .stage-glow, .orb-halo, .orb-ring, .light-trail, .horizon, .ghost-word { display: none !important; }
  .orb { left: 73% !important; top: 34% !important; transform: translate(-50%, -50%) scale(.22) !important; }
  .beat-four, .beat-five { color: var(--cream) !important; }
  .beat-five .text-link { background: var(--cream); color: var(--ink); }
}
