/* ================================================
   POOL SCROLL ANIMATION — Video scrub
   ================================================ */

#pool-anim-outer {
    position: relative;
    height: 500vh; /* scroll space — adjust to taste */
}

#pool-anim-scene {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #050c18;
}

/* ---- Canvas fills the viewport ---- */
#pool-anim-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}

/* ---- Text overlays ---- */
.pa-text {
    position: absolute;
    width: 90%;
    max-width: 660px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: none; /* scroll drives opacity directly */
}

#pa-intro-text {
    bottom: 100px;
}

#pa-explode-text {
    bottom: 100px;
}

#pa-final-text {
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.pa-eyebrow,
.pa-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

#pa-final-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

#pa-final-text h2 span {
    background: linear-gradient(135deg, #60b8ff 0%, #1e90ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#pa-final-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin: 0 0 2rem;
    text-shadow: 0 1px 20px rgba(0,0,0,0.6);
}

/* ---- Scroll cue ---- */
#pa-scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pa-cue-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: paCuePulse 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes paCuePulse {
    0%, 100% { opacity: 1;   transform: scaleY(1); }
    55%       { opacity: 0.2; transform: scaleY(0.3); }
}

/* ---- Skip link ---- */
.pa-skip {
    position: absolute;
    top: 22px;
    right: 22px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Inter', sans-serif;
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s ease;
    z-index: 200;
}

.pa-skip:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    #pool-anim-outer { height: 400vh; }
    #pa-final-text h2 { font-size: 1.9rem; }
}
