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

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

    body {
        overflow-x: hidden;
    }

    /* Reveal animations */
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }

    /* Navigation */
    #nav.scrolled {
        background: rgba(250, 250, 248, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 0 rgba(45, 74, 62, 0.08);
    }

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

    #mobile-menu.closed {
        opacity: 0;
        pointer-events: none;
    }

    .mobile-link {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }

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

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

    /* Menu toggle animation */
    #menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

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

    /* Scroll line animation */
    @keyframes scrollLine {
        0% { transform: scaleY(0); transform-origin: top; }
        50% { transform: scaleY(1); transform-origin: top; }
        51% { transform-origin: bottom; }
        100% { transform: scaleY(0); transform-origin: bottom; }
    }

    .animate-scroll-line {
        animation: scrollLine 2s ease-in-out infinite;
    }

    /* Writing mode for vertical text */
    .writing-mode-vertical {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

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

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

    ::-webkit-scrollbar-thumb {
        background: #2D4A3E;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #1A3A2A;
    }

    /* Focus styles */
    input:focus, textarea:focus {
        outline: none;
    }

    /* Date input styling */
    input[type="date"] {
        color: #2D4A3E;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(0.4) sepia(1) saturate(3) hue-rotate(95deg);
        cursor: pointer;
    }

    /* Selection */
    ::selection {
        background: #2D4A3E;
        color: #FAFAF8;
    }

    /* Image loading placeholder */
    img {
        background-color: #EDE9E0;
    }

    /* Responsive adjustments */
    @media (max-width: 767px) {
        .reveal {
            transform: translateY(16px);
        }
    }
