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

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    body {
        overflow-x: hidden;
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(250, 245, 239, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(74, 25, 66, 0.08);
    }

    #navbar.scrolled #nav-brand {
        color: #4A1942;
    }

    /* Mobile menu */
    #mobile-menu.open {
        opacity: 1;
        pointer-events: auto;
    }

    #mobile-menu.closed {
        opacity: 0;
        pointer-events: none;
    }

    .mobile-link {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #mobile-menu.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
    #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
    #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
    #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
    #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

    /* Hamburger animation */
    .menu-line {
        display: block;
    }

    body.menu-open .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    body.menu-open .menu-line:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
        width: 1.25rem;
    }

    /* Scroll reveal — 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);
        }
    }

    /* Without JS / reduced motion: all content is visible */
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
        }
    }

    /* Bounce animation */
    @keyframes bounce-slow {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(6px); }
    }

    .animate-bounce-slow {
        animation: bounce-slow 2.5s ease-in-out infinite;
    }

    /* Selection color */
    ::selection {
        background: rgba(201, 168, 76, 0.3);
        color: #4A1942;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #FAF5EF;
    }

    ::-webkit-scrollbar-thumb {
        background: #4A1942;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #7d2242;
    }

    /* Focus styles */
    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
        outline: 2px solid #C9A84C;
        outline-offset: 2px;
    }
