*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-950: #030D1A;
    --navy-900: #0A1628;
    --navy-800: #0F2240;
    --navy-700: #142E56;
    --navy-600: #1A3A6B;
    --gold-400: #D4A84B;
    --gold-500: #C49A3C;
    --gold-600: #B08830;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base - visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animations - only for hero section, content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .hero-anim {
        opacity: 0;
        transform: translateY(20px);
        animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .hero-anim:nth-child(1) { animation-delay: 0.2s; }
    .hero-anim:nth-child(2) { animation-delay: 0.4s; }
    .hero-anim:nth-child(3) { animation-delay: 0.6s; }
    .hero-anim:nth-child(4) { animation-delay: 0.8s; }

    @keyframes heroReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--gold-400);
    color: var(--navy-950);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

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

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
