        /* ========================================
           CSS Custom Properties (Design Tokens)
           ======================================== */
        :root {
            /* Primary Colors */
            --color-primary: #86d8dd;
            --color-primary-dark: #518285;
            --color-primary-darker: #1a3a3d;

            /* Neutrals */
            --color-black: #000000;
            --color-white: #ffffff;
            --color-gray-dark: #333333;
            --color-gray-mid: #4d4c4c;

            /* Accent Colors (Music/Green) */
            --color-accent-green: #9fdd86;
            --color-accent-green-bg: rgba(127, 156, 104, 0.2);
            --color-accent-green-hover: rgba(29, 246, 148, 0.894);

            /* Text Colors */
            --color-text-primary: #ffffff;
            --color-text-muted: rgba(255, 255, 255, 0.7);
            --color-text-subtle: rgba(255, 255, 255, 0.4);

            /* Shadows */
            --shadow-text: 0px 1px 0px rgba(0, 0, 0, 0.5);
            --shadow-box: 0 4px 8px rgba(0, 0, 0, 0.4);
            --shadow-box-hover: 0 6px 12px rgba(134, 216, 221, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
            --shadow-glow: 0 0 15px rgba(134, 216, 221, 0.6);

            /* Typography */
            --font-display: 'Rombyte', monospace;
            --font-body: 'Ari', monospace;
            --font-readable: 'Space Mono', 'Courier New', monospace;
            --font-system: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

            /* Spacing Scale */
            --space-xs: 4px;
            --space-sm: 8px;
            --space-md: 16px;
            --space-lg: 24px;
            --space-xl: 40px;
            --space-2xl: 50px;
            --space-3xl: 80px;
            --section-gap: 48px;

            /* Border */
            --border-width: 3px;
            --border-radius: 0;
            --border-radius-lg: 18px;

            /* Transitions */
            --transition-fast: 0.2s ease;
            --transition-base: 0.3s ease;
            --transition-slow: 0.4s ease;

            /* Z-Index Scale */
            --z-base: 1;
            --z-overlay: 10;
            --z-modal: 1000;
            --z-header: 2000;
            --z-menu: 3000;

            /* Visual Refresh - Subtle Enhancements */
            --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
            --gradient-dark: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
            --glass-bg: rgba(0, 0, 0, 0.4);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

        /* ========================================
           Visual Polish - Subtle Refinements
           ======================================== */

        /* Sharp text rendering */
        html {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: geometricPrecision;
        }

        /* Ensure all text elements render sharply */
        h1, h2, h3, h4, h5, h6, p, a, span, li, td, th, label, button {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: geometricPrecision;
        }

        /* Subtle hover lift for interactive elements */
        .button,
        .button2,
        .carousel-nav button {
            transform: translateY(0);
            transition: transform var(--transition-fast),
                        background-color var(--transition-base),
                        box-shadow var(--transition-base),
                        border-color var(--transition-base);
        }

        .button:hover,
        .button2:hover,
        .carousel-nav button:hover {
            transform: translateY(-2px);
        }

        .button:active,
        .button2:active,
        .carousel-nav button:active {
            transform: translateY(0);
        }

        /* Refined table row interactions */
        #tracklist tbody tr:not(.date-header):not(.role-details) {
            transition: background-color var(--transition-fast), transform var(--transition-fast);
        }

        #tracklist tbody tr:not(.date-header):not(.role-details):hover {
            transform: translateX(4px);
        }

        /* Enhanced link underlines */
        .modal-content a,
        .case-study-bullets a {
            text-decoration: underline;
            text-decoration-color: var(--color-primary);
            text-decoration-thickness: 2px;
            text-underline-offset: 3px;
            transition: text-decoration-color var(--transition-fast);
        }

        .modal-content a:hover,
        .case-study-bullets a:hover {
            text-decoration-color: var(--color-white);
        }

        /* Section spacing — handled by #main > * rule */

        .cta-section {
            margin-bottom: var(--space-lg) !important;
            margin-top: 0 !important;
        }

        .portfolio-carousel {
            border-bottom: none !important;
            padding-bottom: 0 !important;
        }

        /* ========================================
           Base Styles
           ======================================== */
        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            background-color: var(--color-primary-dark);
            min-height: 100%;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* ========================================
           Accessibility
           ======================================== */

        /* Enhanced focus states */
        :focus-visible {
            outline: 3px solid var(--color-primary);
            outline-offset: 3px;
            box-shadow: 0 0 0 6px rgba(134, 216, 221, 0.25);
        }

        /* Focus for buttons and interactive elements */
        button:focus-visible,
        .button:focus-visible,
        a.button:focus-visible {
            outline: 3px solid var(--color-white);
            outline-offset: 2px;
            box-shadow: 0 0 0 6px rgba(134, 216, 221, 0.4), var(--shadow-glow);
        }

        /* Skip link visible on focus */
        .visually-hidden:focus,
        .visually-hidden:focus-visible {
            position: fixed;
            top: var(--space-md);
            left: var(--space-md);
            width: auto;
            height: auto;
            padding: var(--space-md) var(--space-lg);
            margin: 0;
            overflow: visible;
            clip: auto;
            white-space: nowrap;
            background: var(--color-black);
            color: var(--color-primary);
            border: 2px solid var(--color-primary);
            font-family: var(--font-display);
            font-size: 14px;
            z-index: 10000;
            text-decoration: none;
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            :root {
                --color-primary: #00ffff;
                --color-text-muted: #ffffff;
            }

            .button,
            .button2 {
                border-width: 4px;
            }
        }

        /* Reduced transparency for better readability */
        @media (prefers-reduced-transparency: reduce) {
            .modal {
                background-color: rgba(0, 0, 0, 0.95);
            }

            .mobile-menu {
                background-color: var(--color-black);
            }
        }

        a {
            color: var(--color-text-primary);
            font-weight: 900;
        }

        a:visited {
            color: rgb(151, 244, 244);
        }

        html {
            height: 100%;
            min-height: 100%;
            /* Contain the off-canvas mobile menu so it can't inflate the
               document's scrollWidth (which read as phantom horizontal overflow
               to auditing tools). clip (not hidden) preserves the sticky header. */
            overflow-x: clip;
        }

        body {
            height: auto;
            min-height: 100vh;
            background-color: var(--color-primary-dark);
            background-image: radial-gradient(ellipse at center, var(--color-primary) 0%, var(--color-primary) 30%, var(--color-primary-dark) 70%, var(--color-primary-dark) 100%), url(gridnew.png);
            background-size: 100vw 600vh, 60px 60px;
            background-blend-mode: overlay;
            background-repeat: no-repeat, repeat;
            background-attachment: scroll, scroll;
            background-position: center top, 0 0;
            display: block;
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            overflow-x: hidden;
        }

        /* Full-page inset border overlay — 80s theme only */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            border-radius: 0;
            border: 10px solid var(--color-black);
            box-shadow: inset 0 0 0 2px var(--color-black), inset 0 0 24px rgba(0, 0, 0, 0.8);
            pointer-events: none;
            z-index: 2;
        }

        /* Hide border overlay on non-80s themes */
        html[data-theme="90s"] body::before,
        html[data-theme="2000s"] body::before,
        html[data-theme="2010s"] body::before,
        html[data-theme="2026"] body::before {
            display: none !important;
        }

        /* Typography */
        h1,
        h2,
        h3,
        h4,
        p,
        a,
        th,
        td {
            font-family: var(--font-display);
            text-shadow: var(--shadow-text);
        }

        #tracklist td a {
            color: #ffffff;
            text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8), 0px 1px 2px rgba(0, 0, 0, 0.6);
            font-weight: 600;
        }

        #tracklist td a:hover {
            color: var(--color-primary) !important;
            text-shadow: 0px 2px 6px rgba(134, 216, 221, 0.6), 0px 1px 3px rgba(0, 0, 0, 0.8) !important;
        }

        h1,
        h2,
        h3,
        h4 {
            padding: 0;
            margin: 0;
        }

        /* Skip link (accessibility) */
        .skip-link {
            position: absolute;
            left: -10000px;
            top: auto;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }

        .skip-link:focus {
            position: fixed;
            top: 8px;
            left: 8px;
            width: auto;
            height: auto;
            padding: 8px 16px;
            background: var(--color-primary);
            color: #fff;
            z-index: 9999;
            font-size: 14px;
        }

        /* Footer */
        #site-footer-final {
            text-align: center;
            padding: 20px 12px 80px;
        }

        #site-footer-final p {
            margin: 0;
        }

        /* Font Faces */
        @font-face {
            font-family: 'Rombyte';
            src: url('rombyte.woff2') format('woff2'), url('rombyte.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Ari';
            src: url('ari.woff2') format('woff2'), url('ari.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        /* Layout Containers */
        #frame-container {
            min-height: 100dvh;
            background-color: transparent;
            border-radius: 0;
            box-shadow: none;
            overflow: visible;
            max-width: none;
            width: 100%;
            box-sizing: border-box;
            padding: 16px;
            /* keep content off the border overlay */
            padding-bottom: calc(16px + env(safe-area-inset-bottom));
            padding-bottom: calc(16px + constant(safe-area-inset-bottom));
        }

        /* Theme Era Selector Bar */
        .theme-era-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 6px 16px;
            background: rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .theme-era-label {
            font-family: var(--font-display);
            font-size: 10px;
            letter-spacing: 2px;
            color: var(--color-text-subtle);
            text-transform: uppercase;
            white-space: nowrap;
        }

        .theme-era-buttons {
            display: flex;
            gap: 2px;
        }

        .theme-era-btn {
            font-family: var(--font-display);
            font-size: 11px;
            letter-spacing: 1px;
            color: var(--color-text-muted);
            background: transparent;
            border: 1px solid transparent;
            padding: 4px 10px;
            cursor: pointer;
            transition: all var(--transition-fast);
            white-space: nowrap;
        }

        .theme-era-btn:hover {
            color: var(--color-primary);
            border-color: rgba(134, 216, 221, 0.3);
        }

        .theme-era-btn.active {
            color: var(--color-primary);
            border-color: var(--color-primary);
            background: rgba(134, 216, 221, 0.1);
        }

        /* Era selector tagline — load-bearing line that explains
           what the selector actually means (vs reading as decoration). */
        .theme-era-tagline {
            font-family: var(--font-display);
            font-size: 10px;
            letter-spacing: 1.5px;
            color: var(--color-text-subtle);
            text-transform: uppercase;
            white-space: nowrap;
            margin-left: 8px;
            opacity: 0.85;
        }

        @media (max-width: 900px) {
            .theme-era-tagline {
                display: none;
            }
        }

        /* Mobile theme buttons */
        .mobile-theme-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding: var(--space-sm) var(--space-lg);
        }

        .mobile-theme-buttons .theme-era-btn {
            font-size: 13px;
            padding: 8px 14px;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        @media (max-width: 600px) {
            .theme-era-label {
                display: none;
            }
            .theme-era-bar {
                justify-content: center;
            }
        }

        /* Extra bottom clearance for iOS Safari bottom toolbar on small screens */
        @supports (-webkit-touch-callout: none) {
            @media (max-width: 600px) {
                #frame-container {
                    padding-bottom: calc(16px + 44px);
                }

                html {
                    scroll-padding-bottom: 44px;
                }

                #main {
                    padding-bottom: 44px;
                }

                /* Extend background further on iPhone to prevent cutoff */
                body {
                    background-size: 100vw 800vh, 60px 60px;
                }
            }

            /* On iOS Safari, avoid fixed backgrounds to prevent toolbar translucency showing page */
            body {
                background-attachment: scroll, scroll;
            }

            /* Solid guard behind iOS Safari bottom toolbar - taller to account for scroll physics */
            .ios-toolbar-guard {
                position: fixed;
                left: 0;
                right: 0;
                bottom: -8px;
                height: 42px;
                background: #000000;
                z-index: 9999;
                pointer-events: none;
                display: block;
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
        }

        #main {
            background: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            box-sizing: border-box;
            min-height: 100dvh;
            padding: var(--space-xl) var(--space-xl) calc(24px + env(safe-area-inset-bottom));
            padding-bottom: calc(24px + constant(safe-area-inset-bottom));
        }

        /* All direct children of main are full-width within the container */
        #main > * {
            width: 100%;
            margin-bottom: var(--section-gap);
        }

        #main > *:last-child {
            margin-bottom: 0;
        }

        /* Hero Section */
        .hero-section {
            padding: 0 0 24px 0;
        }
        /* First section flush with header — main container's top inset
           is reset just for the hero so the banner image lands right
           under the nav. Other sections keep their normal rhythm. */
        #main:has(> .hero-section:first-child) {
            padding-top: 8px;
        }

        .hero-layout {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
            max-width: 720px;
            margin: 0 auto;
        }

        .hero-text {
            width: 100%;
        }

        .hero-portrait {
            flex: 0 0 auto;
            width: 100%;
            aspect-ratio: 21 / 10;
            overflow: hidden;
            border: 2px solid rgba(134, 216, 221, 0.3);
        }

        .hero-portrait img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .hero-subtitle {
            font-family: var(--font-display);
            font-size: 14px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--color-primary);
            margin: 8px 0 0 0;
        }

        .hero-tagline {
            font-family: var(--font-body);
            font-size: 17px;
            font-weight: 400;
            color: var(--color-text-primary);
            margin: 16px 0 0 0;
            line-height: 1.5;
        }

        .hero-metrics {
            display: flex;
            gap: 24px;
            margin-top: 24px;
        }

        .hero-metric {
            display: flex;
            flex-direction: column;
        }

        .hero-metric-value {
            font-family: var(--font-display);
            font-size: 22px;
            color: var(--color-primary);
            text-shadow: var(--shadow-text);
        }

        .hero-metric-label {
            font-family: var(--font-body);
            font-size: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--color-text-muted);
            margin-top: 2px;
        }

        /* Contact Section */
        .contact-section {
            padding: var(--space-xl) 0;
        }

        .contact-inner {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: var(--space-lg);
            max-width: 720px;
            margin: 0 auto;
        }

        .contact-info {
            width: 100%;
        }

        .contact-form {
            width: 100%;
        }

        .contact-info h3 {
            font-family: var(--font-display);
            font-size: 18px;
            margin: 0 0 var(--space-md) 0;
        }

        .contact-desc {
            font-family: var(--font-readable);
            font-size: 15px;
            color: var(--color-text-muted);
            line-height: 1.5;
            margin: 0 0 var(--space-md) 0;
        }

        .contact-direct {
            font-family: 'SF Mono', Menlo, monospace;
            font-size: 13px;
            color: var(--color-text-muted);
            margin: 0 0 var(--space-lg) 0;
        }
        .contact-direct a {
            color: var(--color-primary);
            text-decoration: none;
            border-bottom: 1px dotted var(--color-primary);
        }
        .contact-direct a:hover { border-bottom-style: solid; }

        @media (max-width: 768px) {
            .contact-inner {
                gap: var(--space-md);
            }
        }

        /* Header Elements */
        #title {
            font-family: Rombyte, monospace;
            transform: translate(-3px, 10px);
            margin-top: 10px;
        }

        /* Button Styles */




        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: var(--z-modal);
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0);
            transition: background-color var(--transition-base);
        }

        .modal.modal-open {
            background-color: rgba(0, 0, 0, 0.7);
        }

        .modal.modal-closing {
            background-color: rgba(0, 0, 0, 0);
        }

        .modal-content {
            font-family: var(--font-body);
            letter-spacing: normal;
            color: #333333;
            background-image: radial-gradient(circle at center, var(--color-primary), var(--color-primary-dark)), url(gridnew.png);
            margin: 5% auto;
            padding: var(--space-lg);
            border: 1px solid rgba(255, 255, 255, 0.2);
            width: 90%;
            max-width: 720px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transform: translateY(-20px);
            opacity: 0;
            transition: transform var(--transition-base), opacity var(--transition-base);
        }

        .modal-content,
        .modal-content h2,
        .modal-content h3,
        .modal-content h4,
        .modal-content p,
        .modal-content ul,
        .modal-content li {
            color: #333333 !important;
            font-family: var(--font-body) !important;
            letter-spacing: 0.5px !important;
        }

        .modal-content .carousel-nav button {
            color: var(--color-text-primary) !important;
        }

        .modal.modal-open .modal-content {
            transform: translateY(0);
            opacity: 1;
        }

        .modal.modal-closing .modal-content {
            transform: translateY(-20px);
            opacity: 0;
        }

        /* Carousel counter */
        .carousel-counter {
            font-family: var(--font-display);
            font-size: 12px;
            color: var(--color-text-muted);
            min-width: 60px;
            text-align: center;
        }


        .modal-content ul,
        .modal-content ul li,
        .modal-content p ul li {
            font-family: inherit;
            font-size: 16px;
            line-height: 1.6;
            color: #333333;
            letter-spacing: normal;
        }

        .modal-content h2,
        .modal-content h3,
        .modal-content h4,
        .modal-content h5,
        .modal-content h6 {
            font-family: 'Rombyte';
            font-weight: normal;
            font-style: normal;
            color: #333333;
        }

        .modal-content p {
            color: #333333;
        }

        .close {
            color: #4d4c4c;
            float: right;
            font-size: 48px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: rgb(34, 34, 34);
            text-decoration: none;
            cursor: pointer;
        }

        /* Compact modal styles for case study previews */
        .modal-compact {
            text-align: center;
        }

        .modal-compact .modal-role {
            font-size: 14px;
            margin: 0 0 4px 0;
            opacity: 0.8;
        }

        .modal-compact .modal-dates {
            font-size: 13px;
            margin: 0 0 16px 0;
            opacity: 0.6;
        }

        .modal-compact .modal-summary {
            font-size: 15px;
            margin: 0 0 20px 0;
            line-height: 1.5;
        }

        .modal-cta-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-case-study-cta {
            display: inline-block;
            font-family: var(--font-display);
            font-size: 13px;
            color: var(--color-white) !important;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 12px 24px;
            background-color: var(--color-primary-darker);
            border: 2px solid var(--color-primary-dark);
            transition: all var(--transition-base);
        }

        .modal-case-study-cta:hover {
            background-color: var(--color-primary-dark);
            border-color: var(--color-primary);
            transform: translateY(-2px);
        }

        .modal-cta-secondary {
            background-color: transparent;
            border-color: var(--color-gray-mid);
            color: #333333 !important;
        }

        .modal-cta-secondary:hover {
            background-color: var(--color-gray-mid);
            color: var(--color-white) !important;
        }

        #title {
            font-family: 'Rombyte';
            font-weight: normal;
            font-style: normal;
            font-size: 48px;
            line-height: 1.1;
            margin: 0;
            color: #ffffff;
        }



        #resume-links p {
            margin: 0;
            padding: 0;
            width: calc(100% - 24px);
            box-sizing: border-box;
        }

        #resume-links p+p {
            margin-top: 6px;
        }

        #resume-links .button {
            margin: 0;
        }

        .button {
            background-color: var(--color-primary-darker);
            border: var(--border-width) solid var(--color-primary);
            color: var(--color-text-primary);
            padding: 10px 14px;
            text-align: left;
            font-family: var(--font-display);
            font-weight: bold;
            font-style: normal;
            font-size: 15px;
            text-decoration: none;
            margin: 20px 6px;
            cursor: pointer;
            -webkit-transition-duration: var(--transition-slow);
            transition-duration: var(--transition-slow);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            box-shadow: var(--shadow-box);
            box-sizing: border-box;
        }

        .button2 {
            background-color: var(--color-primary-darker);
            border: var(--border-width) solid var(--color-primary);
            color: var(--color-text-primary);
        }

        .button2:hover {
            font-size: 15.5px;
            /* Hover fills with --color-primary; use --color-black (theme-inverted to
               read on the accent) so the label doesn't go dark-on-blue. */
            color: var(--color-black);
            box-shadow: var(--shadow-box-hover);
            text-align: left;
            font-family: var(--font-display);
            font-weight: bold;
            font-style: normal;
            text-decoration: none;
            background-color: var(--color-primary);
            border-color: var(--color-white);
        }

        .carousel {
            margin-top: 20px;
        }

        .carousel img {
            max-width: 100%;
            height: 500px;
            width: auto;
            object-fit: contain;
            display: none;
        }

        .carousel img.active {
            display: block;
        }

        .carousel-nav {
            text-align: center;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .carousel-nav button {
            background-color: var(--color-primary-darker);
            border: var(--border-width) solid var(--color-primary);
            color: var(--color-text-primary);
            padding: 10px 20px;
            font-family: var(--font-display);
            font-weight: bold;
            font-size: 11px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-box);
            letter-spacing: 0.5px;
        }

        .carousel-nav button:hover {
            font-size: 11.5px;
            background-color: var(--color-primary);
            border-color: var(--color-white);
            color: var(--color-text-primary);
            box-shadow: var(--shadow-box-hover);
            transform: translateY(-1px);
        }

        .carousel-nav button:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        }

        @media (max-width: 1100px) {
            body {
                display: block;
            }

            #title {
                font-size: 25px;
            }

            #main {
                padding: var(--space-lg) 1.25rem;
            }

            #main > * {
                margin-bottom: var(--space-2xl);
            }

            #songlist,
            #tracklist {
                padding-left: 0;
                padding-right: 0;
            }

            #tracklist th,
            #tracklist td {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
                padding-top: 6px;
                padding-bottom: 6px;
                font-size: 16px;
            }

            #tracklist th {
                font-size: 16px;
            }

            #tracklist td.year-range {
                font-size: 8px;
                width: 35px;
                min-width: 35px;
                max-width: 35px;
                padding: 6px 4px;
            }

            tr td:first-child {
                min-width: 75px;
            }

            #frame-container {
                height: auto;
                min-height: 100vh;
                overflow: visible;
            }

            body {
                height: auto;
                min-height: 100vh;
                overflow-y: auto;
            }

            html,
            body {
                height: auto;
                margin-bottom: 0px;
                margin-top: 0px;
            }

            #contactForm {
                width: 100% !important;
                box-sizing: border-box;
            }

            /* Smaller screens keep reasonable padding */
            @media (max-width: 480px) {
                #main {
                    padding-left: 1rem;
                    padding-right: 1rem;
                }
            }
        }

        a {
            text-decoration: none;
        }


        .pdf-icon {
            width: 22px;
            height: 22px;
            margin-right: 10px;
            vertical-align: middle;
        }



        #player {
            position: relative;
        }

        .cover-art {
            width: 100%;
            height: 100%;
            position: relative;
            background-color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
            margin: 0;
            overflow: hidden;
        }

        .cover-art video {
            width: 100%;
            height: 100%;
            display: block;
            position: relative;
            z-index: 1;
            cursor: pointer;
            object-fit: cover;
            margin: 0;
        }

        .grid-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url(grid-inverted.png);
            background-size: 41px;
            mix-blend-mode: difference;
            background-color: black;
            z-index: 7;
            pointer-events: none;
        }


        .link-text {
            display: flex;
            flex-direction: column;
        }

        .link-text span:first-child {
            font-size: 12px;
            opacity: 0.8;
        }

        .link-text span:last-child {
            font-weight: bold;
        }

        #tracklist {
            width: 100%;
            border-collapse: collapse;
            font-family: var(--font-body);
        }

        #tracklist th,
        #tracklist td {
            padding: 16px 10px;
            text-align: left;
            border-bottom: 3px solid rgba(40, 40, 40, 0.7);
            font-size: 20px;
        }

        #tracklist th {
            font-family: var(--font-display);
            font-weight: bold;
        }

        #tracklist td {
            font-weight: 500;
        }

        #tracklist td.year-range {
            font-size: 10px;
            font-weight: normal;
            width: 50px;
            min-width: 50px;
            max-width: 50px;
            padding: 10px 8px;
            text-align: center;
            line-height: 1.2;
            white-space: normal;
        }

        #tracklist tbody tr {
            transition: background-color 0.3s ease;
        }

        #tracklist tbody tr:hover {
            background-color: rgba(112, 152, 205, 0.1);
        }

        .date-header td {
            font-family: 'Rombyte', monospace;
            font-size: 16px !important;
            padding: 20px 10px 10px;
            border-bottom: none;
            color: #000;
        }

        #tracklist tbody tr:not(.date-header) {
            transition: background-color 0.3s ease;
        }

        #tracklist tbody tr:not(.date-header):hover {
            background-color: rgba(135, 206, 250, 0.3);
        }

        /* Add this new rule to ensure only links have a pointer cursor */
        #tracklist tbody tr td:not(:last-child) {
            cursor: default;
        }

        #tracklist tbody tr td:last-child a {
            cursor: default;
        }

        .hover-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: var(--color-primary);
            padding: 10px 20px;
            border-radius: 4px;
            font-family: var(--font-display);
            opacity: 0;
            transition: opacity var(--transition-base);
            z-index: 2;
            pointer-events: none;
            white-space: nowrap;
        }

        .cover-art:hover .hover-text {
            opacity: 1;
        }

        /* Legacy sidebar rules removed — single-column layout */

        /* Sticky Header */
        #site-header {
            position: sticky;
            top: 0;
            z-index: var(--z-header);
            background: var(--color-black);
            border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        }

        #site-header .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
        }

        .header-logo {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }


        .header-nav ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 16px;
        }

        .header-logo img {
            height: 40px;
            width: auto;
            display: block;
            position: relative;
        }

        /* Pulsing rainbow glow effect for header logo */
        .header-logo {
            position: relative;
            display: inline-block;
            width: fit-content;
            height: fit-content;
        }

        .header-logo img {
            position: relative;
            z-index: 1;
            display: block;
            filter: drop-shadow(0 0 8px rgba(135, 206, 250, 0.5));
            transition: filter 0.3s ease;
        }

        .header-logo:hover img {
            animation: rainbowGlow 4s ease-in-out infinite;
        }

        .header-logo::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center,
                    rgba(255, 0, 0, 0.8),
                    rgba(255, 127, 0, 0.8),
                    rgba(255, 255, 0, 0.8),
                    rgba(0, 255, 0, 0.8),
                    rgba(0, 127, 255, 0.8),
                    rgba(0, 0, 255, 0.8),
                    rgba(127, 0, 255, 0.8),
                    rgba(255, 0, 127, 0.8),
                    transparent);
            background-size: 200% 200%;
            pointer-events: none;
            z-index: 0;
            mix-blend-mode: screen;
            opacity: 0;
            transition: opacity 0.3s ease;
            -webkit-mask-image: url(pblogo.svg);
            -webkit-mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-image: url(pblogo.svg);
            mask-size: contain;
            mask-repeat: no-repeat;
            mask-position: center;
        }

        .header-logo:hover::after {
            opacity: 1;
            animation: rainbowPulse 3s ease-in-out infinite;
        }

        @keyframes rainbowGlow {

            0%,
            100% {
                filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.9));
            }

            14% {
                filter: drop-shadow(0 0 14px rgba(255, 127, 0, 0.9));
            }

            28% {
                filter: drop-shadow(0 0 14px rgba(255, 255, 0, 0.9));
            }

            42% {
                filter: drop-shadow(0 0 14px rgba(0, 255, 0, 0.9));
            }

            56% {
                filter: drop-shadow(0 0 14px rgba(0, 127, 255, 0.9));
            }

            70% {
                filter: drop-shadow(0 0 14px rgba(0, 0, 255, 0.9));
            }

            84% {
                filter: drop-shadow(0 0 14px rgba(127, 0, 255, 0.9));
            }
        }

        @keyframes rainbowPulse {

            0%,
            100% {
                background-position: 0% 50%;
                opacity: 0.8;
                transform: scale(1);
            }

            50% {
                background-position: 100% 50%;
                opacity: 1;
                transform: scale(1.1);
            }
        }

        .header-nav a {
            color: var(--color-text-primary);
            text-decoration: none;
            font-family: var(--font-body);
            font-size: 16px;
            opacity: 0.9;
        }

        .header-nav a:hover {
            opacity: 1;
        }

        .header-nav {
            display: none;
        }

        .hamburger {
            width: 40px;
            height: 40px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.25);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            transition: background-color var(--transition-base), border-color var(--transition-base);
            position: relative;
            z-index: calc(var(--z-menu) + 10);
        }

        .hamburger:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--color-primary);
        }

        .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--color-white);
            border-radius: 2px;
            transition: transform var(--transition-base), opacity var(--transition-base);
        }

        /* Hamburger to X animation */
        .hamburger[aria-expanded="true"] span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }

        .hamburger[aria-expanded="true"] span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* Desktop: show nav links, hide hamburger */
        @media (min-width: 1101px) {
            .header-nav {
                display: block;
            }

            .hamburger {
                display: none !important;
            }
        }

        /* Mobile menu backdrop */
        .mobile-menu-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0);
            z-index: calc(var(--z-menu) - 1);
            pointer-events: none;
            transition: background-color var(--transition-base);
        }

        .mobile-menu-backdrop.active {
            background-color: rgba(0, 0, 0, 0.5);
            pointer-events: auto;
        }

        /* Mobile menu slide-in drawer */
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -300px;
            width: 280px;
            max-width: 80vw;
            height: 100vh;
            background-color: var(--color-black);
            background-image:
                linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%),
                url('grid-inverted.png');
            background-size: 100% 100%, 40px 40px;
            background-repeat: no-repeat, repeat;
            border-left: 1px solid rgba(134, 216, 221, 0.3);
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
            z-index: var(--z-menu);
            padding: 80px 0 var(--space-lg) 0;
            overflow-y: auto;
            transition: right var(--transition-base);
        }

        .mobile-menu:not([hidden]) {
            right: 0;
        }

        /* Override hidden attribute behavior for animation */
        .mobile-menu[hidden] {
            display: block !important;
            right: -300px;
            pointer-events: none;
        }

        .mobile-menu:not([hidden]) {
            pointer-events: auto;
        }

        .mobile-menu ul {
            list-style: none;
            margin: 0;
            padding: var(--space-md) var(--space-lg);
        }

        .mobile-menu li {
            margin: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-menu li:last-child {
            border-bottom: none;
        }

        .mobile-menu a {
            color: var(--color-white);
            text-decoration: none;
            font-family: var(--font-body);
            font-size: 16px;
            display: block;
            padding: var(--space-md) 0;
            transition: color var(--transition-fast), padding-left var(--transition-fast);
        }

        .mobile-menu a:hover {
            color: var(--color-primary);
            padding-left: var(--space-sm);
        }

        /* Close button inside menu — pure CSS X, no font/SVG */
        .mobile-menu-close {
            position: absolute;
            top: var(--space-md);
            right: var(--space-md);
            width: 40px;
            height: 40px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: transparent;
            font-size: 0;
            line-height: 0;
            cursor: pointer;
            padding: 0;
            overflow: hidden;
            transition: background-color var(--transition-base), border-color var(--transition-base);
        }

        .mobile-menu-close::before,
        .mobile-menu-close::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 18px;
            height: 2px;
            background-color: #ffffff;
            transform-origin: center;
        }

        .mobile-menu-close::before {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .mobile-menu-close::after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .mobile-menu-close:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--color-primary);
        }

        /* Menu header */
        .mobile-menu-header {
            font-family: var(--font-display);
            font-size: 12px;
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            padding: 0 var(--space-lg) var(--space-sm);
            border-bottom: 1px solid rgba(134, 216, 221, 0.3);
            margin-bottom: var(--space-sm);
        }

        /* Responsive behavior */
        @media (max-width: 1100px) {}

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            * {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
            }
        }

        /* Final strongest mobile overrides */
        @media (max-width: 480px) {

            #tracklist th,
            #tracklist td {
                padding-left: 0.25rem !important;
                padding-right: 0.25rem !important;
                padding-top: 8px !important;
                padding-bottom: 8px !important;
                font-size: 13px !important;
            }

            #tracklist th {
                font-size: 13px !important;
                padding-top: 8px !important;
                padding-bottom: 8px !important;
            }

            #tracklist td.year-range {
                font-size: 8px !important;
                width: 30px !important;
                min-width: 30px !important;
                max-width: 30px !important;
                padding: 4px 2px !important;
            }
        }

        /* Tools section link color normalization */
        #tools-section a,
        #tools-section a:visited {
            color: #ffffff;
        }

        /* Contact Form Styles */
        .contact-form {
            width: 100%;
            margin: 20px 0 0 0;
            padding: 0;
            text-align: left;
            box-sizing: border-box;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-family: var(--font-display);
            font-size: 12px;
            font-weight: bold;
            color: var(--color-primary);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.9;
        }

        .form-input,
        .form-textarea {
            width: 100%;
            padding: 12px 14px;
            font-family: var(--font-body);
            font-size: 16px;
            color: var(--color-text-primary);
            background-color: var(--color-primary-darker);
            border: var(--border-width) solid var(--color-primary-dark);
            border-radius: var(--border-radius);
            box-sizing: border-box;
            transition: all var(--transition-base);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .form-input::placeholder,
        .form-textarea::placeholder {
            color: var(--color-text-subtle);
            font-family: var(--font-body);
        }

        .form-input:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--color-primary);
            background-color: #1f4447;
            box-shadow: 0 0 0 2px rgba(134, 216, 221, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .form-input:hover,
        .form-textarea:hover {
            border-color: var(--color-primary);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
            line-height: 1.5;
        }

        .form-submit {
            width: 100%;
            max-width: none;
            justify-content: center;
            margin-top: 8px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-sizing: border-box;
        }

        .form-submit:disabled {
            opacity: 0.6;
            cursor: wait;
        }

        /* Submit outcome message under the button (success / error) */
        .form-status {
            font-family: var(--font-body);
            font-size: 14px;
            line-height: 1.5;
            margin: 12px 0 0 0;
            min-height: 1em;
        }

        .form-status--success {
            color: var(--color-primary);
        }

        .form-status--error {
            color: #e8af64;
        }

        .form-status--error a {
            color: inherit;
            text-decoration: underline;
        }

        /* Mobile adjustments for contact form */
        @media (max-width: 1100px) {
            .contact-form {
                width: 100%;
            }

            .form-input,
            .form-textarea {
                font-size: 16px;
                /* Prevent zoom on iOS */
            }
        }

        /* Inline Role Details Styling */
        .role-details {
            background-color: rgba(0, 0, 0, 0.6);
            background-image: none;
        }

        .role-details:hover {
            background-color: rgba(0, 0, 0, 0.6) !important;
        }

        .role-details td {
            padding: 10px 12px 14px 12px !important;
            background: transparent;
        }

        .inline-bullets {
            font-family: var(--font-readable);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.7;
            letter-spacing: 0.2px;
            margin: 0;
            padding-left: 18px;
            opacity: 1;
            list-style-type: disc;
            list-style-position: outside;
            color: #ffffff;
            text-shadow: none;
            -webkit-font-smoothing: antialiased;
            text-rendering: geometricPrecision;
        }

        .inline-bullets li {
            margin-bottom: 6px;
        }

        .inline-bullets li:last-child {
            margin-bottom: 8px;
        }

        .view-more {
            font-family: var(--font-display);
            font-size: 12px;
            font-weight: bold;
            color: var(--color-text-primary);
            text-decoration: none;
            display: inline-block;
            margin-top: 8px;
            margin-left: 0;
            padding: 8px 14px;
            background-color: var(--color-primary-darker);
            border: var(--border-width) solid var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: var(--shadow-box);
            transition: all var(--transition-fast);
        }

        .view-more:hover {
            box-shadow: var(--shadow-box-hover);
            transform: translateY(-1px);
            color: var(--color-text-primary);
        }

        /* Mobile adjustments for inline bullets */
        @media (max-width: 1100px) {
            .inline-bullets {
                font-size: 13px;
                padding-left: 16px;
            }

            .role-details td {
                padding: 6px 8px 10px 8px !important;
            }
        }

        /* Visual Hierarchy for Top Roles */
        tr.featured-role {
            position: relative;
        }

        tr.featured-role td:first-child::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
            border-radius: 0 2px 2px 0;
        }

        tr.featured-role td {
            font-weight: 700;
        }

        tr.featured-role:hover {
            background-color: rgba(134, 216, 221, 0.15) !important;
        }

        /* Portfolio Carousel - Retro LCD Style */
        .portfolio-carousel {
            background-color: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(134, 216, 221, 0.3);
            padding: 0;
            position: relative;
            margin-bottom: 20px;
        }

        .portfolio-carousel .slide-label {
            font-family: var(--font-display);
            font-size: 14px;
            color: var(--color-primary);
            margin: 0 0 15px 0;
            letter-spacing: 1px;
            text-align: left;
        }

        /* Case Study Cards */
        .case-study-card {
            margin-bottom: var(--space-xl);
        }

        .case-study-card:last-child {
            margin-bottom: 0;
        }

        .case-study-image {
            width: 100%;
            max-height: 400px;
            overflow: hidden;
        }

        .case-study-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
            display: block;
        }

        .case-study-body {
            padding: 20px 0;
        }

        .project-title {
            font-family: var(--font-display);
            font-size: 16px;
            color: var(--color-primary);
            margin: 0 0 8px 0;
            letter-spacing: 1px;
            text-shadow: 0 0 10px rgba(134, 216, 221, 0.5);
        }

        .project-desc {
            font-family: var(--font-body);
            font-size: 13px;
            color: var(--color-text-muted);
            margin: 0 0 12px 0;
            line-height: 1.4;
        }

        .project-link {
            font-family: var(--font-display);
            font-size: 8px;
            color: var(--color-text-primary);
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
            padding: 6px 12px;
            border: var(--border-width) solid var(--color-primary);
            background-color: var(--color-primary-darker);
            transition: all var(--transition-base);
        }

        .project-link:hover {
            font-size: 8.5px;
            background-color: var(--color-primary);
            color: var(--color-black);
            border-color: var(--color-white);
            box-shadow: var(--shadow-glow);
        }

        /* Mobile adjustments for portfolio carousel */
        @media (max-width: 1100px) {
            .portfolio-carousel {
                padding: 0 0 15px 0;
            }

            .case-study-image {
                max-height: 240px;
            }

            .case-study-body {
                padding: 16px 4px;
            }

            .project-title {
                font-size: 16px;
            }

            .project-desc {
                font-size: 12px;
            }
        }


        /* CTA Section */
        .cta-section {
            margin: 0;
            text-align: center;
        }

        .cta-section .button {
            width: 100%;
            margin: 0;
        }


        /* ========================================
           Configurator Showcase Section
           ======================================== */
        .configurator-showcase {
            background-color: var(--color-black);
            background-image: url(grid-inverted.png);
            background-size: 60px 60px;
            margin: 0 0 20px 0;
            overflow: hidden;
            position: relative;
        }

        .configurator-showcase-inner {
            display: flex;
            align-items: stretch;
            position: relative;
            z-index: 1;
        }

        .configurator-preview {
            flex: 1;
            max-width: 300px;
            overflow: hidden;
            position: relative;
            background-color: var(--color-black);
        }

        .configurator-preview picture {
            display: block;
            width: 100%;
            height: 100%;
        }

        .configurator-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform var(--transition-base);
        }

        .configurator-preview .grid-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(134, 216, 221, 0.1) 2px, rgba(134, 216, 221, 0.1) 4px),
                repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(134, 216, 221, 0.1) 2px, rgba(134, 216, 221, 0.1) 4px);
            pointer-events: none;
            z-index: 1;
        }

        .configurator-showcase:hover .configurator-preview img {
            transform: scale(1.05);
        }

        .configurator-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: var(--space-lg);
        }

        .configurator-badge {
            font-family: var(--font-display);
            font-size: 10px;
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: var(--space-xs);
        }

        .configurator-title {
            font-family: var(--font-display);
            font-size: 18px;
            color: var(--color-white);
            margin: 0 0 var(--space-sm) 0;
            text-shadow: 0 0 10px rgba(134, 216, 221, 0.5);
        }

        .configurator-desc {
            font-family: var(--font-body);
            font-size: 13px;
            color: var(--color-text-muted);
            margin: 0 0 var(--space-md) 0;
            line-height: 1.5;
        }

        .configurator-cta {
            display: inline-flex;
            align-items: center;
            gap: var(--space-sm);
            font-family: var(--font-display);
            font-size: 12px;
            color: var(--color-text-primary);
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 10px 18px;
            background-color: var(--color-primary-darker);
            border: var(--border-width) solid var(--color-primary);
            transition: all var(--transition-base);
            width: fit-content;
        }

        .configurator-cta:hover {
            background-color: var(--color-primary);
            color: var(--color-black);
            border-color: var(--color-white);
            box-shadow: var(--shadow-glow);
            transform: translateY(-2px);
        }

        .configurator-cta::after {
            content: '→';
            transition: transform var(--transition-fast);
        }

        .configurator-cta:hover::after {
            transform: translateX(4px);
        }

        @media (max-width: 600px) {
            .configurator-showcase-inner {
                flex-direction: column;
            }

            .configurator-preview {
                width: 100%;
                max-width: 100%;
                height: auto;
                aspect-ratio: 1;
            }

            .configurator-content {
                text-align: center;
                align-items: center;
            }
        }

        /* ========================================
           Company Logos Section
           ======================================== */
        .company-logos-section {
            padding: var(--space-2xl) var(--space-xl);
            background: rgba(0, 0, 0, 0.7);
            border: 1px solid rgba(134, 216, 221, 0.15);
            margin-bottom: 0;
        }

        .company-logos-header {
            font-family: var(--font-display);
            font-size: 12px;
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: var(--space-lg);
            text-align: center;
        }

        .company-logos-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: var(--space-xl);
            align-items: center;
            justify-items: center;
        }

        .company-logo {
            height: 40px;
            max-width: 100%;
            object-fit: contain;
            filter: grayscale(100%) brightness(1.8);
            opacity: 0.6;
            transition: all var(--transition-base);
        }

        .company-logo:hover {
            filter: grayscale(0) brightness(1);
            opacity: 1;
            transform: scale(1.1);
        }

        .company-logo-sm {
            height: 28px;
        }

        @media (max-width: 900px) {
            .company-logos-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 480px) {
            .company-logos-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-md);
            }

            .company-logo {
                height: 32px;
            }
        }

        /* ========================================
           Lazy-load skeletons — keep slots from flashing white
           while images stream in mid-scroll
           ======================================== */
        .configurator-preview {
            background: rgba(0, 0, 0, 0.06);
        }
        [data-theme="2026"] .configurator-preview {
            background: rgba(0, 0, 0, 0.04);
        }
        .company-logos-grid picture,
        .company-logos-grid > img {
            min-height: 40px;
        }
        .case-study-image {
            background: rgba(0, 0, 0, 0.04);
        }

        /* ========================================
           Scroll Reveal Animations
           ======================================== */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .scroll-reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Stagger children animation */
        .scroll-reveal-stagger > * {
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
        }

        .scroll-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
        .scroll-reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
        .scroll-reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
        .scroll-reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
        .scroll-reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
        .scroll-reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

        .scroll-reveal-stagger.visible > * {
            opacity: 1;
            transform: translateY(0);
        }

        /* Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .scroll-reveal,
            .scroll-reveal-stagger > * {
                opacity: 1;
                transform: none;
                transition: none;
            }
        }

/* ========================================
   Retro-Electronic Brutalist Design System
   ======================================== */

/* Phosphor Text Glow Effect - SUBTLE */
.phosphor-text {
    text-shadow: 0 0 8px rgba(134, 216, 221, 0.4);
}

/* Hero Copy Styles */
.hero-tagline {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 20px 0 12px 0;
    line-height: 1.4;
}

/* Brutalist CTA Styling */
.brutalist-cta-container {
    margin: 24px 0;
}

.brutalist-cta-container.sidebar-cta {
    margin-top: 32px;
}

.brutalist-cta {
    display: block;
    border: 2px solid var(--color-primary);
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: background 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.brutalist-cta:hover {
    background: rgba(134, 216, 221, 0.1);
}

.brutalist-cta-prompt {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 16px;
    margin-right: 8px;
}

.brutalist-cta-text {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    text-transform: uppercase;
    white-space: nowrap;
}

.brutalist-cta-subtitle {
    display: block;
    font-family: var(--font-readable);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
    padding-left: 30px;
    letter-spacing: 0.5px;
}

/* Inline brutalist CTA (for main content area) */
.brutalist-cta.brutalist-cta-inline {
    display: inline-flex;
    align-items: center;
    padding: 16px 24px;
}

.brutalist-cta.brutalist-cta-inline .brutalist-cta-text {
    font-size: 14px;
}

/* Secondary links below CTA */
.secondary-links {
    margin-top: 16px;
    text-align: center;
}

.secondary-link {
    font-family: var(--font-readable);
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 700;
}

.secondary-link:hover {
    color: var(--color-primary);
}

.link-separator {
    color: var(--color-text-muted);
    margin: 0 12px;
    font-size: 15px;
}

/* CTA Section updates */
.cta-section {
    text-align: center;
    margin: 30px 0;
}

/* ========================================
   Ambient Dimming System
   ======================================== */

/* Dim the entire page when idle */
body {
    transition: filter 2s ease-out;
}

body.dimmed {
    filter: brightness(0.4);
}

body:not(.dimmed) {
    filter: brightness(1);
    transition: filter 0.1s ease-out;
}

/* ========================================
   Focus Styles (keyboard only)
   ======================================== */

/* Focus-visible for keyboard navigation only - no hover outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Button Text - Never Wrap
   ======================================== */

.button,
.button2,
.brutalist-cta-text,
.brutalist-link,
.project-link,
.secondary-link,
.nav-primary a,
.mobile-nav-primary a {
    white-space: nowrap;
}

/* ========================================
   Screensaver Clock
   ======================================== */
#screensaver-clock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 2s ease-out;
    overflow: hidden;
}

#screensaver-clock.active {
    opacity: 1;
}

#screensaver-clock .clock-text {
    position: absolute;
    font-family: var(--font-display), 'Courier New', monospace;
    font-size: clamp(48px, 8vw, 96px);
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(134, 216, 221, 0.6), 0 0 40px rgba(134, 216, 221, 0.3);
    letter-spacing: 4px;
    white-space: nowrap;
    user-select: none;
}

#screensaver-clock .clock-tagline {
    position: absolute;
    font-family: var(--font-readable), sans-serif;
    font-size: clamp(12px, 2vw, 18px);
    color: rgba(134, 216, 221, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

/* Respect reduced motion - disable dimming and screensaver */
@media (prefers-reduced-motion: reduce) {
    body.dimmed {
        filter: none;
    }
    #screensaver-clock {
        display: none;
    }
}

/* Mobile adjustments for brutalist elements */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 18px;
        text-align: left;
    }

    .brutalist-cta {
        padding: 16px 20px;
    }

    .brutalist-cta-text {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .brutalist-cta-subtitle {
        font-size: 11px;
        padding-left: 26px;
    }

    .brutalist-cta-prompt {
        font-size: 16px;
        margin-right: 10px;
    }
}

/* ========================================
   Simplified Navigation
   ======================================== */

.header-nav-simplified .nav-primary {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-simplified .nav-primary li a {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav-simplified .nav-primary li a:hover {
    color: var(--color-primary);
}

.header-nav-simplified .nav-primary li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.header-nav-simplified .nav-primary li a:hover::after {
    width: 100%;
}

/* Mobile nav primary links */
.mobile-nav-primary {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.mobile-nav-primary li {
    margin-bottom: 8px;
}

.mobile-nav-primary li a {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--color-text-primary);
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-dark);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-primary li a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.mobile-nav-primary li a:focus,
.mobile-nav-primary li a:focus-visible,
.mobile-menu a:focus,
.mobile-menu a:focus-visible {
    outline: none;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--color-primary);
    margin: 20px 0;
    opacity: 0.3;
}

/* Sidebar minimal quick links */
.sidebar-quick-links {
    margin-top: 24px;
    font-family: var(--font-readable);
    font-size: 16px;
}

.sidebar-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 700;
}

.sidebar-link:hover {
    color: var(--color-primary);
}

.sidebar-separator {
    color: var(--color-text-muted);
    margin: 0 8px;
}

/* ========================================
   Case Study Cards - Problem/Approach/Outcome
   ======================================== */

.project-structure {
    margin: 16px 0;
}

.structure-item {
    font-family: var(--font-readable);
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin: 10px 0;
    font-weight: 700;
}

.structure-label {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-right: 8px;
    font-weight: 700;
}

/* Brutalist link style for case study cards */
.brutalist-link {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    transition: all 0.2s ease;
    margin-top: var(--space-sm);
}

.brutalist-link:hover {
    color: var(--color-black);
    background: var(--color-primary);
    padding: 10px 16px;
    margin-left: -16px;
}

/* Border frame on case study images */
.case-study-image {
    position: relative;
    border: 1px solid var(--color-gray-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Project title styling update */
.project-title {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1px;
    margin: 8px 0 12px 0;
}

/* Remove old project-desc styling in favor of structure */
.project-desc {
    display: none;
}

@media (max-width: 768px) {
    .structure-item {
        font-size: 14px;
    }

    .structure-label {
        font-size: 11px;
        display: block;
        margin-bottom: 2px;
    }

    .brutalist-link {
        font-size: 12px;
    }
}

/* ========================================
   Sidebar Portrait
   ======================================== */
.sidebar-portrait {
    width: 250px;
    height: 250px;
    margin-bottom: var(--space-lg);
    overflow: hidden;
    border: 2px solid rgba(134, 216, 221, 0.3);
}

.sidebar-portrait img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: var(--space-xl) 0 var(--space-md) 0;
}

.about-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.about-photo {
    flex: 0 0 auto;
    width: 320px;
    height: 320px;
    overflow: hidden;
    border: 2px solid rgba(134, 216, 221, 0.3);
    position: relative;
}

.about-photo img,
.about-photo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    width: 100%;
}

.about-heading {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin: 0 auto var(--space-md);
    text-transform: uppercase;
    max-width: 1080px;
    padding: 0 var(--space-md);
    text-align: left;
}

.about-bio {
    font-family: var(--font-readable);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 var(--space-lg) 0;
}

.about-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-width: 1080px;
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-md);
    justify-content: center;
}

.strength-tag {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(134, 216, 221, 0.4);
    background: rgba(134, 216, 221, 0.1);
}

@media (max-width: 768px) {
    .about-inner {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .about-photo {
        width: 240px;
        height: 240px;
    }

    .about-bio {
        font-size: 15px;
        line-height: 1.5;
        font-weight: 600;
    }

    .about-strengths {
        justify-content: flex-start;
    }

    .about-section {
        padding: var(--space-md) 0;
    }

    .hero-section {
        padding: 32px 0 16px 0;
    }

    .hero-layout {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hero-portrait {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }

    #title {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 15px;
    }

    .hero-metrics {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-metric-value {
        font-size: 18px;
    }
}

/* ========================================
   Theme Era Bar & Buttons (80s Base / Default)
   Dark green-on-black terminal aesthetic
   ======================================== */

/* Scanline keyframe for 80s era bar */
@keyframes eraBarScanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

html:not([data-theme]) .theme-era-bar {
    background-color: #0a0a0a;
    border-bottom: 1px solid #003300;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    animation: eraBarScanline 0.3s linear infinite;
}

html:not([data-theme]) .theme-era-btn {
    font-family: 'Rombyte', 'Courier New', monospace !important;
    font-size: 12px;
    color: #00aa00;
    background: none;
    border: none;
    text-shadow: 0 0 4px rgba(0, 170, 0, 0.4);
    padding: 4px 12px;
    cursor: pointer;
    transition: color 0.15s, text-shadow 0.15s;
}

html:not([data-theme]) .theme-era-btn:hover {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

html:not([data-theme]) .theme-era-btn.active {
    color: #00ff00;
    text-shadow: 0 0 12px rgba(0, 255, 0, 0.8), 0 0 24px rgba(0, 255, 0, 0.4);
    font-weight: bold;
}

/* ========================================
   Print Stylesheet - Main Site
   ======================================== */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    body {
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 11pt;
        line-height: 1.4;
    }

    /* Hide interactive / non-print elements */
    #site-header,
    .hamburger,
    .mobile-menu,
    .mobile-menu-backdrop,
    #coverVideo,
    .hover-text,
    .grid-overlay,
    .configurator-showcase,
    .ios-toolbar-guard,
    #site-footer-final,
    .screensaver,
    .sidebar-quick-links,
    .brutalist-cta-container,
    .contact-form,
    #footer {
        display: none !important;
    }

    /* Layout for print */
    #frame-container,
    #main {
        display: block !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    #main > * {
        margin-bottom: 16pt !important;
    }

    /* About section */
    .about-section {
        padding: 12pt 0 !important;
    }

    .about-inner {
        display: flex !important;
        gap: 16pt !important;
    }

    .about-photo {
        width: 80pt !important;
        height: 80pt !important;
        border: 1pt solid #ccc !important;
    }

    .strength-tag {
        border: 1pt solid #999 !important;
        padding: 2pt 6pt !important;
        font-size: 9pt !important;
    }

    /* Case study cards for print */
    .case-study-card {
        margin-bottom: 16pt;
        page-break-inside: avoid;
    }

    .case-study-image {
        max-width: 200pt !important;
        border: 1pt solid #ccc !important;
    }

    /* Company logos */
    .company-logos-section {
        border: 1pt solid #ccc !important;
        padding: 12pt !important;
    }

    .company-logo {
        filter: grayscale(100%) !important;
        opacity: 1 !important;
        height: 30pt !important;
    }

    /* Experience table */
    #tracklist {
        border-collapse: collapse !important;
    }

    #tracklist th,
    #tracklist td {
        border-bottom: 1pt solid #ccc !important;
        padding: 6pt !important;
        font-size: 10pt !important;
    }

    /* Links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666 !important;
    }

    a[href^="#"]:after,
    a[href^="javascript"]:after {
        content: "";
    }

    /* Page breaks */
    h2, h3 {
        page-break-after: avoid;
    }

}

/* ========================================
   Hero Kicker — small italic line above the name.
   Carries the "30 years on the web…" tagline that used to live in the
   top theme bar. Keeps the line visible without giving it page-chrome status.
   ======================================== */
.hero-kicker {
    font-family: var(--font-body);
    font-size: 13px;
    font-style: italic;
    color: var(--color-text-muted);
    margin: 0 0 6px 0;
    opacity: 0.75;
}

/* ========================================
   Hero Name (smaller, above headline)
   ======================================== */
.hero-name {
    font-family: var(--font-readable);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

/* ========================================
   Compact era pill-group inside the desktop nav.
   The full version of these buttons used to live in a dedicated top
   bar; this variant tucks them alongside the nav so they're discoverable
   without dominating above-the-fold. Mobile drawer keeps its own
   .mobile-theme-buttons set untouched.
   ======================================== */
.theme-era-buttons-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 16px;
}
.theme-era-buttons-nav .theme-era-btn {
    font-size: 10px;
    padding: 3px 7px;
    min-width: 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
@media (max-width: 900px) {
    .theme-era-buttons-nav { display: none; }
}

/* ========================================
   Hero Proof Line
   ======================================== */
.hero-proof {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 12px 0 20px 0;
}

/* ========================================
   Recruiter Summary Block
   SCALE spans the full top row with bolder treatment so the most
   recruiter-magnetic numbers (500K · $3.8B · 40+ teams) catch the eye
   first. Other three cells (LEVEL / DOMAINS / RANGE) sit below in a
   2-col grid as supporting context.
   ======================================== */
.recruiter-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-top: 20px;
    padding: 16px 20px;
    border: 1px solid var(--color-gray-dark);
    font-family: var(--font-readable);
    font-size: 12px;
}

.summary-item {
    display: flex;
    gap: 8px;
}

.summary-item-scale {
    grid-column: 1 / -1;
    font-size: 13px;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-gray-dark);
}
.summary-item-scale .summary-value {
    font-weight: 700;
}

.summary-label {
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    min-width: 60px;
}

.summary-value {
    color: var(--color-text-primary);
    font-weight: 500;
}

@media (max-width: 600px) {
    .recruiter-summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ========================================
   Hero — Receipts tile
   Anchors the empirical/benchmark proof as its own block below the
   recruiter summary. The pre-registered benchmark differentiates this
   portfolio from every other senior-IC site, so it gets a tile, not
   an inline aside. Top accent in primary color signals "evidence."
   ======================================== */
.hero-receipts {
    margin-top: 16px;
    padding: 14px 18px 16px;
    border: 1px solid var(--color-gray-dark);
    border-top: 2px solid var(--color-primary);
    background: rgba(134, 216, 221, 0.04);
    font-family: var(--font-body);
}
.receipts-label {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 8px 0;
}
.receipts-claim {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0 0 10px 0;
}
.receipts-claim a {
    color: var(--color-text-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-primary);
}
.receipts-claim a:hover {
    border-bottom-style: solid;
}
.receipts-links {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--color-text-subtle);
}
.receipts-links a {
    color: var(--color-primary);
    text-decoration: none;
}
.receipts-links a:hover {
    text-decoration: underline;
}
.receipts-sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* ========================================
   Hero — Open To line
   Sits between hero-empirical and CTA row.
   "// COMMENT:" code-comment style matches the 2026 theme aesthetic.
   ======================================== */
.hero-open-to {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin: 14px 0 16px 0;
    line-height: 1.5;
    opacity: 0.85;
}

/* ========================================
   Recent / Notable — bridge strip between About and case studies.
   Hero now carries the bench claim, so this section is reinforcement,
   not introduction. Tighter padding + smaller type so it functions
   as a connector instead of a third major section the eye has to camp on.
   ======================================== */
.recent-notable {
    max-width: 960px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}
.recent-label {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin: 0 0 10px 0;
}
.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.recent-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(134, 216, 221, 0.04);
    border: 1px solid rgba(134, 216, 221, 0.18);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.recent-item:hover {
    transform: translateY(-2px);
    background: rgba(134, 216, 221, 0.08);
    border-color: rgba(134, 216, 221, 0.4);
}
.recent-tag {
    display: inline-block;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    align-self: flex-start;
    padding: 2px 6px;
    background: rgba(134, 216, 221, 0.1);
    border-radius: 3px;
}
.recent-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.recent-desc {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Resume — Builder Receipts strip
   Concrete artifacts a recruiter can verify in 60 seconds.
   Placed below resume-header so it lands above the experience scroll.
   ======================================== */
.resume-receipts {
    max-width: 800px;
    margin: 24px auto 32px auto;
    padding: 16px 20px;
    background: rgba(134, 216, 221, 0.05);
    border: 1px solid rgba(134, 216, 221, 0.15);
    border-radius: 6px;
}
.receipts-label {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin: 0 0 14px 0;
}
.receipts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.receipts-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.receipts-num {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    line-height: 1;
}
.receipts-text {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
}
.receipts-text a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(134, 216, 221, 0.4);
}
.receipts-text a:hover { border-bottom-style: solid; }
.receipts-text code {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.92em;
    color: var(--color-primary);
}

/* ========================================
   Hero CTA Buttons
   ======================================== */
.hero-cta-row {
    display: flex;
    gap: 12px;
    margin: 20px 0 24px 0;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: var(--color-black);
    border: var(--border-width) solid var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero-cta-primary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.hero-cta-secondary {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    background: transparent;
    color: var(--color-text-primary);
    border: var(--border-width) solid var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero-cta-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ========================================
   Flagship Case Study Card
   ======================================== */
.case-study-flagship {
    border-left: 4px solid var(--color-primary) !important;
    position: relative;
}

.case-study-flagship .slide-label {
    color: var(--color-primary) !important;
    font-weight: 700;
}

/* ========================================
   Experience Table — Featured Rows
   ======================================== */
.featured-role td {
    font-weight: 600;
}

.featured-role td:first-child {
    position: relative;
}

/* ========================================
   LinkedIn Nav Link
   ======================================== */
.nav-linkedin {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-linkedin:hover {
    opacity: 1;
}

/* ========================================
   Mobile: Hide theme bar, show in menu only
   ======================================== */
@media (max-width: 600px) {
    .theme-era-bar {
        display: none !important;
    }
}

/* ========================================
   Pretext Layout Engine — Float Spacers
   ======================================== */
.pretext-float {
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Sections with active pretext flow — clearfix without overflow:hidden (which clips absolute children) */
[data-pretext="active"]::after {
    content: '';
    display: table;
    clear: both;
}

/* Case study spread indicators */
.case-study-card[data-spread="left"] .case-study-image {
    float: left;
}
.case-study-card[data-spread="right"] .case-study-image {
    float: right;
}
/* ============================================================
   Other Pixels — secondary shelf of side projects / experiments.
   Theme-agnostic neutrals (gray) for the resting frame so it stays
   quiet across all eras; --color-primary only on accent + hover.
   Grid auto-fills, so adding more cards needs no CSS change.
   ============================================================ */
.other-pixels-section {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 48px 24px 8px;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
}
.other-pixels-heading {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0 0 4px;
    color: var(--color-text-primary);
}
.other-pixels-note {
    font-family: var(--font-readable, 'Space Mono', monospace);
    font-size: 12.5px;
    color: var(--color-text-primary);
    opacity: 0.55;
    margin: 0 0 24px;
}
.other-pixels-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.other-pixel-card a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px 18px;
    text-decoration: none;
    border: 1px solid rgba(128, 128, 128, 0.28);
    background: rgba(128, 128, 128, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.other-pixel-card a:hover,
.other-pixel-card a:focus-visible {
    border-color: var(--color-primary);
    background: rgba(128, 128, 128, 0.09);
    transform: translateY(-2px);
}
.other-pixel-name {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.other-pixel-arrow { font-size: 12px; opacity: 0.7; }
.other-pixel-desc {
    font-family: var(--font-readable, sans-serif);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--color-text-primary);
    opacity: 0.82;
}
.other-pixel-domain {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--color-text-primary);
    opacity: 0.5;
    margin-top: auto;
}
@media (max-width: 600px) {
    .other-pixels-section { padding: 36px 16px 8px; }
}
