
@font-face{font-family:Instrument;src:url('assets/fonts/instrument-serif.ttf') format('truetype');font-display:swap}
@font-face{font-family:Space;src:url('assets/fonts/space-grotesk.ttf') format('truetype');font-weight:300 700;font-display:swap}
:root{color-scheme:dark;--paper:#e8e4da;--accent:#c9b99c;--line:#ffffff26;--ink:#050607}*{box-sizing:border-box}html,body{margin:0;background:var(--ink);color:var(--paper);font-family:Space,Arial,sans-serif}body{overflow-x:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:1px solid var(--accent);outline-offset:5px}[hidden]{display:none!important}
#cosmos,#fallback,.vignette{position:fixed;inset:0;width:100%;height:100%}#fallback{background:radial-gradient(ellipse at 70% 44%,#24303944,transparent 48%),var(--ink)}#cosmos{opacity:0}body.ready #cosmos{opacity:1}.vignette{pointer-events:none;background:linear-gradient(90deg,#050607e0,#05060788 31%,transparent 65%),linear-gradient(0deg,#050607d9,transparent 32%,transparent 80%,#05060788);z-index:1}
header{position:fixed;z-index:7;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:30px 4.5vw}.brand{display:flex;gap:14px;align-items:center;font-size:11px;font-weight:500;letter-spacing:.18em}.brand small{display:block;font-size:6px;font-weight:400;letter-spacing:.21em;color:#959a9b;margin-top:7px}.header-actions{display:flex;gap:25px;align-items:center}.header-actions button{font-size:10px;color:#c7c9c7;min-height:36px;padding:5px 0}.header-actions button:hover{color:white}.header-actions span{margin-left:6px;color:var(--accent)}
#settings{position:absolute;right:4.5vw;top:84px;width:260px;padding:22px;background:#0a1015f5;border:1px solid var(--line);backdrop-filter:blur(18px)}.panel-label{font-size:8px;letter-spacing:.18em;color:var(--accent);margin-bottom:13px}#settings button{display:block;width:100%;text-align:left;font-size:11px;padding:13px 0;border-bottom:1px solid var(--line)}#settings p{font-size:10px;line-height:1.8;color:#90999e;margin:18px 0 0}
main{position:fixed;z-index:3;inset:0;pointer-events:none;outline:none}main button{pointer-events:auto}.chapter-copy{position:absolute;left:6.5vw;bottom:24%;width:49vw;max-width:650px;will-change:opacity}.eyebrow{display:flex;gap:22px;font-size:8px;letter-spacing:.17em;color:var(--accent);line-height:1.7}#chapter-number{white-space:nowrap}#epoch{color:#9da5aa}h1{font:400 clamp(110px,15.2vw,230px)/.83 Instrument,Georgia,serif;letter-spacing:-.045em;margin:28px 0 26px}#intro{font-size:12px;line-height:1.9;color:#bfc4c5;max-width:330px;margin:0}.copy-actions{display:flex;align-items:center;gap:27px;margin-top:26px}.primary{font-size:11px;border-bottom:1px solid var(--accent);padding:13px 0}.primary span{margin-left:30px;color:var(--accent);font-size:9px}.text-button{font-size:10px;color:#aab2b6;padding:13px 0}
body.entered .chapter-copy{bottom:19%;max-width:490px;width:44vw}body.entered h1{font-size:clamp(39px,4.8vw,72px);line-height:1.02;letter-spacing:-.025em;margin:19px 0 14px}body.entered #intro{font-size:12px;max-width:340px;line-height:1.8}body.entered .copy-actions{display:none}body.entered .eyebrow{font-size:7px;gap:15px}body.captions-off.entered .chapter-copy{visibility:hidden}body.entered .vignette{background:linear-gradient(90deg,#050607a8,transparent 59%),linear-gradient(0deg,#050607e8,transparent 38%,transparent 85%,#05060777)}body.chapters-open .chapter-copy{opacity:.08!important}
#scroll-space{height:1600vh}footer{position:fixed;z-index:6;bottom:0;left:0;right:0;padding:16px 4.5vw 22px;background:linear-gradient(transparent,#050607aa 52%)}.player-row{display:flex;gap:24px;align-items:center;min-height:42px;margin-bottom:8px;font-size:9px}.player-row button{font-size:10px;min-height:36px;padding:8px 0}#play{min-width:88px;text-align:left}#play>span{color:var(--accent);margin-right:12px}#current-chapter{font-size:7px;letter-spacing:.13em;color:#939c9f}.player-right{display:flex;gap:30px;margin-left:auto;align-items:center}#timecode{font-size:9px;font-variant-numeric:tabular-nums;color:#c3c9ca}#timecode span{color:#6c777d;margin-left:5px}#chapters-control>span{margin-left:10px;color:var(--accent)}#scrub{--fill:0%;display:block;width:100%;height:12px;margin:0;background:transparent;cursor:ew-resize;appearance:none}#scrub::-webkit-slider-runnable-track{height:1px;background:linear-gradient(90deg,var(--accent) var(--fill),#ffffff24 var(--fill))}#scrub::-webkit-slider-thumb{appearance:none;width:7px;height:7px;border-radius:50%;background:var(--paper);margin-top:-3px;opacity:.45}#scrub:hover::-webkit-slider-thumb,#scrub:focus-visible::-webkit-slider-thumb{opacity:1}#scrub::-moz-range-track{height:1px;background:#ffffff24}#scrub::-moz-range-progress{height:1px;background:var(--accent)}#scrub::-moz-range-thumb{width:6px;height:6px;border:0;background:var(--paper)}.footer-note{display:flex;justify-content:space-between;color:#727e84;font-size:6px;letter-spacing:.16em;margin-top:9px}body.entered .footer-note{opacity:.6}body.playing footer{opacity:.65}body.playing footer:hover,body.playing footer:focus-within{opacity:1}
#timeline{display:grid;grid-template-columns:repeat(9,1fr);gap:15px;padding:22px 0 16px;border-top:1px solid var(--line);background:linear-gradient(transparent,#050607f0 35%)}#timeline button{text-align:left;font-size:10px;min-height:58px;color:#969fa2;line-height:1.5}#timeline button span{display:block;font-size:7px;color:#727d83;margin-bottom:9px;letter-spacing:.12em}#timeline button.active{color:var(--paper)}#timeline button.active span{color:var(--accent)}
#loading{position:fixed;left:6.5vw;bottom:16%;z-index:8;font-size:9px;letter-spacing:.1em;color:var(--accent)}body.ready #loading{display:none}body.fallback-mode #cosmos{display:none}dialog{width:calc(100% - 40px);max-width:780px;max-height:85vh;border:1px solid var(--line);background:#0b1116;color:var(--paper);padding:28px 38px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#020508cb;backdrop-filter:blur(12px)}.notes-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--line);font-size:8px;letter-spacing:.15em}.notes-top button{font-size:10px;padding:10px;color:var(--accent)}dialog h2{font:400 52px/1.03 Instrument,Georgia,serif;letter-spacing:-.025em;margin:30px 0 22px}dialog h3{font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:var(--accent);margin:27px 0 10px}dialog p{font-size:12px;line-height:1.95;color:#b6c0c4}dialog .tag{font-size:8px;letter-spacing:.1em;color:#b4a489}dialog a{color:#cebda1;border-bottom:1px solid #cebda144}dialog li{font-size:11px;line-height:1.8;margin:12px 0}.notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.chapter-link{display:block;text-align:left;padding:14px 0;width:100%;border-bottom:1px solid var(--line);font-size:12px}.chapter-link b{font-weight:400;font-size:9px;color:var(--accent);margin-right:20px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;left:15px;top:-100px;z-index:50;background:#15212b;padding:12px;font-size:12px}.skip:focus{top:15px}.no-js{position:relative;z-index:20;background:#0c141b;margin:140px 7vw;padding:35px;max-width:650px}.no-js p{line-height:1.8}.no-js h2{font:40px Instrument,serif}
@media(min-width:1600px){.chapter-copy{left:8vw;bottom:25%}body.entered .chapter-copy{left:8vw;bottom:20%}}
@media(max-height:700px) and (min-width:761px){h1{font-size:135px}.chapter-copy{bottom:24%}body.entered .chapter-copy{bottom:22%}body.entered h1{font-size:48px}#intro{font-size:11px}.copy-actions{margin-top:16px}header{padding-top:20px}}
@media(max-width:760px){header{padding:21px 6vw;align-items:flex-start}.brand{font-size:9px;gap:10px}.brand small{font-size:5px;letter-spacing:.1em;margin-top:6px}.header-actions{gap:14px;max-width:175px;flex-wrap:wrap;justify-content:flex-end}.header-actions button{font-size:8px;min-height:29px}#settings-control{font-size:7px;color:#9da6ac}#settings{right:6vw;top:91px;width:235px}.chapter-copy{left:7vw;bottom:25%;width:84vw;max-width:400px}.eyebrow{font-size:6px;gap:15px;letter-spacing:.1em}h1{font-size:clamp(106px,29vw,155px);margin:23px 0 21px;line-height:.84}#intro{font-size:11px;max-width:290px;line-height:1.8}.copy-actions{margin-top:20px;gap:23px}.primary{font-size:10px}.primary span{font-size:8px;margin-left:23px}.text-button{font-size:9px}body.entered .chapter-copy{left:7vw;bottom:21%;width:84vw;max-width:370px}body.entered h1{font-size:clamp(36px,10vw,49px);margin:16px 0 13px}body.entered #intro{font-size:11px;max-width:280px}body.entered .eyebrow{font-size:6px;gap:11px}body.entered .vignette{background:linear-gradient(0deg,#050607ed,transparent 78%),linear-gradient(90deg,#05060755,transparent 75%)}footer{padding:12px 6vw 20px}.player-row{gap:12px;margin-bottom:3px}#play{min-width:76px;font-size:9px}#play>span{margin-right:8px}#current-chapter{display:none}.player-right{gap:19px}#chapters-control{font-size:9px}#timecode{font-size:8px}.footer-note{font-size:5px;letter-spacing:.11em}.footer-note span:last-child{max-width:150px;text-align:right;line-height:1.5}#timeline{grid-template-columns:repeat(3,1fr);gap:8px 18px;padding:18px 0 10px}#timeline button{font-size:10px;min-height:42px}#timeline button span{display:inline;margin-right:8px;font-size:7px}body.chapters-open footer{background:linear-gradient(transparent,#050607f5 22%)}dialog{padding:22px}dialog h2{font-size:41px}.notes-grid{grid-template-columns:1fr;gap:0}#loading{left:7vw;bottom:17%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}



/* Keep the player legible across the ignition highlight. */
header{background:linear-gradient(180deg,rgba(5,6,7,.7),rgba(5,6,7,0));}

/* First Light: original stellar aperture and spaced wordmark. */
.brand{gap:13px;font-size:14px;font-weight:500;letter-spacing:.2em;line-height:1.1;color:#e8ddc8;}
.brand-mark{display:block;flex:none;width:42px;height:42px;}
.brand-wordmark{display:block;padding-top:1px;}
.brand small{font-size:6px;letter-spacing:.245em;font-weight:400;margin-top:8px;color:#9d9e98;}
.brand:focus-visible{outline:1px solid #e8ddc8;outline-offset:7px;}
@media(max-width:760px){.brand{gap:9px;font-size:10px;letter-spacing:.18em;}.brand-mark{width:32px;height:32px;}.brand small{font-size:4.7px;letter-spacing:.13em;margin-top:6px;}}

/* Keep cinematic controls usable at narrow widths. */
@media(max-width:760px){header{padding-top:17px;}.header-actions{gap:10px;max-width:180px;}.header-actions button{font-size:10px;min-height:44px;}#settings-control{font-size:9.5px;}#settings button{font-size:12px;min-height:44px;}#play,#chapters-control{font-size:11px;min-height:44px;}#timecode{font-size:9px;}#scrub{height:28px;}#timeline button{min-height:44px;font-size:11px;}body.entered .chapter-copy{bottom:24%;}}

.case-return{font-size:9px;color:#c9b99c}.reading-alternative{position:fixed;z-index:6;right:4.5vw;bottom:155px;font-size:10px;color:#c9b99c;display:none}body.fallback-mode .reading-alternative{display:block}body.fallback-mode #fallback{background:linear-gradient(90deg,#050607 15%,#050607bb 60%,#05060755),url("assets/textures/hubble-m51.jpg") 75% 40%/cover}body.fallback-mode #loading{max-width:55%;line-height:1.6}@media(max-width:760px){.case-return{font-size:8px}.reading-alternative{bottom:126px;right:7vw;font-size:9px}body.fallback-mode #loading{bottom:170px;max-width:84%}.header-actions{max-width:200px;gap:10px}}
/* Keep the no-GPU reading actions separate from the fixed film controls. */
body.fallback-mode .chapter-copy{top:18vh;bottom:auto}
body.fallback-mode h1{font-size:clamp(64px,17vw,100px);margin:20px 0}
body.fallback-mode #loading{bottom:155px;max-width:84%}
body.fallback-mode .reading-alternative{bottom:120px}
@media(max-height:560px){body.fallback-mode .chapter-copy{top:110px}body.fallback-mode h1{font-size:56px;margin:10px 0}body.fallback-mode #intro{font-size:10px}body.fallback-mode .copy-actions{margin-top:14px}body.fallback-mode #loading{bottom:110px}body.fallback-mode .reading-alternative{bottom:85px}}
