/* Entry loading screen: only visible when loader.js adds html.is-loading (never without JS). */
.site-loader{display:none}
html.is-loading .site-loader{display:flex;position:fixed;inset:0;z-index:9999;background:#030d17;align-items:center;justify-content:center;flex-direction:column;gap:24px;opacity:1;transition:opacity .5s ease;color:#fff;font-size:34px;font-weight:500;letter-spacing:-.04em}
html.is-loaded .site-loader{opacity:0;pointer-events:none}
.site-loader span{color:#83d1f7}
.site-loader-spinner{width:48px;height:48px;box-sizing:border-box;border:2px solid #1b2a38;border-top-color:#83d1f7;border-radius:50%;animation:site-loader-spin .8s linear infinite}
@keyframes site-loader-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html.is-loading .site-loader{transition:none}.site-loader-spinner{animation:none}}
/* Deferred scene backgrounds: only while loader.js sets html.bg-defer (never without JS). The first scene always loads; the rest load once
   loader.js marks them .bg-in near the viewport (scenes must be in the HTML). Gradients wait with the image; the background colour stays.
   No url() background may use !important. */
html.bg-defer main>section~section:not(.bg-in),html.bg-defer main>section~section:not(.bg-in)::before,html.bg-defer main>section~section:not(.bg-in)::after,html.bg-defer main>section~section:not(.bg-in) *,html.bg-defer main>section~section:not(.bg-in) ::before,html.bg-defer main>section~section:not(.bg-in) ::after{background-image:none!important}
