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

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        overflow-x: hidden;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #0d0d0d;
    }
    ::-webkit-scrollbar-thumb {
        background: #2e2e2e;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #d4a574;
    }

    /* Selection color */
    ::selection {
        background: rgba(224, 122, 95, 0.3);
        color: #f5f5f5;
    }

    /* Scroll reveal base — progressive enhancement, content visible by default */
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        .reveal,
        .reveal-on-scroll.revealed {
            opacity: 1;
            transform: none;
            transition: none;
        }
        .group img,
        .reveal img {
            transition: none;
        }
        .group:hover img {
            transform: none;
        }
    }

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

    #mobile-menu.open .mobile-link {
        animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }

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

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hamburger animation */
    #menu-btn.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    #menu-btn.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    #menu-btn.active .menu-line:nth-child(3) {
        width: 24px;
        transform: rotate(-45deg) translate(3px, -3px);
    }

    /* Navbar scrolled state */
    #navbar.scrolled {
        background: rgba(13, 13, 13, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    }

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

    /* Image loading placeholder */
    img {
        background-color: #1c1c1c;
    }
