/* =========================================================================
   Hero generative WebGL background (Three.js "anomalous matter" scene).
   The canvas sits behind the hero content; a soft radial + vertical vignette
   keeps the headline legible and blends the scene into the page.
   ========================================================================= */

.vs-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Decorative only — never intercept clicks, scroll or text selection.
       (The pointer-driven light listens on window, so this stays interactive.) */
    pointer-events: none;
    overflow: hidden;
    /* Fallback tint before/if WebGL initialises. */
    background: radial-gradient(60% 60% at 50% 42%, rgba(21, 151, 214, 0.10) 0%, transparent 70%);
}

.vs-hero-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Legibility + blend vignette layered over the canvas, still behind the text. */
.vs-hero-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(58% 55% at 50% 42%, transparent 0%, transparent 46%, rgba(12, 12, 10, 0.55) 100%),
        linear-gradient(180deg, rgba(12, 12, 10, 0.45) 0%, transparent 22%, transparent 62%, rgba(12, 12, 10, 0.92) 100%);
}

/* Ensure the hero copy renders above the canvas + its vignette. */
.vs-hero-inner {
    position: relative;
    z-index: 1;
}

.vs-hero .vs-scroll-cue {
    z-index: 2;
}

/* Slightly stronger bottom fade on small screens where the mesh sits closer. */
@media (max-width: 767px) {
    .vs-hero-canvas::after {
        background:
            /* gentle constant scrim so light body copy stays legible over the mesh */
            linear-gradient(180deg, rgba(12, 12, 10, 0.28) 0%, rgba(12, 12, 10, 0.28) 100%),
            radial-gradient(70% 60% at 50% 40%, transparent 0%, transparent 40%, rgba(12, 12, 10, 0.6) 100%),
            linear-gradient(180deg, rgba(12, 12, 10, 0.5) 0%, transparent 24%, transparent 55%, rgba(12, 12, 10, 0.96) 100%);
    }
}

/* Honour reduced-motion: the JS renders a single static frame; nothing else
   to disable here, but keep the canvas from implying motion via transitions. */
@media (prefers-reduced-motion: reduce) {
    .vs-hero-canvas canvas {
        transition: none !important;
    }
}
