/* ============================================================
   aware-motion.css — Awareverse scroll reveal + canvas
   ============================================================ */

/* ── Background canvas ─────────────────────────────────────── */
#av-motion-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

/* Content above canvas */
#site-header       { position: sticky; z-index: 100000; }
main, #content     { position: relative; z-index: 1; }
footer             { position: relative; z-index: 1; }
.sg-crisis-strip,
.update-banner,
.disclaimer-banner { position: relative; z-index: 2; }

/* Light mode */
body.light-mode #av-motion-canvas { opacity: 0.15; }

/* ── Scroll reveal ─────────────────────────────────────────── */
.av-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.av-reveal.av-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger grid children */
.grid > .av-reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .av-reveal:nth-child(3) { transition-delay: 0.15s; }
.grid > .av-reveal:nth-child(4) { transition-delay: 0.22s; }
.grid > .av-reveal:nth-child(5) { transition-delay: 0.28s; }
.grid > .av-reveal:nth-child(6) { transition-delay: 0.33s; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .av-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    #av-motion-canvas { display: none; }
}

html.reduceMotion .av-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
html.reduceMotion #av-motion-canvas { display: none !important; }