.water {
    position: absolute;
    inset: 0 0 34%;
    pointer-events: none;
    background:
    radial-gradient(ellipse at 39% 52%, #b3effb24, transparent 48%),
    radial-gradient(ellipse at 68% 62%, #99eefe28, transparent 39%);
    animation: water-light 9s ease-in-out infinite alternate;
}

.water-edge {
    overflow: visible;
    position: absolute;
    left: -4%;
    width: 108%;
    height: 22%;
    bottom: 23.5%;
    pointer-events: none;
}

.wave-wash {
    animation: shore-wash 7s ease-in-out infinite;
}

.wave-surf {
    animation: shore-surf 7s ease-in-out -.38s infinite;
}

.desktop-wave {
    display: none;
}

.wave-foam {
    animation: shore-foam 7s ease-in-out -.72s infinite;
}

@media (orientation: portrait) {
    .water-edge {
        bottom: 31.5%;
    }
}

@media (orientation: landscape) {
    .water-edge {
        display: none;
    }

    .desktop-wave {
        display: block;
        position: absolute;
        overflow: visible;
        top: -2%;
        left: calc(var(--u) * -34);
        width: clamp(calc(var(--u) * 120), 15cqw, calc(var(--u) * 172));
        height: 104%;
        pointer-events: none;
    }

    .bank-wash {
        animation: bank-swell 7s ease-in-out infinite;
    }

    .bank-surf {
        animation: bank-swell 7s ease-in-out -.6s infinite;
    }

    .bank-foam {
        animation: bank-swell 7s ease-in-out -1.2s infinite;
    }

    .bank-crest {
        fill: none;
        stroke: #beedff;
        stroke-opacity: .48;
        stroke-width: 2;
        animation: bank-swell 7s ease-in-out -.85s infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .water,
    .wave-wash,
    .wave-surf,
    .wave-foam,
    .desktop-wave path {
        animation: none;
    }
}
