/* sticky-scroll.css */
.split-scroll-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    position: relative;
    align-items: flex-start;
    overflow: visible;
}
.text-column {
    width: 45%;
    padding-bottom: 20vh; 
}
.text-block {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}
.text-block.is-active {
    opacity: 1;
    transform: translateY(0);
}
.text-block span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.text-block :where(h2, h4) {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}
.text-block p {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.6;
}
.image-column {
    width: 50%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    will-change: transform;
}
.image-sticky-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 560px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.3);
}
.image-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
    pointer-events: none;
    z-index: 1;
}
.image-panel.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}
.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .split-scroll-container { flex-direction: column-reverse; }
    .text-column { width: 100%; padding-bottom: 10vh; }
    .text-block {
        min-height: auto;
        margin-bottom: 60px;
        opacity: 1; 
        transform: none;
    }
    .image-column {
        width: 100%;
        position: relative;
        top: 0;
        height: 400px;
        margin-bottom: 40px;
    }
}