    :root {
        --font-display: 'Playfair Display', Georgia, serif;
        --font-body: 'Lato', system-ui, sans-serif;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: var(--font-body);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .font-playfair {
        font-family: var(--font-display);
    }

    .font-lato {
        font-family: var(--font-body);
    }

    /* Scroll reveal — progressive enhancement, only applies when JS is available */
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
        .scroll-reveal {
            opacity: 0;
            transform: translateY(30px);
        }
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(2, 6, 23, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Custom selection color */
    ::selection {
        background: rgba(13, 148, 136, 0.3);
        color: #0f172a;
    }

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

    /* Subtle scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #0f172a;
    }
    ::-webkit-scrollbar-thumb {
        background: #334155;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }

    /* Mobile menu animation */
    #mobile-menu {
        animation: slideDown 0.3s ease forwards;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Card hover lift */
    .group:hover .group-hover\\:scale-110 {
        transform: scale(1.1);
    }
