/* ====================================
           GLOBAL STYLES & RESET
           ==================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --military-blue: #015696;
            --bright-teal: #6FE6DA;
            --warm-sand: #E0D5C7;
            --terracotta: #D4716E;
            --deep-charcoal: #2B2B2B;
        }

        body {
            font-family: 'Fraunces', serif;
            overflow-x: hidden;
            background: var(--military-blue);
        }

        .basset-font {
            font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
            font-weight: 700;
            letter-spacing: -0.03em;
        }

        /* ====================================
           SPLASH OVERLAY
           ==================================== */
        #splash-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--military-blue);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeOutOverlay 0.8s ease 3.2s forwards;
        }

        .splash-title {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            position: relative;
        }

        .marble-ceilings,
        .media-group {
            font-size: 6.375rem;
            color: var(--warm-sand);
            opacity: 0;
            white-space: nowrap;
        }

        .marble-ceilings {
            animation: 
                slideFromRight 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
                fadeToCenter 1s ease 2s forwards;
        }

        .media-group {
            animation: 
                slideFromLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
                fadeToCenter 1s ease 2s forwards;
        }

        .splash-title::before {
            content: '';
            position: absolute;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(212, 113, 110, 0.4) 0%, transparent 70%);
            border-radius: 50%;
            z-index: -1;
            opacity: 0;
            animation: crossoverGlow 0.4s ease 1s;
        }

        @keyframes slideFromRight {
            0% { transform: translateX(100vw); opacity: 0; }
            100% { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideFromLeft {
            0% { transform: translateX(-100vw); opacity: 0; }
            100% { transform: translateX(0); opacity: 1; }
        }

        @keyframes fadeToCenter {
            0% { opacity: 1; transform: translateX(0); }
            100% { opacity: 1; transform: translateX(0) scale(1.05); }
        }

        @keyframes crossoverGlow {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }

        @keyframes fadeOutOverlay {
            to { opacity: 0; visibility: hidden; }
        }

        .skip-splash {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: transparent;
            color: var(--warm-sand);
            border: 2px solid var(--warm-sand);
            padding: 0.75rem 1.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            z-index: 10000;
            letter-spacing: 0.1em;
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeInButton 0.5s ease 0.5s forwards;
        }

        .skip-splash:hover {
            background: var(--warm-sand);
            color: var(--military-blue);
        }

        @keyframes fadeInButton {
            to { opacity: 0.7; }
        }

        /* ====================================
           HERO SECTION - ASYMMETRIC ENERGY
           ==================================== */
        .hero {
            width: 100vw;
            min-height: 100vh;
            position: relative;
            overflow: hidden;
            background: var(--military-blue);
            opacity: 0;
            animation: fadeInHero 1s ease 3.5s forwards;
        }

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

        /* DNA Helix Background - Upgraded Analog Punk Version */
        .dna-helix {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), filter 0.2s;
            will-change: transform, filter;
        }

        .dna-helix-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 100%;
        }

        .layer-1 {
            opacity: 0.6;
            animation: scrollHelix 15s linear infinite;
        }

        .layer-2 {
            opacity: 0.5;
            mix-blend-mode: screen; 
            margin-top: 15px; 
            animation: scrollHelix 13s linear infinite reverse, analogGlitch 6s infinite;
        }

        @keyframes scrollHelix {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        @keyframes analogGlitch {
            0%, 96%, 100% { filter: hue-rotate(0deg) contrast(1); transform: translateX(0) skewX(0); }
            97% { filter: hue-rotate(90deg) contrast(1.5); transform: translateX(20px) skewX(-5deg); }
            98% { filter: hue-rotate(-90deg) contrast(2); transform: translateX(-20px) skewX(5deg); }
        }

        /* Terracotta diagonal slash */
        .terracotta-slash {
            position: absolute;
            width: 140%;
            height: 300px;
            background: var(--terracotta);
            transform: rotate(-12deg);
            top: 15%;
            left: -20%;
            z-index: 2;
            opacity: 0.85;
        }

        /* Border elements */
        .border-top {
            position: absolute;
            top: 0;
            left: 15%;
            width: 35%;
            height: 8px;
            background: var(--deep-charcoal);
            z-index: 6;
        }

        .border-left {
            position: absolute;
            left: 0;
            top: 25%;
            width: 8px;
            height: 40%;
            background: var(--deep-charcoal);
            z-index: 6;
        }

        /* MARBLE - top left, bleeds off */
        .marble-text {
            position: absolute;
            top: -2rem;
            left: -1rem;
            font-size: 14rem;
            line-height: 0.85;
            color: var(--warm-sand);
            z-index: 3;
            letter-spacing: -0.04em;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: line-through;
            text-decoration-color: var(--bright-teal);
            text-decoration-thickness: 0.08em;
            backface-visibility: hidden;
            outline: 1px solid transparent;
            will-change: transform;
        }

        /* CEILINGS - bottom right, rotated */
        .ceilings-text {
            position: absolute;
            top: auto;
            bottom: calc(5% + 50px);
            right: -2%;
            font-size: 10rem;
            line-height: 0.85;
            color: var(--warm-sand);
            z-index: 3;
            letter-spacing: -0.02em;
            font-weight: 700;
            text-transform: uppercase;
            transform: rotate(-2deg);
        }

        /* Teal accent bar */
        .teal-bar {
            position: absolute;
            width: 45%;
            height: 12px;
            background: var(--bright-teal);
            top: auto;
            bottom: calc(5% + 30px);
            right: 0;
            z-index: 5;
        }

        /* MEDIA GROUP - under teal bar */
        .media-group-subtitle {
            position: absolute;
            top: auto;
            bottom: 5%;
            right: 2%;
            font-size: 1.25rem;
            letter-spacing: 0.3em;
            color: var(--warm-sand);
            z-index: 6;
            text-transform: uppercase;
            font-weight: 600;
        }

        /* Tagline */
        .tagline-concept {
            position: absolute;
            top: calc(15% + 80px);
            left: 2%;
            font-size: 4rem;
            color: var(--warm-sand);
            font-style: normal;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1.1;
            z-index: 4;
            transform: rotate(-12deg);
            letter-spacing: 0.02em;
            text-shadow: 4px 4px 0 var(--deep-charcoal);
            backface-visibility: hidden;
            outline: 1px solid transparent;
        }

        /* ====================================
           CASE STUDIES SECTION
           ==================================== */
        .case-studies {
            background: var(--warm-sand);
            padding: 8rem 0;
            position: relative;
        }

        .case-studies-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 40px;
        }

        .case-studies-header {
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 6rem;
            color: var(--deep-charcoal);
            margin-bottom: 1.5rem;
            line-height: 0.9;
            letter-spacing: -0.02em;
        }

        .section-description {
            font-size: 1.125rem;
            color: var(--deep-charcoal);
            max-width: 600px;
            line-height: 1.6;
            opacity: 0.8;
        }

        /* Project Grid - NOT carousel, COLLISION LAYOUT */
        .projects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 2rem;
            margin-top: 3rem;
        }

        .project-card {
            position: relative;
            width: 450px !important;
            margin-right: 2.5rem;
            border: 3px solid var(--deep-charcoal);
            background: var(--military-blue);
            overflow: visible;
            box-shadow: 12px 12px 0px rgba(0,0,0,0.8);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .project-card:hover {
            transform: translateY(-8px) rotate(1deg);
            box-shadow: 18px 18px 0px rgba(0,0,0,0.9);
        }

        .project-image {
            width: 100%;
            height: 320px;
            object-fit: cover;
            display: block;
        }

        .project-content {
            padding: 2rem;
        }

        .project-category {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--bright-teal);
            margin-bottom: 0.75rem;
            font-weight: 600;
        }

        .project-title {
            font-size: 2.5rem;
            color: var(--warm-sand);
            margin-bottom: 1rem;
            line-height: 1;
            letter-spacing: -0.02em;
        }

        .project-tagline {
            font-size: 1rem;
            color: var(--warm-sand);
            line-height: 1.5;
            margin-bottom: 1.5rem;
            opacity: 0.85;
        }

        .project-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(224, 213, 199, 0.2);
        }

        .project-status {
            font-size: 0.875rem;
            color: var(--warm-sand);
            opacity: 0.7;
        }

        .project-launch {
            font-size: 0.875rem;
            color: var(--bright-teal);
            font-weight: 600;
        }

        .loading-state,
        .error-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 4rem 2rem;
            color: var(--deep-charcoal);
            font-size: 1.125rem;
        }

        /* ====================================
           PLACEHOLDER FOOTER
           ==================================== */
        .placeholder-section {
            min-height: 50vh;
            background: var(--military-blue);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .placeholder-section h2 {
            font-size: 2rem;
            color: var(--warm-sand);
            opacity: 0.5;
        }

        /* ====================================
           DARK MODE STYLES
           ==================================== */
        body[data-theme="dark"] {
            --military-blue: #091016;
            --warm-sand: #e0dedc;
            --deep-charcoal: #b0a79d;
            --terracotta: #a84744;
            --bright-teal: #4bcec2;
        }

        body[data-theme="dark"] .case-studies {
            background: #141b22;
        }

        body[data-theme="dark"] .case-studies .section-title,
        body[data-theme="dark"] .case-studies .section-description {
            color: var(--warm-sand);
            opacity: 1;
        }

        body[data-theme="dark"] .framework { background: #1e1111; }
        body[data-theme="dark"] .accordion-item { background: var(--military-blue); }
        body[data-theme="dark"] .accordion-content { background: var(--military-blue); color: var(--warm-sand); }
        body[data-theme="dark"] .mission-section { background: var(--military-blue); }

        body, .case-studies, .project-card, .framework, .accordion-item, .accordion-content, .mission-section, .site-footer {
            transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
        }

        /* ====================================
           HEADER & NAVIGATION
           ==================================== */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 2rem 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: transparent;
            pointer-events: none;
        }

        .site-header * { pointer-events: auto; }

        .logo-mark {
            font-size: 1.5rem;
            color: var(--warm-sand);
            text-decoration: none;
            letter-spacing: -0.02em;
            border: 3px solid var(--deep-charcoal);
            padding: 0.5rem 1rem;
            background: var(--military-blue);
            transform: rotate(-1deg);
            transition: transform 0.2s ease;
            backface-visibility: hidden;
            outline: 1px solid transparent;
        }
        .logo-mark:hover { transform: rotate(1deg) translateY(-2px); }

        .main-nav { display: flex; gap: 2rem; align-items: center; }

        .nav-link {
            font-size: 1rem;
            color: var(--deep-charcoal);
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            letter-spacing: 0.1em;
            padding: 0.5rem 1rem;
            background: var(--bright-teal);
            border: 3px solid var(--deep-charcoal);
            transition: transform 0.2s ease, background 0.2s;
        }
        .nav-link:hover { transform: translateY(-4px) rotate(2deg); background: var(--warm-sand); }

        .theme-toggle {
            background: var(--terracotta);
            border: 3px solid var(--deep-charcoal);
            color: var(--warm-sand);
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 700;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: transform 0.2s ease;
        }
        .theme-toggle:hover { transform: translateY(-4px) rotate(-2deg); }

        /* ====================================
           FRAMEWORK ACCORDION
           ==================================== */
        .framework {
            background: var(--terracotta);
            padding: 8rem 0;
            position: relative;
        }

        .accordion-item {
            border: 4px solid var(--deep-charcoal);
            margin-bottom: 1rem;
            background: var(--warm-sand);
            overflow: hidden;
        }

        .accordion-header {
            width: 100%;
            text-align: left;
            background: transparent;
            border: none;
            padding: 2rem;
            font-size: 2rem;
            color: var(--deep-charcoal);
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
        }
        .accordion-header:hover { background: var(--military-blue); color: var(--warm-sand); }

        .accordion-content {
            padding: 0 2rem;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.4s ease;
            background: var(--warm-sand);
            color: var(--deep-charcoal);
        }
        .accordion-content p { font-size: 1.125rem; line-height: 1.6; padding-bottom: 2rem; max-width: 800px; }
        .accordion-item.active .accordion-content { max-height: 1000px; padding-top: 1rem; }

        /* ====================================
           MISSION SECTION
           ==================================== */
        .mission-section {
            background: var(--military-blue);
            padding: 10rem 40px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mission-content { max-width: 1000px; position: relative; z-index: 2; width: 100%; }
        
        .mission-terracotta-slash {
            position: absolute;
            width: 150%;
            height: 40px;
            background: var(--terracotta);
            transform: rotate(5deg);
            top: 40%;
            left: -20%;
            z-index: -1;
        }

        .mission-body {
            font-size: 1.5rem;
            color: var(--warm-sand);
            line-height: 1.8;
            font-weight: 300;
            margin-top: 2rem;
            border-left: 8px solid var(--bright-teal);
            padding-left: 2rem;
        }

        /* ====================================
           FOOTER
           ==================================== */
        .site-footer {
            background: var(--deep-charcoal);
            color: var(--warm-sand);
            padding: 4rem 40px 2rem;
            position: relative;
        }
        .footer-top { position: absolute; top: -4px; left: 20%; width: 60%; height: 8px; background: var(--bright-teal); }
        .footer-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
        .footer-logo { font-size: 3rem; color: var(--warm-sand); letter-spacing: -0.02em; }
        .footer-links, .footer-socials { display: flex; flex-direction: column; gap: 1rem; }
        .footer-links a, .footer-socials a { color: var(--warm-sand); text-decoration: none; font-size: 1rem; letter-spacing: 0.1em; transition: color 0.2s ease; }
        .footer-socials a { display: flex; align-items: center; gap: 0.5rem; }
        .footer-socials a svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
        .footer-links a:hover, .footer-socials a:hover { color: var(--terracotta); }
        .footer-bottom { max-width: 1280px; margin: 4rem auto 0; padding-top: 2rem; border-top: 2px solid rgba(224, 213, 199, 0.2); font-size: 0.875rem; opacity: 0.6; }

        /* ====================================
           HAMBURGER MENU
           ==================================== */
        .hamburger-menu {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001; /* Above nav */
        }
        .hamburger-menu span {
            display: block;
            width: 30px;
            height: 3px;
            background: var(--warm-sand);
            margin: 6px 0;
            transition: 0.4s;
            border-radius: 2px;
        }

        /* ====================================
           RESPONSIVE REFINEMENTS
           ==================================== */
        .hero-container { max-width: 1280px; margin: 0 auto; width: 100%; height: 100vh; position: relative; }

        @media (max-width: 1024px) {
            .marble-text { font-size: 10rem; }
            .ceilings-text { font-size: 7rem; }
            .section-title { font-size: 4rem; }
            .footer-content { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            .site-header { padding: 1rem 20px; flex-direction: row; justify-content: space-between; align-items: center; }
            .hamburger-menu { display: block; }
            .main-nav {
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background: rgba(9, 16, 22, 0.95);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease, visibility 0.3s;
                z-index: 1000;
                margin: 0;
            }
            .main-nav.active {
                opacity: 1;
                visibility: visible;
            }
            .nav-link { font-size: 1.25rem; padding: 1rem 2rem; width: auto; }
            .theme-toggle { font-size: 1rem; padding: 1rem 2rem; margin-top: 1rem; width: auto; }
            
            .hamburger-menu.active span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
            .hamburger-menu.active span:nth-child(2) { opacity: 0; }
            .hamburger-menu.active span:nth-child(3) { transform: rotate(45deg) translate(-6px, -8px); }
            
            .project-card { width: 85vw !important; margin-right: 1rem; }
            
            .marble-text { font-size: clamp(4rem, 15vw, 6rem); top: 8rem; left: 1rem; }
            .ceilings-text { font-size: clamp(3rem, 12vw, 4rem); top: auto; bottom: calc(5% + 60px); right: 1rem; }
            .teal-bar { top: auto; bottom: calc(5% + 35px); width: 60%; right: 1rem; }
            .media-group-subtitle { top: auto; bottom: 5%; right: 1rem; font-size: 1rem; }
            .tagline-concept { font-size: 1.8rem; top: calc(15% + 100px); bottom: auto; left: 0; width: 100%; white-space: normal; line-height: 1.2; }
            
            .accordion-header { font-size: 1.25rem; padding: 1rem; }
            .mission-body { font-size: 1.125rem; }
            .mission-section { padding: 6rem 20px; }
        }

        /* ====================================
           RESTORED VCR TRACKING & CAROUSEL UI
           ==================================== */
        .vcr-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
            mix-blend-mode: screen;
            opacity: 0.55;
        }

        .vcr-container::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                to bottom,
                transparent 0px,
                transparent 2px,
                rgba(0, 0, 0, 0.18) 2px,
                rgba(0, 0, 0, 0.18) 4px
            );
            z-index: 3;
            pointer-events: none;
        }

        .vcr-container::after {
            content: '';
            position: absolute;
            left: 0;
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.06);
            animation: vcrRoll 8s linear infinite;
            z-index: 4;
        }

        @keyframes vcrRoll {
            0%   { top: -10px; opacity: 0; }
            5%   { opacity: 1; }
            95%  { opacity: 1; }
            100% { top: 110%; opacity: 0; }
        }

        #vcrCanvas {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
        }

        .carousel-btn {
            background: var(--bright-teal);
            border: 3px solid var(--deep-charcoal);
            color: var(--deep-charcoal);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            flex-shrink: 0;
            z-index: 10;
        }

        .carousel-btn:hover {
            transform: scale(1.15);
            background: var(--warm-sand);
        }