/* Artwork stays outside main's page-snap transform; page content keeps native resolution. */
.motion-frame{position:absolute;inset:0;width:100%;height:100%;border:0;transition:opacity 1.05s ease;will-change:opacity}
body.has-site-background{isolation:isolate}
body.has-site-background>.site-background{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;z-index:-1;pointer-events:none;overflow:hidden;background:var(--bg)!important;isolation:isolate;opacity:.65}
.site-background:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 43%,var(--bg) 0%,transparent 76%);opacity:.72}
body.has-site-background .home-panel{background:transparent}
body.has-site-background .hero{justify-content:center}
.background-fallback{background:radial-gradient(ellipse at 78% 30%,#718fbe44,transparent 65%)!important}
@media(max-width:760px){body.has-site-background>.site-background{opacity:.45}}
@media(prefers-reduced-motion:reduce){.motion-frame{transition:none}}

/* Site navigation floats over the same continuous artwork. */
body.has-site-background[data-page]>header{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom-color:transparent;box-shadow:none}
body.has-site-background>.appearance-dock{background:transparent;box-shadow:none}
body.has-site-background :is(header .identity,header .main-nav a,header .site-menu-toggle,.appearance-dock>.effect-arrow,.appearance-panel>summary){text-shadow:0 1px 12px var(--bg)}

/* Interpolate theme colors without abruptly inverting an already visible canvas. */
@property --bg{syntax:"<color>";inherits:true;initial-value:#05070a}
@property --ink{syntax:"<color>";inherits:true;initial-value:#edf0f5}
@property --muted{syntax:"<color>";inherits:true;initial-value:#939ca9}
@property --line{syntax:"<color>";inherits:true;initial-value:#edf0f51c}
html[data-site-style]{transition:--bg 1.2s ease,--ink 1.2s ease,--muted 1.2s ease,--line 1.2s ease}
body.has-site-background{transition:none}
html[data-site-style] body.has-site-background>.site-background{mix-blend-mode:normal}
html[data-site-style] .site-background .motion-frame{filter:none;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){html[data-site-style]{transition:none}}
