:root { --teal: #5fd0b8; --ink: #e6f1ef; --muted: #a9c3bd; --panel: rgba(6, 16, 22, 0.78); }
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: #061016; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
main { position: relative; z-index: 1; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: rgba(95,208,184,.15); z-index: 3; }
.progress > div { height: 100%; width: 0; background: var(--teal); }
.dots { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.dots button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(95,208,184,.5); background: rgba(6,16,22,.6); color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; }
.dots button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.dots button[aria-current="true"] { background: var(--teal); color: #061016; font-weight: 700; }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 8vh 7vw; }
.chapter.right { justify-content: flex-end; }
.chapter.center { justify-content: center; text-align: center; }
.card { max-width: 460px; background: var(--panel); border: 1px solid rgba(95,208,184,.28); border-radius: 16px; padding: 24px; backdrop-filter: blur(6px); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 1.6rem; margin: 0 0 10px; }
p { margin: 10px 0; }
.src { font-size: .85rem; color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.legend span { font-size: .85rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.no-webgl #stage { display: none; }
.no-webgl .chapter { min-height: auto; padding: 24px 6vw; }
.no-webgl body { background: #061016; }
footer { position: relative; z-index: 1; padding: 40px 7vw 60px; background: rgba(6,16,22,.92); color: var(--muted); font-size: .85rem; }
footer a { color: var(--teal); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #061016; padding: 10px 14px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .chapter, .chapter.right { justify-content: flex-end; padding: 6vh 52px 14vh 4vw; }
  .card { max-width: 100%; }
  .dots { right: 2px; }
  .dots button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.back { position: fixed; top: 12px; left: 12px; z-index: 4; background: rgba(6,16,22,.85); color: var(--teal); border: 1px solid rgba(95,208,184,.5); border-radius: 999px; padding: 8px 14px; font-size: .9rem; text-decoration: none; }
.back:hover { background: var(--teal); color: #061016; }
