    /* Base & Reset */
    *, *::before, *::after {
        box-sizing: border-box;
    }

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

    body {
        margin: 0;
        overflow-x: hidden;
    }

    ::selection {
        background: #E8645A;
        color: #1A1A1A;
    }

    /* Scroll reveal — progressive enhancement, only when JS adds the class */
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    @media (prefers-reduced-motion: no-preference) {
        .js-active .reveal {
            opacity: 0;
            transform: translateY(32px);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .js-active .reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Staggered delays */
        .js-active .reveal:nth-child(1) { transition-delay: 0.05s; }
        .js-active .reveal:nth-child(2) { transition-delay: 0.12s; }
        .js-active .reveal:nth-child(3) { transition-delay: 0.19s; }
        .js-active .reveal:nth-child(4) { transition-delay: 0.26s; }
    }

    /* Mobile menu */
    .mobile-menu {
        transition: opacity 0.3s ease, pointer-events 0.3s ease;
    }

    .mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

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

    /* Navbar scroll state */
    .nav.scrolled {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

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

    ::-webkit-scrollbar-track {
        background: #1A1A1A;
    }

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

    ::-webkit-scrollbar-thumb:hover {
        background: #E8645A;
    }

    /* Mobile menu button animation */
    .mobile-menu-btn.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .menu-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 1.5rem;
    }

    /* Smooth image loading */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

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

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
