.stackedScrollSection {
    --stack-top: 0px;
    position: relative;
    overflow: visible;
    background: #ededed;
    color: #080808;
}

.stackedScrollSection__track {
    position: relative;
    min-height: 100svh;
}

.stackedScrollSection__stage {
    position: sticky;
    top: var(--stack-top);
    height: calc(100svh - var(--stack-top));
    overflow: hidden;
}

.stackedScrollSection__layout {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding-top: clamp(30px, 5vh, 70px);
    padding-bottom: clamp(24px, 4vh, 55px);
}

.stackedScrollSection__header {
    flex: 0 0 auto;
    text-align: center;
}

.stackedScrollSection__title {
    margin: 0;
    font-size: clamp(2.3rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.05em;
    margin-bottom: 3rem;
}

.stackedScrollSection__description {
    margin-top: 20px;
    font-size: clamp(1.15rem, 2vw, 2rem);
    line-height: 1.25;
    text-align: center;
}

    .stackedScrollSection__description .line {
        display: block;
        width: 55px;
        height: 3px;
        background: #000;
        margin: 12px auto 0;
        border-radius: 2px;
    }

    .stackedScrollSection__title p,
    .stackedScrollSection__description p {
        margin-bottom: 0;
    }

.stackedScrollSection__deck {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin: 20px 0;
}

.stackedScrollCard {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: translate3d(0, 105%, 0);
    transform-origin: center top;
    will-change: transform;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stackedScrollCard:first-child {
        transform: translate3d(0, 0, 0);
    }

    .stackedScrollCard.is-active {
        pointer-events: auto;
    }

.stackedScrollCard__inner {
    position: relative;
    width: 75%;
    height: 100%;
    overflow: hidden;
    background: #111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

    .stackedScrollCard__inner picture,
    .stackedScrollCard__media {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
    }

.stackedScrollCard__media {
    object-fit: cover;
}

.stackedScrollCard__content {
    position: absolute;
    bottom: clamp(28px, 6vw, 80px);
    left: clamp(25px, 5vw, 75px);
    z-index: 2;
    width: min(520px, calc(100% - 50px));
    color: #fff;
}

.stackedScrollCard__number {
    display: block;
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.stackedScrollCard__title {
    margin: 0;
    font-size: clamp(2.4rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.05em;
}

    .stackedScrollCard__title p,
    .stackedScrollCard__description p:last-child {
        margin-bottom: 0;
    }

.stackedScrollCard__description {
    max-width: 430px;
    margin-top: 20px;
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    line-height: 1.4;
}

.stackedScrollCard__button {
    display: inline-flex;
    margin-top: 25px;
    padding: 12px 22px;
    color: #080808;
    background: #f4d400;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .stackedScrollCard__media {
        object-fit: cover;
        object-position: left center;
    }
    .stackedScrollSection {
        padding: 25px 0;
        overflow: hidden;
    }
    .stackedScrollSection__title {
        font-size: 20px;
        margin-bottom: 0rem;
    }
    .stackedScrollSection__description {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
    }
        .stackedScrollSection__description .line {
            width: 30px;
        }
    .stackedScrollCard__inner {
        width: 90%;
    }
    .stackedScrollSection__track {
        height: auto !important;
        min-height: 0;
    }

    .stackedScrollSection__stage {
        position: relative;
        top: auto;
        height: auto !important;
        overflow: visible;
    }

    .stackedScrollSection__layout {
        height: auto;
        padding: 0;
    }

    .stackedScrollSection__header {
        margin-bottom: 30px;
    }

    .stackedScrollSection__deck {
        display: grid;
        gap: 20px;
        margin-top: 0;
    }

    .stackedScrollCard {
        position: relative;
        inset: auto;
        min-height: 400px;
        transform: none !important;
        pointer-events: auto;
    }
}
