/* Opacity belongs to the wrapper; canvas draws the two independent depth layers. */
.hero-particles { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
#space-particles-canvas { display: block; width: 100%; height: 100%; }
@keyframes hero-canvas-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll(root block)) and (animation-range: 0px 1px) {
        .hero-particles {
            animation: hero-canvas-fade auto linear both;
            animation-timeline: scroll(root block);
            animation-range: var(--hero-scroll-start, 0px) var(--hero-scroll-end, 560px);
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-particles { animation: none; opacity: 1; transform: none; }
}
