/* Global GPU fluid smoke & Hero WebGL overlay */
.sassy-fluid-webgl {
    position: fixed !important;
    z-index: 9999 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    opacity: 0.85 !important; /* Visible fluid smoke presence */
    mix-blend-mode: screen !important;
    transition: opacity 0.4s ease;
}

/* Dedicated Hero WebGL liquid video distortion canvas */
.sassy-hero-fluid-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Once WebGL hero compositor is actively running with liquid distortion, 
   hide the raw underlying video and make HTML text transparent so the 
   distorted WebGL text shows cleanly underneath without double-rendering */
.sassy-hero.is-webgl-composited .sassy-hero-video video {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.sassy-hero.is-webgl-composited .sassy-hero-content .sassy-eyebrow,
.sassy-hero.is-webgl-composited .sassy-hero-content h1,
.sassy-hero.is-webgl-composited .sassy-hero-content p {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.sassy-hero.is-webgl-composited .sassy-hero-content h1 span,
.sassy-hero.is-webgl-composited .sassy-hero-content p strong {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* Keep hero content on top and interactive */
.sassy-hero .hero-content,
.sassy-hero .sassy-hero-content,
.sassy-hero .sassy-actions,
.sassy-hero .container,
.sassy-hero .shape,
.sassy-hero-overlay {
    position: relative !important;
    z-index: 2 !important;
}

/* Hide global overlay on 3D Work page so carousel's own liquid distortion is 100% crystal clear */
body:has(#sassy-work-stage) .sassy-fluid-webgl,
body:has(.sassy-3d-stage) .sassy-fluid-webgl,
.sassy-work-stage .sassy-fluid-webgl {
    display: none !important;
}

/* Prevent accidental text selection when dragging cursor through fluid smoke in Hero */
.sassy-hero,
.sassy-hero h1,
.sassy-hero p,
.sassy-hero .sassy-eyebrow,
.sassy-hero .sassy-trust-line {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

@media (max-width: 767px) {
    .sassy-hero.is-webgl-composited .sassy-hero-content h1 {
        color: #fff !important;
        -webkit-text-fill-color: currentColor !important;
    }
    .sassy-hero h1 {
        max-width: 100%;
        font-size: clamp(38px, 10vw, 62px);
        white-space: normal;
        overflow-wrap: break-word;
        line-height: 1.08;
    }
    .sassy-hero.is-webgl-composited .sassy-hero-content p {
        color: #d7d7da !important;
        -webkit-text-fill-color: currentColor !important;
    }
    .sassy-hero.is-webgl-composited .sassy-hero-content .sassy-eyebrow,
    .sassy-hero.is-webgl-composited .sassy-hero-content h1 span,
    .sassy-hero.is-webgl-composited .sassy-hero-content p strong {
        color: var(--primary-color) !important;
        -webkit-text-fill-color: currentColor !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:not([data-sassy-fluid="enabled"]) .sassy-fluid-webgl,
    html:not([data-sassy-fluid="enabled"]) .sassy-hero-fluid-canvas {
        display: none !important;
    }
}
