.hero-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    mix-blend-mode: overlay;
    opacity: 0.2;
}

#hero {
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    min-height: 100vh;
}

#hero .button-container {
    padding-right: 25%;
}

#hero .video-container {
    width: 100%;
    aspect-ratio: 16/9;
}

#hero .video-container .img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.1);
    transition: all 3s var(--cubic-bezier);
    border: none;
}

body.tvc-complete #hero .video-container .img-link {
    transform: scale(1);
}

#hero .video-container .img-link .play-button {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
    transition: filter 0.2s, transform 5s var(--cubic-bezier);
}

body.tvc-complete #hero .video-container .img-link .play-button  {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#hero .video-container .img-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.5);
}

#hero .video-container .img-link .vidalytics-embed {
    border: solid 4px white;
}

#hero .video-container .img-link .vidalytics-embed .AspectRatioSkeleton__wrapper {
    padding-top: calc(56.25% + 4px) !important;
}

#hero .video-container .img-link img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero .video-container .button {
    position: absolute;
    bottom: calc(var(--spacing-m) * -1);
    right: calc(var(--spacing-s) * -1);
}


#hero .trustpilot-container img {
    height: var(--fs-l);
    max-width: 100%;
}

@media screen and (max-width: 1350px) {
    #hero .button-container {
        padding-right: 10%;
    }
}

@media screen and (max-width: 1100px) {
    #hero .button-container {
        padding-right: 0;
    }
}

@media screen and (max-width: 999px) {
    #hero .hero-middle {
        grid-template-columns: 1fr 1fr;
    }

    #hero .button-container {
        order: 3;
    }

    #hero .video-container {
        grid-column: span 2;
        order: 1;
        max-height: 400px;
    }

    #hero .checklist-container {
        order: 2;
    }
}

@media screen and (max-width: 749px) {
    #hero {
        --header-height: 60px;
        padding-bottom: 0;
    }

    #hero .hero-middle {
        grid-template-columns: 1fr;
    }
    
    #hero .mb-xl {
        margin-bottom: var(--spacing-m);
    }

    #hero .gap-xl {
        gap: var(--spacing-l);
    }

    #hero .video-container {
        grid-column: span 1;
        margin: 0 auto;
    }

    #hero .checklist {
        font-size: var(--fs-xs);
    }

    #hero .checklist li {
        margin-bottom: 0.7em;
    }

    #hero .button-container {
        margin: 0 auto;
        padding-right: 0;
        gap: var(--spacing-s);
    }

    #hero .button-container .icon {
        display: none;
    }
}

/* –––––––––––––––––––––––––––––– STATS ––––––––––––––––––––––––––––––––– */

#stats .image-col img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.2s var(--cubic-bezier);
}

#stats .image-col img.remove:not(:first-child) {
    opacity: 0;
}

@media screen and (max-width: 749px) {
    #stats > .max-container {
        justify-items: center;
    }

    #stats .image-col {
        position: relative;
        width: 100%;
        height: 50vh;
    }
}

@media screen and (min-width: 750px) {
    #stats {
        min-height: 100vh;
        position: relative;
    }

    #stats > .max-container > div {
        position: sticky;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100%;
    }

    #stats .col-l {
        transform: translateY(calc(-1 * 15vh * var(--p-ratio) + 15vh * 0.4));
    }

    #stats .image-col {
        position: absolute;
        right: 0;
        top: 0;
        width: 50%;
        height: 100%;
    }
}

/* –––––––––––––––––––––––––––––– INNEHALL ––––––––––––––––––––––––––––––––– */
#innehall .content-col .content-list {
    list-style: none;
    padding-left: var(--spacing-3xl);
}

#innehall .content-col .content-list li {
    position: relative;
}

#innehall .content-col .content-list li:not(:first-child) {
    margin-top: var(--spacing-m);
}

#innehall .content-col .content-list li::before {
    content: '';
    position: absolute;
    right: calc(100% + var(--spacing-m));
    top: 0.2em;
    width: 100vw;
    height: 2px;
    background-color: var(--c-accent);
}

/* –––––––––––––––––––––––––––––– COMMUNITY ––––––––––––––––––––––––––––––––– */
#community img {
    width: 100%;
    min-height: 200px;
    aspect-ratio: 16/5;
    object-fit: cover;
    object-position: center 15%;
    filter: saturate(0.5);
}

@media screen and (max-width: 749px) {
    #community {
        padding: var(--spacing-m) 0;
    }
}

/* –––––––––––––––––––––––––––––– YOUTUBE ––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 749px) {
    #youtube .text-right {
        text-align: left !important;
    }
}


/* ––––––––––––––––––––––––––––– MACY MASONRY TESTIMONIALS ––––––––––––––––––––––––––––– */
.masonry-grid {
    width: 100%;
    position: relative;
}

.masonry-item {
    margin-bottom: 0;
    break-inside: avoid;
    box-sizing: border-box;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: box-shadow 300ms ease;
    object-fit: cover;
    max-width: 100%;
}

.masonry-sizer {
    display: none;
}

@media screen and (min-width: 768px) {
    .gallery-title {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 640px) {
    .gallery-container {
        padding: 2rem 1rem;
    }
}