    /* ── Custom base styles ── */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

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

    /* ── Scroll reveal (progressive enhancement) ── */
    @media (prefers-reduced-motion: no-preference) {
        .scroll-reveal {
            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);
        }
        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ── Navbar transition ── */
    #navbar.scrolled {
        background: rgba(255, 252, 248, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
    }

    /* ── Nav link underline animation ── */
    .nav-link {
        position: relative;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #E8734A;
        transition: width 0.3s ease;
        border-radius: 1px;
    }
    .nav-link:hover::after {
        width: 100%;
    }

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

    /* ── Button focus styles ── */
    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
        outline: 2px solid #E8734A;
        outline-offset: 2px;
    }

    /* ── Image loading placeholder ── */
    img {
        background: linear-gradient(135deg, #FFF0DF 0%, #FFE8DD 100%);
    }

    /* ── Subtle grain texture overlay for hero ── */
    #hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1;
    }

    /* ── Selection color ── */
    ::selection {
        background: rgba(232, 115, 74, 0.2);
        color: #1E1E24;
    }

    /* ── Custom scrollbar ── */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #FFFCF8;
    }
    ::-webkit-scrollbar-thumb {
        background: #D1D1D8;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #A1A1AA;
    }
