.hero {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: min(833px, 100svh, calc(100vw * 9 / 16));
    margin-inline: auto;
    overflow: hidden;
    background-color: var(--color-bg);
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__video,
.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 50% 46%;
}

.hero__video,
.hero__img {
    object-fit: cover;
}

.hero__media--carousel .hero__img {
    transition: opacity 0.35s ease;
}

.hero__media--carousel .hero__img:not(.is-active) {
    opacity: 0;
    pointer-events: none;
}

.hero__media--carousel .hero__img.is-active {
    opacity: 1;
    z-index: 1;
}

.hero__controls {
    position: absolute;
    bottom: 40px;
    left: var(--page-align-x);
    z-index: 3;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: auto;
}

[data-gk-hero-video-section] .gk-hero__btn {
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 56px;
    border: 1.25px solid currentColor;
    color: var(--color-ash);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

[data-gk-hero-video-section] .gk-hero__btn[hidden] {
    display: none !important;
}

[data-gk-hero-video-section] .gk-hero__btn.is-active {
    color: var(--color-flare);
}

[data-gk-hero-video-section] .gk-hero__btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

[data-gk-hero-video-section] .gk-hero__btn:hover:not(.is-active) {
    background: rgba(var(--color-ash-rgb), 0.08);
}

[data-gk-hero-video-section] .gk-hero__btn.is-active:hover {
    background: rgba(var(--color-flare-rgb), 0.12);
}

[data-gk-hero-video-section] .gk-hero__icon-window {
    width: 36px;
    height: 36px;
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: none;
}

[data-gk-hero-video-section] .gk-hero__icon-row {
    display: flex;
    flex-direction: row;
    width: 72px;
    height: 36px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

[data-gk-hero-video-section] .gk-hero__icon-row > svg {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: block;
}

[data-gk-hero-video-section] .gk-btn-mute:not(.is-active) .gk-hero__icon-row {
    transform: translateX(0);
}

[data-gk-hero-video-section] .gk-btn-mute:not(.is-active):hover .gk-hero__icon-row {
    transform: translateX(-50%);
}

[data-gk-hero-video-section] .gk-btn-mute.is-active .gk-hero__icon-row {
    transform: translateX(-50%);
}

[data-gk-hero-video-section] .gk-btn-play:not(.is-active) .gk-hero__icon-row {
    transform: translateX(0);
}

[data-gk-hero-video-section] .gk-btn-play:not(.is-active):hover .gk-hero__icon-row {
    transform: translateX(-50%);
}

[data-gk-hero-video-section] .gk-btn-play.is-active .gk-hero__icon-row {
    transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
    [data-gk-hero-video-section] .gk-hero__icon-row {
        transition: none !important;
    }

    [data-gk-hero-video-section] .gk-btn-mute:not(.is-active):hover .gk-hero__icon-row {
        transform: translateX(0) !important;
    }

    [data-gk-hero-video-section] .gk-btn-play:not(.is-active):hover .gk-hero__icon-row {
        transform: translateX(0) !important;
    }
}

@media (max-width: 1023px) {
    .hero {
        height: min(833px, 100svh, calc(100vw * 16 / 9));
    }
}

@media (min-width: 1516px) {
    .hero__video,
    .hero__img {
        object-position: 50% 48%;
        transform: scale(1.12);
        transform-origin: center center;
    }
}

@media (min-width: 1024px) and (max-width: 1515px) {
    .hero__video,
    .hero__img {
        object-position: 50% 48%;
    }
}

@media (max-width: 768px) {
    .hero {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        height: min(100svh, calc(100vw * 16 / 9));
        max-height: none;
        aspect-ratio: auto;
    }

    .hero__controls {
        left: 24px;
        bottom: 40px;
    }

    [data-gk-hero-video-section] .gk-hero__btn:not(.is-active):active {
        color: var(--color-flare);
    }
}

[data-gk-hero-video-section] .about-hero__gradient,
[data-gk-hero-video-section] .careers-hero__gradient,
[data-gk-hero-video-section] .office-hero__gradient {
    display: none;
}

.hero-prev,
.hero-next {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.25px solid var(--color-forge);
    border-radius: 50%;
    color: var(--color-forge);
    background: transparent;
    cursor: pointer;
}

.hero-prev:hover,
.hero-next:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-prev:active,
    .hero-next:active {
        border-color: var(--color-flare);
        color: var(--color-flare);
    }
}
