/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Scroll Reveal (progressive enhancement — content visible by default) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Navbar active state ── */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(76, 29, 149, 0.08);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5ff; }
::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9333ea; }

/* ── Selection ── */
::selection { background: #d8b4fe; color: #2e1065; }
