    /* Custom styles beyond Tailwind */

    html {
        scroll-behavior: smooth;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Scroll reveal — progressive enhancement via JS */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Mobile menu transitions */
    #mobileMenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #mobileMenu.open {
        max-height: 400px;
    }

    /* Nav scroll state */
    .nav.scrolled {
        box-shadow: 0 4px 30px rgba(10, 22, 40, 0.15);
    }

    /* Selection color */
    ::selection {
        background: rgba(72, 209, 160, 0.3);
        color: #0a2540;
    }

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

    /* Focus visible for accessibility */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #48d1a0;
        outline-offset: 2px;
    }

    /* Subtle pattern for gallery section */
    @media (min-width: 768px) {
        .grid-cols-2 > :nth-child(2),
        .grid-cols-2 > :nth-child(5) {
            margin-top: 2rem;
        }
    }
