/* 
 * CREATIVE BASECAMP - "Basic/Dept" Style Design System 
 * Philosophy: Bold, Immersive, Minimal
 */

:root {
    /* Color Palette - Deep Black & Stark White */
    --color-bg: #050505;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-accent: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography - Massive & Tight */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    /* Setup for premium serif */

    /* Spacing */
    --container-width: 94vw;
    /* Slightly wider for Sony look */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-xl: clamp(6rem, 12vw, 15rem);

    /* Maximalist Typography Scaling */
    --font-size-display: clamp(4rem, 15vw, 12rem);
    --font-size-h2: clamp(2.5rem, 8vw, 6rem);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a,
button {
    cursor: auto;
}

/* Custom Cursor Elements */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEebKNAAAACHRSTlMzMzMzMzMzM8OkyvMAAABUSURBVDjL7dChDQAhDATR1wI6QsJINB/x/vsiGjigZ61Z8gIREREREREREREREREREdnO2O7zWd1Z3r211r7n2Xvv7X1/32f1fXdZ3Vl+8c2LiIjId+YDeAAdwWkiAAAAAElFTkSuQmCC') repeat;
    mix-blend-mode: overlay;
}

/* Altitude Indicator */
.altitude-indicator {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-xl);
    z-index: 50;
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    gap: 4px;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {
    .altitude-indicator {
        display: none !important;
    }

    .noise-overlay {
        display: none !important;
    }

    #bg-canvas {
        display: none !important;
    }

    .cursor-glow {
        display: none !important;
    }
}

/* WebGL Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: transparent;
    pointer-events: none;
}

/* Agentic Messaging Tip */
.agentic-tip {
    position: fixed;
    bottom: 2.5rem;
    left: 2rem;
    z-index: 1000;
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: opacity 0.5s ease;
    text-transform: uppercase;
}

.alt-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-top: 2px;
}

/* Typography Utilities */
.text-display {
    font-family: var(--font-display);
    font-weight: 800;
    /* Extra Bold */
    font-size: clamp(4rem, 12vw, 10rem);
    /* Massive responsive size */
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
}

.text-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: var(--spacing-sm);
}

/* Layout Utilities */
.container {
    width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-lg) 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section Specifics */
#hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    /* Vertically center content */
    justify-content: flex-start;
    /* Left align */
    padding-left: var(--spacing-xl);
    /* Generous left padding */
    padding-right: var(--spacing-md);
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mobile-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
    /* Hidden by default on desktop */
}

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Left-side gradient: Dark (0.3) -> Transparent (at 50%) */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    /* Constrain width for large screens */
    margin: 0;
    /* Removing auto margin since we use flexbox on parent */
    pointer-events: none;
    /* Text shouldn't block clicks unless on buttons */
}

.hero-text-group {
    max-width: 800px;
    /* Limit text width for readability */
    color: white;
    text-align: left;
}

/* Typography Styling */
.hero-title {
    font-family: var(--font-main);
    font-weight: 800;
    /* Extra Bold */
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 0.5s forwards;
    color: #ffffff;
    text-transform: uppercase;
}

.hero-title-italic {
    font-family: var(--font-main) !important;
    /* Changed to main sans-serif */
    font-weight: 800 !important;
    /* Match extra bold of title */
    font-style: normal !important;
    /* Removed italic */
    letter-spacing: -0.04em;
    /* Match main title tracking */
    /* Clean white — no gradient */
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    display: inline-block;
    /* Required for transform or clip sometimes, good practice here */
}

.hero-desc-primary {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-xs);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 0.7s forwards;
}

.hero-desc-secondary {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 0.9s forwards;
}

/* Buttons */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    pointer-events: auto;
    /* Enable clicks */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 1.1s forwards;
}

.cta-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 999px;
    /* Pill shape */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
}

.cta-btn.primary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-btn.primary:hover {
    background: white;
    color: black;
    border-color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    /* Maintain layout */
    padding-left: 0;
}

.cta-btn.secondary:hover {
    color: white;
    padding-left: 10px;
    /* Subtle movement */
}

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

@media (max-width: 768px) {
    #hero {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        justify-content: center;
        /* Center on mobile if preferred, user asked for left align though */
        align-items: center;
        height: 100vh;
        /* Restore full height on mobile */
        padding-top: 0;
        /* Remove top padding to center content */
    }

    /* Video Visibility Switching */
    .desktop-hero-video {
        display: none !important;
    }

    .mobile-hero-video {
        display: block !important;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
        /* Top-down for mobile verticality */
        pointer-events: none !important;
    }

    .hero-text-group {
        text-align: left;
        /* Keep left alignment as requested */
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Cinematic "Fly" Effect - Added via JS class '.cinematic-mode' */
body.cinematic-mode .hero-text-group h1 {
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
    /* Make it slightly larger */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Navigation & Buttons */
.audio-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 10;
}

.logo-btn {
    display: block;
    mix-blend-mode: difference;
    transition: transform 0.3s ease;
}

.logo-btn:hover {
    transform: scale(1.05);
}

.logo-btn img {
    filter: brightness(0) invert(1);
    /* Ensure logo is white for difference mode */
}

.audio-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.audio-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.audio-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation Styles (Modern Glassmorphism Pill) */
.nav-logo-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-buttons-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Modern text typography rendering */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.nav-logo-img {
    height: 36px; /* Slightly refined logo size */
    width: auto;
    display: block;
}

.nav-btn {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem; /* Smaller, sharper typography */
    font-family: var(--font-main);
    letter-spacing: 0.12em; /* Elegant wide tracking */
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

/* Hover Effect: Text goes white, subtle background glow */
.nav-btn:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.06);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Active State */
.nav-btn.active, .nav-btn[style*="font-weight: 800"], .nav-btn[style*="#7777ff"] {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Grid & Portfolio (Updates for new style) */
.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 12-column grid for flexibility */
    gap: var(--spacing-md) var(--spacing-sm);
    width: 100%;
}

/* Asymmetric Grid Spans */
.grid-portfolio article {
    grid-column: span 4;
}

.grid-portfolio article:nth-child(3n+1) {
    grid-column: span 7;
}

.grid-portfolio article:nth-child(3n+2) {
    grid-column: span 5;
    margin-top: var(--spacing-lg);
}

.grid-portfolio article:nth-child(3n) {
    grid-column: 2 / span 10;
    margin-bottom: var(--spacing-lg);
}

article {
    margin-bottom: var(--spacing-lg);
}

article h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Portfolio Card Styles */
.project-card {
    position: relative;
    cursor: none;
    /* Handled by custom cursor */
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    border-radius: 16px;
    /* Rounded corners */
    transform: translateZ(0);
    /* Fix for overflow clipping in some browsers */
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-project {
    border: 1px solid white;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.project-card:hover .project-image-placeholder {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-card:hover h3 {
    color: var(--color-text-muted);
    /* Interactive feel */
}

/* Footer specific */
.footer-left h2 {
    margin-bottom: var(--spacing-xs);
}

/* Responsive Layout */
@media (max-width: 1024px) {
    :root {
        --container-width: 90vw;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }

    .text-display {
        font-size: clamp(3rem, 10vw, 6rem);
    }

    .grid-portfolio {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 90vw;
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .text-display {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.1;
    }

    .hero-text-group h1 {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
    }

    .hero-text-group p {
        font-size: 1rem;
    }

    .grid-portfolio {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .grid-portfolio article,
    .grid-portfolio article:nth-child(n) {
        grid-column: auto !important;
        width: 100% !important;
        margin: 0 !important;
    }

    article h3 {
        font-size: 1.8rem;
        margin-top: 1rem;
    }

    /* Adjust padding for specific elements */
    #hero {
        padding-top: 15vh;
        /* Push text down on mobile */
        padding-left: 20px;
        /* Standardize left padding */
        padding-right: 20px;
        justify-content: flex-start;
        /* FORCE LEFT ALIGNMENT */
        align-items: center;
        /* Vertically center */
        text-align: left;
        /* Ensure text alignment inheritance */
        height: auto !important;
        /* Allow height to be determined by aspect ratio */
        aspect-ratio: 9 / 16;
        /* Force 9:16 aspect ratio */
        min-height: 100vh;
        /* Fallback: at least full screen */
    }

    .hero-content-wrapper {
        align-items: flex-start;
        /* Align children to start */
        text-align: left;
        width: 100%;
        padding-bottom: 80px;
        /* Add space for the audio button to avoid overlap */
    }

    /* Remove dark overlay on mobile for clarity */
    .hero-overlay {
        background: none !important;
        /* Remove gradient overlay */
        background-color: rgba(0, 0, 0, 0.2) !important;
        /* Optional: very slight dim for text readability */
        pointer-events: none !important;
    }

    .hero-text-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Align text items to left */
        text-align: left;
    }

    /* Mobile Header & Layout Fixes */
    .nav-logo-container {
        top: 1.5rem;
        left: 1.5rem;
    }

    .nav-buttons-container {
        top: 1.5rem;
        right: 1.5rem;
        gap: 0.5rem;
    }

    .nav-logo-img {
        height: 28px;
    }

    #hero {
        padding-top: 15vh;
        /* Push text down significantly */
        min-height: auto;
        height: auto;
        display: block;
    }

    /* Hide Desktop Nav explicitly on mobile */
    .nav-buttons-container,
    .desktop-only-nav,
    .mobile-menu-btn,
    .mobile-menu-overlay {
        display: none !important;
    }

    /* Brand Story Sidebar Gradient Update */
    .story-nav {
        background: linear-gradient(to right, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.8));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Adjust Logo position */
    .nav-logo-container {
        top: 2rem;
        left: 2rem;
        mix-blend-mode: difference;
        /* Ensure visibility */
        z-index: 99999;
        /* Above everything */
    }

    /* Better Text Readability on Mobile */
    .hero-title {
        font-size: clamp(3.2rem, 13vw, 4.5rem) !important;
        /* Sensuous large size */
        margin-bottom: 1rem !important;
        /* Spacing below header */
        line-height: 0.85 !important;
        /* Very tight line height */
        letter-spacing: -0.04em !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        text-align: left;
        width: 100%;
        padding-left: 0;
        transform: none !important;
        opacity: 1 !important;
    }

    .hero-title-italic {
        font-family: var(--font-main) !important;
        font-weight: 800 !important;
        font-style: normal !important;
        font-size: clamp(3.2rem, 13vw, 4.5rem) !important;
        /* Match main title size */
        line-height: 0.85 !important;
        letter-spacing: -0.04em !important;
        /* Clean white — no gradient */
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .hero-desc-primary {
        font-size: 1.1rem !important;
        /* Sophisticated size */
        font-weight: 300 !important;
        line-height: 1.5 !important;
        max-width: 85%;
        margin: 0.5rem 0 0 0 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        color: rgba(255, 255, 255, 0.9) !important;
        text-align: left;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Hide CTA Buttons on Mobile */
    .hero-cta-group,
    .hero-desc-secondary {
        /* Hide secondary description on mobile */
        display: none !important;
    }

    #hero-video {
        position: absolute;
        /* Force absolute positioning on mobile too */
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Cover the 9:16 container */
        object-position: center;
        background: transparent;
    }

    .audio-btn {
        bottom: 80px;
        /* Move up to avoid overlap with Altitude Indicator */
        left: 20px;
        /* Left align */
        right: auto;
        /* Remove right alignment */
        padding: 8px 16px;
    }

    .footer-left h2 {
        font-size: 1.5rem !important;
    }

    /* Ensure project detail pages also look good */
    .detail-hero {
        height: 50vh;
        /* Shorter hero on mobile */
    }

    #project-title {
        font-size: 3rem !important;
    }

    /* Contact Page Mobile Fix */
    .contact-item p,
    .contact-item a {
        font-size: clamp(1.2rem, 4vw, 2rem) !important;
        word-break: break-all;
        /* Force break specifically for long emails */
        white-space: normal;
    }

    /* Force Visible on Mobile (Fix Safari issue where content stays hidden) */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- Mobile Menu Overlay Styles --- */
.mobile-menu-btn {
    display: none;
    /* Hidden on Desktop */
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    /* Deep black overlay */
    backdrop-filter: blur(10px);
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    padding: 15px 20px;
    /* Added padding for touch target */
    display: block;
    /* Ensure whole area is clickable */
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

/* Stagger delay for links */
.mobile-menu-overlay.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(3) {
    transition-delay: 0.3s;
}


@media (max-width: 768px) {

    /* Hide ALL old navigation elements */
    .desktop-nav,
    .nav-buttons-container,
    .desktop-only-nav {
        display: none !important;
    }

    /* Force new mobile trigger visibility */
    #mobile-nav-trigger {
        display: flex !important;
    }
}

/* --- New Homepage Sections (White Theme) --- */
.section-white {
    background-color: #ffffff;
    color: #050505;
    /* Deep black text */
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle divider */
}

/* Typography for White Sections */
.section-white .section-title {
    font-family: var(--font-main);
    font-weight: 300;
    /* Thin */
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    color: #000;
}

.section-white .section-subtitle {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.25rem;
    color: #666;
    /* Grey for subtitle */
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.intro-body,
.ace-body {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: var(--spacing-lg);
    color: #333;
}

.intro-body strong {
    font-weight: 600;
    color: #000;
    display: block;
    margin-top: 1rem;
}

/* Lab Grid (3 Columns) */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Thin top line */
    padding-top: var(--spacing-md);
}

.lab-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.lab-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Why AI Now? (Typography Focus) */
.typography-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
    /* Give it some vertical breathing room */
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-body {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    line-height: 1.4;
    color: #333;
    max-width: 900px;
}

.highlight-text {
    margin-top: var(--spacing-md);
    font-weight: 500;
    /* Slightly bolder */
    color: #000;
}

/* ACE Workflow Visual */
.workflow-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align flow */
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    /* Wrap on mobile */
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.workflow-step {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    /* Slight rounded */
}

.workflow-arrow {
    font-size: 1.2rem;
    color: #999;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lab-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: var(--spacing-md);
    }

    .section-white {
        padding: var(--spacing-lg) 0;
    }

    .workflow-visual {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        /* Point down */
        margin-left: 20px;
    }
}

/* Compact AI Preview List */
.compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compact-list li {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.compact-list li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.compact-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
        gap: 2rem;
    }

    .compact-list li {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
}