.scrolling-section {
    --ss-accent: #00e7f3;
    --ss-ink: #39008D;
    --ss-text: #292929;
    --ss-bg: #eaf7f5;   
    --ss-sticky-top: 80px;

    width: 100%;
    background-color: var(--section-bg);
    position: relative;
    z-index: 1;
}

.scrolling-mobile {
    position: relative;
}

.scrolling-section .scrolling-section__left::before, .scrolling-mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../../images/scrolling-bg1.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    height: 625px;
    width: 1634px;
    top: 125%;
    bottom: auto;
    left: auto;
    right: -135px;
    transform: rotate(-16.195deg);
}

.scrolling-section .scrolling-section__left::after, .scrolling-mobile::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../../images/scrolling-bg2.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    height: 657px;
    width: 180vw;
    top: 130%;
    left: -70vw;
    transform: rotate(-16.195deg);
}

.site-content {
  overflow: clip;
}

.scrolling-section__inner {
    gap: 10.6%;
    margin-inline: auto;
    padding-top: 160px;
    display: flex;
}

.scrolling-section__left {
    position: sticky;
    top: var(--ss-sticky-top);
    align-self: start;
    max-width: 360px;
    width: 100%;
}

.scrolling-section__head {
    margin-bottom: 50px;
}

.scrolling-section__panels {
    display: grid;
}

.scrolling-section__panels .scrolling-panel {
    grid-area: 1 / 1;
    margin-left: 55px;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    margin-top: 0 !important;
}

.scrolling-section__panels .scrolling-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s;
}

.scrolling-panel__number {
    display: block;
    margin-bottom: 25px;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
}

/* Rendered as <h3>; keep the h2 type scale it was designed with. */
.scrolling-panel__title {
    font-size: 60px;
    line-height: 70px;
    text-transform: uppercase;
    color: var(--ss-ink);
}

.scrolling-panel__description {
    margin: 0 0 36px;
    max-width: 360px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ss-text);
}

.scrolling-panel__button {
    text-transform: uppercase;
}

.scrolling-section__right {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 100%;
    width: 100%;
}

.scrolling-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 20px;
}

.scrolling-item__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.scrolling-item__image--2 {
    margin-top: 77px;
}

.scrolling-mobile {
    --ss-count: 3;
    --ss-accent: #00e7f3;
    --ss-ink: #3a1a8f;
    --ss-text: #5a5f72;

    display: none;
    position: relative;
    height: calc(var(--ss-count) * 88vh);
    background-color: var(--section-bg);
}


.scrolling-mobile__pin {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 50px;

}

.scrolling-mobile__head {
    padding: 20px;
    color: #26005e;
}

.scrolling-mobile__bar {
    width: 56px;
    height: 12px;
    background-color: var(--ss-accent);
}

.scrolling-mobile__eyebrow {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--ss-ink);
    font-size: 18px;
    line-height: 24px;
}

.scrolling-mobile__track {
    flex: 1 1 auto;
    display: flex;
    gap: 20px;
    padding: 20px 41px 24px;
    min-height: 0;
    will-change: transform;
    margin-right: 20px;
}

.scrolling-mobile__card {
    flex: 0 0 71vw;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.scrolling-mobile__number {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ss-ink);
}

.scrolling-mobile__title {
    text-transform: uppercase;
    color: var(--ss-ink);
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 12px;
}

.scrolling-mobile__description {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ss-text);
}

.scrolling-mobile__button {
    text-transform: uppercase;
}

.scrolling-mobile__media {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    height: 349px;
}

.scrolling-mobile__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1280px) {
    .scrolling-section__inner {
        gap: 5%;
    }

    .scrolling-section__panels .scrolling-panel {
        margin-left: 0;
    }

    .scrolling-section__left {
        max-width: 400px;
    }
}

@media (max-width: 1024px) {
    .scrolling-section__panels .scrolling-panel {
        margin-left: 0;
    }

    .scrolling-item__image--2 {
        margin-top: 30px;
    }

    .scrolling-panel__title {
        font-size: 32px;
        line-height: 38px;
    }

    .scrolling-section__inner {
        gap: 5%;
    }

    .scrolling-section__left {
        max-width: 360px;
    }
}

@media (max-width: 767.96px) {
    .scrolling-section {
        display: none;
    }

    .scrolling-mobile {
        display: block;
    }

    .scrolling-mobile::before,
    .scrolling-mobile::after {
        display: none;
    }

    .scrolling-mobile__pin::before,
    .scrolling-mobile__pin::after {
        content: '';
        position: absolute;
        z-index: -1;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
        transform: rotate(-16.195deg);
    }

    .scrolling-mobile__pin::before {
        background-image: url('../../../images/scrolling-bg1.svg');
        top: 26%;
        right: 47vw;
        width: 1255px;
        height: 100%;
    }

    .scrolling-mobile__pin::after {
        background-image: url('../../../images/scrolling-bg2.svg');
        bottom: -36%;
        left: auto;
        right: -30vw;
        width: 1994px;
        height: 479px;
    }

    .scrolling-mobile__bar {
        width: 47px;
        height: 10px;
    }

    .scrolling-mobile__eyebrow {
        font-size: 15px;
        line-height: 22px;
    }

    .scrolling-mobile__pin {
        padding-top: 40px;
    }
}

@media (max-width: 491px) {
    .scrolling-mobile__pin::before {
        top: 34%;
    }
}