@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@400;600;700&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: #ffffff;
            font-family: 'Share Tech Mono', monospace;
            margin: 0;
            padding: 0;
            height: 100vh;
            overflow: hidden;
        }
        
        .computer-container {
            width: 100vw;
            height: 100vh;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        /* CRT Monitor Section - 85% of viewport */
        .crt-monitor {
            width: 100%;
            height: 85vh;
            background: #d0d0d0;
            position: relative;
            border: 4px solid #ffffff;
            border-bottom: none; /* Remove bottom border */
            border-radius: 0;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
        }
        
        /* Main Bezel Container */
        .bezel-outer {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #2a2a2a;
            display: flex;
            flex-direction: column;
        }
        
        /* Screen area - top portion before nameplate */
        .screen-area {
            width: 100%;
            height: calc(100% - 100px); /* Increased nameplate height to 100px from 60px */
            position: relative;
            background: #1a1a1a;
        }
        
        /* Bottom control panel - positioned at keyboard division */
        .control-area {
            width: 100%;
            height: 100px; /* Increased from 60px to 100px */
            background: linear-gradient(to bottom, #2a2a2a 0%, #262626 100%);
            display: flex;
            align-items: center;
            padding: 0 80px;
            border-top: 2px solid #404040; /* Lighter line at top for contrast */
            border-bottom: 4px solid #0a0a0a; /* Very dramatic dark line at bottom */
            position: absolute;
            bottom: 0;
            z-index: 10;
            box-shadow: 
                0 15px 40px rgba(0,0,0,0.95),  /* Extra strong shadow to cover keyboard top */
                0 10px 25px rgba(0,0,0,0.8),   /* Very strong shadow */
                0 6px 15px rgba(0,0,0,0.6),    /* Strong shadow */
                0 3px 8px rgba(0,0,0,0.4),     /* Medium shadow */
                inset 0 -4px 8px rgba(0,0,0,0.7), /* Stronger inner shadow at bottom */
                inset 0 1px 2px rgba(255,255,255,0.08); /* Highlight at top */
        }
        
        /* Add a subtle ridge effect */
        .control-area::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right, 
                transparent 5%, 
                rgba(0,0,0,0.9) 20%, 
                rgba(0,0,0,0.9) 80%, 
                transparent 95%);
        }
        
        /* Screen bezel with perspective */
        .screen-bezel {
            position: absolute;
            top: 5%;
            left: 5%;
            right: 5%;
            bottom: 5%;
            background: #0a0a0a;
            overflow: hidden;
        }
        
        /* Perspective depth lines */
        .perspective-lines {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 1;
        }
        
        .perspective-line {
            position: absolute;
            background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
            transform-origin: top left;
        }
        
        /* Top-left corner line */
        .perspective-line.tl {
            top: 0;
            left: 0;
            width: 141.4%; /* diagonal length */
            height: 2px;
            transform: rotate(45deg);
            background: linear-gradient(to right, #2a2a2a, #0a0a0a);
            clip-path: polygon(0 0, 5% 0, 5% 100%, 0 100%);
        }
        
        /* Top-right corner line */
        .perspective-line.tr {
            top: 0;
            right: 0;
            width: 141.4%;
            height: 2px;
            transform: rotate(-45deg);
            transform-origin: top right;
            background: linear-gradient(to left, #2a2a2a, #0a0a0a);
            clip-path: polygon(95% 0, 100% 0, 100% 100%, 95% 100%);
        }
        
        /* Bottom-left corner line */
        .perspective-line.bl {
            bottom: 0;
            left: 0;
            width: 141.4%;
            height: 2px;
            transform: rotate(-45deg);
            transform-origin: bottom left;
            background: linear-gradient(to right, #2a2a2a, #0a0a0a);
            clip-path: polygon(0 0, 5% 0, 5% 100%, 0 100%);
        }
        
        /* Bottom-right corner line */
        .perspective-line.br {
            bottom: 0;
            right: 0;
            width: 141.4%;
            height: 2px;
            transform: rotate(45deg);
            transform-origin: bottom right;
            background: linear-gradient(to left, #2a2a2a, #0a0a0a);
            clip-path: polygon(95% 0, 100% 0, 100% 100%, 95% 100%);
        }
        
        /* Actual perspective triangles for depth */
        .depth-triangle {
            position: absolute;
            background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
            box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
        }
        
        .depth-triangle.top {
            top: 0;
            left: 0;
            right: 0;
            height: 5%;
            clip-path: polygon(0 0, 5% 100%, 95% 100%, 100% 0);
        }
        
        .depth-triangle.bottom {
            bottom: 0;
            left: 0;
            right: 0;
            height: 5%;
            clip-path: polygon(0 100%, 5% 0, 95% 0, 100% 100%);
        }
        
        .depth-triangle.left {
            top: 0;
            left: 0;
            bottom: 0;
            width: 5%;
            clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
        }
        
        .depth-triangle.right {
            top: 0;
            right: 0;
            bottom: 0;
            width: 5%;
            clip-path: polygon(100% 0, 0 5%, 0 95%, 100% 100%);
        }
        
        /* CRT Screen Container - slightly rounded rectangle */
        .screen-container {
            position: absolute;
            top: 5%;
            left: 5%;
            right: 5%;
            bottom: 5%;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 
                inset 0 0 80px rgba(0,0,0,0.9),
                inset 0 0 40px rgba(0,0,0,0.7);
            z-index: 2;
        }

        .computer-container {
            transition: transform 0.28s ease, width 0.28s ease, height 0.28s ease;
        }
        
        /* CRT Screen */
        .screen {
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, #735594 0%, #041004 100%);
            position: relative;
            border-radius: 8px;
        }
        
        /* CRT curve effect */
        .screen::before {
            content: '';
            position: absolute;
            top: -5%;
            left: -5%;
            right: -5%;
            bottom: -5%;
            background: radial-gradient(ellipse at center, transparent 0%, transparent 45%, rgba(0,0,0,0.4) 100%);
            pointer-events: none;
            border-radius: 8px;
        }
        
        /* Phosphor glow */
        .screen::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at center, rgba(208, 255, 0, 0.02) 0%, transparent 70%);
            pointer-events: none;
            border-radius: 8px;
        }
        
        /* Scanlines */
        .scanlines {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                to bottom,
                rgba(255,255,255,0) 50%,
                rgba(0,0,0,0.1) 50%
            );
            background-size: 100% 2px;
            animation: scanlines 8s linear infinite;
            pointer-events: none;
            border-radius: 8px;
            opacity: 0.4;
        }
        
        @keyframes scanlines {
            0% { transform: translateY(0); }
            100% { transform: translateY(2px); }
        }
        
        /* Static overlay */
        .static {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.02;
            z-index: 1;
            pointer-events: none;
            border-radius: 8px;
            background: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.03) 1px, transparent 2px);
            animation: static-animation 0.2s infinite;
        }
        
        @keyframes static-animation {
            0%, 100% { opacity: 0.02; }
            50% { opacity: 0.04; }
        }
        
        /* Screen content */
        .screen-content {
            padding: 20px 25px;
            color: #735594;
            text-shadow: 0 0 5px #735594, 0 0 10px #735594;
            position: relative;
            z-index: 100; /* keep content above decorative layers */
            height: 100%;
            display: flex;
            flex-direction: column;
            font-size: 13px;
            line-height: 1.4;
        }
        
        /* Terminal header */
        .terminal-header {
            display: flex;
            justify-content: space-between;
            padding: 6px 12px;
            background: rgba(102, 0, 255, 0.08);
            border: 1px solid rgba(183, 0, 255, 0.3);
            margin: -20px -25px 12px -25px;
            font-size: 11px;
            letter-spacing: 1px;
        }
        
        .terminal-body {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
        }

        .terminal-body.terminal-mode {
            background: transparent;
            color: inherit;
        }

        .terminal-body.interior-mode {
            padding: 0;
            overflow: hidden;
            position: relative;
            background: #2a2e34;
            color: #22202e;
            font-family: 'Space Grotesk', 'Share Tech Mono', monospace;
        }

        .terminal-body.primary-mode {
            padding: 0;
            overflow: hidden;
            position: relative;
            background: #ffffff;
            color: #22202e;
            font-family: 'Space Grotesk', 'Share Tech Mono', monospace;
        }

        .computer-container {
            transition: opacity 0.3s ease;
        }

        .computer-container.computer-hidden {
            opacity: 0;
            pointer-events: none;
        }

        .screen-content.screen-slide-out {
            transform: translateX(-10%);
            opacity: 0.35;
            transition: transform 0.34s ease, opacity 0.34s ease;
        }

        .primary-viewport {
            position: fixed;
            inset: 0;
            z-index: 1200;
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.3s ease;
            display: block;
            overflow-y: auto;
        }

        .primary-viewport.active {
            opacity: 1;
            pointer-events: auto;
            visibility: visible;
        }

        .transition-panel {
            position: fixed;
            background: #f0f2f6;
            z-index: 1400;
            border-radius: 18px;
            box-shadow: 0 14px 32px rgba(0,0,0,0.18);
        }

        /* Hide inner (embedded) jukebox header controls; keep outer chrome visible */
        #jukebox-root .jm-player .header-controls {
            display: none;
        }

        /* Drawing app window */
        .drawing-window {
            position: fixed;
            width: 880px;
            height: 640px;
            background: #101010;
            border: 1px solid #222;
            border-radius: 14px;
            box-shadow:
                0 16px 32px rgba(0,0,0,0.35),
                0 0 0 1px rgba(255,255,255,0.05);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .drawing-window .drawing-header {
            background: #141414;
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #f5f5f5;
            letter-spacing: 0.08em;
            font-size: 13px;
            text-transform: none;
            font-weight: 600;
        }

        .drawing-window .drawing-actions {
            display: flex;
            gap: 10px;
        }

        .drawing-window .drawing-actions button {
            width: 26px;
            height: 26px;
            border-radius: 4px;
            border: none;
            background: transparent;
            color: #f5f5f5;
            cursor: pointer;
            font-size: 14px;
            transition: color 0.15s;
        }

        .drawing-window .drawing-actions button:hover {
            color: #b8a8d0;
        }

        .drawing-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: linear-gradient(165deg, #1a1a1a 0%, #141414 100%);
            color: #cfc9d6;
        }

        .drawing-display {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex: 1;
            overflow: hidden;
        }

        .drawing-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #0f0f0f;
            border: 1px solid #2a2634;
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 12px;
            letter-spacing: 0.2em;
            color: #8b7fa8;
        }

        .drawing-main {
            background: #0a0a0a;
            border: 1px solid #2a2634;
            border-radius: 10px;
            flex: 1;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .drawing-main img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            opacity: 0;
            transition: opacity 0.3s ease;
            cursor: zoom-in;
        }

        .drawing-main img.loaded {
            opacity: 1;
        }

        .drawing-placeholder {
            position: absolute;
            color: #4d4756;
            letter-spacing: 0.18em;
            font-size: 11px;
        }

        .drawing-nav {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            pointer-events: none;
            padding: 0 10px;
        }

        .drawing-nav button {
            pointer-events: all;
            width: 42px;
            height: 42px;
            border-radius: 8px;
            border: 1px solid #2a2634;
            background: rgba(26,26,26,0.85);
            color: #9b93ad;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .drawing-nav button:hover {
            background: rgba(45,42,53,0.9);
            color: #b8a8d0;
            border-color: #8b7fa8;
        }

        .drawing-thumbs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 4px 0;
            scrollbar-width: thin;
            scrollbar-color: #2a2634 #0a0a0a;
        }

        .drawing-thumb {
            flex-shrink: 0;
            width: 80px;
            height: 80px;
            border: 2px solid #2a2634;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            background: #141414;
            transition: all 0.2s;
        }

        .drawing-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .drawing-thumb:hover { border-color: #6b6574; }
        .drawing-thumb:hover img { opacity: 0.9; }
        .drawing-thumb.active { border-color: #8b7fa8; box-shadow: 0 0 8px rgba(139,127,168,0.4); }
        .drawing-thumb.active img { opacity: 1; }

        .drawing-thumb .idx {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background: rgba(0,0,0,0.7);
            color: #6b6574;
            font-size: 9px;
            padding: 2px 4px;
            border-radius: 2px;
        }

        .drawing-footer {
            background: linear-gradient(90deg, #c4c0c4, #d0ccd0, #c4c0c4);
            padding: 12px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid rgba(255,255,255,0.4);
        }

        .drawing-footer .label {
            color: #6b6574;
            font-size: 9px;
            letter-spacing: 4px;
            text-transform: uppercase;
        }

        .drawing-footer .controls {
            display: flex;
            gap: 8px;
        }

        .drawing-footer .btn {
            width: 34px;
            height: 34px;
            background: linear-gradient(145deg, #d8d4d8, #c0bcc0);
            border: none;
            border-radius: 8px;
            box-shadow:
                2px 2px 6px rgba(45,42,53,0.15),
                -2px -2px 6px rgba(255,255,255,0.7),
                inset 0 1px 0 rgba(255,255,255,0.5);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2d2a35;
            font-size: 12px;
            transition: all 0.15s;
        }

        .drawing-footer .btn:hover { background: linear-gradient(145deg, #e0dce0, #c8c4c8); color: #8b7fa8; }
        .drawing-footer .btn:active { box-shadow: inset 2px 2px 4px rgba(45,42,53,0.15), inset -1px -1px 2px rgba(255,255,255,0.5); transform: scale(0.97); }

        .drawing-lightbox {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(10,10,10,0.95);
            z-index: 2000;
            cursor: zoom-out;
        }

        .drawing-lightbox.active { display: flex; }

        .drawing-lightbox img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border: 1px solid #2d2a35;
            border-radius: 6px;
        }

        .drawing-lightbox .close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 42px;
            height: 42px;
            border-radius: 8px;
            border: 1px solid #2d2a35;
            background: #1a1a1a;
            color: #9b93ad;
            font-size: 20px;
            cursor: pointer;
        }
        
        .terminal-line {
            margin-bottom: 7px;
            font-size: 12px;
            letter-spacing: 0.4px;
            opacity: 0.95;
        }
        
        .terminal-line.bright {
            color: #735594;
            text-shadow: 0 0 8px #735594, 0 0 15px #735594;
        }
        
        .terminal-line.dim {
            opacity: 0.6;
            color: #735594;
        }
        
        .terminal-line.header {
            font-size: 14px;
            margin: 14px 0 8px 0;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(93, 0, 255, 0.2);
        }
        
        /* Terminal footer */
        .terminal-footer {
            display: flex;
            justify-content: space-between;
            padding: 6px 12px;
            background: rgba(208, 255, 0, 0.05);
            border-top: 1px solid rgba(76, 0, 255, 0.2);
            margin: 12px -25px -20px -25px;
            font-size: 10px;
            letter-spacing: 0.8px;
        }
        
        /* Cursor */
        .cursor {
            display: inline-block;
            width: 7px;
            height: 12px;
            background: #735594;
            animation: cursor-blink 1s infinite;
            margin-left: 2px;
        }
        
        @keyframes cursor-blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }
        
        /* Control panel elements */
        .controls {
            display: flex;
            align-items: center;
            gap: 30px;
            width: 100%;
        }
        
        .brand-name {
            color: #888;
            font-size: 14px;
            letter-spacing: 3px;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .power-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }
        
        .power-light {
            width: 8px;
            height: 8px;
            background: radial-gradient(circle, #00ff00, #008800);
            border-radius: 50%;
            box-shadow: 
                0 0 8px #00ff00,
                0 0 15px #00aa00;
            animation: power-pulse 2s ease-in-out infinite;
        }
        
        .control-label {
            color: #666;
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
        }
        
        @keyframes power-pulse {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
        }
        
        /* Keyboard Section - 15% of viewport, tucked at bottom */
        .keyboard-section {
            width: 100%;
            height: 15vh;
            background: linear-gradient(to bottom, #0a0a0a 0%, #4a4a4a 100%); /* Very dark at top to blend with shadow */
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center; /* Changed from flex-end to center for better positioning */
            border: 4px solid #ffffff;
            border-top: none;
            perspective: 800px;
            perspective-origin: center bottom;
            margin-top: -5px; /* Pull it up more to overlap with nameplate shadow */
            padding-top: 0; /* Removed padding to let keyboard extend up */
            overflow: hidden; /* Hide any overflow from diagonal lines */
            border-radius: 0 0 14px 14px;
        }
        
        /* Add diagonal perspective lines in negative space */
        .keyboard-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 2px;
            background: linear-gradient(to right, transparent, rgba(80,80,80,0.3) 10%, rgba(80,80,80,0.3) 40%, transparent 50%);
            transform: rotate(-15deg) translateX(-25%);
            transform-origin: left center;
            pointer-events: none;
            z-index: 0;
        }
        
        .keyboard-section::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 200%;
            height: 2px;
            background: linear-gradient(to left, transparent, rgba(80,80,80,0.3) 10%, rgba(80,80,80,0.3) 40%, transparent 50%);
            transform: rotate(15deg) translateX(25%);
            transform-origin: right center;
            pointer-events: none;
            z-index: 0;
        }

        .keyboard-shadow {
            position: absolute;
            top: -10px;
            left: 1.5%;
            right: 1.5%;
            height: 16px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
            box-shadow: 0 -8px 18px rgba(0,0,0,0.5);
            pointer-events: none;
            z-index: 2;
            filter: blur(0.5px);
        }
        
        .keyboard-container {
            width: 94%;
            height: calc(100% - 10px); /* Increased height to extend into shadow */
            background: linear-gradient(180deg, #101010, #050505 85%, #020202);
            position: relative;
            padding: 15px 25px 10px 25px; /* More top padding since keyboard extends higher */
            box-shadow: 
                inset 0 10px 24px rgba(0,0,0,1), /* Very strong inner shadow at top */
                inset 0 -1px 2px rgba(255,255,255,0.02),
                0 -5px 15px rgba(0,0,0,0.8),
                0 -14px 24px rgba(0,0,0,0.55);
            transform: rotateX(16deg); /* Slightly less rotation */
            transform-origin: bottom center;
            border-radius: 3px 3px 0 0;
            margin-bottom: 0; /* Flush with bottom */
            margin-top: 0; /* Removed negative margin - keyboard now extends naturally */
        }

        .keyboard-bed {
            position: absolute;
            inset: 12px 18px 12px 18px;
            background: radial-gradient(circle at 50% 20%, rgba(80,80,80,0.12), transparent 42%), linear-gradient(180deg, #0f0f0f 0%, #050505 65%, #020202 100%);
            border-radius: 6px;
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.06),
                inset 0 -3px 10px rgba(0,0,0,0.75),
                0 6px 14px rgba(0,0,0,0.6);
            pointer-events: none;
            z-index: 0;
        }
        
        /* Add a gradient overlay at top of keyboard to enhance shadow effect */
        .keyboard-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 45px;
            background: linear-gradient(to bottom, 
                rgba(0,0,0,1) 0%, 
                rgba(0,0,0,0.8) 20%,
                rgba(0,0,0,0.5) 50%,
                transparent 100%);
            pointer-events: none;
            z-index: 1;
        }

        .keyboard-side {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 3%;
            pointer-events: none;
            z-index: 1;
        }

        .keyboard-side.left {
            left: -3%;
            background: linear-gradient(to right,
                rgba(42, 42, 42, 1) 0%,
                rgba(42, 42, 42, 0) 100%);
        }

        .keyboard-side.right {
            right: -3%;
            background: linear-gradient(to left, 
                rgba(42, 42, 42, 1) 0%, 
                rgba(42, 42, 42, 0) 100%);
        }
        
        .keyboard-rows {
            display: flex;
            flex-direction: column;
            gap: 2px; /* Very tight gap for smaller space */
            width: 100%;
            height: 100%;
            justify-content: center;
            position: relative;
            z-index: 2;
        }
        
        .key-row {
            display: flex;
            gap: 3px; /* Tighter gap */
            justify-content: space-between;
        }
        
        /* Adjust key sizes for perspective - less dramatic scaling */
        .key-row:nth-child(1) { transform: scale(0.95); margin-bottom: 0; }
        .key-row:nth-child(2) { transform: scale(0.96); margin-bottom: 0; }
        .key-row:nth-child(3) { transform: scale(0.97); }
        .key-row:nth-child(4) { transform: scale(0.99); }
        .key-row:nth-child(5) { transform: scale(1); }
        
        .key {
            position: relative;
            background: linear-gradient(180deg, #1f1f1f 0%, #151515 55%, #0b0b0b 100%);
            border: 1px solid #0d0d0d;
            border-bottom: 2px solid #000;
            border-radius: 5px 5px 4px 4px;
            padding: 0;
            min-width: 38px;
            height: 24px;
            cursor: pointer;
            font-family: 'Share Tech Mono', monospace;
            font-size: 9px;
            font-weight: 700;
            color: #d9d0a8;
            letter-spacing: 0.02em;
            text-shadow: 0 1px 1px rgba(0,0,0,0.6);
            box-shadow: 
                0 6px 12px rgba(0,0,0,0.85),
                0 1px 0 rgba(255,255,255,0.05),
                inset 0 -2px 3px rgba(0,0,0,0.7),
                inset 0 1px 0 rgba(255,255,255,0.1);
            transition: all 0.14s ease;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            overflow: hidden;
        }

        .key::before {
            content: '';
            position: absolute;
            inset: 1px 1px 6px 1px;
            border-radius: 4px 4px 3px 3px;
            background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 45%, rgba(0,0,0,0) 100%);
            pointer-events: none;
            mix-blend-mode: screen;
        }

        .key::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 10%;
            width: 80%;
            height: 60%;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.07), transparent 60%);
            opacity: 0.6;
            pointer-events: none;
            transform: translateY(-50%);
        }
        
        .key:hover {
            background: linear-gradient(180deg, #292929 0%, #1c1c1c 60%, #121212 100%);
            transform: translateY(-1px) scale(1.01);
            box-shadow: 
                0 8px 14px rgba(0,0,0,0.95),
                inset 0 -2px 3px rgba(0,0,0,0.8),
                inset 0 1px 0 rgba(255,255,255,0.14);
        }
        
        .key:active {
            transform: translateY(1px);
            box-shadow: 
                0 1px 2px rgba(0,0,0,0.9),
                inset 0 2px 4px rgba(0,0,0,0.95);
            background: linear-gradient(180deg, #1b1b1b, #161616);
        }
        
        .key.special {
            color: #e2d7b2;
            font-size: 8px;
            min-width: 62px;
        }
        
        .key.wide {
            min-width: 86px;
        }
        
        .key.space {
            min-width: 260px;
        }
        
        .key.function {
            background: linear-gradient(to bottom, #383838, #303030);
            color: #735594;
        }
        
        /* Flicker effect */
        @keyframes flicker {
            0% { opacity: 1; }
            4% { opacity: 0.97; }
            6% { opacity: 0.94; }
            8% { opacity: 0.98; }
            10% { opacity: 1; }
            100% { opacity: 1; }
        }

        @keyframes interior-noise-move {
            0% { background-position: 0 0, 0 0; }
            30% { background-position: 24px 14px, -14px 10px; transform: scale(1.0015); }
            60% { background-position: -18px -12px, 12px -9px; transform: scale(0.9985); }
            100% { background-position: 0 0, 0 0; transform: scale(1); }
        }
        
        .screen {
            animation: flicker 10s infinite;
        }

        /* Interior screen styling */
        .interior-screen {
            position: relative;
            min-height: 100%;
            padding: 28px 32px 42px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            isolation: isolate;
            /* Adjustable cone controls */
            --cone-left: 100px;
            --cone-top: 140px;
            --cone-width: 52%;
            --cone-height: 200px;
            --cone-rotate: 24deg; /* positive tilts the point downward */
            --cone-inner-top: 91px;
            --cone-inner-width: 51%;
            --cone-inner-height: 180px;
            --cone-glow-top: 120px;
            --cone-glow-width: 58%;
            --cone-glow-height: 250px;
            /* Ring controls */
            --ring1-top: 62px;
            --ring1-left: -92px;
            --ring1-width: 340px;
            --ring1-height: 240px;
            --ring1-rotate: -6deg;
            --ring1-scale: 1.12;
            --ring1-stroke: 2px;
            --ring2-top: 48px;
            --ring2-left: -124px;
            --ring2-width: 380px;
            --ring2-height: 270px;
            --ring2-rotate: -6deg;
            --ring2-scale: 1.18;
            --ring2-stroke: 2px;
            /* Band fills space between rings */
            --ring-band-stroke: calc(((var(--ring2-width) - var(--ring1-width)) + (var(--ring2-height) - var(--ring1-height))) / 4);
            --ring-band-opacity: 0.7;
            background:
                radial-gradient(ellipse at 22% 40%, rgba(132, 134, 156, 0.14) 0%, transparent 46%),
                radial-gradient(ellipse at 82% 15%, rgba(142, 138, 170, 0.08) 0%, transparent 14%),
                linear-gradient(180deg, rgba(251, 251, 251, 0.97) 0%, rgba(173, 174, 176, 0.99) 52%, rgba(208, 212, 221, 0.99) 100%),
                #ebedf4;
        }

        .interior-nav {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 18px;
            letter-spacing: 0.22em;
            font-size: 10px;
            text-transform: uppercase;
            color: #4a4460;
            opacity: 0.93;
            z-index: 110;
        }

        .interior-nav .logo {
            display: none;
        }

        .interior-nav .nav-link {
            cursor: pointer;
            transition: color 0.2s ease, letter-spacing 0.2s ease;
            white-space: nowrap;
        }

        .interior-nav .nav-link:hover {
            color: #242035;
            letter-spacing: 0.26em;
        }

        .interior-hero {
            position: relative;
            width: 100%;
            max-width: 760px;
            margin: 120px auto 0;
            text-align: center;
            z-index: 110;
        }

        .hero-title {
            font-size: clamp(32px, 7vw, 78px);
            line-height: 1.1;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: #201c2c;
            text-shadow:
                0 0 14px rgba(90, 80, 130, 0.25),
                0 0 30px rgba(70, 60, 100, 0.18);
            margin: 0;
        }

        .hero-subtitle {
            margin-top: 32px;
            font-size: 12px;
            letter-spacing: 0.35em;
            text-transform: uppercase;
            color: #413b55;
            opacity: 0.9;
            text-shadow: none;
        }

        .bg-circle {
            position: absolute;
            top: 80px;
            left: -60px;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 40%,
                rgba(136, 108, 186, 0.48) 0%,
                rgba(52, 36, 72, 0.22) 46%,
                rgba(20, 16, 32, 0.12) 68%,
                rgba(10, 8, 16, 0.08) 82%,
                transparent 100%);
            filter: blur(1px);
            z-index: 60; /* ensure orb clouds over cone layers */
        }

        .bg-ring {
            position: absolute;
            top: var(--ring1-top);
            left: var(--ring1-left);
            width: var(--ring1-width);
            height: var(--ring1-height);
            border: var(--ring1-stroke) solid rgba(172, 132, 168, 0.28);
            border-radius: 50%;
            transform: rotate(var(--ring1-rotate)) scaleX(var(--ring1-scale));
            opacity: 0.35;
            filter: blur(0.2px);
            z-index: 62;
            pointer-events: none;
        }

        .bg-ring-band {
            position: absolute;
            top: var(--ring2-top);
            left: var(--ring2-left);
            width: var(--ring2-width);
            height: var(--ring2-height);
            border: var(--ring-band-stroke) solid rgba(255, 255, 255, 0.62);
            border-radius: 50%;
            transform: rotate(var(--ring2-rotate)) scaleX(var(--ring2-scale));
            opacity: var(--ring-band-opacity);
            filter: blur(0.3px);
            z-index: 61.5;
            pointer-events: none;
            box-sizing: border-box;
        }

        .bg-ring.second {
            top: var(--ring2-top);
            left: var(--ring2-left);
            width: var(--ring2-width);
            height: var(--ring2-height);
            border-color: rgba(172, 132, 168, 0.2);
            opacity: 0.25;
            transform: rotate(var(--ring2-rotate)) scaleX(var(--ring2-scale));
            z-index: 61;
        }

        .directory-panel {
            position: absolute;
            top: 0;
            right: 0;
            width: 15%;
            height: 100%;
            background: #ffffff;
            z-index: 330;
            box-shadow: -4px 0 18px rgba(0,0,0,0.12);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 18px 14px 18px 14px;
            gap: 12px;
            justify-content: flex-start;
        }

        .screen-static-overlay {
            position: absolute;
            inset: 0;
            background-image:
                repeating-linear-gradient(
                    0deg,
                    rgba(255,255,255,0.08) 0px,
                    rgba(255,255,255,0.08) 1px,
                    transparent 2px,
                    transparent 4px
                ),
                repeating-linear-gradient(
                    90deg,
                    rgba(255,255,255,0.05) 0px,
                    rgba(255,255,255,0.05) 1px,
                    transparent 3px,
                    transparent 5px
                );
            background-size: 140px 140px, 180px 180px;
            opacity: 0.32;
            z-index: 60;
            pointer-events: none;
            mix-blend-mode: screen;
            animation: static-drift 1.6s steps(6) infinite;
        }

        @keyframes static-drift {
            0%   { background-position: 0 0, 0 0; }
            25%  { background-position: -12px 8px, 10px -6px; }
            50%  { background-position: 14px -10px, -16px 12px; }
            75%  { background-position: -6px 14px, 12px 6px; }
            100% { background-position: 0 0, 0 0; }
        }

        .directory-list {
            list-style: none;
            margin: 0;
            padding: 0;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .crt-tab-block {
            position: absolute;
            top: 55%;
            right: 12px;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 8px;
            flex-direction: row-reverse;
            z-index: 370;
        }

        .crt-tab-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            border: 1px solid rgba(31,27,42,0.12);
            background: linear-gradient(180deg, #f5f7fb 0%, #eef1f6 100%);
            box-shadow: none;
            display: grid;
            place-items: center;
            cursor: pointer;
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }

        .crt-tab-icon::before {
            content: '→';
            font-size: 18px;
            color: #1f1b2a;
            text-shadow: none;
        }

        .crt-tab-icon:hover {
            transform: translateX(2px);
            box-shadow: none;
        }

        .crt-tab-label {
            padding: 0;
            border: 0;
            background: transparent;
            color: #1f1b2a;
            letter-spacing: 0.16em;
            font-size: 12px;
            text-transform: uppercase;
            box-shadow: none;
            white-space: nowrap;
            text-shadow: none;
            font-family: 'Share Tech Mono', 'Space Grotesk', monospace;
        }

        .directory-link {
            font-size: 12px;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: #1f1b2a;
            cursor: pointer;
            padding: 8px 10px;
            border-radius: 4px;
            transition: background 0.15s ease, color 0.15s ease;
            user-select: none;
            box-shadow: none;
            text-shadow: none;
        }

        .directory-link:hover {
            background: rgba(31, 27, 42, 0.08);
            color: #0f0c16;
            box-shadow: none;
            text-shadow: none;
        }

        .directory-foldout {
            position: absolute;
            top: 0;
            right: 15%;
            width: 80%;
            height: 100%;
            background: #f0f2f6;
            box-shadow: -10px 0 24px rgba(0,0,0,0.14);
            transform: translateX(100%);
            opacity: 0;
            transition: none;
            z-index: 320;
            pointer-events: none;
            overflow: visible; /* allow external nav buttons to show */
            display: flex;
            align-items: flex-start;
            padding: 18px 18px 18px 22px;
        }

        .directory-foldout.open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }

        .directory-foldout.anim-in {
            animation: foldIn 0.28s ease forwards;
        }

        .directory-foldout.anim-out {
            animation: foldOut 0.28s ease forwards;
        }

        @keyframes foldIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes foldOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }

        .foldout-content {
            width: 100%;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            position: relative;
        }

        .foldout-title {
            font-size: clamp(27px, 5.95vw, 66px);
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: #201c2c;
            text-shadow:
                0 0 14px rgba(90, 80, 130, 0.25),
                0 0 30px rgba(70, 60, 100, 0.18);
            margin: 12px 0 0 0;
            text-align: center;
        }

        .foldout-close {
            position: absolute;
            top: 12px;
            left: 12px;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: rgba(31,27,42,0.06);
            border: 1px solid rgba(31,27,42,0.14);
            color: #5a5866;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.12s ease, color 0.12s ease;
        }

        .foldout-close:hover {
            background: rgba(31,27,42,0.12);
            color: #363447;
        }

        /* Foldout navigation (only when open) */
        .foldout-nav {
            position: absolute;
            top: 12px;
            right: 12px;
            display: none;
            flex-direction: row;
            gap: 8px;
            z-index: 350;
            pointer-events: auto;
        }

        .directory-foldout.open .foldout-nav {
            display: flex;
        }

        .foldout-nav-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: rgba(31,27,42,0.06);
            border: 1px solid rgba(31,27,42,0.14);
            color: #5a5866;
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 6px 12px rgba(0,0,0,0.12);
            transition: background 0.12s ease, transform 0.08s ease, color 0.12s ease;
        }

        .foldout-nav-btn:hover {
            background: rgba(31,27,42,0.12);
            color: #363447;
            transform: translateY(-2px);
        }

        /* Overlay to block background when foldout open */
        .foldout-overlay {
            position: fixed;
            inset: 0;
            background: transparent;
            pointer-events: none;
            z-index: 300;
            display: none;
        }

        .foldout-overlay.active {
            display: block;
        }

        /* Horizontal mode slider (CRT <> Primary) */
        .mode-slider {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .mode-view {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .view-tab { display: none; }

        .primary-view {
            display: block;
            padding-left: clamp(220px, 26vw, 320px);
            width: 100%;
            min-height: 100vh;
            background: #ffffff;
            color: #1f1b2a;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 40px rgba(0,0,0,0.06);
            font-family: "Helvetica Neue", Arial, sans-serif;
        }

        .primary-directory {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: clamp(220px, 26vw, 320px);
            background: #ffffff;
            padding: 24px 14px;
            box-shadow: 4px 0 14px rgba(0,0,0,0.08);
            z-index: 2;
            border-right: 1px solid rgba(31,27,42,0.08);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .primary-directory-inner {
            width: 100%;
            height: 100%;
            background: #ffffff;
            border-radius: 10px;
            padding: 40px 20px 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(0,0,0,0.04);
            overflow-y: auto;
        }

        .primary-hero-block.minimal-hero {
            display: none;
        }

        .primary-tab-block {
            position: fixed;
            top: 50%;
            left: 12px;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1400;
            pointer-events: auto;
        }

        .primary-tab-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            border: 1px solid rgba(31,27,42,0.16);
            background: linear-gradient(180deg, #f5f7fb 0%, #eef1f6 100%);
            box-shadow: none;
            cursor: pointer;
            display: grid;
            place-items: center;
            transition: transform 0.16s ease, box-shadow 0.16s ease;
        }

        .primary-tab-icon::before {
            content: '←';
            font-size: 18px;
            color: #1f1b2a;
        }

        .primary-tab-icon:hover {
            transform: translateX(-2px);
            box-shadow: none;
        }

        .primary-tab-label {
            font-size: 16.8px;
            letter-spacing: 0;
            text-transform: none;
            color: #3a3a3a;
            white-space: nowrap;
            background: transparent;
            padding: 0;
            border-radius: 0;
            border: 0;
            box-shadow: none;
            font-family: "Helvetica Neue", Arial, sans-serif;
        }

        .primary-directory-title { display: none; }

        .primary-hero-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 18px;
            padding: 12px 8px 18px;
            min-height: 46vh;
            justify-content: center;
        }

        .hero-image-placeholder {
            width: 100%;
            max-width: 260px;
            aspect-ratio: 1 / 1;
            background: linear-gradient(145deg, #e9e7ed, #d8d4dd);
            border: 1px dashed rgba(31,27,42,0.2);
            border-radius: 14px;
            color: #6b6574;
            font-size: 11px;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            display: grid;
            place-items: center;
        }

        .hero-text {
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .hero-name {
            font-size: 24px;
            letter-spacing: 0.08em;
            font-weight: 700;
            color: #1f1b2a;
        }

        .hero-subtitle {
            font-size: 16px;
            letter-spacing: 0.06em;
            color: #3b3645;
        }

        .hero-description {
            font-size: 13px;
            line-height: 1.5;
            color: #4b455c;
        }

        .primary-directory-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: flex-start;
            margin-top: 8px;
        }

        .primary-directory-list {
            list-style: none;
            padding: 0;
            margin: 52px 0 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
            font-family: "Helvetica Neue", Arial, sans-serif;
            color: #3a3a3a;
            font-size: 19.32px; /* 15% bigger than 16.8px */
            letter-spacing: 0;
            align-items: center;
        }

        .primary-directory-link {
            padding: 8px 6px;
            border-radius: 6px;
            cursor: pointer;
            letter-spacing: 0;
            text-transform: none;
            font-size: 19.32px;
            color: #3a3a3a;
            background: transparent;
            border: 1px solid transparent;
            transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
        }

        .primary-home {
            font-size: 19.32px;
            font-weight: 500;
        }

        .primary-about {
            font-weight: 600;
        }

        .primary-directory-link:hover {
            background: rgba(31,27,42,0.06);
            color: #000;
        }

        .primary-directory-link.active {
            background: transparent;
            color: #000;
            border-color: transparent;
            font-weight: 600;
            box-shadow: none;
        }

        .primary-content {
            position: relative;
            overflow: visible;
            padding: 40px 40px 80px;
            scroll-behavior: smooth;
            background: #ffffff;
            margin-left: 0;
        }

        .primary-hero {
            max-width: 760px;
            margin: 28px auto 14px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .primary-kicker {
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: #4b455c;
            font-size: 12px;
            margin: 0 0 10px;
        }

        .primary-title {
            font-size: clamp(36px, 5vw, 56px);
            letter-spacing: 0.08em;
            margin: 0 0 6px;
            font-family: "Helvetica Neue", Arial, sans-serif;
            font-weight: 700;
        }

        .hero-portrait-circle {
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: url('../assets/images/ben.png') center/cover no-repeat;
            box-shadow:
                0 14px 28px rgba(0,0,0,0.18),
                0 6px 12px rgba(0,0,0,0.12);
            border: 4px solid #ffffff;
        }

        .primary-copy {
            font-size: 16px;
            line-height: 1.6;
            color: #3b3645;
            margin: 0;
            text-align: center;
        }

        .primary-section {
            background: #ffffff;
            border: 1px solid rgba(31,27,42,0.08);
            border-radius: 14px;
            padding: 24px 24px 22px;
            box-shadow: 0 12px 22px rgba(0,0,0,0.08);
            margin-bottom: 18px;
        }

        .primary-section:empty {
            padding: 0;
            margin: 0;
            border: 0;
            box-shadow: none;
            min-height: 0;
        }

        /* Match section fills to their corresponding tabs */
        #section-about,
        #section-thesis {
            background: #f6f6f6;
        }

        .work-section {
            background: #ffffff;
            border: none;
            box-shadow: none;
            padding: 0 0 60px;
        }

        .work-header {
            text-align: left;
            margin: 0 0 24px;
        }

        .work-title {
            margin: 0;
        }

        .work-subtitle {
            margin: 8px 0 0;
            color: #4a4a4a;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-size: 12px;
        }

        .work-tabs {
            display: inline-flex;
            gap: 10px;
            padding: 6px;
            background: #f2f2f2;
            border: 1px solid rgba(31,27,42,0.12);
            border-radius: 12px;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }

        .work-tab {
            border: 1px solid rgba(31,27,42,0.18);
            background: #ffffff;
            border-radius: 8px;
            padding: 10px 14px;
            cursor: pointer;
            font-family: "Helvetica Neue", Arial, sans-serif;
            font-size: 14px;
            letter-spacing: 0.02em;
            transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
        }

        .work-tab.active {
            background: #e9e9e9;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
            border-color: rgba(31,27,42,0.26);
        }

        .work-tab:hover {
            background: #f6f6f6;
        }

        .work-panels {
            margin-top: 10px;
        }

        .work-panel {
            display: none;
            background: #f8f8f8;
            border: 1px solid rgba(31,27,42,0.08);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 10px 18px rgba(0,0,0,0.06);
        }

        .work-panel.active {
            display: block;
        }

        .work-panel h3 {
            margin: 0 0 8px;
            font-size: 18px;
            letter-spacing: 0.06em;
        }

        .work-panel p {
            margin: 0;
            color: #4a4a4a;
            line-height: 1.6;
            font-size: 14px;
        }

        .work-subpanel h4.work-subtitle-heading {
            margin: 0 0 6px;
            font-size: 18px;
            letter-spacing: 0.04em;
        }

        .work-subpanel p {
            font-size: 15px;
            line-height: 1.7;
        }

        .work-subtabs {
            display: inline-flex;
            gap: 8px;
            padding: 4px;
            background: #ececec;
            border: 1px solid rgba(31,27,42,0.12);
            border-radius: 10px;
            margin-top: 14px;
        }

        .work-subtab {
            border: 1px solid rgba(31,27,42,0.18);
            background: #ffffff;
            border-radius: 7px;
            padding: 8px 12px;
            cursor: pointer;
            font-family: "Helvetica Neue", Arial, sans-serif;
            font-size: 13px;
            letter-spacing: 0.01em;
            transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
        }

        .work-subtab.active {
            background: #e9e9e9;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
            border-color: rgba(31,27,42,0.26);
        }

        .work-subtab:hover {
            background: #f6f6f6;
        }

        .work-subpanels {
            margin-top: 12px;
        }

        .work-subpanel {
            display: none;
        }

        .work-subpanel.active {
            display: block;
        }

        .pdf-frame {
            width: 100%;
            min-height: 200vh;
            height: auto;
            border: 1px solid rgba(31,27,42,0.12);
            border-radius: 12px;
            overflow: hidden;
            background: #f8f8f8;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
        }

        .pdf-frame iframe {
            width: 100%;
            height: 100%;
            min-height: 200vh;
            border: none;
            background: #ffffff;
            display: block;
        }

        .pdf-frame.horizontal {
            min-height: 90vh;
        }

        .pdf-frame.horizontal iframe {
            min-height: 90vh;
        }

        .work-link {
            margin: 0 0 10px;
        }

        .work-link a {
            color: #0a5ddb;
            text-decoration: none;
            font-weight: 600;
        }

        .work-link a:hover {
            text-decoration: underline;
        }

        .news-frame {
            width: 100%;
            min-height: 160vh;
            border: 1px solid rgba(31,27,42,0.12);
            border-radius: 12px;
            overflow: hidden;
            background: #f8f8f8;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
        }

        .news-frame iframe {
            width: 100%;
            height: 100%;
            min-height: 160vh;
            border: none;
            display: block;
        }

        .primary-section h2 {
            margin: 0 0 8px;
            font-size: 18px;
            letter-spacing: 0.12em;
        }

        .primary-section p {
            margin: 0;
            color: #443f52;
            line-height: 1.5;
        }

        /* Home hero riff */
        #section-home {
            background: #ffffff;
        }

        .home-hero {
            border: none;
            box-shadow: none;
            padding: 0 0 24px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            align-items: center;
            min-height: 100vh;
        }

        .home-hero-top {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .home-signature {
            flex: 1 1 320px;
            max-width: 100%;
            color: #181818;
            text-align: center;
        }

        .home-tagline {
            margin: 0;
            font-size: 20px;
            letter-spacing: 0.02em;
            color: #222222;
            line-height: 1.4;
            white-space: nowrap;
            font-family: "Helvetica Neue", Arial, sans-serif;
            font-weight: 600;
        }

        .home-secondary {
            font-family: "Helvetica Neue", Arial, sans-serif;
            font-size: 16px;
            line-height: 1.6;
            color: #2f2f2f;
            text-align: center;
            max-width: 900px;
            margin: 8px auto 0;
            letter-spacing: 0.01em;
        }

        .home-link {
            margin-top: 10px;
        }

        .home-link a {
            font-family: "Helvetica Neue", Arial, sans-serif;
            font-weight: 600;
            color: #0a5ddb;
            text-decoration: none;
            letter-spacing: 0.01em;
        }

        .home-link a:hover {
            text-decoration: underline;
        }

        .section-spacer {
            border: 0;
            box-shadow: none;
            background: transparent;
            padding: 0;
            margin: 0;
            min-height: 0;
        }

        .section-spacer-fill {
            height: 100vh;
        }

        .home-portrait {
            width: 220px;
            height: 260px;
            flex: 0 0 auto;
            background:
                radial-gradient(circle at 38% 32%, rgba(255,255,255,0.8), rgba(240,240,240,0.4) 24%, transparent 55%),
                radial-gradient(circle at 62% 48%, rgba(205,214,228,0.75), rgba(150,160,178,0.55) 38%, rgba(120,130,146,0.25) 62%, transparent 78%),
                linear-gradient(140deg, rgba(32,46,66,0.85), rgba(72,88,110,0.72) 50%, rgba(26,28,34,0.88));
            border-radius: 22px;
            box-shadow: 0 18px 34px rgba(0,0,0,0.18);
            position: relative;
            overflow: hidden;
        }

        .home-portrait::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 45% 40%, rgba(255,255,255,0.12), transparent 56%);
            mix-blend-mode: screen;
        }

        .home-cta-row {
            display: flex;
            justify-content: center;
        }

        .home-cta {
            padding: 10px 18px;
            border: none;
            border-radius: 8px;
            background: #4d4d4d;
            color: #ffffff;
            font-size: 16px;
            letter-spacing: 0.02em;
            cursor: pointer;
            box-shadow: 0 10px 18px rgba(0,0,0,0.12);
            transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
        }

        .home-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 22px rgba(0,0,0,0.16);
            background: #3a3a3a;
        }

        .home-bio {
            text-align: center;
            font-size: 16px;
            line-height: 1.7;
            color: #3b3b3b;
            max-width: 900px;
            margin: 0 auto;
            letter-spacing: 0.01em;
        }

        @media (max-width: 720px) {
            .home-hero-top {
                flex-direction: column;
                align-items: flex-start;
            }

            .home-portrait {
                align-self: center;
            }

            .home-signature {
                max-width: none;
            }
        }


        /* Dock */
        .dock {
            position: absolute;
            bottom: 90px;
            left: 50%;
            transform: translateX(-50%);
            width: 520px;
            height: 140px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            align-items: center;
            justify-items: center;
            pointer-events: none;
            z-index: 120;
        }

        .dock-icon {
            width: 90px;
            height: 90px;
            border-radius: 22px;
            background: radial-gradient(circle at 30% 30%, rgba(200, 190, 220, 0.3), rgba(60, 50, 90, 0.18));
            box-shadow:
                0 14px 28px rgba(0,0,0,0.22),
                0 4px 12px rgba(0,0,0,0.12),
                0 0 24px rgba(40, 20, 70, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
            pointer-events: auto;
            cursor: pointer;
        }

        .dock-icon:focus {
            outline: 2px solid rgba(139,127,168,0.28);
            outline-offset: 6px;
        }

        

        .dock-icon.mid {
            width: 78px;
            height: 78px;
            margin-top: -14px;
            box-shadow:
                0 12px 24px rgba(0,0,0,0.22),
                0 3px 10px rgba(0,0,0,0.12),
                0 0 20px rgba(40, 20, 70, 0.3);
        }

        .dock-icon:hover {
            transform: translateY(-10px) scale(1.08);
            box-shadow:
                0 18px 32px rgba(0,0,0,0.3),
                0 6px 14px rgba(0,0,0,0.16),
                0 0 32px rgba(70, 40, 110, 0.4);
        }

        .dock-label {
            position: absolute;
            bottom: -26px;
            width: 100%;
            text-align: center;
            font-size: 11px;
            letter-spacing: 0.2em;
            color: #1f1b2a;
            text-transform: uppercase;
            opacity: 0.9;
            pointer-events: none;
            text-shadow: none;
        }
        /* hide original left-side collapse button; using top nav instead */
        .foldout-close { display: none !important; }

        /* Foldout navigation buttons (only visible when open) */
        .foldout-nav {
            position: absolute;
            top: 12px;
            right: 12px;
            display: none;
            flex-direction: row;
            gap: 10px;
            z-index: 350;
            pointer-events: auto;
        }

        .directory-foldout.open .foldout-nav {
            display: flex;
        }

        .foldout-nav-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: rgba(31,27,42,0.06);
            border: 1px solid rgba(31,27,42,0.14);
            color: #5a5866;
            font-size: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 6px 12px rgba(0,0,0,0.12);
            transition: background 0.12s ease, transform 0.08s ease, color 0.12s ease;
        }

        .foldout-nav-btn:hover {
            background: rgba(31,27,42,0.12);
            color: #363447;
            transform: translateY(-2px);
        }

        /* Hide dock when foldout open */
        .foldout-open .dock {
            display: none;
        }


        .bg-line {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, rgba(160, 138, 220, 0.45), transparent);
            opacity: 0.45;
            z-index: 1;
            transform: rotate(-6deg);
        }

        .bg-line.one {
            width: 260px;
            bottom: 18%;
            left: 10%;
        }

        .bg-line.two {
            width: 220px;
            bottom: 8%;
            right: 8%;
            transform: rotate(4deg);
            background: linear-gradient(270deg, rgba(160, 138, 220, 0.35), transparent);
        }

        .bg-line.two.flipped {
            left: 8%;
            right: auto;
            transform: rotate(-4deg);
            background: linear-gradient(90deg, rgba(160, 138, 220, 0.35), transparent);
            width: 220px;
            bottom: 8%;
        }

        .bg-line.grid {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, rgba(160, 138, 220, 0.18), transparent);
            opacity: 0.18;
            z-index: 1;
            transform-origin: center;
        }

        .bg-line.grid.v {
            width: 1px;
            height: 180px;
            top: auto;
            bottom: 0;
            background: linear-gradient(180deg, rgba(160, 138, 220, 0.18), transparent);
        }

        .bg-line.grid.horizon { width: 60%; bottom: 4%; left: 20%; transform: rotate(0deg); }
        .bg-line.grid.horizon2 { width: 50%; bottom: 6%; left: 25%; transform: rotate(0deg); opacity: 0.14; }
        .bg-line.grid.horizon3 { width: 40%; bottom: 8%; left: 30%; transform: rotate(0deg); opacity: 0.12; }
        .bg-line.grid.horizon4 { width: 32%; bottom: 10%; left: 34%; transform: rotate(0deg); opacity: 0.1; }
        .bg-line.grid.horizon5 { width: 26%; bottom: 12%; left: 37%; transform: rotate(0deg); opacity: 0.08; }

        .bg-line.grid.v.v1 { left: 18%; transform: rotate(-4deg); }
        .bg-line.grid.v.v2 { left: 32%; transform: rotate(-2deg); }
        .bg-line.grid.v.v3 { left: 50%; transform: rotate(0deg); }
        .bg-line.grid.v.v4 { right: 32%; transform: rotate(2deg); }
        .bg-line.grid.v.v5 { right: 18%; transform: rotate(4deg); }

        /* Radiating cone behind orb toward center */
        .bg-cone {
            position: absolute;
            left: var(--cone-left);
            top: var(--cone-top);
            width: var(--cone-width);
            height: var(--cone-height);
            background: linear-gradient(90deg,
                rgba(172, 132, 168, 0.26) 0%,
                rgba(192, 162, 190, 0.16) 22%,
                rgba(214, 196, 222, 0.08) 40%,
                transparent 100%);
            clip-path: polygon(0 0, 100% 50%, 0 100%);
            filter: blur(7px);
            opacity: 0.55;
            mix-blend-mode: screen;
            transform-origin: left center;
            transform: rotate(var(--cone-rotate));
            z-index: -8; /* sit above base background, below orb/lines/noise */
        }

        .bg-cone.inner {
            top: var(--cone-inner-top);
            width: var(--cone-inner-width);
            height: var(--cone-inner-height);
            background: linear-gradient(90deg,
                rgba(150, 120, 170, 0.28) 0%,
                rgba(182, 150, 190, 0.18) 26%,
                rgba(210, 192, 224, 0.1) 46%,
                transparent 100%);
            filter: blur(4px);
            opacity: 0.65;
            transform: rotate(var(--cone-rotate));
            transform-origin: left center;
            z-index: -8;
        }

        .bg-cone.glow {
            top: var(--cone-glow-top);
            width: var(--cone-glow-width);
            height: var(--cone-glow-height);
            filter: blur(16px);
            opacity: 0.32;
            transform: rotate(var(--cone-rotate));
            transform-origin: left center;
            z-index: -8;
        }

        .interior-noise {
            position: absolute;
            inset: 0;
            background-image: 
                repeating-linear-gradient(
                    0deg,
                    rgba(255,255,255,0.05) 0px,
                    rgba(255,255,255,0.05) 1px,
                    transparent 1px,
                    transparent 3px
                ),
                repeating-linear-gradient(
                    90deg,
                    rgba(255,255,255,0.04) 0px,
                    rgba(255,255,255,0.04) 1px,
                    transparent 1px,
                    transparent 4px
                );
            background-size: 120px 120px, 140px 140px;
            mix-blend-mode: screen;
            opacity: 0.035;
            pointer-events: none;
            z-index: 3;
            animation: interior-noise-move 0.6s steps(5) infinite;
        }

        .interior-scanline {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(110, 100, 140, 0.08), transparent 46%, rgba(0,0,0,0.16) 100%);
            mix-blend-mode: screen;
            opacity: 0.055;
            pointer-events: none;
            z-index: 3;
        }

        .interior-footer-hint {
            position: absolute;
            bottom: 12px;
            left: 6%;
            right: 6%;
            margin: 0;
            width: auto;
            text-align: center;
            font-size: 12px;
            letter-spacing: 0.22em;
            color: #201c2c;
            text-transform: uppercase;
            opacity: 0.9;
            padding: 12px 0;
            z-index: 110;
            cursor: pointer;
            background: rgba(32,28,48,0.08);
            border: 1px solid rgba(32,28,48,0.18);
            border-radius: 8px;
            transition: none;
        }

        .interior-footer-hint:hover {
            background: rgba(32,28,48,0.12);
        }

        .fullscreen-exit {
            position: fixed;
            top: 12px;
            left: 12px;
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: rgba(32,28,48,0.18);
            border: 1px solid rgba(32,28,48,0.3);
            color: #201c2c;
            font-size: 16px;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 300;
            transition: background 0.18s ease, color 0.18s ease;
        }

        .fullscreen-exit:hover {
            background: rgba(32,28,48,0.26);
            color: #120e1c;
        }

        .fullscreen-mode .fullscreen-exit {
            display: flex;
        }

        .fullscreen-mode .computer-container {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            z-index: 250;
        }

        .fullscreen-mode .crt-monitor {
            height: 100vh;
        }

        .fullscreen-mode .keyboard-section {
            display: none;
        }
