.home {
    .home-sections {
        position: relative;
        overflow: hidden;

        > .floating-elements {
            z-index: 1;
        }
        background-image: url('../images/bg-texture.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;

        @media (hover: none) and (pointer: coarse) {
            background-image: none;
            overflow: clip;

            &::before {
                content: '';
                display: block;
                position: sticky;
                top: 0;
                width: 100%;
                height: 100lvh;
                margin-bottom: -100lvh;
                pointer-events: none;
                background: url('../images/bg-texture.webp') center / cover no-repeat;
            }
        }
    }

    .hero-slider {
        position: relative;
        width: 100%;

        .swiper-wrapper {
            align-items: stretch;
        }

        .hero-slide {
            position: relative;
            width: 100%;
            height: auto;
            background-color: var(--hero-mobile-bg, var(--color-brown));
            z-index: 0;

            @media (min-width: 960px) {
                background-color: transparent;
            }

            &.swiper-slide-active {
                z-index: 1;
            }

            &:not(.swiper-slide-active) {
                opacity: 0 !important;
            }

            &:before {
                content: '';
                position: absolute;
                inset: 0;
                z-index: 2;
                background-color: rgba(0, 0, 0, 0.5);
                pointer-events: none;

                @media (min-width: 960px) {
                    display: none;
                }
            }
        }

        .hero-slide__layer {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform-origin: center center;
            will-change: transform, filter;

            @media (min-width: 960px) {
                position: relative;
                top: auto;
                left: auto;
                height: auto;
                aspect-ratio: 5 / 2;
            }
        }

        .hero-slide__layer--bg {
            z-index: 0;
        }

        .hero-slide__layer--fg {
            z-index: 1;
            pointer-events: none;

            @media (min-width: 960px) {
                position: absolute;
                top: 0;
                left: 0;
            }
        }

        .hero-slide__layer--video {
            display: block;
        }

        .hero-slide-content {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: center;
            align-content: center;
            justify-content: center;
            gap: 16px;
            text-align: center;
            padding: 100px 32px;

            @media (min-width: 960px) {
                padding: 100px 24px;
                display: block;
                align-content: baseline;
            }

            .btn {
                font-family: var(--font-trade-gothic-next);
                background-color: var(--color-red);
                color: var(--color-white);
                text-transform: uppercase;
                min-width: 217px;
                padding: 0 16px;
                height: 44px;
                display: inline-flex;
                justify-content: center;
                align-items: center;

                &.white {
                    background-color: var(--color-white);
                    color: var(--color-red);
                }
            }

            &.slide-1-content {
                img {
                    width: 90%;
                    max-width: 468px;
                    margin: auto;
                }
                p {
                    margin-top: 16px;
                    color: var(--color-white);
                    font-family: var(--font-modestolite);
                    text-transform: uppercase;
                    margin-bottom: 24px;
                }

                @media (min-width: 960px) {
                    position: absolute;
                    z-index: 3;
                    width: 30%;
                    max-width: 500px;
                    top: 5%;
                    left: initial;
                    right: 21%;
                    transform: translate(0%, 10%);
                }
            }

            &.slide-2-content {
                p {
                    color: var(--color-white);
                    font-family: var(--font-modestolite);
                    text-transform: uppercase;
                    font-size: 2.75rem;
                    line-height: normal;
                    margin-bottom: 16px;
                }

                @media (min-width: 960px) {
                    position: absolute;
                    z-index: 3;
                    width: 30%;
                    max-width: 500px;
                    top: 28%;
                    left: 11%;
                    transform: translate(0%, 10%);

                    p {
                        font-size: 3.125rem;
                    }
                }
            }

            &.slide-3-content {
                p {
                    color: var(--color-white);
                    font-family: var(--font-modestolite);
                    text-transform: uppercase;
                    font-size: 2.75rem;
                    line-height: normal;
                    margin-bottom: 16px;
                }

                @media (min-width: 960px) {
                    position: absolute;
                    z-index: 3;
                    width: 30%;
                    max-width: 500px;
                    top: 50%;
                    left: 50%;
                    text-align: center;
                    transform: translate(-50%, -50%);

                    p {
                        font-size: 3.125rem;
                    }
                }
            }
        }

        .swiper-pagination {
            position: absolute;
            bottom: 5px;
            z-index: 3;
            margin-top: 16px;

            .swiper-pagination-bullet {
                background-color: var(--color-white);
                width: 10px;
                height: 10px;
            }
        }
    }

    .home-content {
        position: relative;
        overflow: hidden;
        padding-top: 85px;
        padding-bottom: 130px;

        @media (min-width: 768px) {
            padding-top: 170px;
            padding-bottom: 350px;
        }

        &:before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            background-color: var(--color-brown);
        }

        &:after {
            content: '';
            position: absolute;
            top: 0;
            left: 96%;
            width: 340%;
            height: 320px;
            background-color: var(--color-brown);
            z-index: 0;
            transform: translate(-50%, -14%) rotate(-45deg);
        }

        .container {
            position: relative;
            z-index: 2;

            h1 {
                color: var(--color-red);
                text-align: center;
            }

            .oversized-body {
                color: #6a4b27;
                max-width: 900px;
                text-align: justify;
                margin: 100px auto 50px;
                text-transform: lowercase;

                @media (min-width: 768px) {
                    margin: 200px auto 100px;
                }

                &.read-on-scroll .word {
                    color: #6a4b27;
                }
            }

            .bottle-pour {
                position: relative;
                width: min(100%, 1200px, calc(90vh * 2000 / 2400));
                aspect-ratio: 2000 / 2400;
                margin: 0 auto;

                .bottle-pour__zoom {
                    width: 100%;
                    height: 100%;
                    transform-origin: 50% 50%;
                }

                .bottle-pour__canvas {
                    display: block;
                    width: 100%;
                    height: 100%;
                }

                .bottle-pour__text {
                    position: absolute;
                    right: 0%;
                    left: initial;
                    top: 80%;
                    width: 31%;
                    opacity: 0;
                    transition: opacity 0.6s ease;
                    transform: scale(0.6);

                    @media (min-width: 600px) {
                        top: 76%;
                    }

                    &.is-visible {
                        opacity: 1;
                    }

                    p {
                        color: var(--color-olive);
                        font-family: var(--font-gt-sectra);
                        font-size: 1.25rem;
                        margin-bottom: 20px;
                        display: none;

                        @media (min-width: 600px) {
                            margin-bottom: 36px;
                            display: block;
                        }

                        @media (min-width: 768px) {
                            font-size: 1.5rem;
                            display: block;
                        }
                    }

                    .cta-link {
                        display: inline-block;
                    }
                }
            }

            .enjoy {
                color: var(--color-red);
                text-align: center;
                display: block;
                line-height: 0.94;
                margin-top: 50px;

                @media (min-width: 768px) {
                    margin-top: 100px;
                }
            }
        }
    }

    .home-bottom {
        position: relative;

        &:before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            background-color: var(--color-richblack);
        }

        .container {
            position: relative;
            z-index: 2;

            .merch {
                transform: translateY(-12vw);
                position: relative;
                z-index: 3;

                .feature {
                    color: var(--color-yellow);
                    text-align: center;

                    a:hover {
                        text-decoration: underline;
                        text-underline-offset: 0.1em;
                    }
                }

                .product-slider {
                    width: 100vw;
                    margin-left: calc(-50vw + 50%);
                    padding-bottom: 64px;

                    .swiper-wrapper {
                        align-items: flex-end;
                    }

                    .swiper-slide--stagger {
                        margin-bottom: 60px;
                    }

                    .swiper-pagination {
                        bottom: 0;

                        .swiper-pagination-bullet {
                            background-color: color-mix(in srgb, var(--color-red) 40%, var(--color-richblack));
                            width: 14px;
                            height: 14px;
                            margin: 0 6px;
                            opacity: 1;

                            &.swiper-pagination-bullet-active {
                                background-color: var(--color-red);
                                opacity: 1;
                            }
                        }
                    }
                }

                .product {
                    position: relative;

                    .product-image {
                        width: 100%;
                        aspect-ratio: 1;
                        object-fit: cover;
                    }

                    .product-info {
                        margin: 0 auto;
                        width: 200px;
                        text-align: center;
                    }

                    .product-name {
                        color: var(--color-white);
                        font-family: var(--font-modestolite);
                        margin-bottom: 4px;
                        font-size: 1.25rem;

                        @media (min-width: 960px) {
                            font-size: 1.5rem;
                        }
                    }
                }
            }

            .ctas {
                max-width: 1200px;
                margin: 50px auto 100px;

                @media (min-width: 960px) {
                    margin: 0 auto 100px;
                }

                .cta {
                    margin-bottom: 72px;
                    @media (min-width: 960px) {
                        display: flex;
                        justify-content: space-evenly;
                        align-items: center;
                    }

                    .text {
                        max-width: 500px;
                        display: flex;
                        flex-direction: column;
                        gap: 24px;
                        margin: 0 auto 36px;

                        @media (min-width: 960px) {
                            width: 300px;
                            gap: 48px;
                        }

                        h3 {
                            color: var(--color-yellow);
                        }
                        p {
                            color: var(--color-olive);
                            font-family: var(--font-gt-sectra);
                            font-size: 1.5rem;
                        }
                    }

                    .media {
                        width: 60%;
                        margin: auto;

                        @media (min-width: 960px) {
                            width: auto;
                            max-width: 450px;
                        }
                    }

                    video {
                        transform: rotate(-5deg);
                    }

                    &.text-right {
                        flex-direction: row-reverse;
                    }
                }
            }

            .oversized-body {
                color: var(--color-olive);
                max-width: 900px;
                text-align: justify;
                margin: 50px auto 0;
                text-transform: lowercase;

                @media (min-width: 960px) {
                    margin: 200px auto 0;
                }

                &.read-on-scroll .word {
                    color: var(--color-olive);
                }
            }
        }

        padding-bottom: 100px;
    }
}
