/* Stepped scroll slider — sticky text + stacked image deck */

body.iasc-collaborate-page-active:has(.iasc-scroll-stack-demo) #page,
body.iasc-collaborate-page-active:has(.iasc-scroll-stack-demo) .site,
body.iasc-collaborate-page-active:has(.iasc-scroll-stack-demo) #content,
body.iasc-collaborate-page-active:has(.iasc-scroll-stack-demo) #primary,
body.iasc-collaborate-page-active:has(.iasc-scroll-stack-demo) #main,
body.iasc-collaborate-page-active:has(.iasc-scroll-stack-demo) .site-main,
.iasc-scroll-stack-demo,
.iasc-scroll-stack-demo__scroll {
    overflow: visible !important;
}

.iasc-scroll-stack-demo {
    --iasc-stack-header-offset: var(--iasc-header-height, 96px);
    --iasc-stack-sticky-height: max(460px, calc(100dvh - var(--iasc-stack-header-offset)));
    --iasc-stack-slide-count: 5;
    --iasc-stack-scroll-ratio: 1;
    --iasc-stack-card-offset: 28px;
    --iasc-stack-card-scale-step: 0.028;
    position: relative;
    width: 100%;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
    color: #101415;
    background: #ffffff;
}

.iasc-scroll-stack-demo--light {
    border-bottom: 1px solid #e5e8ea;
}

.iasc-scroll-stack-demo__intro {
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.iasc-scroll-stack-demo__heading {
    margin: 0;
    max-width: 42rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #101415 !important;
}

.iasc-scroll-stack-demo__scroll {
    position: relative;
    width: 100%;
    min-height: var(--iasc-stack-sticky-height);
}

.iasc-scroll-stack-demo__sticky {
    position: sticky;
    top: var(--iasc-stack-header-offset);
    height: var(--iasc-stack-sticky-height);
    min-height: 460px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.iasc-scroll-stack-demo__panel {
    width: 100%;
    padding: 0 0 clamp(1rem, 2vw, 1.5rem);
}

.iasc-scroll-stack-demo__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

.iasc-scroll-stack-demo__copy {
    min-width: 0;
}

.iasc-scroll-stack-demo__steps {
    position: relative;
    min-height: clamp(180px, 22vh, 240px);
}

.iasc-scroll-stack-demo__step {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 24px, 0);
    transition: none;
}

.iasc-scroll-stack-demo__step.is-active {
    visibility: visible;
}

.iasc-scroll-stack-demo__number {
    margin: 0 0 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(16, 20, 21, 0.35) !important;
}

.iasc-scroll-stack-demo__step.is-active .iasc-scroll-stack-demo__number {
    color: #101415 !important;
}

.iasc-scroll-stack-demo__title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 700;
    line-height: 1.3;
    color: #101415 !important;
}

.iasc-scroll-stack-demo__text {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(0.92rem, 1.35vw, 1rem);
    line-height: 1.65;
    color: rgba(16, 20, 21, 0.72) !important;
}

.iasc-scroll-stack-demo__deck {
    position: relative;
    width: 100%;
    min-height: clamp(260px, 34vh, 380px);
    aspect-ratio: 4 / 3.1;
    padding: 0 var(--iasc-stack-card-offset) var(--iasc-stack-card-offset) 0;
    box-sizing: content-box;
}

.iasc-scroll-stack-demo__card {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f5f6;
    box-shadow:
        0 16px 40px rgba(16, 20, 21, 0.1),
        0 0 0 1px rgba(16, 20, 21, 0.08);
    transform-origin: center center;
    transition: none;
    will-change: transform, opacity;
}

.iasc-scroll-stack-demo__card.is-front {
    box-shadow:
        0 28px 70px rgba(16, 20, 21, 0.16),
        0 0 0 1px rgba(16, 20, 21, 0.1);
}

.iasc-scroll-stack-demo__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.iasc-scroll-stack-demo__progress {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.iasc-scroll-stack-demo__dot {
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(16, 20, 21, 0.2);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.iasc-scroll-stack-demo__dot.is-active {
    background: #8fb52a;
    transform: scale(1.35);
}

.iasc-scroll-stack-demo__dot:hover,
.iasc-scroll-stack-demo__dot:focus-visible {
    background: #8fb52a;
    outline: none;
}

.iasc-scroll-stack-demo__mobile {
    display: none;
}

@media (max-width: 767px) {
    .iasc-scroll-stack-demo__scroll {
        height: auto !important;
    }

    .iasc-scroll-stack-demo__sticky {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
    }

    .iasc-scroll-stack-demo__panel,
    .iasc-scroll-stack-demo__progress {
        display: none;
    }

    .iasc-scroll-stack-demo__mobile {
        display: grid;
        gap: clamp(1.5rem, 4vw, 2rem);
        padding-bottom: clamp(2rem, 5vw, 3rem);
    }

    .iasc-scroll-stack-demo__mobile-item {
        display: grid;
        gap: 1rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #e5e8ea;
    }

    .iasc-scroll-stack-demo__mobile-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .iasc-scroll-stack-demo__mobile-media {
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        background: #f3f5f6;
        box-shadow: 0 16px 40px rgba(16, 20, 21, 0.1);
    }

    .iasc-scroll-stack-demo__mobile-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .iasc-scroll-stack-demo__layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .iasc-scroll-stack-demo__deck {
        max-width: 520px;
        margin: 0 auto;
    }
}
