.hero {
    display: flex;
    min-height: calc(100vh + 81px);
    min-height: calc(100dvh + 81px);
    padding: 190px 0 42px;
    align-items: stretch;
    overflow: visible;
    color: #fff;
    background: #01182c;
    clip-path: inset(0 0 -220px 0);
}

.hero::after {
    position: absolute;
    inset: 0;
    bottom: -220px;
    content: "";
    pointer-events: none;
}

.hero__media {
    --sunset-brightness: 1;
    --sunset-saturation: 1;
    --sunset-sepia: 0;
    --sunset-overlay-opacity: 0;
    --hero-blur: 0px;

    position: absolute;
    z-index: 0;
    inset: 0;
    bottom: -220px;
    background:
        #12394d
        url("../images/hero/gerance-gpc-sa.webp")
        center / auto 94%
        no-repeat;
    backface-visibility: hidden;
    filter:
        brightness(var(--sunset-brightness))
        saturate(var(--sunset-saturation))
        sepia(var(--sunset-sepia))
        blur(var(--hero-blur));
    transition: filter 950ms cubic-bezier(.22, .61, .36, 1);
    will-change: filter;
}

.hero__media::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: var(--sunset-overlay-opacity);
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 38%, rgb(255 179 91 / 52%), transparent 32%),
        linear-gradient(180deg, rgb(255 126 58 / 27%), rgb(128 42 55 / 34%));
    transition: opacity 950ms cubic-bezier(.22, .61, .36, 1);
}

.hero::after {
    z-index: 1;
    background: transparent;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(calc(100% - 96px), 1580px);
    max-width: 1580px;
    flex-direction: column;
    justify-content: space-between;
}

.hero__content {
    max-width: 790px;
}

.hero__title {
    margin-bottom: 25px;
    color: #fff;
    font-size: clamp(3.2rem, 5.3vw, 5.6rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-align: left;
    transform: translate3d(0, 0, 0);
    transition: transform 950ms cubic-bezier(.22, .61, .36, 1);
    will-change: auto;
}

.hero__title span {
    color: #1187e9;
}

.hero__title .hero__floating-word {
    display: inline-block;
    color: #fff;
}

.hero__text {
    max-width: 690px;
    margin-bottom: 30px;
    color: rgb(255 255 255 / 92%);
    font-size: clamp(1rem, 1.3vw, 1.27rem);
    line-height: 1.55;
}

.hero__text,
.hero__actions {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 760ms ease,
        transform 950ms cubic-bezier(.22, .61, .36, 1);
    will-change: auto;
}

.hero__actions {
    transition-delay: 40ms;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero__actions .btn {
    min-height: 68px;
    padding-inline: 27px;
    border-radius: 9px;
    font-size: 1rem;
}

.hero__actions .btn i {
    font-size: 1.65rem;
}

@media (max-width: 1050px) {
    .hero {
        padding-top: 150px;
    }

    .hero__media {
        background-position: 62% center;
    }

    .hero__container {
        width: min(100% - 40px, 900px);
    }

}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 135px 0 35px;
        overflow: hidden;
        clip-path: none;
    }

    .hero__media {
        bottom: 0;
        background-position: 68% center;
    }

    .hero::after {
        bottom: 0;
        background: transparent;
    }

    .hero__container {
        position: relative;
        width: min(100% - 28px, 600px);
    }

    .hero__title {
        font-size: clamp(2.65rem, 12.8vw, 4rem);
    }

    .hero__text br {
        display: none;
    }

    .hero__actions {
        display: grid;
    }

    .hero__actions .btn {
        min-height: 58px;
        padding: 13px 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hero__title .hero__floating-word {
        color: #fff;
        animation: none;
        transform: none;
        will-change: auto;
    }

    .hero__title {
        transform: none;
        transition: none;
        will-change: auto;
    }

    .hero__text,
    .hero__actions {
        opacity: 1;
        transition: none;
        transform: none;
        will-change: auto;
    }

    .hero__media {
        filter: none;
        transition: none;
        will-change: auto;
    }

    .hero__media::after {
        opacity: 0;
        transition: none;
    }
}
