[hidden]{display:none!important}
html{scroll-behavior:auto;scroll-padding-top:0}
body.stage-mode{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.stage-mode .site-header{height:66px;min-height:66px;justify-content:center;flex-shrink:0;background:#080e17;z-index:10}
.stage-mode .site-header nav{display:flex;gap:48px}
.stage-mode .site-header nav a{display:block}
.stage-mode main{flex:1;min-height:0;position:relative;overflow:hidden}
.stage-light{position:absolute;inset:0;z-index:8;pointer-events:none;opacity:0;background:linear-gradient(105deg,transparent 25%,#62e0c80c 42%,#a1ffe42b 49%,#b8a0ff14 55%,transparent 70%);mix-blend-mode:screen}
.stage-mode .hero{height:100%;min-height:0;padding-top:40px;padding-bottom:50px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.stage-mode .hero-diagram{max-width:580px}
.stage-mode .exhibit{height:100%;max-width:1600px;padding:28px 5%;gap:50px;grid-template-columns:190px minmax(0,1fr);overflow:hidden}
.stage-mode .timeline-sidebar{position:static;top:auto;max-height:100%;overflow-y:auto;padding-top:6px;scrollbar-width:thin}
.stage-mode .chapters{height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:0 6px 16px 0}
.stage-mode .chapter{min-height:100%;display:flex;flex-direction:column}
.stage-mode .chapter-heading{margin-bottom:25px;align-items:center;flex-shrink:0}
.stage-mode .chapter-heading h2{font-size:24px;margin-top:6px;margin-bottom:5px}
.stage-mode .chapter-heading p{font-size:12px}
.stage-mode .chapter-number{font-size:55px}
.stage-mode .milestone{margin:0;padding:20px 0 0;border-top:1px solid var(--line);border-bottom:0;flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:25px}
.stage-mode .milestone.has-lab{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-content:start}
.stage-mode .story-panel{min-width:0}
.stage-mode .milestone:not(.has-lab) .story-panel{max-width:780px;padding:12px 0 30px}
.stage-mode .milestone:not(.has-lab) .milestone-year{font-size:78px;min-width:165px}
.stage-mode .milestone:not(.has-lab) .milestone-heading{align-items:center}
.stage-mode .milestone:not(.has-lab) .milestone-heading h3{font-size:30px}
.stage-mode .milestone.has-lab .milestone-heading{flex-direction:column;gap:13px}
.stage-mode .milestone.has-lab .milestone-year{font-size:64px}
.stage-mode .milestone.has-lab .milestone-heading h3{font-size:24px}
.stage-mode .node-index{display:none}
.stage-mode .lab{margin:0;align-self:start;min-width:0}
.stage-mode .lab-body{padding:18px}
.stage-mode .lab-grid{grid-template-columns:minmax(0,1fr) 150px;gap:15px}
.stage-mode .lab-label{letter-spacing:.5px}
.stage-mode .lab-label strong{font-size:13px}
.stage-mode .lab-description{font-size:12px}
.stage-mode .lab-hint{font-size:11px}
.stage-mode .lab-controls button{font-size:12px}
.stage-mode .pixel-pair{gap:8px}
.stage-mode .pixel-label{font-size:9px;flex-wrap:wrap}
.stage-mode .diffusion-dataset{gap:3px}
.stage-mode .context-details{border-left:2px solid var(--accent);padding:10px 14px;margin-top:22px;background:#13233380}
.stage-mode .context-details summary{font-size:13px;color:var(--accent);cursor:pointer}
.stage-mode .context-details p{font-size:13px;color:var(--muted);line-height:1.9}
.stage-mode .closing{height:100%;overflow:auto;max-width:1100px;padding:50px 30px;display:flex;flex-direction:column;justify-content:safe center;align-items:center;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.stage-mode .closing h2{font-size:clamp(32px,4.5vw,62px);line-height:1.45;margin:24px 0 28px}
.stage-mode .closing .closing-description{max-width:850px;margin:0;font-size:16px;line-height:2}
.stage-mode .closing .closing-invitation{font-size:18px;line-height:1.9;color:var(--ink);margin:24px 0 32px}
@media(max-width:520px){.stage-mode .closing .eyebrow{font-size:9px;letter-spacing:2px}.stage-mode .closing .closing-description{font-size:13px}.stage-mode .closing .closing-invitation{font-size:15px}.closing-break{display:none}}
.stage-controls{flex-shrink:0;display:grid;grid-template-columns:150px minmax(0,1fr) 150px;gap:24px;align-items:center;padding:16px max(5%,calc((100vw - 1440px)/2));border-top:1px solid var(--line);background:#0c1520;min-height:84px;z-index:20}
.stage-controls button{min-height:44px;font-size:14px;white-space:nowrap}
#next-stage{background:var(--mint);color:#09251f;border-color:var(--mint);font-weight:600}
#next-stage:hover{background:#96ebdb}
.stage-position{display:flex;justify-content:center;gap:18px;align-items:center;min-width:0;font-size:13px;color:var(--muted)}
#stage-counter{font-size:12px;letter-spacing:1px;color:var(--mint);white-space:nowrap}
#stage-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#motion-toggle{min-height:20px;padding:0 3px;background:transparent;border:0;border-bottom:1px dotted var(--faint);border-radius:0;font-size:10px;color:var(--mint);flex-shrink:0}
@media(max-width:1100px){.stage-mode .exhibit{grid-template-columns:160px minmax(0,1fr);gap:30px;padding:25px 4%}.stage-mode .milestone.has-lab{grid-template-columns:1fr;gap:20px}.stage-mode .milestone.has-lab .milestone-heading{flex-direction:row;align-items:center}.stage-mode .milestone.has-lab .milestone-year{font-size:48px;min-width:110px}.stage-mode .lab-grid{grid-template-columns:minmax(0,1fr) 180px}.stage-mode .story{font-size:15px}.stage-mode .lab{max-width:720px}.stage-mode .milestone{align-content:start}.stage-mode .milestone:not(.has-lab) .milestone-year{font-size:62px;min-width:130px}}
@media(max-width:800px){.stage-mode .site-header{height:58px;min-height:58px;padding:0 15px}.stage-mode .site-header nav{gap:30px}.stage-mode .hero{display:grid;grid-template-columns:1fr;padding:32px 6%;gap:30px;align-content:start}.stage-mode .hero h1{font-size:44px}.stage-mode .hero .eyebrow{margin-bottom:20px}.stage-mode .hero-stats{margin-top:25px}.stage-mode .hero-diagram{max-width:650px}.stage-mode .exhibit{display:flex;flex-direction:column;padding:0 5%;gap:0}.stage-mode .timeline-sidebar{max-height:none;overflow:visible;flex-shrink:0;padding:10px 0;margin:0 0 14px;background:var(--bg);border-bottom:1px solid var(--line)}.stage-mode .chapters{height:auto;flex:1;min-height:0;padding-right:3px}.stage-mode .chapter-heading{padding-top:0;margin-bottom:15px}.stage-mode .chapter-heading h2{font-size:21px}.stage-mode .chapter-heading p{font-size:11px}.stage-mode .chapter-number{font-size:40px}.stage-mode .milestone{padding-top:18px}.stage-mode .milestone-heading{margin-bottom:18px}.stage-mode .milestone:not(.has-lab) .milestone-year{font-size:55px;min-width:118px}.stage-mode .milestone:not(.has-lab) .milestone-heading h3{font-size:23px}.stage-controls{grid-template-columns:100px minmax(0,1fr) 100px;gap:12px;padding:12px 5%;min-height:74px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.stage-position{flex-direction:column;gap:2px}.stage-position #stage-title{max-width:100%;font-size:10px}.stage-controls button{font-size:12px;padding:9px 10px}.stage-mode .closing{padding:35px 25px}}
@media(max-width:520px){.stage-mode .site-header nav{display:flex;font-size:12px;gap:28px}.stage-mode .site-header nav a:last-child{display:block}.stage-mode .hero h1{font-size:38px}.stage-mode .hero-description{font-size:13px}.stage-mode .hero-actions{gap:13px}.stage-mode .hero .text-link{font-size:12px}.stage-mode .hero-diagram{margin-top:0}.stage-mode .hero-diagram svg{max-height:240px}.stage-mode .milestone.has-lab .milestone-heading{flex-direction:row;align-items:flex-start;gap:13px}.stage-mode .milestone.has-lab .milestone-year{font-size:38px;min-width:85px}.stage-mode .milestone.has-lab .milestone-heading h3{font-size:20px}.stage-mode .milestone:not(.has-lab) .milestone-heading{align-items:flex-start;gap:13px}.stage-mode .milestone:not(.has-lab) .milestone-year{font-size:40px;min-width:86px}.stage-mode .milestone:not(.has-lab) .milestone-heading h3{font-size:20px}.stage-mode .milestone:not(.has-lab) .story-panel{padding:0}.stage-mode .lab-body{padding:14px}.stage-mode .lab-grid{grid-template-columns:1fr}.stage-mode .lab-controls{gap:11px}.stage-mode .closing h2{font-size:25px}.stage-controls{grid-template-columns:88px minmax(0,1fr) 88px;gap:9px}.stage-mode .story{font-size:14px}}
