/* AI page · one night sky for the whole page.
   A fixed star field (js/ai-sky.js) sits behind every section, so the hero, the system and the Curve
   read as one immersive environment. Sections are transparent; text carries its own soft halo
   instead of sitting on flat navy panels. */
html:has(body.fabric-next){background:#1a2b4b}
body.fabric-next.study{background:transparent}
body.fabric-next .ai-sky{position:fixed;inset:0;width:100vw;height:100lvh;z-index:0;pointer-events:none;display:block}
body.fabric-next>main,body.fabric-next>.study-footer{position:relative;z-index:1}
/* The galaxy arrival is darker; the page sky follows it, then eases to the hero's night. */
body.fabric-next .ai-sky-dusk{position:fixed;inset:0;z-index:0;pointer-events:none;background:#0c1834;opacity:0;transition:opacity 2.4s ease}
html.ai-intro body.fabric-next .ai-sky-dusk{opacity:.72}

/* The hero always fills the visible screen, so nothing below peeks in under the splash. */
body.fabric-next .fabric{min-height:max(100svh,100dvh)}
/* The system's detail stays out of view until the system is opened; the hero offers
   only "Explore the system" and "Read the story". */
body.fabric-next:not(.exploring-system) .woven-method{display:none}
/* The title and standfirst belong to the opening splash. Once the system has been
   opened and closed, the hero returns to the two links alone. */
body.fabric-next.has-explored .fabric .copy .fabric-title,body.fabric-next.has-explored .fabric .copy .standfirst{display:none}
/* Sections let the sky through. */
body.fabric-next .fabric,html.ai-intro body.fabric-next .fabric,body.fabric-next.fabric-material-study .fabric[data-cloth-ready="true"]{background:transparent!important}
body.fabric-next .woven-method{background:transparent}
body.fabric-next .navy-interval.method-to-globe{background:transparent!important}
body.fabric-next .horizon{background:radial-gradient(ellipse 80% 55% at 62% 58%,#0c183499 0%,#0c183433 55%,transparent 80%)!important}
body.fabric-next .study-footer{background:transparent}
/* The hero's cloth scene paints its own navy night; feather its lower edge into the page sky. */
body.fabric-next:not(.exploring-system) .fabric #fabric-breath{-webkit-mask-image:linear-gradient(#000 0%,#000 78%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 78%,transparent 100%)}
/* The hero no longer needs a dark box behind its copy. */
body.fabric-next .fabric::after{display:none}

/* Text reads on the sky itself: a close shadow for edge definition and a wide halo for calm. */
body.fabric-next .fabric .copy,
body.fabric-next .woven-method,
body.fabric-next .horizon .copy,
body.fabric-next .study-footer{text-shadow:0 1px 2px #0a1430f2,0 0 18px #0c1834d9,0 0 42px #0c183499}
body.fabric-next .woven-method .method-description{color:#e6ebf2}
body.fabric-next .woven-method .method-route{color:#e2c98f}
body.fabric-next .woven-method .eyebrow,body.fabric-next .woven-method .method-status{color:#d4b066}
body.fabric-next .woven-method h2,body.fabric-next .woven-method .method-title{color:#fffdf8}
body.fabric-next .study-footer{color:#d9d2c2;border-top-color:#ffffff1f}
@media(prefers-reduced-motion:reduce){body.fabric-next .ai-sky-dusk{transition:none}}
