/* One neutral palette per preview. All imagery, camera paths and timing are shared. */
.theme-preview{
 background:var(--paper);color:var(--ink);
 --edge-color:var(--line);
}
/* Silver belongs to the page surfaces, never to the artwork. */
.theme-silver{
 color-scheme:light;
 --paper:#d1d1d1;--ink:#1b1b1b;--muted:#424242;--line:#969696;--bright:#ebebeb;
}
.theme-black{
 color-scheme:dark;
 --paper:#090909;--ink:#f4f4f4;--muted:#bcbcbc;--line:#3a3a3a;--bright:#191919;--navy:#090909;
 --photo-surface:#090909;--tone-haze:#090909b3;
 --film-overlay:linear-gradient(180deg,#090909dc 0%,#0909097d 21%,#09090955 63%,#090909 100%);
 --passage-overlay:linear-gradient(90deg,#090909f5 0%,#090909b8 30%,#09090935 69%,#09090920 100%),linear-gradient(0deg,#090909 0%,transparent 25%);
 --orbit-overlay:linear-gradient(90deg,#090909f0 0%,#090909b0 29%,#09090930 54%,transparent 72%),linear-gradient(0deg,#090909 0%,transparent 22%);
 --photo-tone:grayscale(1) brightness(.65) contrast(1.07);
 --room-tone:grayscale(1) brightness(.76);
 --earth-tone:grayscale(1) brightness(.85) contrast(1.17);
}
.theme-preview .top,.theme-preview .home .top,.theme-preview.home .top{border-color:var(--edge-color)}
.theme-black .brand img{filter:grayscale(1) invert(1)}
.theme-preview .nav,.theme-preview .foot,.theme-preview .page-head,.theme-preview .outcome{background:var(--paper)}
.theme-preview.home .nav{background:transparent}
.theme-preview .foot{border-top:1px solid var(--line)}
.theme-preview .nav a,.theme-preview .quiet-link,.theme-preview .text-link{color:inherit}
.theme-preview .button:hover,.theme-preview .row-arrow:hover{background:var(--bright);color:var(--ink);border-color:var(--line)}
.theme-preview .button.primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.theme-preview .button.primary:hover{background:var(--muted);border-color:var(--muted)}
.theme-black .film-hero,.theme-black .horizon,.theme-black .fieldwork-window,.theme-black .sub-image,.theme-black .passage,.theme-black .chapter-reel,.theme-black .atlas-film,.theme-black .atlas-visual{background:var(--photo-surface)}
.theme-black .horizon img,.theme-black .fieldwork img,.theme-black .sub-image img{filter:var(--photo-tone)}
.theme-black .film-hero::before{background:var(--film-overlay)}
.theme-black .film-copy h1 span,.theme-black .film-end{color:var(--ink)}
.theme-black .film-end a span{border-color:var(--line)}
.theme-black .film-end a:hover span{background:var(--ink);color:var(--paper)}
.theme-black .opening-mist{background:linear-gradient(0deg,var(--paper),transparent 68%)}
.theme-preview .reading-progress,.theme-preview .fieldwork-thread{background:var(--muted)}
.theme-black .passage{color:var(--ink)}
.theme-black .passage>img{filter:var(--room-tone)}
.theme-black .passage::after,.theme-black .reel-on .reel-plane::after{background:var(--passage-overlay)}
.theme-black .passage p:not(.eyebrow){color:var(--muted)}
.theme-black .reel-on .passage,.theme-black .reel-on .atlas-active{background:transparent}
.theme-black .reel-on .reel-plane::before{filter:var(--room-tone)}
.theme-preview .reel-intake,.theme-preview .reel-release{background:var(--paper);height:clamp(2rem,7svh,5rem)}
.theme-preview .reel-intake::after,.theme-preview .reel-release::after{display:none}
.theme-black .atlas-world,.theme-black .atlas-poster img{filter:var(--earth-tone)}
.theme-black .atlas-routes{filter:grayscale(1)}
.theme-black .atlas-visual::after{background:var(--orbit-overlay)}
.theme-black .atlas-story h2,.theme-black .atlas-film,.theme-black .atlas-shot-name{color:var(--ink);text-shadow:none}
.theme-black .atlas-story p,.theme-black .atlas-kicker,.theme-black .atlas-shot-no,.theme-black .atlas-strip{color:var(--muted);text-shadow:none}
.theme-preview .atlas-strip,.theme-preview .reel-on .atlas-strip{color:var(--muted);background:var(--paper);box-shadow:0 0 0 100vmax var(--paper);clip-path:inset(0 -100vmax)}
.theme-black .reel-on .orbit-veil{background:radial-gradient(ellipse at 68% 53%,var(--tone-haze),transparent 62%)}
.theme-black .atlas-track{background:var(--line)}.theme-black .atlas-track i{background:var(--muted)}
.theme-preview .row-arrow{border-color:var(--line)}
.theme-preview .tone-picker{border-top:1px solid var(--line);margin-top:1.55rem;padding-top:1rem;gap:.45rem 1rem;display:flex;flex-wrap:wrap;font-size:.86rem}
.theme-preview .tone-picker span{color:var(--muted)}.theme-preview .tone-picker a[aria-current]{font-weight:750}
@media(max-width:680px){
 .theme-black{
  --passage-overlay:linear-gradient(90deg,#090909ed,#09090980),linear-gradient(0deg,#090909 0%,transparent 25%);
  --orbit-overlay:linear-gradient(180deg,#090909fb 0%,#09090985 29%,transparent 67%,#090909 100%);
 }
 .theme-preview .reel-intake,.theme-preview .reel-release{height:clamp(1.5rem,5svh,3rem)}
}
