/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(13, 21, 32, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf3e8;
}
::-webkit-scrollbar-thumb {
    background: #d95a2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4441f;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #d95a2e;
    outline-offset: 2px;
}

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