    /* Base */
    *, *::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: #f05a1a;
        color: white;
    }

    /* Hero animations */
    .hero-anim {
        opacity: 0;
        transform: translateY(24px);
        animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .hero-anim:nth-child(1) { animation-delay: 0.1s; }
    .hero-anim:nth-child(2) { animation-delay: 0.25s; }
    .hero-anim:nth-child(3) { animation-delay: 0.4s; }
    .hero-anim:nth-child(4) { animation-delay: 0.55s; }

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

    /* Scroll reveal — progressive enhancement via prefers-reduced-motion */
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            opacity: 0;
            transform: translateY(32px);
            transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
        .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
        .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
        .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
        .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
    }

    /* Navbar scroll state */
    #navbar.scrolled .nav-logo {
        color: #1a1a1a;
    }

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

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

    /* Hamburger animation */
    #menu-toggle.active #bar1 {
        transform: translateY(4px) rotate(45deg);
    }
    #menu-toggle.active #bar2 {
        opacity: 0;
    }
    #menu-toggle.active #bar3 {
        transform: translateY(-4px) rotate(-45deg);
        width: 1.5rem;
    }

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

    /* Subtle scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #f7f7f7;
    }
    ::-webkit-scrollbar-thumb {
        background: #d4d4d4;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #a3a3a3;
    }
