/*==========================================
  Desiwood — hero waveform canvas (public/frontend/js/dw-hero-wave.js)
  Sits above the hero's dark overlay (.hero::before, z-index 1, painted first)
  and below the content and scroll arrow (z-index 2). Absolutely positioned, so
  it never moves the layout; transparent until the first frame is drawn.
==========================================*/

.hero .hero-wave {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-out;
    /* Waves fade out towards both sides instead of running into the screen edges. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.hero .hero-wave.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero .hero-wave {
        transition: none;
    }
}
