/* Five reading compositions. Existing cultural text and restoration controls are retained. */
.paper-study .study-index { color:#8c3f30; letter-spacing:.24em; font:14px/1.8 serif; }
.realm-encounter .realm-exploration { --field:#eee6d6; --ink:#293f38; --accent:#8f4231; background:#eee6d6; }
.realm-encounter .explore-scene { background:linear-gradient(#eee6d6c9,#eee6d6c9),url('../assets/backgrounds/paper-texture-cropped.webp') center/cover; border-color:#8e775b30; }
.realm-encounter .explore-scene::before { background:url('../assets/ink-branch.svg') right center/auto 85% no-repeat; opacity:.13; filter:none; }
.realm-encounter .explore-scene::after { background:linear-gradient(0deg,#eee6d6,transparent 20% 80%,#eee6d6); }
.realm-encounter .explore-copy p:not(.explore-kicker) { color:#39483c; }
.realm-encounter .explore-copy h2 { color:#293f38; }
.realm-encounter .explore-art { background:none; }
.realm-encounter .explore-art::before { border:0; }
.realm-encounter .explore-art img { filter:drop-shadow(0 16px 12px #70634a20); }
.realm-encounter .paper-study { min-height:135svh; overflow:visible; padding-block:12svh; }
.realm-encounter .paper-study .explore-inner { align-items:start; grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr); min-height:105svh; gap:7vw; }
.realm-encounter .paper-study .explore-art { position:sticky; top:145px; min-height:62svh; height:62svh; }
.realm-encounter .paper-study .explore-subject { grid-area:1/1/9/13; animation:none; }
.realm-encounter .paper-study .explore-copy { padding-top:29svh; animation:none; border-top:1px solid #8a70573f; margin-top:4svh; }
.realm-encounter .paper-study.explore-reverse .explore-inner { grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr); }
.realm-encounter .paper-study.explore-reverse .explore-copy { padding-top:12svh; }
.realm-encounter .paper-study[aria-labelledby='encounter-object-3'] .explore-art { min-height:40svh; height:40svh; top:23svh; }
.realm-encounter .paper-study[aria-labelledby='encounter-object-4'] .explore-art { min-height:48svh; height:48svh; }
/* Ritual: full scene first, spatial annotations directly on the artwork. */
.ritual-overview .explore-inner { display:flex; flex-direction:column; gap:2rem; }
.ritual-overview .explore-art { width:min(100%,1000px); height:62svh; min-height:350px; }
.ritual-overview .explore-copy { display:grid; grid-template-columns:1fr 1.5fr; align-items:center; max-width:1000px; gap:3rem; }
.ritual-overview .explore-subject { animation:none; }
.scene-hotspot { position:absolute; z-index:5; }
.scene-hotspot summary { width:44px; height:44px; display:grid; place-items:center; border:1px solid #edc68b; border-radius:50%; background:#632f23ed; color:#fff0ce; cursor:pointer; box-shadow:0 0 0 7px #d3ac6122; list-style:none; }
.scene-hotspot summary::-webkit-details-marker { display:none; }
.scene-hotspot[open] { z-index:8; }
.scene-hotspot[open] summary { background:#eed3a2; color:#39291e; }
.scene-hotspot p { position:absolute; top:50px; left:50%; transform:translateX(-50%); width:220px; padding:18px; margin:0; color:#f3e5c9; background:#30251af5; border:1px solid #c6a777; font-size:16px; line-height:1.8; box-shadow:0 12px 30px #0005; }
.hotspot-roof { left:47%; top:16%; }.hotspot-vessel { left:47%; top:64%; }.hotspot-people { left:20%; top:56%; }
.realm-human .explore-scene:not(.ritual-overview) .explore-art::before { border:0; border-bottom:1px solid #bda16b66; }
/* Underworld: hold an architectural cutaway while its layers enter. */
.depth-study { min-height:160svh; overflow:visible; background:radial-gradient(ellipse at 38% 50%,#26576244,transparent 60%),#071820; }
.depth-study .explore-inner { min-height:130svh; align-items:start; }
.depth-study .explore-art { position:sticky; top:140px; height:65svh; min-height:400px; }
.depth-study .explore-copy { margin-top:45svh; }
.depth-study .explore-subject { opacity:.12!important; animation:none; grid-area:1/1/9/13; filter:blur(1px); }
.depth-study .depth-layer { position:absolute; object-fit:contain; height:auto; filter:drop-shadow(0 15px 20px #0009); }
.depth-study .depth-earth { top:4%; left:2%; width:96%; max-height:22%; z-index:4; }
.depth-study .depth-giant { top:20%; left:23%; width:54%; height:60%; z-index:3; }
.depth-study .depth-fish { bottom:0; left:13%; width:74%; max-height:28%; z-index:5; }
.depth-mist { position:absolute; z-index:4; inset:65% -10% -5%; pointer-events:none; background:radial-gradient(ellipse,#a0c9bf24,transparent 65%); filter:blur(12px); }
/* Gate: independently operable paired images and their original notes. */
.gate-comparison { display:grid; grid-template-columns:1fr 1fr; padding:90px 5vw 60px; background:linear-gradient(90deg,#102a29,#243d31 50%,#102a29); }
.gate-comparison .explore-scene { min-height:0; padding:25px 4vw; overflow:visible; border:0; background:none; }
.gate-comparison .explore-scene+ .explore-scene { border-left:1px solid #b8a57155; }
.gate-comparison .explore-scene::before,.gate-comparison .explore-scene::after { display:none; }
.gate-comparison .explore-inner { display:flex; flex-direction:column; gap:2rem; }
.gate-comparison .explore-art { order:0; height:55svh; min-height:340px; }
.gate-comparison .explore-art::before { border:0; }
.gate-comparison .explore-subject { grid-area:1/1/9/13; animation:none; opacity:.42; filter:grayscale(.8) brightness(.65); transition:filter .6s,opacity .6s,transform .6s; }
.gate-light-control { position:absolute; z-index:4; bottom:-15px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:10px; min-height:48px; padding:10px 18px; white-space:nowrap; border:1px solid #d1b881; background:#152e29; color:#f2d79f; cursor:pointer; }
.gate-light-control input { width:20px; height:20px; accent-color:#c9a15e; }
.gate-comparison .explore-art:has(input:checked) { background:radial-gradient(ellipse,#dcc38135,transparent 68%); }
.gate-comparison .explore-art:has(input:checked) .explore-subject { opacity:1; filter:drop-shadow(0 0 18px #e9c67c55); transform:scale(1.04); }
.gate-comparison .explore-copy { animation:none; padding-top:20px; }
.gate-comparison .explore-copy h2 { font-size:clamp(1.6rem,2.8vw,2.8rem); }
/* Sky: a shared orbital field with native radio focus. */
.sky-observatory { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr 1fr; padding:100px 5vw 60px; background:radial-gradient(ellipse at 50% 40%,#34524d,#0d222b 72%); }
.sky-controls { grid-column:1/-1; display:flex; justify-content:center; flex-wrap:wrap; gap:12px; z-index:5; margin-bottom:25px; }
.sky-controls label { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 15px; border:1px solid #cbb68166; color:#e4c68e; cursor:pointer; }
.sky-controls input { accent-color:#b7864d; width:18px; height:18px; }
.sky-controls label:has(input:checked) { background:#d6bd84; color:#162c2b; }
.sky-orbit { position:absolute; width:90%; height:65%; top:8%; left:5%; z-index:-1; fill:none; stroke:#c4b986; stroke-width:1; opacity:.4; stroke-dasharray:5 10; }
.sky-observatory .explore-scene { background:none; min-height:0; padding:20px 4vw; border:0; overflow:visible; }
.sky-observatory .explore-scene::before,.sky-observatory .explore-scene::after { display:none; }
.sky-observatory .explore-inner { display:flex; flex-direction:column; gap:1rem; }
.sky-observatory .explore-art { order:0; height:48svh; min-height:300px; transition:opacity .5s,transform .5s,filter .5s; }
.sky-observatory .explore-art::before { border:0; }
.sky-observatory .explore-subject { grid-area:1/1/9/13; animation:none; }
.sky-observatory .explore-copy { animation:none; }
.sky-observatory .explore-copy h2 { font-size:clamp(1.8rem,3vw,3rem); }
.sky-observatory:has(input[value='sun']:checked) [aria-labelledby='heaven-object-2'] .explore-art,
.sky-observatory:has(input[value='moon']:checked) [aria-labelledby='heaven-object-1'] .explore-art { opacity:.3; transform:scale(.85); filter:grayscale(.7); }
.sky-observatory:has(input[value='sun']:checked) [aria-labelledby='heaven-object-1'] .explore-art,
.sky-observatory:has(input[value='moon']:checked) [aria-labelledby='heaven-object-2'] .explore-art { transform:scale(1.08); filter:drop-shadow(0 0 22px #e9c67c33); }
@supports(animation-timeline:view()) {
 .depth-study { view-timeline-name:--depth-study; }
 .depth-study .depth-layer { animation:depth-arrive linear both; animation-timeline:--depth-study; animation-range:entry 5% cover 50%; }
 .depth-study .depth-giant { animation-range:entry 20% cover 55%; }
 .depth-study .depth-fish { animation-range:entry 35% cover 60%; }
}
@keyframes depth-arrive { from { opacity:.15; translate:0 70px; } to { opacity:1; translate:0 0; } }
@media(max-width:800px) {
 .realm-encounter .paper-study { min-height:110svh; padding:65px 6vw; }
 .realm-encounter .paper-study .explore-inner,.realm-encounter .paper-study.explore-reverse .explore-inner { display:flex; flex-direction:column; gap:30px; min-height:0; }
 .realm-encounter .paper-study .explore-art { position:relative; top:auto; height:46svh; min-height:300px; order:0; width:100%; }
 .realm-encounter .paper-study .explore-copy,.realm-encounter .paper-study.explore-reverse .explore-copy { padding-top:20px; margin:0; max-width:90%; align-self:flex-end; }
 .realm-encounter .paper-study.explore-reverse .explore-copy { align-self:flex-start; }
 .realm-encounter .paper-study[aria-labelledby='encounter-object-3'] .explore-art { top:auto; }
 .ritual-overview .explore-art { height:50svh; min-height:300px; }
 .ritual-overview .explore-copy { display:block; }
 .scene-hotspot p { width:180px; font-size:14px; }
 .hotspot-people p { left:0; transform:none; }
 .depth-study { min-height:120svh; }
 .depth-study .explore-inner { display:flex; flex-direction:column; min-height:0; gap:35px; }
 .depth-study .explore-art { position:relative; top:auto; height:55svh; min-height:320px; }
 .depth-study .explore-copy { margin-top:0; }
 .gate-comparison { padding:80px 3vw 40px; gap:0; }
 .gate-comparison .explore-scene { padding:10px 3vw; }
 .gate-comparison .explore-art { height:35svh; min-height:230px; }
 .gate-comparison .explore-copy h2 { font-size:1.6rem; line-height:1.4; }
 .gate-comparison .explore-copy p { font-size:15px; }
 .gate-light-control { padding:8px; gap:5px; font-size:14px; }
 .sky-observatory { padding:80px 3vw 45px; }
 .sky-observatory .explore-scene { padding:15px 3vw; }
 .sky-observatory .explore-art { min-height:200px; height:32svh; }
 .sky-observatory .explore-copy h2 { font-size:1.6rem; line-height:1.4; }
 .sky-observatory .explore-copy p { font-size:15px; }
 .sky-controls { gap:6px; }.sky-controls label { padding:8px; font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
 .depth-study .depth-layer { animation:none; opacity:1; }
 .gate-comparison .explore-subject,.sky-observatory .explore-art { transition:none; }
}
