/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Typography ── */
.font-inter { font-family: 'Inter', system-ui, sans-serif; }
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Navbar scroll state ── */
#site-header.scrolled {
    background: rgba(5, 13, 26, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: #1A3A6B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #234B82; }

/* ── Selection ── */
::selection { background: rgba(52, 211, 153, 0.3); color: #fff; }
