.cosmos-scene{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict}
.cosmos-scene~.app-shell{position:relative;z-index:1}
.cosmos-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.cosmos-hero{z-index:-1}
.cosmos-clouds{position:absolute;inset:-12%;opacity:calc(.3 * var(--cosmos-intensity,.65));pointer-events:none}
.cosmos-clouds::before,.cosmos-clouds::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 26% 32%,var(--dye-nebula-cloud,#eea6ae44),transparent 48%),radial-gradient(ellipse at 75% 76%,var(--dye-nebula-peach,#ffc79e33),transparent 45%);animation:cosmos-cloud-drift var(--cosmos-cloud-time,90s) ease-in-out infinite alternate}
.cosmos-clouds::after{opacity:.6;transform:rotate(180deg);animation-name:cosmos-cloud-counter;animation-duration:calc(var(--cosmos-cloud-time,90s) * 1.4)}
.hero-nebula{animation:cosmos-cloud-drift var(--cosmos-cloud-time,90s) ease-in-out infinite alternate}
.planet-ring::after,.growth-universe .gu-planet-ring::after{content:"";position:absolute;left:0;top:0;width:26px;height:2px;border-radius:50%;background:linear-gradient(90deg,transparent,var(--dye-orbit-light,#fff3d0));box-shadow:0 0 7px var(--dye-orbit-light,#ffcbab);offset-path:ellipse(49% 49% at 50% 50%);offset-rotate:auto;opacity:calc(.55 * var(--cosmos-intensity,.65));animation:cosmos-orbit-flow var(--cosmos-orbit-time,44s) linear infinite;pointer-events:none}
.planet-ring.ring-back::after{animation-direction:reverse;animation-delay:-17s}
.hero-orbit::after,.growth-universe .gu-orbit::after{content:"";position:absolute;left:10%;top:20%;width:3px;height:3px;border-radius:50%;background:var(--dye-star-a,#fff3d0);box-shadow:0 0 8px var(--dye-orbit-light,#ffcbab);offset-path:ellipse(49% 49% at 50% 50%);animation:cosmos-orbit-flow calc(var(--cosmos-orbit-time,44s) * 1.4) linear infinite;opacity:calc(.65 * var(--cosmos-intensity,.65))}
.hero-orbit.orbit-two::after{animation-direction:reverse;animation-delay:-26s}
html[data-cosmos-paused] :is(.hero-nebula,.planet-texture,.gu-haze),html[data-cosmos-paused] .cosmos-clouds::before,
html[data-cosmos-paused] :is(.cosmos-clouds,.planet-ring,.hero-orbit,.hero-planet)::after,
html[data-cosmos-paused] .growth-universe .gu-planet-body::before,
html[data-cosmos-paused] .growth-universe :is(.gu-planet-body,.gu-planet-ring,.gu-orbit)::after{animation-play-state:paused!important}
.view[hidden] .hero-nebula,.view[hidden] :is(.planet-ring,.hero-orbit)::after,.growth-universe:not(.gu-is-active) .gu-haze,.growth-universe:not(.gu-is-active) :is(.gu-planet-ring,.gu-orbit)::after{animation-play-state:paused}
html[data-cosmos-static] .growth-universe.gu-is-travelling .gu-stage{transform:none;transition:none}
html[data-cosmos-low] .cosmos-clouds::after{display:none}
@keyframes cosmos-cloud-drift{from{transform:translate(-2%,-1%) scale(1.02)}to{transform:translate(3%,2%) scale(1.09)}}
@keyframes cosmos-cloud-counter{from{transform:translate(3%,2%) rotate(180deg) scale(1.02)}to{transform:translate(-3%,-2%) rotate(183deg) scale(1.08)}}
@keyframes cosmos-orbit-flow{to{offset-distance:100%}}
@media(prefers-reduced-motion:reduce){.cosmos-clouds::before,.cosmos-clouds::after,.hero-nebula,.planet-ring::after,.hero-orbit::after{animation:none!important}}

/* The canvas replaces only the planet artwork; theme.css owns the home layout. */
.cosmos-saturn{position:absolute;left:-20%;top:-20%;width:140%;height:140%;pointer-events:none;z-index:2}
.cosmos-saturn-host>:is(.hero-planet,.planet-ring,.planet-halo){visibility:hidden}
@media(max-width:760px),(pointer:coarse){.cosmos-saturn-host .orbit-point{min-height:44px}}

/* All visible star dots use individual phases; labels and hit areas stay still. */
html[data-cosmos-stars] body::before,html[data-cosmos-stars] .home-hero::before{background-image:none}
.home-hero :is(.orbit-star,.orbit-point>i,.hero-copy .eyebrow>span,.hero-coordinate>span:first-child){animation:cosmos-point-twinkle var(--cosmos-twinkle-time,4.6s) ease-in-out infinite;animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.18)}
.home-hero .star-b{animation-duration:calc(var(--cosmos-twinkle-time,4.6s) * .81);animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.56)}
.home-hero .star-c{animation-duration:calc(var(--cosmos-twinkle-time,4.6s) * 1.17);animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.83)}
.home-hero .point-growth>i{animation-duration:calc(var(--cosmos-twinkle-time,4.6s) * .92);animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.32)}
.home-hero .point-memories>i{animation-duration:calc(var(--cosmos-twinkle-time,4.6s) * 1.09);animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.72)}
.home-hero .hero-copy .eyebrow>span{animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.95)}
.home-hero .hero-coordinate>span:first-child{animation-duration:calc(var(--cosmos-twinkle-time,4.6s) * 1.2);animation-delay:calc(var(--cosmos-twinkle-time,4.6s) * -.48)}
.home-hero .hero-orbit::after{animation:cosmos-orbit-flow calc(var(--cosmos-orbit-time,44s) * 1.4) linear infinite,cosmos-point-twinkle calc(var(--cosmos-twinkle-time,4.6s) * 1.12) ease-in-out infinite;animation-delay:0s,calc(var(--cosmos-twinkle-time,4.6s) * -.26)}
.home-hero .hero-orbit.orbit-two::after{animation-direction:reverse,normal;animation-delay:-26s,calc(var(--cosmos-twinkle-time,4.6s) * -.64)}
@keyframes cosmos-point-twinkle{0%,100%{opacity:calc(1 - .76 * var(--cosmos-twinkle-depth,1))}50%{opacity:1}}
html[data-cosmos-paused] .home-hero :is(.orbit-star,.orbit-point>i,.hero-copy .eyebrow>span,.hero-coordinate>span:first-child),.view[hidden] .home-hero :is(.orbit-star,.orbit-point>i,.hero-copy .eyebrow>span,.hero-coordinate>span:first-child),.view[hidden] .home-hero .hero-orbit::after{animation-play-state:paused!important}
html[data-cosmos-static] .home-hero :is(.orbit-star,.orbit-point>i,.hero-copy .eyebrow>span,.hero-coordinate>span:first-child),html[data-cosmos-static] .home-hero .hero-orbit::after{animation:none!important}
@media(prefers-reduced-motion:reduce){.home-hero :is(.orbit-star,.orbit-point>i,.hero-copy .eyebrow>span,.hero-coordinate>span:first-child),.home-hero .hero-orbit::after{animation:none!important}}
