    /* Base & Typography */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

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

    body {
        font-family: 'Inter', sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    h1, h2, h3, h4 {
        font-family: 'Fredoka', sans-serif;
    }

    /* Scroll Reveal Animations — progressive enhancement, gated behind prefers-reduced-motion */
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

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

        .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
        .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
        .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(255, 248, 240, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
    }

    /* Mobile menu animation */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
    }

    #mobile-menu.open {
        max-height: 400px;
        opacity: 1;
    }

    /* Menu toggle animation */
    .menu-line {
        transition: all 0.3s ease;
    }

    #menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.active .menu-line:nth-child(3) {
        width: 24px;
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

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

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

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

    /* Selection color */
    ::selection {
        background: #E8A838;
        color: #0A1628;
    }

    /* Image placeholder fallback */
    img {
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    }

    /* Focus styles for accessibility */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid #E8A838;
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Smooth image loading */
    img {
        transition: opacity 0.3s ease;
    }

    img[loading="lazy"] {
        opacity: 0;
    }

    img[loading="lazy"].loaded {
        opacity: 1;
    }
