    /* Base reset and custom properties */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
        --color-teal-600: #0d9488;
        --color-teal-700: #0f766e;
        --color-slate-900: #0f172a;
        --font-serif: 'Playfair Display', Georgia, serif;
        --font-sans: 'Inter', system-ui, sans-serif;
    }

    html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

    /* Scroll reveal — progressive enhancement, hidden by default */
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children when parent grid reveals */
    .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
    .scroll-reveal:nth-child(2) { transition-delay: 80ms; }
    .scroll-reveal:nth-child(3) { transition-delay: 160ms; }
    .scroll-reveal:nth-child(4) { transition-delay: 240ms; }
    .scroll-reveal:nth-child(5) { transition-delay: 320ms; }
    .scroll-reveal:nth-child(6) { transition-delay: 400ms; }

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

    /* Custom scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; }
    ::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #64748b; }

    /* Selection color */
    ::selection { background: #99f6e4; color: #042f2e; }
