/* BLOCK: Scrolljacking */

.block-scrolljacking {
    --pt: 0px;
    --pb: 0px;
    width: 100%;
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.block-scrolljacking.default {
    background-color: var(--c-gradient-primary);
}

.block-scrolljacking .legend--items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
}

.block-scrolljacking .legend--title {
    margin-bottom: 1.2rem;
    margin-top: 1.8rem;
    font-size: var(--font-22-17);
}

.block-scrolljacking .legend--item {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
}

.block-scrolljacking .legend--item span {
    background-color: blue;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-scrolljacking .legend--items li {
    list-style: none;
}

.block-scrolljacking .main-curve {
    width: 65rem;
    aspect-ratio: 1 / 1;
    position: sticky;
    bottom: 0;
    z-index: -1;
    transform: translate(-25%, 50%);
    margin-top: -65rem;
}

.block-scrolljacking .main-curve::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    padding: 10rem;
    border-radius: 50%;
    background: linear-gradient(-90deg, var(--c-gradient-primary));
    mask: 
     linear-gradient(#000 0 0) exclude, 
     linear-gradient(#000 0 0) content-box;
}

.block-scrolljacking .content-wrapper {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 4;
}

.block-scrolljacking .left-side {
    height: 100vh;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    padding-right: 2rem;
}

.block-scrolljacking .left-side .content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.block-scrolljacking .left-side .content > * {
    margin-block: auto;
}

.block-scrolljacking .content > :is(h1,h2,h3,h4,h5) {
    max-width: 35.5rem;
}

.block-scrolljacking .content > p {
    max-width: 33rem;
}

.block-scrolljacking .content h6 {
    background-color: rgba(255, 255, 255, 0.12);
}

.block-scrolljacking .cta-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.block-scrolljacking .cta-buttons:not(:first-child) {
    margin-top: 2.5rem;
}

.block-scrolljacking .right-side {
    position: relative;
    padding-left: 2rem;
    min-height: 100%;
    flex-basis: 40%;
    padding-top: 19.5rem;
    padding-bottom: 8.75rem;
}

.block-scrolljacking .divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: calc(100% + var(--pb, 0px));
    pointer-events: none;
    z-index: -1;
}

.block-scrolljacking .divider.dynamic {
    width: 1px;
}

.block-scrolljacking .divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(to bottom, transparent, white 3.625rem, white calc(100% - 3.625rem), transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, white 3.625rem, white calc(100% - 3.625rem), transparent);
    background-image: linear-gradient(rgba(255, 255, 255, .3) 33%, rgba(255, 255, 255, 0) 0%);
    background-position: center;
    background-size: 2px 6px;
    background-repeat: repeat-y;
}

.block-scrolljacking .divider.dynamic::before {
    background: rgb(255 255 255 / .3);
}


.block-scrolljacking .divider.dynamic::after {
    content: '';
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: white;
}

.block-scrolljacking .scroll-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.block-scrolljacking .scroll-content--item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 4rem;
}

.block-scrolljacking .scroll-content--item.variant-2 {
    gap: 1.5rem;
    margin-top: 3.75rem;
}

.block-scrolljacking .sc-item--image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.85 / 1;
    object-fit: cover;
    border-radius: var(--radius-l);
    box-shadow: 0px 0px 60px 0px #00000026;
}

.block-scrolljacking .sc-item--tag {
    background: rgba(255, 255, 255, 0.12);
    position: relative;
}

.block-scrolljacking .sc-item--tag::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 4.25px);
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #82A8C3;
}

.block-scrolljacking .divider.dynamic + .scroll-content .sc-item--tag::before {
    width: 0.75rem;
    height: 0.75rem;
    border: 3px solid #D3F1FF80;
    box-shadow: 0px 0px 4px 0px #00000040;
    left: calc(-2rem - 5.5px);
}

.block-scrolljacking .sc-item--list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
}

.block-scrolljacking .sc-list-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    list-style: none;
    font-weight: 600;
}

.block-scrolljacking .sc-list-item span {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (width <= 800px) {
    .block-scrolljacking {
        --pt: 5rem;
        --pb: 5rem;
    }
    .block-scrolljacking .content-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }
    .block-scrolljacking .left-side {
        height: unset;
        width: unset;
        position: static;
        padding-right: 0;
    }
    .block-scrolljacking .right-side {
        padding-block: 0;
    }
    .block-scrolljacking .right-side::after {
        height: calc(100% + var(--pb));
        width: 1.5px;
        background-size: 1.5px 10px;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .block-scrolljacking .scroll-content--item {
        margin-top: 3.125rem;
        gap: 1.125rem;
    }
    .block-scrolljacking .scroll-content--item:first-child {
        margin-top: 2.5rem;
    }
    .block-scrolljacking .sc-item--title {
        max-width: 30rem;
    }
    .block-scrolljacking .sc-item--image {
        max-width: 30rem;
        margin-top: 0.5rem;
    }
    .block-scrolljacking .main-curve {
        width: 57rem;
        transform: translate(-49%, 48%);
        margin-top: -57rem;
    }
}