.site-hero {
    position: absolute;
    inset: 0;
    background-color: var(--color-background-dark);
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Fade hero into page background */
.site-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--hero-fade-height);

    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-background-dark) 100%
    );

    pointer-events: none;
}

/* Video support */
.site-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*hero fade*/
.site-hero {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 75%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 75%,
        transparent 100%
    );
}

@media(max-width: 850px) { :root { --hero-height: 320px; } }
@media(prefers-reduced-motion: reduce) { .site-hero__video { display: none; } }
