/* COEX1ST destination environments (1.9.0) — decorative, behind every reading surface. */
.coex-env{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#04070a}
/* First paint: the room's picture straight from the page's own HTML, sized like the moving scene (overscanned). */
.coex-env.is-first::before{content:'';position:absolute;inset:-7%;background:var(--env-img) var(--env-pos,50% 50%)/cover no-repeat}
.coex-env-stage,.coex-env-fx{z-index:1}.coex-env-veil{z-index:2}
.coex-env-stage{position:absolute;left:0;top:0;transform-origin:50% 50%;will-change:transform}
.coex-env-plate{position:absolute;inset:0;background-size:100% 100%;background-repeat:no-repeat}
.coex-env-fx{position:absolute;inset:0;width:100%;height:100%;display:block}
/* Readability: the scene is clearest at the top of a page and settles darker as you read down. */
.coex-env-veil{position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(3,6,9,calc(var(--env-veil,.3) * .55)) 0%,rgba(3,6,9,var(--env-veil,.3)) 38%,rgba(3,6,9,calc(var(--env-veil,.3) + .22)) 100%),
  linear-gradient(90deg,rgba(3,6,9,.62) 0%,rgba(3,6,9,.30) 38%,rgba(3,6,9,0) 68%),
  radial-gradient(ellipse 70% 60% at 50% 55%,rgba(3,6,9,.18),transparent 70%)}
/* A destination with a scene shows the scene instead of the star field. */
body[class*="coex-env-"] .coex1st-space,body[class*="coex-env-"] .coex1st-grid{display:none}
html[data-plain="on"] .coex-env{display:none}
/* A destination's room replaces the reading-room "behind the words" picture on that page (it still shows on readers). */
body[class*="coex-env-"] .ua-underlay{display:none!important}
@media print{.coex-env{display:none!important}}
body[class*="coex-env-"] .coex1st-footer{position:relative}
/* Headings and intros sit directly on the art: give them a quiet halo so they always read. */
body[class*="coex-env-"] .coex-collection-hero,body[class*="coex-env-"] .coex-breadcrumb{text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 22px rgba(0,0,0,.85)}
body[class*="coex-env-"] .coex-collection-hero>p:last-child{color:#d3dee3}
@media(max-width:720px){.coex-env-veil{background:linear-gradient(180deg,rgba(3,6,9,calc(var(--env-veil,.3) * .8)) 0%,rgba(3,6,9,calc(var(--env-veil,.3) + .15)) 45%,rgba(3,6,9,calc(var(--env-veil,.3) + .3)) 100%)}}
.coex-title-direction{display:block;margin-top:14px;font:400 clamp(18px,2vw,24px)/1.4 Georgia,serif;letter-spacing:0;color:#cfe3e6}
/* 1.9.1 — the Fog hub card shows the 5:2 pyramid cover in full, copy beneath it. */
.coex-fog-entry>a{display:block;min-height:0;background:#060c12}
.coex-fog-entry>a:before{display:none}
.coex-fog-entry .coex-fog-cover img{position:static;display:block;width:100%;height:auto;aspect-ratio:5/2;object-fit:cover;z-index:auto}
.coex-fog-entry-copy{max-width:none;background:linear-gradient(180deg,rgba(6,12,18,.92),rgba(6,12,18,.98))}
@media(max-width:700px){.coex-fog-entry .coex-fog-cover img{aspect-ratio:4/5;object-position:center 35%}.coex-fog-entry-copy{padding:24px 20px}}
/* 1.9.1 — the 4D inquiry: night sky behind; the Sun/Moon orbit around the central thesis. */
body.coex-env-study #coex-fog-inquiry{--paper:rgba(9,16,22,.88)}
#coex-fog-inquiry .it-layout{position:relative}
#coex-fog-inquiry .it-trails,#coex-fog-inquiry .it-paper{position:relative;z-index:2}
.it-orbit{position:absolute;inset:0;pointer-events:none;z-index:3}
.it-orbit-path{position:absolute;left:0;top:0;overflow:visible}
.it-orbit-path ellipse{fill:none;stroke:rgba(226,214,180,.34);stroke-width:1.2;stroke-dasharray:2 8}
.it-orbit-marker{position:absolute;left:0;top:0;z-index:3;will-change:transform;filter:drop-shadow(0 0 14px rgba(255,214,150,.35))}
.it-orbit-marker img{position:absolute;inset:0;width:100%;height:100%;display:block}
.it-orbit-marker .is-moon{opacity:0}
html[data-plain="on"] .it-orbit{display:none}
@media print{.it-orbit{display:none}}
/* 1.9.2 — the orbit belongs to the thesis page; it steps aside while a trail is being read. */
#coex-fog-inquiry.is-reading .it-orbit{display:none}
html[data-rr-bg="plain"] .coex-env{display:none}
