
/* Replace the legacy section reveal; content also stays readable without JS/CDNs. */
.reveal-section,
.reveal-section.active {
    opacity: 1;
    transform: none;
    transition: none;
}
html.lenis { scroll-behavior: auto !important; }
html { scroll-padding-top: var(--header-offset, 100px); }
/* Only promote layers during entrances; restore existing hover effects afterward. */
.cinematic-revealing {
    transition: none !important;
    will-change: transform, opacity;
}
/* Full-width hero; constrain only the foreground copy, never the scene. */
#hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 80vh;
    min-height: max(80svh, calc(100svh - var(--header-offset, 100px)));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
}
#hero > .hero-unicorn,
#hero > .hero-unicorn :where(div, canvas, iframe) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    display: block;
    border: 0;
    border-radius: 0;
    z-index: 1;
    pointer-events: auto;
}
#hero > .hero-unicorn {
    overflow: hidden;
    /* Blend the finished scene against the hero's white, behind the copy. */
    mix-blend-mode: multiply;
    /* Fade the scene once; foreground text and controls stay fully opaque. */
    opacity: 0.22;
}
#hero > .hero-unicorn :where(canvas, iframe) {
    /* Reduce contrast before lifting brightness to keep pale areas white.
       Apply once to rendered pixels, never to every nested wrapper. */
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(0.75) brightness(1.6) !important;
}
#hero > .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    /* Empty foreground space still lets the canvas receive cursor input. */
    pointer-events: none;
}
#hero .hero-content :where(h1, p, .wave-container) {
    position: relative;
    z-index: 2;
}
#hero .hero-content :where(a, button) {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
#hero .wave-container { background: transparent; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    #hero > .hero-unicorn { visibility: hidden; }
}
