/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; height: auto; display: block; }

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible without JS */
.no-js .reveal,
.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar transition ── */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ── Mobile menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Form focus styles ── */
input:focus, textarea:focus {
    outline: none;
}

/* ── Selection ── */
::selection {
    background: #c45234;
    color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5eb; }
::-webkit-scrollbar-thumb { background: #d4ad86; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c4956e; }

/* ── Utility ── */
@media (max-width: 767px) {
    .font-serif { line-height: 1.2; }
}
