/* ========================================================================== 
   LIVING ROCK / HERO FOLLOW-ON INTERACTION
   ========================================================================== */

.rock-showcase {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(72px, 9vw, 118px) clamp(22px, 4vw, 72px) clamp(88px, 10vw, 136px);
    color: #151719;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.76), transparent 34%),
        linear-gradient(180deg, #f3f1ec 0%, #e9e7e1 100%);
}

.rock-showcase::before {
    display: none;
}

.rock-showcase__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    width: min(100%, 1180px);
    margin: 0 auto 30px;
}

.rock-showcase__eyebrow {
    margin-bottom: 12px;
    color: var(--orange-primary);
    font: 600 0.68rem/1 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rock-showcase__header h2 {
    color: #151719;
    font: 700 clamp(2.3rem, 5vw, 4.8rem)/0.95 var(--font-sans);
    letter-spacing: -0.055em;
}

.rock-showcase__copy {
    max-width: 380px;
    padding-bottom: 4px;
    color: #60615e;
    font: 400 clamp(0.84rem, 1.2vw, 1rem)/1.65 var(--font-mono);
}

.rock-interaction {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin: 0 auto;
    aspect-ratio: 1792 / 1024;
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
    background: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.rock-interaction::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 14%;
    right: 10%;
    bottom: 7%;
    height: 16%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(26, 23, 19, 0.24), transparent 70%);
    filter: blur(14px);
    opacity: 0.72;
    pointer-events: none;
}

#waterTrail,
#scene {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

#waterTrail {
    z-index: 1;
    opacity: 0;
    will-change: opacity, transform;
}

#scene {
    z-index: 2;
}

/* Source media are composited into the canvases and never shown as DOM layers. */
#deadRock,
#lifeVideo,
#lifeVideo2,
#livingFallback {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rock-interaction.is-on-rock {
    cursor: pointer;
}

@media (max-width: 700px) {
    .rock-showcase {
        padding-right: 16px;
        padding-left: 16px;
    }

    .rock-showcase__header {
        display: block;
        margin-bottom: 18px;
    }

    .rock-showcase__copy {
        max-width: 560px;
        margin-top: 18px;
        font-size: 0.75rem;
    }

    .rock-interaction {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rock-interaction {
        cursor: pointer;
    }
}
