/* ==========================================================================
   reveal.css  -  scroll-reveal utility pack. Loaded LAST on purpose: these
   transforms must win over component rotations (e.g. .kawaii-box), exactly
   as the original single stylesheet did.
   ========================================================================== */

/* --- Scroll-reveal utilities (toggled by IntersectionObserver) ----------- */
/* Only opacity / transform / visibility are transitioned (never "all"). */

.reveal,
.reveal-pop {
    opacity: 0;
    visibility: hidden;
}

.reveal {
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out, visibility 1s ease-out;
}

.reveal-pop {
    transform: translateY(30px) scale(0.95);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), visibility 1s var(--ease-out);
}

.reveal.active,
.reveal-pop.active {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Trigger only - visibility is handled by children */
.reveal-fade {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.reveal-fade.active {
    opacity: 1;
    visibility: visible;
}

/* Elements that carry their own rotation */
.scrappy-wrapper.reveal {
    transform: translateY(40px) rotate(-4deg);
}

.scrappy-wrapper.reveal.active {
    transform: translateY(0) rotate(-4deg);
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

.reveal-delay-3 {
    transition-delay: 0.6s;
}
