/* Two moving fields share one ground from the masthead to the footer. The
   reading surfaces keep their own paper/ink colours in both themes. */
.studio-home:has(.cobalt-atmosphere) {isolation:isolate}
.cobalt-atmosphere {
  --sky:36 75 197;--violet:115 90 213;--ice:37 124 164;
  position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  contain:strict;background:var(--studio-bg);
}
:root[data-theme=dark] .cobalt-atmosphere {background:var(--studio-optic-field)}
@media (prefers-reduced-motion:no-preference) {
  :root[data-assembly=pending] .cobalt-atmosphere {opacity:0}
  :root[data-assembly=running] .cobalt-atmosphere {animation:cobalt-arrive 2s ease-in-out both}
}
@keyframes cobalt-arrive {from{opacity:0}to{opacity:1}}
.cobalt-atmosphere i,.cobalt-atmosphere b {position:absolute;inset:-9%;pointer-events:none}
.cobalt-atmosphere i {
  background:radial-gradient(ellipse 57% 54% at 82% 34%,rgb(var(--sky)/.17),transparent 81%),
    radial-gradient(ellipse 39% 71% at 15% 83%,rgb(var(--violet)/.115),transparent 80%);
  animation:cobalt-breathe 27s ease-in-out infinite alternate;
}
.cobalt-atmosphere b {
  background:radial-gradient(ellipse 48% 23% at 65% 77%,rgb(var(--ice)/.12),transparent 88%);
  animation:cobalt-tide 34s ease-in-out infinite alternate;
}
:root[data-theme=dark] .cobalt-atmosphere i {
  background:radial-gradient(ellipse 57% 54% at 82% 34%,color-mix(in srgb,var(--studio-tint) 16%,transparent),transparent 81%);
}
:root[data-theme=dark] .cobalt-atmosphere b {
  background:radial-gradient(ellipse 48% 23% at 65% 77%,color-mix(in srgb,var(--studio-accent) 3%,transparent),transparent 88%);
}
@keyframes cobalt-breathe {from{transform:translate3d(-3%,-1%,0)}to{transform:translate3d(4%,3%,0)}}
@keyframes cobalt-tide {from{transform:translate3d(4%,3%,0)}to{transform:translate3d(-4%,-3%,0)}}
:root:not([data-look-bg]) .studio-home:has(.cobalt-atmosphere) .studio-hero {
  background:linear-gradient(105deg,color-mix(in srgb,var(--studio-bg) 65%,transparent),transparent 80%);
}
:root[data-theme=dark]:not([data-look-bg]) .studio-home:has(.cobalt-atmosphere) .studio-hero {
  background:transparent;
}
:root:is(:not([data-look-bg]),[data-look-bg=aurora]) .studio-home:has(.cobalt-atmosphere) :is(.home-adyon,.home-contact) {
  background:color-mix(in srgb,var(--studio-tint) 49%,transparent);
}
:root:is(:not([data-look-bg]),[data-look-bg=aurora]) .studio-home:has(.cobalt-atmosphere) .walkthroughs {
  background:color-mix(in srgb,var(--walk-band) 69%,transparent);
}
:root:is(:not([data-look-bg]),[data-look-bg=aurora]) .studio-home:has(.cobalt-atmosphere) :is(.studio-header.site-header,.studio-footer) {
  background:var(--atmosphere-header,color-mix(in srgb,var(--studio-bg) 74%,transparent));
}
:root[data-theme=dark] .studio-home {--atmosphere-header:var(--studio-head-field)}
:root[data-look-bg]:not([data-look-bg=aurora]) .cobalt-atmosphere {display:none}
.cobalt-atmosphere[data-paused] :is(i,b) {animation-play-state:paused}


@media (prefers-reduced-motion:reduce) {
  .cobalt-atmosphere :is(i,b) {animation:none}
  :root[data-theme=dark] .cobalt-atmosphere :is(i,b) {display:none}
}
@media print,(forced-colors:active) {.cobalt-atmosphere {display:none}}
