/* ── Base ── */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Reveal (progressive enhancement — hidden if JS disabled, visible via JS) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
@supports not (animation-fill-mode: both) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Navbar transition ── */
.nav-scrolled {
    background: rgba(253, 252, 249, 0.97) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(58, 42, 32, 0.08);
}

/* ── Mobile menu ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf7f0; }
::-webkit-scrollbar-thumb { background: #dfaa96; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4806a; }

/* ── Selection ── */
::selection { background: #ebcfc3; color: #3a2a20; }
