/* 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 {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-dot {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll-dot {
    animation: scroll-dot 1.5s ease-in-out infinite;
}

/* Hero fade-in */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.92) !important;
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.06), 0 8px 32px rgba(61, 43, 31, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5e8;
}
::-webkit-scrollbar-thumb {
    background: #e2c88e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b06a;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #e85520;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratio fallbacks */
img {
    max-width: 100%;
    height: auto;
}
