/* --- CONSULT ENCOMPASS ARCHITECTURAL STYLES --- */
body {
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* --- THE ROTATING SOVEREIGN COMPASS (MULTI-PAGE DESKTOP) --- */
.compass-nav {
    position: fixed;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold-border);
    z-index: 100;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}

.compass-nav::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(213, 159, 15, 0.2);
    animation: rotateSlow 40s linear infinite;
}

@keyframes rotateSlow {
    100% { transform: rotate(360deg); }
}

.compass-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none; /* For link styling */
}

.compass-node:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.compass-node.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(213, 159, 15, 0.5);
}

.compass-label {
    position: absolute;
    right: 60px;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.compass-node.active .compass-label {
    opacity: 1;
}

/* --- THE STEPPER CONTENT --- */
/* --- FLUID TYPOGRAPHY FOR WIDE SCREENS --- */
/* Scales body text up on large monitors for premium readability */
.step-container p {
    font-size: clamp(1.1rem, 1vw + 0.6rem, 1.3rem) !important;
    line-height: 1.8 !important;
}

.step-container ul li,
.step-container ol li {
    font-size: clamp(1.1rem, 1vw + 0.6rem, 1.3rem) !important;
    line-height: 1.8 !important;
}

/* Keeps Subheadings mathematically balanced with the newly enlarged body text */
.step-container h3 {
    font-size: clamp(1.8rem, 2vw + 0.8rem, 2.3rem) !important;
}

.step-container h4 {
    font-size: clamp(1.4rem, 1.5vw + 0.5rem, 1.8rem) !important;
}

/* --- FLUID TYPOGRAPHY HARMONIZATION --- */
/* Scales the eyebrow subheadlines (// Architecture Phase) to match the new paragraph sizes */
.tech-font {
    font-size: clamp(0.85rem, 1vw + 0.4rem, 1.1rem) !important;
    letter-spacing: 0.2em !important; 
}

/* --- COMPASS NODE GLOW (Size Reverted) --- */
/* Keeps original tiny size but adds the cinematic gold glow */
.compass-label {
    font-size: 0.75rem !important; /* Back to original crisp size */
    font-weight: 500 !important; /* Dropped from 600 to keep it sleek */
    letter-spacing: 0.15em !important; /* Back to original spacing */
    text-shadow: 0 0 10px rgba(213, 159, 15, 0.8), 0 0 20px rgba(213, 159, 15, 0.4) !important;
}

.step-container {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 100px;
    padding-right: 180px; 
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-font {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* --- MOBILE ARMOR OVERRIDES --- */
@media (max-width: 1024px) {
    .step-container { padding-right: 0 !important; padding-bottom: 150px; }

    /* --- 3. FIX FOR SQUISHED BOTTOM NAVIGATION BUTTONS --- */
    .nav-buttons {
        flex-direction: column; /* Stacks the buttons vertically */
        gap: 1.5rem !important;
    }
    .nav-buttons a {
        width: 100% !important; /* Forces buttons to span the full width */
        justify-content: center !important; /* Centers the text and icons */
    }

    .compass-nav {
        top: auto; bottom: 0; right: 0; left: 0;
        width: 100%; height: 80px;
        transform: none !important;
        border-radius: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--accent-gold-border);
        border-left: none; border-right: none; border-bottom: none;
    }
    .compass-nav::before { display: none; }
    
    .compass-node {
        position: static !important;
        transform: none !important;
        width: 35px; height: 35px; margin: 0 5px;
    }
    .compass-node.active { transform: scale(1.1) !important; }
    .compass-label { display: none; }
    
    #mobile-nav-container {
        display: flex; width: 100%; justify-content: space-around;
        align-items: center; height: 100%; padding: 0 1rem;
    }
}
/* --- BRAND LOGO SAFEGUARDS --- */
.brand-logo {
    height: 40px !important;
    width: auto !important;
    object-fit: contain;
}

.nav-logo {
    height: 16px !important;
    width: auto !important;
    object-fit: contain;
}

.footer-logo {
    height: 35px !important;
    width: auto !important;
    object-fit: contain;
}

/* --- MOBILE HEADER BEHAVIOR --- */
.mobile-actions {
    display: none; /* Hidden on desktop */
}

/* ============================================================
   RESPONSIVE & MOBILE ARMOR ( Consolidated Fixes)
   Fixes: Horizontal Scroll, Top Cutoff, Footer Cutoff, Logo Blowout
   ============================================================ */

   @media (max-width: 1024px) {
        html, body {
            overflow-x: hidden !important;
            width: 100% !important;
            max-width: 100% !important;
            position: relative !important;
        }

    .container {
        padding: 0 1.5rem !important; /* Standardized mobile padding */
        width: 100% !important; /* FIX: Changed from 100vw to 100% to stop side scrolling */
        box-sizing: border-box !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* --- 2. TOP CUTOFF & FOOTER CUTOFF COMBINED FIX --- */
    /* targets the main container for ALL steps */
    .step-container {
        /* TOP FIX: Pushes ALL content down below fixed header */
        padding-top: 100px !important; /* Adjust if needed based on header height */
        /* FIX: Symmetrical padding locks content dead-center */
        padding-left: 1.5rem !important; 
        padding-right: 1.5rem !important;
        /* GENERAL BOTTOM FIX: Safe padding for nodes bar + spacing */
        padding-bottom: 200px !important; 
    }


    /* Surgical Padding for the Footer lead capture section */
    footer#contact {
        padding-bottom: 120px !important; /* Pushes the 'Evidence' marble textured text UP above the 80px node bar */
    }


    /* --- 3. HOME PAGE HERO PADDING FIX --- */
    /* targets image_5.png specific issue to space the Eyebrow text */
    .hero-content-wrapper {
        padding: 2.5rem !important; /* Reduced from 4rem for mobile screens */
        text-align: center !important; /* Looks cleaner on mobile */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    h1.title-hero {
        text-align: center;
        /* Scales massive headline fluidly without hyphens */
        font-size: clamp(3rem, 12vw, 4.5rem) !important;
        line-height: 1.05 !important;
        word-break: keep-all !important; /* Forces whole words to drop down */
        overflow-wrap: normal !important;
        hyphens: none !important; /* Absolutely bans dashes */
    }
    div.hero-glass-box h3.hero-glass-text {
        font-size: 1.8rem !important; 
        line-height: 1.3 !important;
    }
    /* Balanced square aspect for background image */
    div.hero-glass-box {
        aspect-ratio: 1/1 !important; 
    }


    /* --- 4. THE COMPASS NAV (MULTI-PAGE MOBILE) --- */
    .compass-nav {
        position: fixed !important; /* Overrides absolute if present */
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 80px;
        transform: none !important;
        border-radius: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--accent-gold-border);
        border-left: none;
        border-right: none;
        border-bottom: none;
        z-index: 10000; /* Stays above the Grain texture/body but under Mobile Menu */
    }
    .compass-nav::before {
        display: none;
    }

    .compass-node {
        position: static !important;
        transform: none !important;
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    .compass-node.active {
        transform: scale(1.1) !important;
    }
    .compass-label {
        display: none;
    }

    #mobile-nav-container {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        padding: 0 1rem;
    }


    /* --- 5. MOBILE HEADER & MENU BEHAVIOR --- */
    .mobile-actions {
        display: flex !important; /* Shows Hamburger */
        align-items: center;
        gap: 1rem;
    }

    /* Ensure hamburger lines use text-main for visibility in Light mode */
    .hamburger span {
        background-color: var(--text-main); 
    }

    .desktop-nav {
        display: none !important; /* Hides the extra text links and big button */
    }

    /* Brand Logo Mobile Compression (Fixes image_2.png blowout) */
    .brand-logo {
        height: 30px !important; /* Slightly smaller for mobile screens */
        width: auto !important;
    }
    .logo-main {
        font-size: 1.1rem !important; /* Squeezes text on tiny screens */
    }
    .logo-sub {
        font-size: 0.5rem !important;
    }

    /* Pulls Atlas widget closer to the edge for small phones */
    .atlas-widget {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    .atlas-trigger {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    /* --- 6. MOBILE ECOSYSTEM ACCORDION --- */
    .mobile-accordion { width: 100%; border-bottom: 1px solid var(--glass-border); }
    .accordion-trigger {
        background: none; border: none; width: 100%; text-align: left;
        display: flex; justify-content: center; align-items: center; gap: 10px;
        padding: 1.5rem 0; cursor: pointer;
    }
    .mobile-accordion-content {
        max-height: 0; overflow: hidden;
        transition: max-height 0.5s var(--ease-luxury);
        background: rgba(255,255,255,0.03);
        display: flex; flex-direction: column; gap: 1rem;
    }
    .mobile-accordion-content.active { max-height: 300px; padding: 1.5rem 0; }
    .mobile-eco-item {
        display: flex; align-items: center; gap: 1.2rem;
        text-decoration: none; padding: 0.8rem 1rem;
    }
    .mobile-eco-item img {
        width: 50px; height: 50px; border-radius: 50%;
        background: rgba(255,255,255,0.08); padding: 5px;
        border: 1px solid var(--glass-border);
    }
    .mobile-eco-item .text strong { display: block; color: var(--text-main); font-size: 1.1rem; }
    .mobile-eco-item .text span { color: var(--accent-gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }


    /* --- 7. FOOTER FIX: Mobile Logo Group Stack --- */
    /* Locks footer logo layout on mobile to prevent squishing (image_2.png) */
    .footer-logo-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}

/* --- CINEMATIC SETTLE (PREMIUM LOAD ANIMATION) --- */
@keyframes cinematicSettle {
    0% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.bg-cinematic {
    animation: cinematicSettle 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center center;
    /* Hardware acceleration for buttery smooth scaling */
    will-change: transform; 
}
/* ============================================================
   KINESTHETIC MINIMALISM (2026 ANIMATIONS)
   ============================================================ */

/* --- 1. STICKY AUDIT (The Problem Section) --- */
.sticky-col {
    position: sticky;
    top: 120px; 
    height: max-content;
    z-index: 10;
}
.problem-bullet {
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

/* --- 2. SPOTLIGHT HOVER CARDS & ECOSYSTEM CARDS (Vision Pro Glass Upgrade) --- */
.spotlight-card, .ecosystem-card {
    position: relative;
    overflow: hidden;
    padding: 2.5rem; 
    border-radius: 12px; 
    
    /* 1. The Light Glare Wash (Overrides inline HTML backgrounds) */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    
    /* 2. The Multi-Layer Cinematic Blur */
    backdrop-filter: blur(24px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
    
    /* 3. The Holographic Edge (Brighter top/left simulating light reflection, dark bottom/right) */
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.3) !important;
    
    /* Structural Drop Shadow to pop it off the page */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

/* UNIVERSAL VISION GLASS CLASS (Add to any generic div to make it premium) */
.vision-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(24px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.25) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}
.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Draws a soft gold glow exactly where the mouse is */
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(213, 159, 15, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-luxury);
}
.spotlight-card:hover::before {
    opacity: 1; /* Glow appears smoothly on hover */
}
.spotlight-card > * {
    position: relative;
    z-index: 1; /* Keeps text above the spotlight */
}
/* --- 3. KINEMATIC FORM INPUTS (High-Conversion) --- */
/* Targets the inputs globally across all 6 pages */
form#consultLeadForm input {
    /* Buttery smooth transition for all interactions */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: rgba(255, 255, 255, 0.03) !important; /* Deep, premium glass resting state */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* The 'Focus' state (When the user clicks inside to type) */
form#consultLeadForm input:focus {
    outline: none !important;
    border-color: var(--accent-gold) !important; /* Snaps to Encompass Gold */
    background: rgba(255, 255, 255, 0.08) !important; /* Slightly brightens */
    /* Creates a beautiful double-glowing halo effect */
    box-shadow: 0 0 0 4px rgba(213, 159, 15, 0.15), inset 0 0 0 1px var(--accent-gold) !important;
    /* Physically lifts the input box toward the user */
    transform: translateY(-2px) !important; 
}

/* Smooths out the placeholder text (Name, Email Address) */
form#consultLeadForm input::placeholder {
    color: var(--text-ghost) !important;
    transition: opacity 0.3s ease;
}

/* Fades the placeholder text slightly when they click, so their typed text stands out */
form#consultLeadForm input:focus::placeholder {
    opacity: 0.4 !important; 
}
/* ============================================================
   GOD-TIER ARCHITECTURE (MICRO-INTERACTIONS & DEPTH)
   ============================================================ */

/* --- 4. MAGNETIC FOCAL BLURRING --- */
/* When a container holding cards is hovered, blur and push back the cards NOT being hovered */
div:has(> .spotlight-card):hover .spotlight-card:not(:hover),
div:has(> .ecosystem-card):hover .ecosystem-card:not(:hover) {
    filter: blur(6px) brightness(0.6) !important;
    transform: scale(0.96) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --- 5. DYNAMIC ISLAND PROGRESS BAR --- */
#scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent-gold);
    width: 0%;
    border-radius: 0 0 50px 50px; 
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-gold);
}

/* --- 6. "GOLD DUST" SHIMMER REVEAL --- */
/* Automatically targets the gold text in your massive Hero headlines */
.title-hero span {
    background: linear-gradient(90deg, var(--accent-gold) 0%, #ffffff 40%, var(--accent-gold) 80%);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}
@keyframes goldShimmer {
    to { background-position: 200% center; }
}

/* --- 7. THE "APERTURE" PAGE WIPE --- */
/* Makes the entire page smoothly blur and fade out when a link is clicked */
body {
    transition: opacity 0.4s ease, filter 0.4s ease;
}
body.is-transitioning {
    opacity: 0;
    filter: blur(15px);
}
/* ============================================================
   DEPTH ENGINES (AURORA & ELEVATION)
   ============================================================ */

/* OPTION 1: THE GOLD AURORA (Refraction Underlay) */
.depth-aurora {
    position: relative;
    z-index: 1;
}
/* Creates a massive, soft gold orb behind the container */
.depth-aurora::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%; 
    height: 150%;
    background: radial-gradient(circle, rgba(213, 159, 15, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
    pointer-events: none; /* Ensures it doesn't block mobile tapping */
}

/* OPTION 2: THE APPLE ELEVATION (Light Mode Shadow & Glare) */
.depth-elevation {
    background: rgba(255, 255, 255, 0.6) !important; 
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    /* Harsh white glare on top, soft dark edge on bottom */
    border-top: 1px solid rgba(255, 255, 255, 1) !important; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Deep ambient shadow + tight contact shadow */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
/* --- 8. ACTIVE NETWORK CIRCUIT (ECOSYSTEM PULSE) --- */
.network-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.network-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(213, 159, 15, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* The structural nodes on each end of the line */
.network-line::before, .network-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-gold);
}
.network-line::before { left: 0; }
.network-line::after { right: 0; }

/* The physical light pulse */
.network-pulse {
    position: absolute;
    top: -1px;
    left: -50%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    box-shadow: 0 0 10px rgba(213, 159, 15, 0.8);
    animation: dataPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Stagger the pulse timings so they don't all fire at once */
.pulse-delay-1 { animation-delay: 0s; }
.pulse-delay-2 { animation-delay: 1s; }
.pulse-delay-3 { animation-delay: 2s; }

@keyframes dataPulse {
    0% { left: -50%; opacity: 0; }
    10% { opacity: 1; }
    40% { left: 100%; opacity: 1; }
    50% { opacity: 0; }
    100% { left: 100%; opacity: 0; }
}

/* Mobile wrap fix */
@media (max-width: 768px) {
    .network-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .network-line {
        width: 100%;
        margin: 0.5rem 0;
    }
}
/* --- 9. DEEP SPACE BLUEPRINT WATERMARK --- */
.blueprint-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: url('../consult.png') center/contain no-repeat;
    /* Locks it dead center */
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.03; 
    pointer-events: none;
    z-index: 0;
    /* Uses the new locked-center animation below */
    animation: rotateBlueprint 60s linear infinite;
    filter: grayscale(100%) brightness(200%) sepia(100%) hue-rotate(5deg) saturate(500%);
}

/* Custom physics: Spins 360 degrees while mathematically forced to stay in the center */
@keyframes rotateBlueprint {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* --- 10. ARCHITECTURAL ICONOGRAPHY (RAZOR-THIN SVGS) --- */
/* Targets all Lucide SVGs globally and forces a premium thin-line stroke */
svg.lucide {
    stroke-width: 1.25px !important; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease !important;
}

/* Subtle Kinesthetic Micro-Interaction */
/* When hovering a card, the icon subtly lifts and catches the "light" */
.spotlight-card:hover svg.lucide,
.ecosystem-card:hover svg.lucide,
.problem-bullet:hover svg.lucide {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(213, 159, 15, 0.5));
}