    /* ─── Custom Styles ─── */

    *, *::before, *::after {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        overflow-x: hidden;
    }

    /* ─── Scroll Reveal (progressive enhancement) ─── */
    @media (prefers-reduced-motion: no-preference) {
        .reveal-up,
        .reveal-left,
        .reveal-right {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .reveal-left {
            transform: translateX(-24px);
        }

        .reveal-right {
            transform: translateX(24px);
        }

        .reveal-up.visible,
        .reveal-left.visible,
        .reveal-right.visible {
            opacity: 1;
            transform: translate(0, 0);
        }

        /* Stagger children */
        .reveal-up:nth-child(1) { transition-delay: 0ms; }
        .reveal-up:nth-child(2) { transition-delay: 100ms; }
        .reveal-up:nth-child(3) { transition-delay: 200ms; }
        .reveal-up:nth-child(4) { transition-delay: 300ms; }
        .reveal-up:nth-child(5) { transition-delay: 400ms; }
        .reveal-up:nth-child(6) { transition-delay: 500ms; }
    }

    /* ─── Hero Animation (non-blocking — content is always visible) ─── */
    .hero-badge {
        animation: fadeSlideDown 0.8s 0.3s both cubic-bezier(0.22, 1, 0.36, 1);
    }

    h1 {
        animation: fadeSlideUp 0.8s 0.5s both cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hero ~ p,
    section#hero p {
        animation: fadeSlideUp 0.8s 0.7s both cubic-bezier(0.22, 1, 0.36, 1);
    }

    @media (prefers-reduced-motion: no-preference) {
        @keyframes fadeSlideDown {
            from { opacity: 0; transform: translateY(-16px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeSlideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
    }

    /* ─── Navbar ─── */
    #navbar.scrolled {
        background: rgba(253, 248, 240, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    }

    #navbar.scrolled .nav-link {
        color: #57534e;
    }

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

    /* ─── Form Focus States ─── */
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
    }

    /* ─── Selection Color ─── */
    ::selection {
        background: rgba(209, 64, 48, 0.15);
        color: #7c1d1a;
    }

    /* ─── Custom Scrollbar ─── */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #fdf8f0;
    }

    ::-webkit-scrollbar-thumb {
        background: #e5d5c8;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #d14030;
    }

    /* ─── Reduced Motion ─── */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        .reveal-up,
        .reveal-left,
        .reveal-right {
            opacity: 1;
            transform: none;
            transition: none;
        }

        .hero-badge,
        h1,
        section#hero p {
            animation: none;
        }
    }

    /* ─── Utility ─── */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
