@font-face{font-family:Archivo;src:url(../fonts/archivo.woff2) format("woff2");font-display:swap;font-weight:100 900}
:root{color-scheme:dark;--ink:#080b15;--line:#273247;--muted:#b3bfd3;--accent:#a99efc;--bright:#f3f5ff;font-family:Archivo,system-ui,sans-serif;background:var(--ink);color:var(--bright)}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
a{color:inherit}
button,select{border:0;border-bottom:1px solid transparent;color:var(--bright);background:transparent;padding:.55rem .55rem;cursor:pointer;min-height:44px}
select{border-bottom-color:#66748b;padding-inline:.4rem;color-scheme:dark}
select option{background:#111b2d;color:var(--bright)}
button:hover:not(:disabled),select:hover{border-color:var(--accent);color:var(--accent)}
button:disabled{opacity:.4;cursor:default}
button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
:focus-visible{outline:2px solid #fff;outline-offset:3px}
[hidden]{display:none!important}
.cx-header,.cx-footer{display:flex;justify-content:space-between;align-items:center;padding:1rem clamp(1rem,4vw,4rem);gap:1rem}
.cx-header{border-bottom:1px solid var(--line);background:#0d1423}
.cx-brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;font-weight:800;letter-spacing:.08em}
.cx-brand small{display:block;color:var(--muted);font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin-top:.16rem}
.cx-slash,.cx-mark{color:var(--accent)}
.cx-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid #4d5076;font-size:1.6rem}
.cx-back,.cx-footer a{font-size:.85rem;text-decoration:none;color:var(--accent);white-space:nowrap}
.cx-exit{display:inline-flex;gap:.3rem;align-items:center;min-height:44px;font-weight:700}
.cx-exit:hover,.cx-exit:focus-visible{text-decoration:underline;text-underline-offset:.25em}
.cx-chapters{display:flex;overflow:auto;gap:.35rem;padding:.55rem clamp(1rem,4vw,4rem);border-bottom:1px solid var(--line);scrollbar-width:thin}
.cx-chapters a{display:inline-flex;align-items:center;gap:.55rem;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;padding:.72rem .8rem;font-size:.88rem;color:var(--muted)}
.cx-chapters a[aria-current=page]{border-color:var(--accent);color:var(--bright)}
.cx-chapters b,.cx-eyebrow,.cx-scene-tag,.cx-scale{font:600 .72rem/1.35 ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.cx-stage{position:relative;isolation:isolate;min-height:clamp(470px,64svh,770px);background:#070a12;overflow:hidden}
.cx-viewport,.cx-viewport canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.cx-viewport{touch-action:pan-y}
.cx-viewport.free{cursor:grab;touch-action:none}
.cx-viewport.free:active{cursor:grabbing}
.cx-stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#080b15 2%,#080b15e6 25%,#080b1522 58%,transparent 76%),linear-gradient(0deg,#080b15 0%,transparent 24%)}
.cx-caption,.cx-viewbar,.cx-scene-tag,.cx-scale,.cx-model-labels{position:absolute;z-index:1}
.cx-caption{left:clamp(1rem,4vw,4rem);top:clamp(1.2rem,7vh,5rem);max-width:min(420px,46%);pointer-events:none}
h1,h2,p{margin:0}
h1{font-size:clamp(2.4rem,5.7vw,5.8rem);line-height:.96;letter-spacing:-.06em;margin:.55rem 0 1rem;font-weight:780}
.cx-caption p,.cx-story p{color:#d5def1;line-height:1.6;max-width:54ch}
.cx-scene-tag{right:clamp(1rem,4vw,4rem);bottom:1.75rem;color:var(--muted);letter-spacing:.07em}
.cx-modes{position:absolute;z-index:2;top:1rem;right:clamp(1rem,4vw,4rem);display:flex;gap:.2rem;background:#080b15bf;padding:0 .35rem}
.cx-modes button{font-size:.78rem;background:transparent;border-color:transparent;padding:.35rem .75rem;min-height:44px}
.cx-modes button[aria-pressed=true]{border-color:var(--accent);color:#fff}
.cx-observation{position:absolute;inset:0;margin:0;background:#080b15;overflow:hidden}
.cx-observation img{position:absolute;inset:0 0 0 auto;display:block;width:72%;height:100%;object-fit:contain;object-position:var(--photo-focus,center);transform:scale(var(--photo-zoom,1))}
.cx-observation img.cx-wide{object-fit:cover;mask-image:linear-gradient(90deg,transparent,#000 23%)}
.cx-photo-credit{position:absolute;z-index:2;right:clamp(1rem,4vw,4rem);bottom:1rem;color:#e4ebf8;text-align:right;font-size:.72rem;line-height:1.5;max-width:min(420px,55%);text-shadow:0 1px 4px #000}
.cx-photo-credit span{display:block;font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.cx-photo-credit a{color:#c6d5ef;text-underline-offset:.18em}
.cx-observation-notes{margin:.65rem 0 1rem}
.cx-observation-notes h2{font-size:1.25rem}
.cx-observation-notes p{font-size:.93rem;line-height:1.55;color:#d5def1;margin:.6rem 0 .9rem}
.cx-viewbar{left:clamp(1rem,4vw,4rem);right:12rem;bottom:1rem;display:flex;gap:.4rem;flex-wrap:wrap}
.cx-viewbar button{font-size:.82rem;text-shadow:0 1px 6px #000}
.cx-stage-navigation{display:flex;gap:.25rem}
.cx-stage-navigation button:not(.cx-primary){padding-inline:.62rem}
.cx-scale{right:clamp(1rem,4vw,4rem);bottom:4.4rem;border-bottom:1px solid currentColor;padding-bottom:.35rem}
.cx-model-labels{left:51%;right:3%;bottom:17%;display:flex;gap:.35rem;flex-wrap:wrap;justify-content:center;pointer-events:none}
.cx-model-labels span{font-size:.74rem;padding:.22rem .4rem;border-bottom:1px solid #9ba7c9;text-shadow:0 1px 5px #000,0 0 8px #000}
.cx-console{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);gap:clamp(1.75rem,5vw,5rem);max-width:1440px;margin:auto;padding:clamp(1.75rem,4vw,3.5rem) clamp(1rem,4vw,4rem) 0}
.cx-lab{padding-inline-start:clamp(1.75rem,5vw,5rem);border-inline-start:1px solid var(--line)}
h2{font-size:clamp(1.3rem,2.5vw,2rem);line-height:1.1;letter-spacing:-.025em;margin:.5rem 0}
.cx-story p{min-height:3rem}
.cx-traverse{display:flex;gap:.45rem;margin-top:.9rem}
button.cx-primary{color:var(--accent);font-weight:750;border-bottom-color:var(--accent);text-shadow:none}
button.cx-primary:hover:not(:disabled){color:#fff;border-bottom-color:#fff}
.cx-timeline{display:grid;grid-template-columns:1fr auto;gap:.25rem;margin-top:1rem;font-size:.78rem;color:var(--muted)}
input[type=range]{width:100%;accent-color:var(--accent);min-height:30px;cursor:pointer}
.cx-timeline input{grid-column:1/-1}
.cx-stops{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.3rem}
.cx-stops button{padding:.4rem .65rem;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);min-width:40px}
.cx-stops button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent);background:transparent}
#controls{display:grid;gap:.55rem;margin:.7rem 0}
.cx-choices{display:flex;flex-wrap:wrap;gap:.2rem .8rem}
.cx-choices button,#controls>button{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:.5rem .15rem;text-align:start}
.cx-choices button[aria-pressed=true],#controls>button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent);background:transparent}
.cx-choices button:hover:not(:disabled),#controls>button:hover:not(:disabled){background:transparent;border-bottom-color:var(--accent)}
.cx-field{display:grid;grid-template-columns:1fr minmax(130px,1fr);gap:.5rem;align-items:center;font-size:.85rem}
.cx-reading{color:#d9e6f7;font-size:.88rem;line-height:1.55;min-height:2.6em}
details{border-top:1px solid var(--line);margin-top:.75rem;padding-top:.7rem;font-size:.85rem;color:var(--muted)}
summary{cursor:pointer;color:var(--bright);min-height:34px}
details p{line-height:1.6}
#sources a{color:var(--accent);display:inline-block;margin-top:.65rem}
.cx-footer{color:var(--muted);font-size:.78rem}
@media(max-width:760px){
  .cx-console{grid-template-columns:1fr}
  .cx-lab{padding:1.5rem 0 0;border-inline-start:0;border-top:1px solid var(--line)}
  .cx-stage{min-height:clamp(560px,78svh,670px)}
  .cx-modes{top:.55rem}
  .cx-modes button{min-height:44px}
  .cx-observation img{top:32%;width:100%;height:56%;object-position:center}
  .cx-observation img.cx-wide{object-fit:cover;mask-image:linear-gradient(180deg,transparent,#000 17%,#000 78%,transparent);object-position:var(--photo-focus,center)}
  .cx-photo-credit{right:1rem;bottom:1rem;max-width:55%}
  .cx-scene-tag{top:.95rem;bottom:auto;left:1rem;right:auto}
  .cx-viewbar{right:1rem}
  .cx-stage:has(.cx-observation:not([hidden])) .cx-photo-credit{bottom:4.4rem}
  .cx-caption{max-width:88%;top:3.35rem}
  .cx-caption p{font-size:.91rem;max-width:34ch}
  .cx-stage::after{background:linear-gradient(180deg,#080b15 4%,#080b15ae 24%,transparent 51%),linear-gradient(0deg,#080b15,transparent 25%)}
  .cx-model-labels{left:4%;bottom:22%}
  .cx-scale{bottom:6.9rem}
}
@media(max-width:360px){.cx-viewbar{bottom:.55rem}.cx-viewbar button{font-size:.73rem;padding:.45rem .55rem}.cx-footer{align-items:flex-start;flex-direction:column}}

.cx-current{margin-top:1.35rem;padding-left:.8rem;border-left:2px solid var(--accent);max-width:38ch}
.cx-current b{display:block;color:var(--accent);font-size:.81rem;line-height:1.4;margin-bottom:.22rem}
.cx-current span{font-size:.84rem;color:#d5def1;line-height:1.45}
.cx-noscript{padding:1.25rem}
@media(max-width:760px){.cx-current{margin-top:.72rem}.cx-current span{display:none}}

.cx-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:clamp(.55rem,2vw,1.25rem);flex-wrap:wrap}
.cx-header-actions button{font-size:.83rem}
.cx-hub,.cx-evidence{padding:clamp(1rem,4vw,4rem);max-width:1440px;margin:auto}
.cx-hub p,.cx-dialog p,.cx-evidence p{color:#d5def1;line-height:1.55}
.cx-cta,.cx-related a{display:inline-block;color:var(--accent);padding:.55rem 0;font-weight:730;text-underline-offset:.3em}
.cx-hub .cx-cta{margin:1.2rem 0}
.cx-hub-grid{margin-top:1rem;border-bottom:1px solid var(--line)}
.cx-hub-grid a{display:grid;grid-template-columns:2rem minmax(10rem,1fr) minmax(0,1.6fr) 1rem;align-items:baseline;gap:clamp(.75rem,2vw,1.75rem);padding:1.1rem 0;border-top:1px solid var(--line);text-decoration:none;line-height:1.42}
.cx-hub-grid a:hover strong,.cx-hub-grid a:focus-visible strong{color:var(--accent)}
.cx-hub-grid strong{font-size:clamp(1.08rem,2vw,1.4rem)}
.cx-hub-intro{color:var(--muted);font-size:.92rem}
.cx-hub-arrow{color:var(--accent);justify-self:end}
@media(max-width:630px){
  .cx-hub-grid a{grid-template-columns:1.55rem minmax(0,1fr) 1rem;gap:.22rem .8rem}
  .cx-hub-intro{grid-column:2;grid-row:2}.cx-hub-arrow{grid-column:3;grid-row:1}
}
.cx-caption .cx-duration{margin-top:.9rem;font-size:.75rem;color:#cfdbec}
.cx-related{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.9rem}
.cx-related a{font-size:.9rem;color:var(--accent);background:transparent;border-radius:0;padding:.45rem 0;text-decoration:underline;text-underline-offset:.24em}
.cx-summary{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.cx-summary h3,.cx-evidence h3{margin:.3rem 0 .6rem}
.cx-summary p{min-height:0;margin:.45rem 0}
.cx-evidence h2{margin-bottom:1rem}
.cx-evidence-card{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:clamp(1rem,3vw,2.25rem);padding:1.3rem 0;border-top:1px solid var(--line)}
.cx-evidence-card:has(img:not([hidden])){grid-template-columns:minmax(0,15rem) minmax(0,1fr)}
.cx-evidence-card img{width:100%;height:auto;max-height:11rem;object-fit:contain;object-position:left}
.cx-evidence-copy{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem}
.cx-evidence-copy h3{margin:0}
.cx-evidence-copy p:not(.cx-eyebrow){max-width:65ch}
.cx-evidence-copy button{padding-inline:0;color:var(--accent);border-bottom-color:var(--line);margin:.12rem 0}
@media(max-width:530px){.cx-evidence-card:has(img:not([hidden])){grid-template-columns:1fr}}
.cx-evidence-card a,.cx-scale-reference a,.cx-dialog a{color:var(--accent);font-size:.85rem}
.cx-evidence-card p,.cx-subnote{font-size:.86rem;line-height:1.5;color:var(--muted)}
.cx-dialog{width:min(92vw,44rem);max-height:90svh;border:1px solid #53627d;border-radius:.35rem;padding:clamp(1rem,3vw,1.65rem);background:#0e1727;color:var(--bright)}
.cx-dialog-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:.8rem;background:#0e1727}
.cx-dialog .cx-dialog-head form{margin:0}
.cx-dialog-x{font-size:1.8rem;line-height:1;min-width:44px;padding:0;color:var(--bright)}
.cx-dialog .cx-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;padding-top:.6rem;border-top:1px solid var(--line)}
.cx-media-dialog{width:min(92vw,56rem)}
.cx-dialog::backdrop{background:#03060ddd}
.cx-dialog p,.cx-dialog form,.cx-dialog .cx-field{margin:.7rem 0}
.cx-media-dialog video{aspect-ratio:16/9}
.cx-media-dialog img,.cx-media-dialog video{display:block;width:100%;max-height:60svh;object-fit:contain;background:#080b15}
#media-links{display:flex;gap:1rem;flex-wrap:wrap}
.cx-locator,.cx-arrivals{display:flex;justify-content:space-between;gap:.4rem;margin:.65rem 0;font-size:.78rem;color:#d2def0}
.cx-locator span{padding:.38rem .5rem;border-bottom:1px solid var(--line);transform:translateY(calc(-1 * var(--offset,0px)))}
.cx-locator span[data-selected]{color:var(--accent);border-color:var(--accent)}
.cx-lens-demo{padding:.65rem 0;border-block:1px solid var(--line)}
.cx-lens-demo p{margin:.4rem 0;line-height:1.5;font-size:.86rem}
.cx-arrivals span{flex:1;padding:.35rem 0;border-bottom:1px solid #49627d}
.cx-arrivals.pulsing span{animation:cx-arrival .7s ease-out}
.cx-arrivals.pulsing span+span{animation-delay:.8s}
@keyframes cx-arrival{35%{background:var(--accent);color:#0d1323}}
.cx-hotspot{bottom:29%;color:#fff;font-size:.82rem;text-shadow:0 1px 5px #000;align-items:center}
.cx-hotspot::before{content:'';width:.55rem;height:.55rem;border:2px solid var(--accent);border-radius:50%}
.cx-scale-reference dt{font-weight:750;color:#e1eaf7;margin-top:.8rem}
.cx-scale-reference dd{margin:.25rem 0;line-height:1.5}
@media(max-width:760px){
  .cx-header{gap:.4rem}.cx-header-actions{gap:.4rem}.cx-header-actions .cx-back{font-size:.73rem}.cx-header-actions button{min-height:38px;padding:.35rem .45rem}
  .cx-viewbar button{min-height:42px}
  .cx-hotspot{bottom:30%}
}
@media(prefers-reduced-motion:reduce){.cx-arrivals.pulsing span{animation:none}}
.cx-evidence-legend{display:flex;gap:.65rem;flex-wrap:wrap;font-size:.8rem}
.cx-evidence-legend span{padding:.22rem 0;color:#8bc7f1}
.cx-evidence-legend span+span{color:#f2a4a4}
.cx-gallery-image{overflow:auto;max-height:61svh}
.cx-gallery-image.zoomed img{width:1500px;max-width:none;max-height:none}
#media-content>button{margin-bottom:.5rem}
#stage-status:empty{display:none}
.cx-scene-hotspots{position:absolute;z-index:2;inset:15% 4% 18% 45%;pointer-events:none}
.cx-scene-hotspots button{position:absolute;transform:translate(-50%,-50%);min-width:36px;min-height:36px;padding:0;display:grid;place-items:center;pointer-events:auto;border-radius:50%;background:#111b2deb;border-color:var(--accent);font-size:1.1rem}
@media(max-width:760px){.cx-scene-hotspots{inset:38% 7% 20% 7%}}


.cx-scene-handoff{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.cx-stage::after{z-index:1}
.cx-caption,.cx-viewbar,.cx-scene-tag,.cx-scale,.cx-model-labels{z-index:2}
.cx-modes,.cx-scene-hotspots{z-index:3}

.cx-films{margin-top:1.4rem;border-top:1px solid var(--line)}
.cx-films h3{margin:.85rem 0 .28rem;font-size:.86rem;font-weight:650;color:var(--muted)}
button.cx-film{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;width:100%;min-height:48px;text-align:left;padding:.52rem 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
button.cx-film:hover:not(:disabled){color:var(--accent);background:transparent;border-bottom-color:var(--accent)}
.cx-film-play,.cx-film-time{color:var(--accent);font-size:.8rem}
.cx-film-play{width:0;height:0;border-block:5px solid transparent;border-inline-start:8px solid currentColor;margin-inline:3px}
.cx-film-time{font-variant-numeric:tabular-nums;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.cx-scene-handoff{display:none}}

/* Keep the main tour control distinct from secondary text controls. */
.cx-viewbar{align-items:center;gap:.25rem .65rem}
.cx-viewbar button,.cx-modes button{padding-inline:.28rem}
.cx-viewbar .cx-primary::before{content:'▶';font-size:.72em;margin-right:.42em}
.cx-viewbar .cx-primary[data-playing]::before{content:'Ⅱ'}
.cx-stage{min-height:clamp(520px,70svh,820px)}
.cx-caption h1{font-size:clamp(2.2rem,4.3vw,4.4rem);margin:.45rem 0 .8rem}
@media(max-height:760px) and (min-width:761px){.cx-caption .cx-duration:not([role=status]){display:none}}
@media(max-width:760px){
  .cx-stage{min-height:clamp(560px,78svh,680px)}
  .cx-viewbar button{padding-inline:.18rem}
}
@media(max-width:420px){
  .cx-header{align-items:flex-start}
  .cx-header-actions{gap:0 .65rem}
  .cx-header-actions button,.cx-header-actions .cx-back{min-height:44px}
  .cx-header-actions .cx-back{display:inline-flex;align-items:center}
}

/* Chapter hub: title -> Nova quest, separate Continue Exploring -> chapter page */
.cx-hub-grid .cx-hub-card{display:grid;grid-template-columns:2rem minmax(10rem,1fr) minmax(0,1.6fr) auto;align-items:baseline;gap:clamp(.75rem,2vw,1.75rem);padding:1.1rem 0;border-top:1px solid var(--line);line-height:1.42}
.cx-hub-grid .cx-hub-title{display:block;padding:0;border:0;text-decoration:none;color:#eef2ff}
.cx-hub-grid .cx-hub-title strong{color:#eef2ff}
.cx-hub-grid .cx-hub-title strong::after{content:' ▶';font-size:.7em;color:var(--accent);opacity:.8}
.cx-hub-grid .cx-hub-title:hover strong,.cx-hub-grid .cx-hub-title:focus-visible strong{color:var(--accent)}
.cx-hub-grid .cx-hub-more{display:inline-block;padding:.45rem .8rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;white-space:nowrap;font-size:.86rem;color:var(--accent)}
.cx-hub-grid .cx-hub-more:hover,.cx-hub-grid .cx-hub-more:focus-visible{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
.cx-hub-grid .cx-hub-title:focus-visible,.cx-hub-grid .cx-hub-more:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (max-width:760px){.cx-hub-grid .cx-hub-card{grid-template-columns:1.55rem minmax(0,1fr);gap:.3rem .8rem}.cx-hub-grid .cx-hub-card .cx-hub-intro,.cx-hub-grid .cx-hub-more{grid-column:2}.cx-hub-grid .cx-hub-more{justify-self:start;margin-top:.3rem}}
