/* ============================================
   COLOR FLIP STATEMENT SECTION
   ============================================ */

.color-flip-section {
    position: relative;
    height: 250vh;
    /* Starts matching site bg — GSAP will tween this */
    background-color: var(--bg-dark);
}

/* Single sticky container — everything locks to viewport together */
.cf-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Full-bleed background inside the sticky — GSAP targets this */
.cf-bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 0;
    will-change: background-color;
    transform: translateZ(0); /* own compositor layer — avoids repainting content */
}

/* Text content over the bg */
.cf-content {
    position: relative;
    z-index: 1;
    padding: 0 8vw;
    width: 100%;
}

.cf-content p {
    display: block;
    margin: 0;
    line-height: 1.1;
    word-spacing: 0.2em;
}

.cf-word {
    display: inline-block;
    font-family: 'Sora', system-ui, sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.1);
    will-change: color;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .color-flip-section {
        height: 220vh;
    }

    .cf-word {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }

    .cf-content {
        padding: 0 5vw;
    }
}
