#home-page .hero-3d {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 120px 0 64px;
    overflow: visible;
    background: #000;
}

@media (min-width: 768px) {
    #home-page .hero-3d {
        justify-content: space-around;
        padding: 120px 0 80px;
    }
}

.hero-3d__title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 48px;
    opacity: 0;
}

@media (min-width: 768px) {
    .hero-3d__title {
        padding: 48px 0 0;
    }
}

.hero-3d__title .logo {
    width: 200px;
}

@media (min-width: 400px) {
    .hero-3d__title .logo {
        width: 260px;
    }
}

@media (min-width: 576px) {
    .hero-3d__title .logo {
        width: 300px;
    }
}

@media (min-width: 768px) {
    .hero-3d__title .logo {
        width: 380px;
    }
}

@media (min-width: 992px) {
    .hero-3d__title .logo {
        width: 480px;
    }
}

@media (min-width: 1200px) {
    .hero-3d__title .logo {
        width: 560px;
    }
}

@media (min-width: 1400px) {
    .hero-3d__title .logo {
        width: 640px;
    }
}

.hero-3d__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: clip;
    opacity: 0;
    perspective: 800px;
    transform-style: preserve-3d;
}

@media (min-width: 768px) {
    .hero-3d__stage {
        padding: 80px 0;
    }
}

.hero-3d__carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 33vh;
    background: transparent;
    transform-style: preserve-3d;
    will-change: transform;
}

@media (min-width: 768px) {
    .hero-3d__carousel {
        width: 25%;
    }
}

.hero-3d__card {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 4 / 5;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    text-decoration: none;
    color: inherit;
}

.hero-3d__card video,
.hero-3d__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: clip;
    border-radius: 16px;
    backface-visibility: hidden;
    background: #000;
}

@media (min-width: 768px) {
    .hero-3d__card video,
    .hero-3d__card img {
        border-radius: 32px;
    }
}

.hero-3d__card img.is-contain {
    object-fit: contain;
    padding: 12%;
}

.hero-3d__card img.is-light {
    background: #f3f3f3;
}

.hero-3d__card img.is-white {
    background: #fff;
}

.hero-3d::before,
.hero-3d::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    z-index: 2;
    width: 10vw;
    height: 110%;
}

.hero-3d::before {
    left: 0;
    background-image: linear-gradient(
        90deg,
        #000 0%,
        #000000bc 19%,
        #0000008a 34%,
        #00000061 47%,
        #00000047 56.5%,
        #00000031 65%,
        #00000020 73%,
        #00000013 80.2%,
        #0000000b 86.1%,
        #00000005 91%,
        #00000002 95.2%,
        #00000001 98.2%,
        #0000 100%
    );
}

.hero-3d::after {
    right: 0;
    background-image: linear-gradient(
        270deg,
        #000 0%,
        #000000bc 19%,
        #0000008a 34%,
        #00000061 47%,
        #00000047 56.5%,
        #00000031 65%,
        #00000020 73%,
        #00000013 80.2%,
        #0000000b 86.1%,
        #00000005 91%,
        #00000002 95.2%,
        #00000001 98.2%,
        #0000 100%
    );
}

@media (prefers-reduced-motion: reduce) {
    .hero-3d__title,
    .hero-3d__stage {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-3d__carousel {
        width: 100%;
        height: auto;
        display: flex;
        gap: 16px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
        transform: none !important;
        transform-style: flat;
    }

    .hero-3d__card {
        position: relative;
        flex: 0 0 min(52vw, 220px);
        transform: none !important;
    }
}
