/* Animate the home hero background without a separate colour overlay. */
@property --kvcf-flow-dark{syntax:"<color>";inherits:false;initial-value:#02050b}
@property --kvcf-flow-blue{syntax:"<color>";inherits:false;initial-value:#112c40}
@property --kvcf-flow-teal{syntax:"<color>";inherits:false;initial-value:#0a2029}
@property --kvcf-flow-light{syntax:"<color>";inherits:false;initial-value:#20283e}
@property --kvcf-flow-mid{syntax:"<percentage>";inherits:false;initial-value:35%}
body.site-modern.home-modern{background:#0c1425}
body.site-modern.home-modern #p-home{background:#fff}
#p-home .nh-hero{
 background-color:#0c1425;
 background-image:linear-gradient(180deg,#0c1425 0%,#0c1425 18%,var(--kvcf-flow-dark) var(--kvcf-flow-mid),var(--kvcf-flow-teal) 59%,var(--kvcf-flow-blue) 79%,var(--kvcf-flow-light) 100%);
 animation:kvcf-root-colour-flow 32s ease-in-out infinite;
}
/* Broad, continuously interpolated colour transitions; the painted area stays fixed. */
@keyframes kvcf-root-colour-flow{
 0%,100%{--kvcf-flow-dark:#02050b;--kvcf-flow-teal:#091c27;--kvcf-flow-blue:#132d43;--kvcf-flow-light:#1c2a3b;--kvcf-flow-mid:35%}
 33%{--kvcf-flow-dark:#04070d;--kvcf-flow-teal:#0b1c28;--kvcf-flow-blue:#091722;--kvcf-flow-light:#12333b;--kvcf-flow-mid:48%}
 67%{--kvcf-flow-dark:#01040a;--kvcf-flow-teal:#101e2d;--kvcf-flow-blue:#14273b;--kvcf-flow-light:#0b1d2b;--kvcf-flow-mid:30%}
}
/* Keep the home content sections white. */
:where(body.home-modern #p-home > :not(.nh-hero):not(canvas):not(button)){background-color:#fff}
body.site-modern.home-modern:has(.nh-motion-toggle[aria-pressed="true"]) #p-home .nh-hero{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#p-home .nh-hero{animation:none}}
/* Existing stars/lighting are separate and unchanged. This wrapper paints no colour. */
#p-home .nh-hero-background{position:absolute;inset:0;z-index:0;overflow:hidden;clip-path:inset(0);contain:paint;isolation:isolate;pointer-events:none}
#p-home #nh-hero-atmosphere{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
