body { 
            -webkit-font-smoothing: antialiased; 
            -moz-osx-font-smoothing: grayscale; 
            background-color: #050505; 
        }

        .scrollbar-hide::-webkit-scrollbar { display: none; }
        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
        ::selection { background-color: #D4AF37; color: black; }
        
        /* The Base Organic Ambient Background */
        .bg-ambient {
            background: linear-gradient(-45deg, #050505, #1e293b, #0a0a0a, #3a1c31, #0f172a);
            background-size: 400% 400%;
        }

        /* Amplified Hardware Accelerated Cinematic Motion (Ken Burns) */
        @keyframes cinematic-pan {
            0% { transform: scale(1.0) translate3d(0px, 0px, 0px); }
            100% { transform: scale(1.25) translate3d(-2.5%, 3.5%, 0px); }
        }
        
        .animate-cinematic {
            animation: cinematic-pan 45s ease-in-out infinite alternate;
            will-change: transform;
        }

        /* Restored Frosted Glass Physics */
        .glass, .glass-dark {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: 1px solid rgba(255, 255, 255, 0.2); 
            border-left: 1px solid rgba(255, 255, 255, 0.15); 
            box-shadow: 
                0 20px 40px -10px rgba(0, 0, 0, 0.5), 
                inset 0 1px 15px rgba(255, 255, 255, 0.05);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.3s ease;
        }
        
        .glass-dark {
            background: linear-gradient(135deg, rgba(20, 30, 40, 0.3) 0%, rgba(10, 15, 20, 0.1) 100%);
        }

        /* Micro-Haptic Click */
        .glass:active, .glass-dark:active, button:active, a:active {
            transform: scale(0.98);
        }
        
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Modal Transitions */
        .modal {
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .modal.active {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            transform: scale(0.95) translateY(20px);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .modal.active .modal-content {
            transform: scale(1) translateY(0);
        }

        /* FAQ Accordion Transitions */
        .faq-content {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.4s ease-out;
        }
        .faq-content.open {
            grid-template-rows: 1fr;
        }
        .faq-inner { overflow: hidden; }
        .faq-icon { transition: transform 0.4s ease-out; }
        .faq-icon.open { transform: rotate(180deg); }

        /* Custom iOS Sliders */
        input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%;
            background: #ffffff; cursor: pointer; margin-top: -10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.5); border: 1px solid rgba(0,0,0,0.1);
        }
        input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

        /* Custom Cursor Ring */
        body.custom-cursor-active * { cursor: none !important; }
        #custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 40px;
            height: 40px;
            border: 2px solid #D4AF37; 
            border-radius: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none; 
            z-index: 9999;
            transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s ease;
            mix-blend-mode: difference;
            opacity: 0;
        }
        #custom-cursor::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 4px;
            height: 4px;
            background-color: #D4AF37;
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }
        .cursor-hover #custom-cursor {
            width: 60px;
            height: 60px;
            background-color: rgba(212, 175, 55, 0.1);
        }

/* Repo refresh: mobile-first refinements */
html { scroll-padding-top: 96px; }
.ios-shadow { box-shadow: 0 24px 60px -24px rgba(0,0,0,0.55); }
.ios-card-hover:hover { transform: translateY(-6px); }
.mobile-sticky-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(9, 9, 9, 0.7);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 22px 48px rgba(0,0,0,0.4);
}
.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.mobile-sticky-btn-primary { background: #D4AF37; color: #101010; }
.mobile-sticky-btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.12); }

.market-table tbody tr { background: rgba(255,255,255,0.01); }
.market-table tbody tr:hover { background: rgba(255,255,255,0.06); }
.mobile-market-card.active-card,
.market-table tbody tr.bg-white\/10 { 
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(255,255,255,0.06));
    border-color: rgba(212,175,55,0.32);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
#advisor .glass-dark { min-height: 100%; }

@media (max-width: 1023px) {
    #custom-cursor { display: none !important; }
}

@media (max-width: 767px) {
    body { padding-bottom: 98px; }
    nav .max-w-\[1800px\] { padding-left: 14px; padding-right: 14px; }
    #navbar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    #nav-logo-box { height: 34px; padding-left: 10px; padding-right: 10px; }
    header { min-height: auto; }
    header .pt-32 { padding-top: 8rem; }
    header .pb-16 { padding-bottom: 4.5rem; }
    h1.reveal { font-size: clamp(3.15rem, 14vw, 4.75rem); line-height: 0.98; letter-spacing: -0.04em; }
    header p.reveal { font-size: 1.06rem; line-height: 1.6; max-width: none; }
    header .reveal.delay-200.flex.items-center { font-size: 10px; line-height: 1.5; }
    header .reveal.delay-300 { width: 100%; }
    header .reveal.delay-300 button { width: 100%; min-height: 58px; }
    .glass-dark, .glass { border-radius: 1.6rem; }
    .reveal { transform: translateY(22px); }
    #advisor { padding-top: 1rem; }
    #advisor .max-w-\[1800px\] { gap: 1.5rem; }
    #advisor .space-y-6 { font-size: 1rem; line-height: 1.75; }
    #advisor .h-\[400px\] { height: 340px; }
    #inventory .grid { gap: 1.8rem; }
    #inventory a.group .flex.justify-between.items-end { flex-direction: column; align-items: flex-start; gap: 12px; }
    #inventory h3 { font-size: 1.65rem; line-height: 1.15; }
    #inventory .text-right { text-align: left; }
    #market { padding-top: 3.5rem; }
    #market h2 { font-size: 2.5rem; line-height: 1.05; }
    #concierge-form h2 { font-size: 2.7rem; line-height: 1.04; }
    #concierge-form form { padding: 1.35rem; border-radius: 1.8rem; }
    #concierge-form .grid { gap: 1rem; margin-bottom: 1.3rem; }
    #concierge-form input, #concierge-form select { padding: 1rem 1.15rem; border-radius: 1rem; }
    footer { padding-bottom: 7rem; }
    footer .grid { gap: 2rem; }
    footer .rounded-\[2rem\] { border-radius: 1.5rem; }
    #mobile-menu .text-3xl { font-size: 2.25rem; }
}

@media (min-width: 768px) {
    .mobile-sticky-bar { display: none; }
}

/* Market command center overhaul */
.market-command-center {
    background: linear-gradient(135deg, rgba(17,24,32,0.58), rgba(9,12,18,0.28));
}
.market-command-grid {
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.market-desktop-trigger {
    position: relative;
    overflow: hidden;
}
.market-desktop-trigger::before,
.mobile-market-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.12), transparent 42%, rgba(255,255,255,0.02));
    opacity: 0;
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.market-desktop-trigger:hover::before,
.market-desktop-trigger.is-active::before,
.mobile-market-card.active-card::before {
    opacity: 1;
}
.market-desktop-trigger:hover,
.market-desktop-trigger.is-active {
    transform: translateY(-4px) scale(1.006);
    border-color: rgba(212,175,55,0.26);
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(255,255,255,0.04));
    box-shadow: 0 22px 38px rgba(0,0,0,0.22), inset 0 1px 18px rgba(255,255,255,0.04);
}
.market-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
}
.market-map-stage { isolation: isolate; }
.market-map-frame {
    transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.02);
}
.market-map-frame.is-visible {
    transform: scale(1);
}
.market-map-chip { box-shadow: 0 18px 36px rgba(0,0,0,0.18); }
.market-map-overlay {
    background: linear-gradient(135deg, rgba(20,30,40,0.54), rgba(12,16,24,0.26));
}
.mobile-market-card {
    position: relative;
    scroll-snap-align: center;
    min-height: 22rem;
}
.mobile-market-card.active-card {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(212,175,55,0.26);
    background: linear-gradient(135deg, rgba(212,175,55,0.13), rgba(255,255,255,0.04));
    box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}
.mobile-market-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(255,255,255,0.18);
    transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1);
    flex: 0 0 auto;
}
.mobile-market-dot.active-dot {
    width: 1.55rem;
    background: linear-gradient(90deg, rgba(212,175,55,0.98), rgba(255,255,255,0.9));
    border-color: rgba(212,175,55,0.42);
    box-shadow: 0 0 18px rgba(212,175,55,0.24);
    transform: scale(1.02);
}
#mobile-market-rail {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding-left: 7%;
    scroll-padding-right: 7%;
}
#mobile-market-rail::after {
    content: "";
    flex: 0 0 1px;
}
@media (max-width: 767px) {
    #market .glass-dark.rounded-\[2rem\] { border-radius: 1.75rem; }
    #market h2 { font-size: clamp(2.65rem, 9.8vw, 3.45rem); line-height: 0.98; }
    .mobile-market-card { width: min(86%, 22rem); }
}
