/* Neural Partners Homepage CSS - Primary Lane (Default) */
/* This file contains homepage-specific styles */

:root {
    --header-height: 75px;
}

/* ========================================================================
   DUAL-LANE DETECTION STYLES
   Primary Lane: Default experience (targets 85+ PageSpeed)
   Optimized Lane: Fallback for slow connections + AI discovery
   ======================================================================== */

/* Primary Lane (Default) - Rich experience */
body:not(.neural-optimized-lane) {
    /* Rich animations enabled */
    --animation-duration: 0.6s;
    --transition-duration: 0.3s;
}

/* Optimized Lane - Performance focused */
body.neural-optimized-lane {
    /* Reduced or disabled animations */
    --animation-duration: 0.1s;
    --transition-duration: 0.1s;
}

/* Hide heavy elements in Optimized Lane */
.neural-optimized-lane .primary-only {
    display: none !important;
}

/* Show optimized alternatives in Optimized Lane */
.primary-only-fallback {
    display: none;
}

.neural-optimized-lane .primary-only-fallback {
    display: block;
}

/* ========================================================================
   HERO SECTION - HOMEPAGE SPECIFIC
   ======================================================================== */

/* Hero Section - Full viewport */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--neural-black);
    /* Smooth transitions for scroll animations */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, filter;
}

/* Background Video - Full coverage */
.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 0; /* Behind all content */
    object-fit: cover;
    pointer-events: none; /* Prevent interaction */
}

/* Black overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1; /* Above video, below content */
    pointer-events: none;
}

/* Mobile optimization for video */
@media (max-width: 768px) {
    .hero-background-video {
        /* For mobile, ensure video covers viewport even in portrait */
        width: 100vw;
        height: 100vh;
        transform: translate(-50%, -50%);
    }
}

/* DEV: 50% height indicator for hero - REMOVED */

.hero-content-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 60px;
    z-index: 2; /* Above overlay */
}

@media (max-width: 768px) {
    .hero-content-wrapper {
        padding: 30px;
    }
}

/* Hero styles moved to new animation structure */

/* Hero background gradient (Primary Lane) - REMOVED */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: none;  /* Hide gradient background */
}

.hero-gradient {
    width: 100%;
    height: 100%;
    background: transparent;  /* No gradient */
    opacity: 0;
}

/* Optimized Lane - Disable gradient animation */
.neural-optimized-lane .hero-gradient {
    display: none;
}

/* 3D Cube Background - Primary Lane Only */
.neural-cube-overlay {
    position: absolute;
    inset: 0;
    background: transparent;  /* No gradient, just transparent */
    pointer-events: none;
    z-index: 1;
}

/* Optimized Lane - Simple gradient background */
.neural-optimized-lane .neural-cube-overlay {
    background: transparent;  /* No gradient */
}

/* Mindfully Modern - Fixed upper left */
.hero-title-top {
    position: absolute;
    top: 40px;  /* Reduced top padding */
    left: 40px;  /* Reduced left padding */
    z-index: 4;  /* Ensure it stays above the expanding background */
}

/* Fix for H1UserAgentFontSizeInSection deprecation warning */
section h1 {
    font-size: inherit;
}

.hero-title-mindfully {
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 300;  /* Light weight - matching about section */
    line-height: 1.3;
    letter-spacing: 0.12em;
    color: var(--neural-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title-mindfully .hero-highlight--warm {
    color: #ff8c42;  /* Brighter orange */
    font-weight: 300;  /* Keep consistent weight - now light */
    filter: brightness(1.2);
}

/* Expanding Rectangle Background - Computer Screen */
.hero-expanding-bg {
    position: absolute;
    top: 100px;  /* Consistent top spacing */
    left: 60px;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.4);  /* Semi-transparent black for glassmorphism */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 3px solid rgba(60, 60, 65, 0.8);
    border-radius: 12px;
    box-shadow: 
        0 0 60px rgba(0, 0, 0, 0.4),
        0 20px 80px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    z-index: 1;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: top left;
    overflow: hidden;
    will-change: width, height;  /* GPU optimization for expansion animation */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

/* Video within expanding container */
.hero-container-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s;
}

/* Show video when container expands */
.hero-expanding-bg.expanded .hero-container-video {
    opacity: 1;
}

/* Video overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out;
    background: rgba(0, 0, 0, 0.5);  /* Uniform 0.5 opacity */
    z-index: 0;
    pointer-events: none;
}


.hero-expanding-bg.expanded {
    /* Container starts at left: 60px and top: 100px */
    /* Balanced spacing for visual harmony */
    width: calc(100vw - 240px);  /* 60px left + 180px right padding */
    height: calc(100vh - 320px);  /* 100px top + 220px bottom padding */
    animation: innerGlow 3s ease-in-out 1.5s; /* 1.5s delay (1s expansion + 0.5s wait) */
    animation-fill-mode: forwards;
}

/* Border wave/brightness animation that triggers after expansion */
@keyframes innerGlow {
    0%, 100% {
        border-color: rgba(60, 60, 65, 0.8);
        box-shadow: 
            0 0 60px rgba(0, 0, 0, 0.4),
            0 20px 80px rgba(0, 0, 0, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.05);
    }
    25% {
        border-color: rgba(147, 51, 234, 1); /* Bright purple */
        border-width: 4px;
        box-shadow: 
            0 0 20px rgba(0, 0, 0, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.2),
            inset 0 0 2px rgba(147, 51, 234, 0.8);
    }
    50% {
        border-color: rgba(168, 85, 247, 1); /* Even brighter purple */
        border-width: 5px;
        filter: brightness(1.5);
        box-shadow: 
            0 0 20px rgba(0, 0, 0, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.2),
            inset 0 0 3px rgba(168, 85, 247, 1);
    }
    75% {
        border-color: rgba(147, 51, 234, 1); /* Back to bright purple */
        border-width: 4px;
        filter: brightness(1.2);
        box-shadow: 
            0 0 20px rgba(0, 0, 0, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.2),
            inset 0 0 2px rgba(147, 51, 234, 0.8);
    }
}

/* Screen bezel effect + glow overlay animation */
.hero-expanding-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Animated wave overlay - only visible when expanded */
.hero-expanding-bg.expanded::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 45%,
        rgba(60, 19, 97, 0.35) 48%,
        rgba(60, 19, 97, 0.5) 50%,
        rgba(60, 19, 97, 0.35) 52%,
        transparent 55%,
        transparent 100%
    );
    background-size: 300% 300%;
    background-position: 150% 150%;
    animation: waveSwipe 2.5s ease-out 1.5s;
    animation-fill-mode: forwards;
}

@keyframes waveSwipe {
    0% {
        background-position: 150% 150%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        background-position: -50% -50%;
        opacity: 0;
    }
}



    font-size: 0.9em;
    margin-left: 8px;
}

/* Glass breaking and split effect */
.hero-expanding-bg.breaking {
    animation: glassShatter 0.5s ease-out forwards;
}

/* Crack lines that appear before split */
.hero-expanding-bg.cracking::before,
.hero-expanding-bg.cracking::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.8) 90%,
        transparent 100%
    );
    z-index: 10;
    animation: crackAppear 0.4s ease-out forwards; /* Slower crack appearance */
}

.hero-expanding-bg.cracking::before {
    left: 33%;
    transform: rotate(0.5deg);
}

.hero-expanding-bg.cracking::after {
    left: 66%;
    transform: rotate(-0.5deg);
}

@keyframes crackAppear {
    0% {
        height: 0;
        opacity: 0;
        filter: blur(0);
    }
    50% {
        height: 100%;
        opacity: 1;
        filter: blur(0.5px);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        height: 100%;
        opacity: 0.7;
        filter: blur(0);
    }
}

@keyframes glassShatter {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Split containers for the broken glass effect - optimized for performance */
.hero-split-left,
.hero-split-right,
.hero-split-center {
    position: absolute;
    top: 240px;  /* Balanced position - middle ground */
    width: calc(33.33% - 20px);  /* Three equal cards with gaps */
    height: calc(100vh - 460px);  /* Balanced height */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 3px solid rgba(60, 60, 65, 0.8);
    will-change: transform, opacity;  /* GPU optimization */
    transform: translateZ(0);  /* Force GPU layer */
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    z-index: 1;
}

.hero-split-left {
    left: calc(33% - 15%);  /* Start at crack position */
    transform: scale(1);
}

.hero-split-right {
    right: calc(33% - 15%);  /* Start at crack position */
    transform: scale(1);
}

.hero-split-center {
    left: 50%;
    transform: translateX(-50%) scale(1);
}

/* Seamless split animation - THREE cards appear first */
.hero-split-left.active {
    opacity: 1;
    left: 10px;  /* Small gap from edge */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                left 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);
}

.hero-split-right.active {
    opacity: 1;
    right: 10px;  /* Small gap from edge */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                right 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);
}

.hero-split-center.active {
    opacity: 1;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
                width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Added width transition */
}

/* Video styling for split containers */
.hero-split-video {
    position: absolute;
    top: 0;
    left: 50%;
    min-width: 200%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    z-index: -1;
}

.hero-split-left .hero-split-video {
    left: 0;
    transform: translateX(0);
}

.hero-split-right .hero-split-video {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* Hide original container when split */
.hero-expanding-bg.hidden {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

/* Hide the split containers when fragments appear */
.hero-split-left.hidden,
.hero-split-right.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

/* Small fragment cards (4 per side) - appear AFTER the split */
.hero-fragment {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    will-change: transform, opacity, width;
    transform: translateZ(0) scale(0.8); /* Start smaller for smoother appearance */
    overflow: hidden; /* Ensure videos stay contained */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(60, 60, 65, 0.8);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    z-index: 1;
    /* Reduced width */
    width: 14.5%;
    height: calc((100vh - 460px) / 2 - 10px);
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1); /* Prepare for smooth transitions */
}

/* Left side fragments - Moved slightly right */
.hero-fragment-left-tl {
    top: 255px;  /* Moved down */
    left: 2.5%;  /* Moved right */
    transform: scale(0.95) translate3d(0, 0, 0);
}

.hero-fragment-left-tr {
    top: 255px;  /* Moved down */
    left: calc(2.5% + 14.5% + 8px);  /* Adjusted for new position */
    transform: scale(0.95) translate3d(0, 0, 0);
}

.hero-fragment-left-bl {
    bottom: 225px;  /* Adjusted to maintain spacing */
    left: 2.5%;  /* Moved right */
    transform: scale(0.95) translate3d(0, 0, 0);
}

.hero-fragment-left-br {
    bottom: 225px;
    left: calc(2.5% + 14.5% + 8px);
    transform: scale(0.95) translate3d(0, 0, 0);
}

/* Right side fragments - Moved slightly left */
.hero-fragment-right-tl {
    top: 255px;  /* Moved down */
    right: calc(2.5% + 14.5% + 8px);  /* Moved left */
    transform: scale(0.95) translate3d(0, 0, 0);
}

.hero-fragment-right-tr {
    top: 255px;  /* Moved down */
    right: 2.5%;  /* Moved left */
    transform: scale(0.95) translate3d(0, 0, 0);
}

.hero-fragment-right-bl {
    bottom: 225px;  /* Adjusted */
    right: calc(2.5% + 14.5% + 8px);
    transform: scale(0.95) translate3d(0, 0, 0);
}

.hero-fragment-right-br {
    bottom: 225px;
    right: 2.5%;
    transform: scale(0.95) translate3d(0, 0, 0);
}

/* Animation for fragments appearing - on beat timing */
.hero-fragment.active {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
                opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1),
                width 0.8s cubic-bezier(0.33, 1, 0.68, 1),
                height 0.8s cubic-bezier(0.33, 1, 0.68, 1),
                top 0.8s cubic-bezier(0.33, 1, 0.68, 1),
                bottom 0.8s cubic-bezier(0.33, 1, 0.68, 1),
                left 0.8s cubic-bezier(0.33, 1, 0.68, 1),
                right 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}
/* Staggered appearance for fragments - cascading wave effect */
.hero-fragment-left-tl.active { transition-delay: 0s; }
.hero-fragment-left-tr.active { transition-delay: 0.05s; }
.hero-fragment-left-bl.active { transition-delay: 0.1s; }
.hero-fragment-left-br.active { transition-delay: 0.15s; }
.hero-fragment-right-tl.active { transition-delay: 0.05s; }
.hero-fragment-right-tr.active { transition-delay: 0s; }
.hero-fragment-right-bl.active { transition-delay: 0.15s; }
.hero-fragment-right-br.active { transition-delay: 0.1s; }

/* Center card expansion state */
.hero-split-center.expanded {
    width: calc(65% - 40px) !important; /* Expand from 30% to 65% for more text room */
    transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth scroll expansion */
    box-shadow: 
        0 0 30px rgba(60, 19, 97, 0.4),
        inset 0 0 20px rgba(60, 19, 97, 0.2);
    transform-origin: center center; /* Expand from center */
    will-change: transform, width; /* Optimize for animation */
}

/* Darker overlay for expanded center card */
.hero-split-center.expanded .hero-video-overlay {
    background: rgba(0, 0, 0, 0.8); /* Dark overlay for text readability */
    transition: background 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text reveal on center card expansion */
.hero-expansion-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 45px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 10;
    pointer-events: none;
}

.hero-expansion-text-primary {
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--neural-white);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: left;
    position: relative;
    background: linear-gradient(
        90deg,
        var(--neural-white) 0%,
        var(--neural-white) 45%,
        rgba(168, 85, 247, 0.7) 50%,
        var(--neural-white) 55%,
        var(--neural-white) 100%
    );
    background-size: 300% 100%;
    background-position: -150% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Active states when center expands */
.hero-split-center.expanded .hero-expansion-text-primary {
    opacity: 1;
    animation: glowWaveText 8s linear infinite;
}

@keyframes glowWaveText {
    0% {
        background-position: -150% 0;
    }
    100% {
        background-position: 150% 0;
    }
}

/* Compressed fragments when center expands */
.hero-fragment.compressed {
    width: calc(7% - 5px) !important; /* Smaller width to fit when center is wider */
    transform: scale(0.95) translate3d(0, 0, 0) !important; /* Slight scale for smooth compression */
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth scroll transitions */
}

/* Adjust vertical positioning for smaller fragments */
.hero-fragment-left-tl.compressed,
.hero-fragment-right-tl.compressed {
    top: 200px !important; /* Move down more */
    height: calc(20vh - 40px) !important; /* Shorter height - 20% of viewport */
}

.hero-fragment-left-bl.compressed,
.hero-fragment-right-bl.compressed {
    top: auto !important;
    bottom: 200px !important; /* Move up more */
    height: calc(20vh - 40px) !important; /* Shorter height - 20% of viewport */
}

/* Adjust left fragments positioning when compressed - keep on screen */
.hero-fragment-left-tl.compressed {
    left: 2% !important;
}
.hero-fragment-left-tr.compressed {
    left: calc(2% + 7%) !important;  /* Adjusted for smaller cards */
}
.hero-fragment-left-bl.compressed {
    left: 2% !important;
}
.hero-fragment-left-br.compressed {
    left: calc(2% + 7%) !important;  /* Adjusted for smaller cards */
}

/* Adjust right fragments positioning when compressed - keep on screen */
.hero-fragment-right-tl.compressed {
    right: calc(2% + 7%) !important;  /* Adjusted for smaller cards */
}
.hero-fragment-right-tr.compressed {
    right: 2% !important;
}
.hero-fragment-right-bl.compressed {
    right: calc(2% + 7%) !important;  /* Adjusted for smaller cards */
}
.hero-fragment-right-br.compressed {
    right: 2% !important;
}

/* Video positioning for fragments to show faces */
.hero-fragment .hero-split-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 120%; /* Ensure full coverage */
    min-width: 100%;
    object-fit: cover;
    object-position: center center; /* Center the video content */
}

/* Left fragment videos - extend 60% to the right while contained */
.hero-fragment-left-tl .hero-split-video,
.hero-fragment-left-tr .hero-split-video,
.hero-fragment-left-bl .hero-split-video,
.hero-fragment-left-br .hero-split-video {
    width: 160%; /* Extend width by 60% */
    left: 80%; /* Shift right: 50% + (60%/2) */
    transform: translate(-50%, -50%); /* Adjust centering */
    object-position: 30% center; /* Show more of the left side of the video */
}

/* Right fragment videos - extend 60% to the left while contained */
.hero-fragment-right-tl .hero-split-video,
.hero-fragment-right-tr .hero-split-video,
.hero-fragment-right-bl .hero-split-video,
.hero-fragment-right-br .hero-split-video {
    width: 160%; /* Extend width by 60% */
    left: 20%; /* Shift left: 50% - (60%/2) */
    transform: translate(-50%, -50%); /* Adjust centering */
    object-position: 70% center; /* Show more of the right side of the video */
}

/* Fragment videos - no animations, static positioning */
.hero-fragment-left-tl .hero-split-video,
.hero-fragment-left-tr .hero-split-video,
.hero-fragment-left-bl .hero-split-video,
.hero-fragment-left-br .hero-split-video {
    transform-origin: center center;
}

.hero-fragment-right-tl .hero-split-video,
.hero-fragment-right-tr .hero-split-video,
.hero-fragment-right-bl .hero-split-video,
.hero-fragment-right-br .hero-split-video {
    transform-origin: center center;
}

/* Crack effect for secondary split */
.hero-split-left.cracking-secondary::before,
.hero-split-right.cracking-secondary::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(168, 85, 247, 0.8) 10%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(168, 85, 247, 0.8) 90%,
        transparent 100%
    );
    z-index: 10;
    animation: crackAppear 0.4s ease-out forwards; /* Slower crack appearance */
}

.hero-split-left.cracking-secondary::after,
.hero-split-right.cracking-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(168, 85, 247, 0.8) 10%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(168, 85, 247, 0.8) 90%,
        transparent 100%
    );
    z-index: 10;
    animation: crackAppear 0.4s ease-out forwards; /* Slower crack appearance */
}

/* Hexagonal fragment styles */
.hex-fragment {
    position: absolute;
    width: 80px;
    height: 80px;
    overflow: hidden;
    opacity: 1;
    transition: all 2.5s cubic-bezier(0.23, 1, 0.32, 1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(116, 238, 221, 0.3);
}

/* Video inside hex fragments */
.hex-fragment video {
    position: absolute;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Glowing edge effect for hexagons */
.hex-fragment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: inherit;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(116, 238, 221, 0.2) 50%,
        transparent 70%
    );
    animation: hexGlow 3s ease-in-out infinite;
}

@keyframes hexGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Spiral drift animation classes */
.hex-fragment.drift-tl {
    transform: translate(-200%, -200%) rotate(360deg) scale(0);
    opacity: 0;
}

.hex-fragment.drift-tr {
    transform: translate(200%, -200%) rotate(-360deg) scale(0);
    opacity: 0;
}

.hex-fragment.drift-bl {
    transform: translate(-200%, 200%) rotate(-360deg) scale(0);
    opacity: 0;
}

.hex-fragment.drift-br {
    transform: translate(200%, 200%) rotate(360deg) scale(0);
    opacity: 0;
}

.hex-fragment.drift-center {
    transform: scale(0) rotate(720deg);
    opacity: 0;
}

/* Container for hexagonal fragments */
.hex-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}



@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 10px;
    }
}

/* Quietly Disruptive - Animated element */
.hero-title-bottom {
    position: absolute;
    top: 220px;  /* Move up slightly to maintain spacing with moved Mindfully Modern */
    left: 60px;
    z-index: 3;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;  /* GPU acceleration for animation */
}

.hero-title-bottom.moved {
    transform: translateX(calc(100vw - 1200px)) translateY(calc(100vh - 450px));  /* Adjusted positioning */
}

.hero-title-quietly {
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 300;  /* Light weight - matching about section */
    line-height: 1.3;
    letter-spacing: 0.12em;
    color: var(--neural-white);
    margin: 0;
    text-align: left;
    transition: text-align 0.5s ease 1s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title-bottom.moved .hero-title-quietly {
    text-align: right;
}

.hero-title-quietly .hero-highlight--cool {
    color: #6b3c9b;  /* Brighter purple */
    font-weight: 300;  /* Keep consistent weight - now light */
    filter: brightness(1.3);
}

/* Subtitle - Initially hidden, appears above Quietly Disruptive */
.hero-subtitle-wrapper {
    position: absolute;
    bottom: 200px;
    right: 60px;
    max-width: 600px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 1.5s,
                transform 0.5s ease-out 1.5s;
}

.hero-subtitle-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
    margin: 0;
}

@media (max-width: 768px) {
    /* Hero section container */
    .hero-section {
        min-height: 100vh;
        overflow: hidden;
        padding: 0;
    }
    
    .hero-content-wrapper {
        padding: 80px 20px 20px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title-top {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Reduce title sizes for mobile */
    .hero-title-mindfully {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-expanding-bg {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 20px auto;
        width: calc(100% - 40px) !important;
        height: 250px !important;
    }
    
    /* Hide fragments on mobile for better performance */
    .hero-fragment {
        display: none !important;
    }
    
    /* Hide side split containers on mobile - only show center */
    .hero-split-left,
    .hero-split-right {
        display: none !important;
    }
    
    /* Center card takes full width on mobile */
    .hero-split-center {
        width: calc(100% - 40px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .hero-split-center.expanded {
        width: calc(100% - 20px) !important;
        height: calc(100vh - 200px) !important;
        box-shadow: 
            0 0 20px rgba(60, 19, 97, 0.3),
            inset 0 0 10px rgba(60, 19, 97, 0.1) !important;
    }
    
    /* Adjust expansion text for mobile */
    .hero-expansion-text {
        padding: 20px !important;
        overflow-y: auto;
        max-height: 100%;
    }
    
    .hero-expansion-text-primary {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        word-break: break-word;
    }
    
    /* Hide elements that cause overflow */
    .hero-fragment,
    .hero-split-left,
    .hero-split-right {
        display: none !important;
    }
    
    /* Disable complex animations on mobile */
    .hero-split-center {
        transition: opacity 0.5s ease-out !important;
    }
    
    .hero-expanding-bg.expanded {
        width: calc(100% - 40px) !important;
        height: 300px !important;
        transform: none !important;
    }
    
    
    
    
    .hero-title-bottom {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 20px;
        text-align: center;
    }
    
    .hero-title-bottom.moved {
        transform: none !important;
    }
    
    .hero-title-quietly {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle-wrapper {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        margin-top: 30px;
        padding: 0;
        max-width: 100%;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-title-mindfully,
    .hero-title-quietly {
        font-size: clamp(3.5rem, 9vw, 5rem);
        letter-spacing: 0.03em;
    }
}


/* ========================================================================
   SCROLL ANIMATIONS - HOMEPAGE SPECIFIC
   ======================================================================== */

/* Base animation setup - elements start hidden */
[class*="neural-"] .animate-in:not(.animated) {
    opacity: 0;
}

/* Fade Up Animation */
.fade-up:not(.animated) {
    transform: translateY(30px);
}

.fade-up.animate-in {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
.fade-in:not(.animated) {
    opacity: 0;
}

.fade-in.animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scale In Animation */
.scale-in:not(.animated) {
    transform: scale(0.9);
    opacity: 0;
}

.scale-in.animate-in {
    animation: scaleIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide In Right Animation */
.slide-in-right:not(.animated) {
    transform: translateX(-50px);
    opacity: 0;
}

.slide-in-right.animate-in {
    animation: slideInRight 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Section visibility states */
section.in-view {
    /* Can be used for section-wide effects */
}

section.centered {
    /* When section is centered in viewport */
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================================================
   ABOUT SECTION - HOMEPAGE SPECIFIC
   ======================================================================== */

.neural-about-section {
    min-height: 60vh;  /* Extended to 60% viewport height */
    display: flex;
    align-items: center;
    padding: 80px 40px;
    background: var(--neural-black);
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid var(--neural-white);
    /* Border removed - debug cleanup */
    /* Smooth transitions for scroll animations */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, filter;
    /* Initial state for animation - starts invisible and scaled down */
    opacity: 0;
    transform: translateY(40px) scale(0.92);
}

/* DEV: 50% height indicator for about section - REMOVED */

.neural-about-section .container {
    max-width: 1600px;  /* Increased for more width */
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;  /* More padding for better spacing */
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;  /* Slightly wider left column */
    gap: 100px;  /* Increased gap */
    align-items: center;
}

/* Merged About + What content layout */
.about-merged-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    min-height: calc(100vh - 160px); /* Account for section padding */
}

.about-row,
.what-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
    width: 100%;
}

/* Left Column - Large Text */
.about-left {
    padding-right: 0;  /* Removed padding */
}

.about-label {
    font-size: 1.5rem;  /* Larger */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Animation support */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-title {
    font-size: clamp(3.25rem, 6vw, 5.5rem);  /* Slightly smaller than before */
    font-weight: 300;
    line-height: 1.3;  /* Increased from 1.05 to create more gap between lines */
    color: var(--neural-white);
    margin: 0;
    letter-spacing: -1px;
    /* Animation support */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Right Column - Description */
.about-right {
    padding-left: 0;  /* Removed padding */
}

.about-description {
    font-size: 1.75rem;  /* Larger text */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;  /* More spacing between paragraphs */
    /* Animation support */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-description:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--neural-white);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .neural-about-section {
        padding: 60px 30px;
        min-height: auto;  /* Allow natural height on mobile */
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-merged-content {
        min-height: auto;
    }
    
    .about-row,
    .what-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }
    
    .about-left,
    .about-right {
        padding: 0;
    }
    
    .about-label {
        font-size: 1.25rem;
    }
    
    .about-title {
        font-size: clamp(2.5rem, 7vw, 3.5rem);  /* Decreased for mobile */
        margin-bottom: 2rem;
    }
    
    .about-description {
        font-size: 1.375rem;  /* Still larger on tablet */
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .neural-about-section {
        padding: 40px 20px;
    }
    
    .about-label {
        font-size: 1rem;
    }
    
    .about-title {
        font-size: clamp(2rem, 9vw, 3rem);  /* Decreased for small mobile */
    }
    
    .about-description {
        font-size: 1.125rem;  /* Still readable on mobile */
    }
}

/* ========================================================================
   WHAT WE DO SECTION - HOMEPAGE SPECIFIC
   ======================================================================== */

.neural-what-section {
    min-height: 50vh;  /* Reduced to 50% viewport height */
    display: flex;
    align-items: center;
    padding: 80px 40px;
    background: var(--neural-black);
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid var(--neural-white);
    /* Border removed - debug cleanup */
    /* Smooth transitions for scroll animations */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, filter;
    /* Initial state for animation - starts invisible and scaled down */
    opacity: 0;
    transform: translateY(40px) scale(0.92);
}

/* DEV: 50% height indicator for what section - REMOVED */

.neural-what-section .container {
    max-width: 1600px;  /* Match about section width */
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;  /* Match about section padding */
}

.what-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;  /* Match about-content proportions */
    gap: 100px;  /* Match about-content gap for alignment */
    align-items: center;
    width: 100%;
}

/* Left Column - Title */
.what-left {
    padding-right: 0;
}

.what-label {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Animation support */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.what-title {
    font-size: clamp(3.25rem, 6vw, 5.5rem);  /* Match about-title size */
    font-weight: 300;
    line-height: 1.3;  /* Match about-title line height for gap between lines */
    color: var(--neural-white);
    margin: 0;
    letter-spacing: -1px;
    /* Animation support */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Right Column - Description */
.what-right {
    padding-left: 0;
}

.what-description {
    font-size: 1.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    /* Animation support */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Bold effect for last sentence - matching about section */
.what-description:last-child {
    font-weight: 600;
}

/* Add padding to the first paragraph */
.what-description:first-child {
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .neural-what-section {
        padding: 60px 30px;
    }
    
    .what-content {
        gap: 40px;
    }
    
    .what-label {
        font-size: 1.25rem;
    }
    
    .what-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .what-description {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .neural-what-section {
        min-height: auto;
        padding: 60px 24px;
    }
    
    .what-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .what-label {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .what-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .what-description {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

/* ========================================================================
   STACKING SCROLL EFFECTS - PROPER ARCHITECTURE
   ======================================================================== */

/* Wrapper containers handle positioning */
.section-stack-wrapper {
    position: relative;
    width: 100%;
    /* Custom properties for dynamic values */
    --stack-offset: 0;
    --stack-opacity: 1;
    --stack-scale: 1;
}

/* About wrapper - first to stick */
.section-stack-wrapper[data-stack="about"] {
    position: sticky;
    top: var(--header-height);
    z-index: 10;
}

/* What wrapper - sticks and covers about */
.section-stack-wrapper[data-stack="what"] {
    position: sticky;
    top: var(--header-height);
    z-index: 11;
    /* Full height to cover about section completely */
    min-height: calc(100vh - var(--header-height));
}

/* Core wrapper - normal flow, doesn't stick */
.section-stack-wrapper[data-stack="core"] {
    position: relative;
    z-index: 12;
    background: var(--neural-black); /* Ensure it covers */
    min-height: 100vh;
}

/* Labs wrapper - normal positioning, components inside are sticky */
.section-stack-wrapper[data-stack="labs"] {
    position: relative;
    z-index: 13;
    background: var(--neural-black); /* Ensure it covers */
    min-height: 100vh;
}

/* Content sections remain untouched for animations */
.section-stack-wrapper .neural-about-section,
.section-stack-wrapper .neural-what-section,
.section-stack-wrapper .neural-core-section,
.section-stack-wrapper .neural-labs-section {
    /* Animations work independently of wrapper positioning */
    position: relative;
    z-index: 1;
}

/* State classes for JavaScript control */
.section-stack-wrapper.is-stuck {
    /* When section is in stuck position */
}

.section-stack-wrapper.is-covered {
    /* When section is being covered */
    --stack-opacity: 0.7;
}

.section-stack-wrapper.is-covering {
    /* When section is covering another */
}

/* Apply dynamic properties to content */
.section-stack-wrapper[data-stack="about"] .neural-about-section {
    opacity: var(--stack-opacity);
}

.section-stack-wrapper[data-stack="what"] .neural-what-section {
    opacity: var(--stack-opacity);
}

.section-stack-wrapper[data-stack="core"] .neural-core-section {
    opacity: var(--stack-opacity);
}

/* ========================================================================
   NEURAL CORE, LABS & WORK SECTIONS - HOMEPAGE SPECIFIC
   ======================================================================== */

.neural-core-section {
    min-height: 100vh;  /* Full viewport height */
    display: flex;
    align-items: center;
    padding: 0;  /* Remove padding to keep exactly 100vh */
    background: var(--neural-black);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;  /* Prevent content from expanding section */
}

/* Neural Core Background Video */
.neural-core-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.6;
}

/* Neural Core Overlay */
.neural-core-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Neural Core Container */
.neural-core-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Core Header */
.core-header {
    text-align: center;
    margin-bottom: 60px;
}

.core-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--neural-white);
}

.core-highlight {
    color: var(--neural-orange);
}

.core-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Core Cards Container */
.core-cards-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.core-cards-track {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Core Card Styles */
.core-card {
    flex: 0 0 400px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
}

.core-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.core-card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--neural-white);
}

.core-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.core-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.core-card-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.core-card-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--neural-orange);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .core-title {
        font-size: 2.5rem;
    }
    
    .core-card {
        flex: 0 0 320px;
        padding: 30px;
    }
    
    .core-cards-track {
        gap: 20px;
    }
}

.neural-labs-section,
.neural-work-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 40px 40px;
    background: var(--neural-black);
    position: relative;
    box-sizing: border-box;
    z-index: 25; /* Higher than sticky sections to prevent overlap */
}

/* DEV: Section borders for visual debugging - REMOVED */

/* DEV: 50% height indicators - REMOVED */

/* Wide container for full-width sections */
.neural-core-section .container {
    max-width: 1600px;
    width: 100%;
    padding: 80px 40px;  /* Move padding here from section */
    height: 100%;  /* Fill the section height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.neural-labs-section .container,
.neural-work-section .container {
    max-width: 1600px;
    width: 100%;
    padding: 0;
}

@media (max-width: 768px) {
    .neural-core-section {
        padding: 0;  /* Keep 0 padding for exact 100vh */
    }
    
    .neural-core-section .container {
        padding: 60px 20px;  /* Reduced padding for mobile */
    }
    
    .neural-labs-section,
    .neural-work-section {
        padding: 20px 20px 40px;
    }
}

.core-header,
.labs-header,
.work-header {
    text-align: center;
    margin-bottom: 4rem;
}

.core-title,
.labs-title,
.work-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--neural-white);
}

.core-highlight,
.labs-highlight,
.work-highlight {
    background: linear-gradient(135deg, var(--neural-orange), var(--neural-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.core-subtitle,
.labs-subtitle,
.work-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Cards Grid - Full Width */
.core-services-grid,
.labs-services-grid,
.work-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
}

/* Industry Grid Layout - 4x2 */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Industry Cards */
.industry-card {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}
.industry-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(60, 19, 97, 0.3) 35%, 
        rgba(116, 238, 221, 0.3) 65%, 
        transparent 100%);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    animation: glowWaveBorder 4s linear infinite;
    background-size: 200% 100%;
}
@keyframes glowWaveBorder {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        background-position: 200% 0;
        opacity: 0;
    }
}
/* Stagger the glow animation for each card */
.industry-card:nth-child(1)::before { animation-delay: 0s; }
.industry-card:nth-child(2)::before { animation-delay: 0.3s; }
.industry-card:nth-child(3)::before { animation-delay: 0.6s; }
.industry-card:nth-child(4)::before { animation-delay: 0.9s; }
.industry-card:nth-child(5)::before { animation-delay: 1.2s; }
.industry-card:nth-child(6)::before { animation-delay: 1.5s; }
.industry-card:nth-child(7)::before { animation-delay: 1.8s; }
.industry-card:nth-child(8)::before { animation-delay: 2.1s; }

.industry-card:hover {
    border-color: var(--neural-orange);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.2);
    padding-bottom: 8rem;
}
.industry-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(217, 119, 6, 0.1), transparent);
    border-top: 1px solid rgba(217, 119, 6, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 1.5rem 1rem 1rem;
}
.industry-card:hover .industry-drawer {
    transform: translateY(0);
}
.industry-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.industry-bullets li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.industry-bullets li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--neural-orange);
    font-weight: 600;
}
.industry-bullets li:last-child {
    margin-bottom: 0;
}

.industry-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.industry-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon img {
    filter: brightness(1) contrast(1);
    transform: scale(1.1);
}

.industry-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--neural-white);
    letter-spacing: 0.02em;
}

/* Responsive for Industry Grid */
@media (max-width: 1024px) {
    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .industry-card {
        padding: 2rem 1.5rem;
        min-height: 160px;
    }
    
    .industry-icon {
        font-size: 2.5rem;
    }
    
    .industry-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .core-services-grid,
    .labs-services-grid,
    .work-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .core-services-grid,
    .labs-services-grid,
    .work-showcase-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

.core-service-card,
.labs-service-card,
.work-showcase-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.core-service-card:hover,
.labs-service-card:hover,
.work-showcase-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neural-purple);
    transform: translateY(-4px);
}

.service-icon,
.showcase-icon {
    color: var(--neural-orange);
    margin-bottom: 1.5rem;
}

/* Work Section Specific Styles */
.showcase-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neural-white);
    margin-bottom: 1rem;
}

.showcase-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.showcase-results {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.showcase-results li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.showcase-results li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--neural-green, #22C55E);
}

.showcase-link {
    color: var(--neural-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.showcase-link:hover {
    gap: 0.75rem;
    color: var(--neural-purple);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neural-white);
    margin-bottom: 1rem;
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--neural-purple);
}

.service-link {
    color: var(--neural-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--neural-purple);
}

/* Optimized Lane - Simplified Core, Labs & Work Sections */
.neural-optimized-lane .core-service-card,
.neural-optimized-lane .labs-service-card,
.neural-optimized-lane .work-showcase-card {
    transition: none;
}

.neural-optimized-lane .core-service-card:hover,
.neural-optimized-lane .labs-service-card:hover,
.neural-optimized-lane .work-showcase-card:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
}

.neural-optimized-lane .service-link,
.neural-optimized-lane .showcase-link {
    transition: none;
}

/* Primary Lane - Add subtle animation */
body:not(.neural-optimized-lane) .core-service-card,
body:not(.neural-optimized-lane) .labs-service-card,
body:not(.neural-optimized-lane) .work-showcase-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

body:not(.neural-optimized-lane) .core-service-card:nth-child(1),
body:not(.neural-optimized-lane) .labs-service-card:nth-child(1),
body:not(.neural-optimized-lane) .work-showcase-card:nth-child(1) { animation-delay: 0.1s; }
body:not(.neural-optimized-lane) .core-service-card:nth-child(2),
body:not(.neural-optimized-lane) .labs-service-card:nth-child(2),
body:not(.neural-optimized-lane) .work-showcase-card:nth-child(2) { animation-delay: 0.2s; }
body:not(.neural-optimized-lane) .core-service-card:nth-child(3),
body:not(.neural-optimized-lane) .labs-service-card:nth-child(3),
body:not(.neural-optimized-lane) .work-showcase-card:nth-child(3) { animation-delay: 0.3s; }
body:not(.neural-optimized-lane) .core-service-card:nth-child(4),
body:not(.neural-optimized-lane) .labs-service-card:nth-child(4),
body:not(.neural-optimized-lane) .work-showcase-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neural-core-component {
    opacity: 0;
    transform: translateY(30px);
}

/* Primary Lane - Smooth animations */
body:not(.neural-optimized-lane) .neural-core-component {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.neural-optimized-lane) .neural-core-component.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimized Lane - Instant visibility */
.neural-optimized-lane .neural-core-component {
    opacity: 1 !important;
    transform: none !important;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Primary Lane - Hover effects */
body:not(.neural-optimized-lane) .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neural-orange), var(--neural-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

body:not(.neural-optimized-lane) .service-card:hover::before {
    transform: scaleX(1);
}

body:not(.neural-optimized-lane) .service-card:hover {
    transform: translateY(-5px);
    border-color: var(--neural-purple);
    background: rgba(255, 255, 255, 0.05);
}

/* Optimized Lane - Static cards */
.neural-optimized-lane .service-card:hover {
    border-color: var(--neural-purple);
}

/* ========================================================================
   INTELLIGENCE SECTION - HOMEPAGE SPECIFIC
   ======================================================================== */

.intelligence-preview {
    padding: 80px 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(60, 19, 97, 0.05) 100%);
}

/* ========================================================================
   RECENT INTELLIGENCE SECTION - Full Viewport Layout
   ======================================================================== */

section.recent-intelligence-container {
    position: relative;
    background: var(--neural-black, #0A0A0B);
    width: 100%;
    max-width: none !important; /* Remove any max-width constraints */
    min-height: 100vh;
    padding: 2rem 0;
    display: block;
    z-index: 15; /* Higher than What section's z-index: 11 to prevent overlap */
}

.recent-intelligence-content {
    width: 100%;
    max-width: none !important;
    padding: 0;
}

.recent-intelligence-header {
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.recent-intelligence-header h4 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--neural-white, #ffffff);
}

.recent-intelligence-header p {
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.8;
    color: var(--neural-white, #ffffff);
}

.recent-intelligence-widget-container {
    width: 100%;
    max-width: none !important;
    overflow: hidden; /* Prevent horizontal scroll */
}

.intelligence-carousel {
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.intelligence-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-snap-type: x mandatory;
}

.intelligence-carousel-track::-webkit-scrollbar {
    height: 8px;
}

.intelligence-carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

.intelligence-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.intelligence-card {
    min-width: 400px !important;
    max-width: 400px !important;
    width: 400px !important;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.intelligence-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.intelligence-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.intelligence-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.intelligence-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neural-white, #ffffff);
}

.intelligence-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.intelligence-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intelligence-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.intelligence-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.intelligence-view-all {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================================================
   FAQ SECTION - Full Viewport Layout with 2x2 Grid
   ======================================================================== */

section.neural-faq-section {
    position: relative;
    background: var(--neural-black, #0A0A0B);
    width: 100%;
    max-width: none !important; /* Remove any max-width constraints */
    min-height: 100vh;
    padding: 4rem 2rem;
    display: block;
    z-index: 20; /* Higher than all sticky sections to prevent overlap */
}

.neural-faq-section .neural-container {
    width: 100%;
    max-width: none !important; /* Remove max-width constraint */
    margin: 0 auto;
    padding: 0 2rem;
}

.neural-faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.neural-faq-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--neural-white, #ffffff);
}

.neural-faq-header p {
    font-size: 1.25rem;
    text-align: center;
    opacity: 0.8;
    color: var(--neural-white, #ffffff);
}

.neural-faq-categories {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 2rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.neural-faq-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 350px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
}

/* Ensure exactly 4 categories show in 2x2 grid */
.neural-faq-category:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.neural-faq-category:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.neural-faq-category:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.neural-faq-category:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.neural-faq-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.neural-faq-category-title {
    color: var(--neural-white, #ffffff);
    margin-bottom: 1.5rem;
}

.neural-faq-item {
    margin-bottom: 1rem;
}

.neural-faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--neural-white, #ffffff);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.neural-faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.neural-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.neural-faq-answer.show {
    max-height: 500px;
}

@media (max-width: 768px) {
    .neural-faq-categories {
        grid-template-columns: 1fr;
    }
    
    .recent-intelligence-header h4,
    .neural-faq-header h2 {
        font-size: 2rem;
    }
    
    .intelligence-card {
        min-width: 280px;
    }
}

/* Primary Lane - Card animations */
body:not(.neural-optimized-lane) .intelligence-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.02);
}

/* Optimized Lane - Simple hover */
.neural-optimized-lane .intelligence-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================================================
   CHAT WIDGET - HOMEPAGE HERO
   ======================================================================== */

.hero-chat-widget {
    max-width: 920px;
    margin: 40px auto 0;
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px);
    border: 3px solid var(--neural-purple);
    border-radius: 12px;
    overflow: hidden;
}

/* Primary Lane - Typing animation */
body:not(.neural-optimized-lane) .typing-animation {
    display: inline-block;
}

body:not(.neural-optimized-lane) .typing-animation span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neural-purple);
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-10px); }
}

/* Optimized Lane - No animations */
.neural-optimized-lane .typing-animation {
    display: none;
}

/* ========================================================================
   PERFORMANCE OPTIMIZATIONS
   ======================================================================== */

/* Optimized Lane - Disable expensive effects */
.neural-optimized-lane {
    /* Disable backdrop filters */
    .hero-chat-widget,
    .service-card,
    .intelligence-card {
        backdrop-filter: none !important;
    }
    
    /* Disable box shadows */
    * {
        box-shadow: none !important;
    }
    
    /* Disable transforms on hover */
    *:hover {
        transform: none !important;
    }
    
    /* Use system fonts for faster loading */
    font-family: system-ui, -apple-system, sans-serif !important;
}

/* ========================================================================
   AI DISCOVERY ENHANCEMENTS - OPTIMIZED LANE
   ======================================================================== */

/* Hidden structured data for AI agents */
.ai-discovery-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Show in Optimized Lane for AI crawlers */
.neural-optimized-lane .ai-discovery-content {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* ========================================================================
   RESPONSIVE OVERRIDES
   ======================================================================== */

@media (max-width: 768px) {
    /* Mobile always uses optimized styles for performance */
    .hero-chat-widget {
        backdrop-filter: none;
        max-width: 95%;
    }
    
    .service-card,
    .intelligence-card {
        backdrop-filter: none;
    }
    
    /* Reduce animations on mobile - except essential ones */
    *:not(.hero-expansion-text-primary):not(.hero-split-center) {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
}

/* Tablet optimization (portrait and landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Simplify for tablets - hide fragments */
    .hero-fragment {
        display: none !important;
    }
    
    /* Adjust split containers for tablet */
    .hero-split-left,
    .hero-split-right {
        width: 30% !important;
    }
    
    .hero-split-center {
        width: 35% !important;
    }
    
    .hero-split-center.expanded {
        width: calc(70% - 40px) !important;
    }
    
    /* Adjust text size for tablet */
    .hero-expansion-text-primary {
        font-size: 2.2rem !important;
    }
}

/* Very small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Critical mobile fixes for hero animation */
    .hero-content-wrapper {
        padding: 60px 15px 15px;
    }
    
    .hero-title-mindfully,
    .hero-title-quietly {
        font-size: 2rem !important;
        letter-spacing: 0.01em;
        line-height: 1.1 !important;
    }
    
    .hero-expanding-bg {
        width: calc(100% - 30px) !important;
        height: 200px !important;
        margin: 15px auto;
    }
    
    .hero-expanding-bg.expanded {
        width: calc(100% - 30px) !important;
        height: 250px !important;
    }
    
    .hero-title-bottom {
        margin-top: 15px;
    }
    
    .hero-subtitle-wrapper {
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-expansion-text {
        padding: 15px !important;
    }
    
    .hero-expansion-text-primary {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    /* Even smaller text on very small screens */
    .hero-expansion-text-primary {
        font-size: 1.3rem !important;
        line-height: 1.35 !important;
    }
    
    /* More compact padding */
    .hero-expansion-text {
        padding: 20px 15px !important;
    }
    
    /* Simpler glow on small devices */
    .hero-split-center.expanded {
        box-shadow: 0 0 15px rgba(60, 19, 97, 0.2) !important;
    }
}

/* Pulse glow animation - 4s cycle (8 beats at 120 BPM) */
@keyframes pulseGlow {
    0% {
        border-color: rgba(60, 19, 97, 0.6);
        box-shadow: 
            0 0 30px rgba(60, 19, 97, 0.4),
            inset 0 0 30px rgba(60, 19, 97, 0.2);
    }
    12.5% { /* 1 beat */
        border-color: rgba(60, 19, 97, 0.8);
        box-shadow: 
            0 0 40px rgba(60, 19, 97, 0.6),
            inset 0 0 35px rgba(60, 19, 97, 0.3);
    }
    25% { /* 2 beats */
        border-color: rgba(60, 19, 97, 1);
        box-shadow: 
            0 0 50px rgba(60, 19, 97, 0.8),
            inset 0 0 40px rgba(60, 19, 97, 0.4);
    }
    50% { /* 4 beats - peak */
        border-color: rgba(60, 19, 97, 1);
        box-shadow: 
            0 0 60px rgba(60, 19, 97, 1),
            inset 0 0 50px rgba(60, 19, 97, 0.5);
    }
    75% { /* 6 beats */
        border-color: rgba(60, 19, 97, 0.8);
        box-shadow: 
            0 0 40px rgba(60, 19, 97, 0.6),
            inset 0 0 35px rgba(60, 19, 97, 0.3);
    }
    100% { /* 8 beats */
        border-color: rgba(60, 19, 97, 0.6);
        box-shadow: 
            0 0 30px rgba(60, 19, 97, 0.4),
            inset 0 0 30px rgba(60, 19, 97, 0.2);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove will-change for users who prefer reduced motion */
    .hero-title-bottom,
    .hero-expanding-bg {
        will-change: auto !important;
    }
}

