    *, *::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;
    }

    /* Scroll-triggered animations — progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
    }

    /* Navbar transitions */
    #navbar {
        color: rgba(253, 248, 247, 0.9);
    }

    #navbar.scrolled {
        background: rgba(56, 12, 12, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(253, 248, 247, 0.08);
    }

    #navbar.scrolled .nav-link {
        color: rgba(253, 248, 247, 0.7);
    }

    #navbar.scrolled .nav-link:hover {
        color: rgba(253, 248, 247, 1);
    }

    #navbar.scrolled #nav-logo-circle {
        border-color: rgba(253, 248, 247, 0.4);
        color: rgba(253, 248, 247, 1);
    }

    /* Service card hover lift */
    .service-card {
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    background-color 0.5s ease,
                    border-color 0.5s ease;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }

    /* Mobile nav links */
    .mobile-nav-link {
        color: rgba(101, 28, 28, 0.7);
        transition: color 0.3s ease;
        display: block;
    }

    .mobile-nav-link:hover {
        color: rgba(56, 12, 12, 1);
    }

    /* Selection color */
    ::selection {
        background: rgba(117, 32, 32, 0.15);
        color: #380c0c;
    }

    /* Subtle image zoom on hover */
    @media (prefers-reduced-motion: no-preference) {
        .aspect-\[4\/5\] img {
            transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .aspect-\[4\/5\]:hover img {
            transform: scale(1.03);
        }
    }

    /* Focus styles */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid rgba(117, 32, 32, 0.5);
        outline-offset: 4px;
        border-radius: 2px;
    }

    /* Reduce motion */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        html {
            scroll-behavior: auto;
        }
    }
