
        :root {
            /* Day Mode */
            --bg-base: #e0f2fe;
            --text-main: #020617;
            --text-muted: #475569;
            --accent-main: #0284c7;

            /* LIQUID GLASS & SPATIAL UI (Light Mode) */
            --glass-bg: rgba(255, 255, 255, 0.25);
            --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
            --glass-border: rgba(255, 255, 255, 0.6);
            --glass-highlight: rgba(255, 255, 255, 0.9);
            --hover-bg: rgba(255, 255, 255, 0.5);
            --spatial-shadow: 0 24px 48px -12px rgba(2, 6, 23, 0.15);

            /* Visual Effects */
            --text-glow-val: 0 4px 12px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(255,255,255,0.8);
            --menu-overlay: rgba(224, 242, 254, 0.95);

            /* Cursor */
            --cursor-border: #00d2ff;
            --cursor-bg: #00d2ff;
            --cursor-glow: rgba(0, 210, 255, 0.4);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                /* Night Mode */
                --bg-base: #0f1136;
                --text-main: #ffffff;
                --text-muted: #94a3b8;
                --accent-main: #38bdf8;

                /* LIQUID GLASS & SPATIAL UI (Dark Mode) */
                --glass-bg: rgba(15, 17, 54, 0.25);
                --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.0) 100%);
                --glass-border: rgba(255, 255, 255, 0.15);
                --glass-highlight: rgba(255, 255, 255, 0.25);
                --hover-bg: rgba(255, 255, 255, 0.08);
                --spatial-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.6);

                --text-glow-val: 0 4px 24px rgba(15, 17, 54, 0.9), 0 1px 3px rgba(15, 17, 54, 0.8);
                --menu-overlay: rgba(15, 17, 54, 0.95);

                /* Cursor */
                --cursor-border: #00d2ff;
                --cursor-bg: #00d2ff;
                --cursor-glow: rgba(0, 210, 255, 0.5);
            }
        }

        body, html {
            margin: 0; padding: 0; width: 100%;
            background-color: var(--bg-base);
            overflow-x: hidden;
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
            cursor: none;
            color: var(--text-main);
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        @media (pointer: coarse) {
            body, html { cursor: auto !important; }
            #custom-cursor { display: none !important; }
        }

        /* Essential Utility Classes */
        .hide-view { display: none !important; }
        .text-theme { color: var(--text-main); transition: color 0.3s ease; }
        .text-muted { color: var(--text-muted); transition: color 0.3s ease; }
        .text-accent { color: var(--accent-main); transition: color 0.3s ease; }
        .bg-theme { background-color: var(--bg-base); transition: background-color 0.3s ease; }
        .text-glow { text-shadow: var(--text-glow-val); }
        .mono-text { font-family: 'Courier New', Courier, monospace; }

        /* LIQUID GLASS + SPATIAL UI */
        .glass-panel {
            background: var(--glass-gradient);
            background-color: var(--glass-bg);
            backdrop-filter: blur(28px) saturate(120%);
            -webkit-backdrop-filter: blur(28px) saturate(120%);
            border: 1px solid var(--glass-border);
            box-shadow: inset 1px 1px 1px var(--glass-highlight), inset -1px -1px 1px rgba(0,0,0,0.05), var(--spatial-shadow);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .glass-panel:hover.hover-interactive {
            background-color: var(--hover-bg);
            transform: translateY(-4px) scale(1.01);
            box-shadow: inset 1px 1px 2px var(--glass-highlight), var(--spatial-shadow), 0 10px 20px rgba(0,0,0,0.1);
        }

        /* Scroll Animation Engine */
        .reveal-element {
            opacity: 0;
            will-change: transform, opacity;
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal-zoom { transform: scale(0.9); }
        .reveal-slide-up { transform: translateY(60px); }
        .reveal-slide-left { transform: translateX(-60px); }
        .reveal-slide-right { transform: translateX(60px); }

        .reveal-element.is-revealed {
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }

        /* 3D Depth View Transitions */
        #main-view {
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
            transform-origin: top center;
        }
        .view-zoom-out {
            transform: scale(0.9) translateY(-40px);
            opacity: 0 !important;
            pointer-events: none;
        }

        #sub-sector-view {
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
            transform: translateY(50px) scale(0.95);
            opacity: 0;
        }
        #sub-sector-view.view-active {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        /* FULL-SCREEN ANIMATED GRID (CSS-Based) */
        @keyframes diagonalPan {
            0% { background-position: 0px 0px; }
            100% { background-position: 40px -40px; }
        }

        /* Custom Cursor */
        #custom-cursor {
            position: fixed; top: 0; left: 0; width: 12px; height: 12px;
            background-color: var(--cursor-bg); border-radius: 50%; pointer-events: none; z-index: 99999;
            will-change: transform, width, height, background-color;
            transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 0 12px var(--cursor-glow);
            transform: translate3d(-999px, -999px, 0) translate3d(-50%, -50%, 0); contain: layout style paint;
        }
        #custom-cursor.hovering {
            width: 60px; height: 60px; background-color: transparent;
            border: 1px solid var(--cursor-border);
            box-shadow: inset 0 0 10px var(--cursor-glow), 0 0 10px var(--cursor-glow);
        }

        .animated-grid-overlay {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(to right, var(--accent-main) 1px, transparent 1px),
                linear-gradient(to bottom, var(--accent-main) 1px, transparent 1px);
            background-size: 40px 40px;
            opacity: 0.15;
            animation: diagonalPan 1.5s linear infinite;
            pointer-events: none;
            z-index: 0;
        }

        #webgl-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
        #webgl-container canvas { display: block; width: 100%; height: 100%; }

        .modal-base { opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
        .modal-base.open { opacity: 1; pointer-events: auto; }

        #webgl-container { transform: translate3d(0, 0, 0); will-change: transform; contain: strict; }
        #webgl-container canvas { transform-origin: center center; animation: webglCompositorMotion 80s ease-in-out infinite alternate; will-change: transform; }
        @keyframes webglCompositorMotion {
            0% { transform: translate3d(-0.35vw, -0.25vh, 0) rotate(-1.5deg) scale(1.000); }
            50% { transform: translate3d(0.25vw, 0.35vh, 0) rotate(1deg) scale(1.008); }
            100% { transform: translate3d(0.35vw, -0.15vh, 0) rotate(1.5deg) scale(1.000); }
        }

        /* WROBLEWSKI PASS: Minimum Touch Targets */
        .modal-close-button, .sector-back-button, button { min-width: 44px; min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; pointer-events: auto !important; cursor: pointer; }
        .modal-close-button { z-index: 99999 !important; background: transparent; }
        .modal-close-button svg, .sector-back-button svg { pointer-events: none; }
        .sector-back-floating { position: sticky; top: 96px; z-index: 70; width: fit-content; }

        /* NIELSEN PASS: Form Focus and Error States */
        input:focus { outline: none; border-color: var(--accent-main); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1); }
        input:invalid:not(:placeholder-shown) { border-color: #ef4444; }

        @media (min-width: 768px) and (pointer: fine) {
            .text-glow { text-shadow: 0 2px 8px rgba(255, 255, 255, 0.55); }
            @media (prefers-color-scheme: dark) { .text-glow { text-shadow: 0 2px 12px rgba(15, 17, 54, 0.65); } }
            #custom-cursor.hovering { width: 44px; height: 44px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .animate-pulse, .animated-grid-overlay { animation: none !important; }
            .reveal-element { transition: none !important; opacity: 1 !important; transform: none !important; }
        }

:focus-visible{outline:3px solid var(--accent-main)!important;outline-offset:5px} @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
