    /* Custom styles for K-T Ranch */

    /* Smooth scroll offset for fixed nav */
    section[id] {
        scroll-margin-top: 80px;
    }

    /* Navbar scroll state */
    #navbar.scrolled {
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    #navbar.scrolled .nav-text,
    #navbar.scrolled .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Reveal animations - progressive enhancement */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        /* Stagger children */
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
    }

    /* Ensure content is visible even without JS */
    .reveal {
        opacity: 1;
        transform: none;
    }

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

    /* Gold gradient text utility */
    .text-gold-gradient {
        background: linear-gradient(135deg, #c9963e 0%, #e0bc62 50%, #c9963e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

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

    ::-webkit-scrollbar-track {
        background: #0a1628;
    }

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

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

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

    /* Mobile menu animation */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Subtle grain overlay for editorial feel */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        opacity: 0.015;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
        z-index: 9999;
    }
