    /* Base Styles & Custom Properties */
    :root {
        --color-terracotta-50: #fdf0eb;
        --color-terracotta-600: #c43a18;
        --color-sand-200: #faedcc;
        --color-cream: #faf6f0;
        --color-warmgray-900: #39342e;
        --color-warmgray-950: #1f1c18;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

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

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

    /* Scroll Reveal Animations */
    .reveal {
        opacity: 1;
        transform: translateY(0);
        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[data-reveal-delay="1"] { transition-delay: 0.1s; }
    .reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
    .reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
    .reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

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

    /* Navbar Styles */
    #navbar {
        background: transparent;
    }

    #navbar.scrolled {
        background: rgba(250, 246, 240, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    #navbar.scrolled .nav-text {
        color: #39342e;
    }

    #navbar.scrolled .nav-subtext {
        color: #8a7e70;
    }

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

    #mobile-menu:not(.active) {
        opacity: 0;
        pointer-events: none;
    }

    /* Menu Icon Animation */
    #menu-icon span:nth-child(1) {
        transform-origin: center;
    }
    #menu-icon span:nth-child(2) {
        transform-origin: center;
    }
    #menu-icon span:nth-child(3) {
        transform-origin: center;
    }

    body.menu-open #menu-icon span:nth-child(1) {
        transform: translateY(3.5px) rotate(45deg);
    }
    body.menu-open #menu-icon span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    body.menu-open #menu-icon span:nth-child(3) {
        transform: translateY(-3.5px) rotate(-45deg);
        width: 100% !important;
    }

    /* Mobile Link Animation */
    .mobile-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }

    body.menu-open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
    body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
    body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
    body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

    /* Image hover effects */
    .group:hover .group-hover\:scale-110 {
        transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Button hover effects */
    a:hover {
        transition: all 0.3s ease;
    }

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

    /* Selection color */
    ::selection {
        background: #f9c4b0;
        color: #3b0e06;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #faf6f0;
    }
    ::-webkit-scrollbar-thumb {
        background: #d4c4b0;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #a39889;
    }

    /* Image lazy loading placeholder */
    img {
        background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d4 100%);
        background-size: 40px 40px;
        background-image: linear-gradient(135deg, #f5f0e8 25%, transparent 25%),
                          linear-gradient(225deg, #f5f0e8 25%, transparent 25%),
                          linear-gradient(45deg, #f5f0e8 25%, transparent 25%),
                          linear-gradient(315deg, #f5f0e8 25%, transparent 25%);
        background-position: 0 0, 0 20px, 20px -20px, -20px 0;
        background-size: 40px 40px;
    }

    /* Smooth image loading */
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    img[loading="lazy"].loaded {
        opacity: 1;
    }
