/* Hero background */

.hero__bg{
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
}

.hero__bg-parallax{
    position:absolute;
    inset:0;
    will-change:transform;
}

.hero__bg-image{
    position:absolute;
    top:0;
    bottom:5%;
    right:-6%;
    width:80%;
    aspect-ratio:1691/930;
    margin:auto 0;
    background:url("../img/hero-bg.webp?v=20261127-4") center/cover no-repeat;

    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 16%, #000 90%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
    -webkit-mask-composite:source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 16%, #000 90%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
    mask-composite:intersect;

    opacity:0;
    animation:heroSettle 2.6s cubic-bezier(.16,1,.3,1) .1s forwards;
    will-change:transform, opacity;
}

.hero__bg-fade{
    position:absolute;
    inset:0;
    background:
        linear-gradient(100deg, var(--bg) 0%, rgba(8,8,8,.86) 30%, rgba(8,8,8,.4) 46%, transparent 62%),
        linear-gradient(to top, var(--bg) 0%, transparent 18%);
}

@keyframes heroSettle{
    from{
        opacity:0;
        transform:scale(1.045) translateY(10px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

@media (max-width:1200px){
    .hero__bg-image{
        right:-10%;
        width:78%;
    }
}

@media (max-width:992px){
    .hero__bg-image{
        top:auto;
        bottom:0;
        left:-9%;
        right:-9%;
        width:auto;
        margin:0;
    }

    .hero__bg-fade{
        background:linear-gradient(to top, var(--bg) 0%, transparent 12%);
    }
}

@media (max-width:768px){
    .hero__bg-image.has-mobile-bg{
        left:50%;
        right:auto;
        bottom:-28px;
        width:min(112vw,640px);
        margin-left:calc(min(112vw,640px) / -2);
        aspect-ratio:1128/1394;
        background-image:url("../img/hero-bg-mobile.webp?v=20261127-4");

        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
            linear-gradient(180deg, transparent 0%, #000 36%, #000 88%, transparent 100%);
        mask-image:
            linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%),
            linear-gradient(180deg, transparent 0%, #000 36%, #000 88%, transparent 100%);
    }
}

@media (prefers-reduced-motion:reduce){
    .hero__bg-image{
        animation:none;
        opacity:1;
        transform:none;
    }
}

.hero__bg-image picture{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity 1.2s ease-in-out;
}

.hero__bg-image picture.is-active{
    opacity:1;
}

.hero__bg-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

@media (prefers-reduced-motion:reduce){
    .hero__bg-image picture{
        transition:none;
    }
}
