
        @font-face {
            font-family: 'DepartureMono';
            src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2409-1@1.0/DepartureMono-Regular.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #0a0a0b;
            --bg-secondary: #111113;
            --bg-tertiary: #18181b;
            --text-primary: #b8b8b8;
            --text-secondary: #a1a1aa;
            --text-muted: #71717a;
            --accent: #22d3ee;
            --accent-dim: rgba(34, 211, 238, 0.3);
            --border: #27272a;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'DepartureMono', monospace;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow: hidden;
            width: 100%;
            margin: 0;
            padding: 0;
            cursor: none;
            user-select: none;
        }

        #customCursor {
            position: fixed;
            left: 0;
            top: 0;
            width: 24px;
            height: 24px;
            margin-left: -12px;
            margin-top: -12px;
            pointer-events: none;
            z-index: 99999;
            transition: transform 0.15s ease-out, color 0.15s ease-out;
        }
        #customCursor svg {
            width: 100%;
            height: 100%;
            stroke: var(--text-primary);
            stroke-width: 1.5;
        }

        /* Always use custom cross cursor, even over clickable elements */
        a,
        button,
        input,
        textarea,
        .video-star,
        .control-btn,
        .brutalist-nav-list a,
        .brutalist-nav-events .nav-event-item {
            cursor: none !important;
        }

        /* Cursor appearance when hovering clickable elements */
        .cursor-interactive #customCursor {
            animation: cursorSpin 0.5s linear infinite;
            color: #7fffd4; /* light blue-green */
        }

        @keyframes cursorSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Wrapper: shooter | main | draw | jump – default show main */
        #mainAndGameWrap {
            display: flex;
            width: 500vw;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(-100vw);
        }

        body.minigame-open #mainAndGameWrap {
            transform: translateX(-300vw);
        }

        body.minigame-shooter-open #mainAndGameWrap {
            transform: translateX(0);
        }

        body.minigame-snake-open #mainAndGameWrap {
            transform: translateX(0);
        }

        body.minigame-draw-open {
            overflow: hidden;
        }

        body.minigame-draw-open #mainAndGameWrap {
            transform: translateX(-200vw);
        }

        #pageScrollWrapper {
            flex: 0 0 100vw;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            overflow-y: scroll;
            overflow-x: hidden;
            scroll-snap-type: y mandatory;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        #pageScrollWrapper::-webkit-scrollbar {
            display: none;
        }

        .top-video-container {
            scroll-snap-align: start;
            scroll-snap-stop: always;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            min-height: 100vh;
            min-height: 100dvh;
            overflow: hidden;
            background: var(--bg-secondary);
        }

        .top-video-container {
            position: relative;
        }

        .top-video-container .page-label {
            left: 6px;
            z-index: 11;
        }

        .top-video-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .top-video-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 25vw;
            height: 100%;
            background: #000;
            z-index: 5;
            pointer-events: none;
        }

        .top-video-title {
            position: absolute;
            top: 19px;
            left: 32px;
            z-index: 10;
            pointer-events: none;
            display: inline-block; /* shrink to fit so title + subtitle share same width */
        }

        .top-video-title .title {
            font-size: 46px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-primary);
            margin-bottom: 2px; /* less space between name and subtitle */
        }

        .top-video-title .subtitle {
            font-size: 11px;
            color: var(--text-muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            display: block;
            margin-top: -2px;
            padding: 0; /* no horizontal padding so width matches title exactly */
            border-top: 1px solid var(--text-muted);
            border-bottom: 1px solid var(--text-muted);
        }

        .video-star {
            position: fixed;
            left: 22px;
            bottom: 24px;
            z-index: 100;
            pointer-events: auto;
            cursor: pointer;
        }

        /* Mobile: default star sits bottom-right on the first page.
           Keep the fixed anchor (left/bottom) so section animations still work. */
        @media (max-width: 768px) {
            body:not(.video-scrolled):not(.video-star-return) .video-star {
                transform: translate(calc(100vw - 69px), 0);
            }
        }

        /* While drawing, ignore the star so strokes can pass over it */
        body.minigame-draw-open .video-star {
            pointer-events: none;
        }

        .video-star:hover .header-star,
        .video-star:hover .header-star-img {
            opacity: 0.85;
        }

        .video-star .header-star {
            font-size: 10px;
            color: var(--text-primary);
            line-height: 1;
        }
        .video-star .header-star-img {
            width: 25px;
            height: 25px;
            display: block;
        }

        /* From bottom-left to bottom-right, then up to top-right */
        @keyframes starToTopRight {
            0%   { transform: translate(0, 0); }
            50%  { transform: translate(calc(100vw - 69px), 0); }
            100% { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
        }

        /* Gallery sections (2 & 3): star slides down from top-right */
        @keyframes starToGalleryPosition {
            0%   { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
            100% { transform: translate(calc(100vw - 69px), calc(-15vh)); }
        }

        /* Leaving Gallery: go from gallery position back to top-right */
        @keyframes starFromGalleryToTopRight {
            0%   { transform: translate(calc(100vw - 69px), calc(-15vh)); }
            100% { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
        }

        /* Exhibitions (section 1): star moves down to center-right */
        @keyframes starToCenterLeft {
            0%   { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
            100% { transform: translate(calc(100vw - 69px), calc(-50vh + 24px)); }
        }

        /* Return: right → left along the bottom */
        @keyframes starToBottomLeft {
            0%   { transform: translate(calc(100vw - 69px), 0); }
            100% { transform: translate(0, 0); }
        }

        /* LAB: star slides down from center-right then left */
        @keyframes starToLabBottomLeft {
            0%   { transform: translate(calc(100vw - 69px), calc(-50vh + 24px)); }
            50%  { transform: translate(calc(100vw - 69px), 0); }
            100% { transform: translate(0, 0); }
        }

        body.video-scrolled .video-star {
            animation: starToTopRight 1.2s ease both;
        }

        body.video-scrolled.gallery-star-position .video-star {
            animation: starToGalleryPosition 0.5s ease both;
        }

        body.video-scrolled.star-from-gallery .video-star {
            animation: starFromGalleryToTopRight 0.5s ease both;
        }

        body.video-scrolled.exhibitions-star-position .video-star {
            animation: starToCenterLeft 0.7s ease both;
        }

        /* Hold star at bottom-left while waiting for lab section to slide in */
        body.video-scrolled.star-pre-lab .video-star {
            animation: none;
            transform: translate(0, 0);
        }

        /* LAB section (5): star moves down then left (after section has stopped sliding) */
        body.video-scrolled.lab-star-position .video-star {
            animation: starToLabBottomLeft 1s ease both;
        }

        /* Contact section (6): keep star at bottom-left (no extra move) */
        body.video-scrolled.contact-star-position .video-star {
            animation: none;
            transform: translate(0, 0);
        }

        /* Contact social icons */
        .contact-socials {
            position: absolute;
            top: 0;
            right: 22px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            z-index: 10;
            transform: translateX(calc(100% + 40px));
            opacity: 0;
            transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
        }

        body.contact-star-position .contact-socials {
            transform: translateX(0);
            opacity: 1;
        }

        .contact-social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            color: var(--text-muted);
            transition: color 0.2s ease;
            text-decoration: none;
        }

        .contact-social-link:hover {
            color: var(--text-primary);
        }

        .contact-social-link svg {
            width: 100%;
            height: 100%;
        }

        /* Stagger each icon sliding in */
        .contact-social-link:nth-child(1) { transition-delay: 0s; }
        .contact-social-link:nth-child(2) { transition-delay: 0.07s; }
        .contact-social-link:nth-child(3) { transition-delay: 0.14s; }
        .contact-social-link:nth-child(4) { transition-delay: 0.21s; }

        @media (max-width: 768px) {
            .contact-socials {
                right: 16px;
                gap: 14px;
            }
            .contact-social-link {
                width: 18px;
                height: 18px;
            }
        }

        @media (max-width: 768px) {
            /* On mobile the star starts bottom-right, so skip the leftward leg */
            @keyframes starToTopRightMobile {
                0%   { transform: translate(calc(100vw - 69px), 0); }
                100% { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
            }

            body.video-scrolled .video-star {
                animation: starToTopRightMobile 0.6s ease both;
            }

            @keyframes starToGalleryPositionMobile {
                0%   { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
                100% { transform: translate(calc(100vw - 69px), calc(-15vh + 80px)); }
            }

            @keyframes starFromGalleryToTopRightMobile {
                0%   { transform: translate(calc(100vw - 69px), calc(-15vh + 80px)); }
                100% { transform: translate(calc(100vw - 69px), calc(-100vh + 70px)); }
            }

            body.video-scrolled.gallery-star-position .video-star {
                animation: starToGalleryPositionMobile 0.5s ease both;
            }

            body.video-scrolled.star-from-gallery .video-star {
                animation: starFromGalleryToTopRightMobile 0.5s ease both;
            }
        }

        /* Minigame panel – fullscreen responsive */
        #minigamePanel {
            flex: 0 0 100vw;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: #000;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: stretch;
            position: relative;
        }

        #minigameCanvas {
            display: block;
            width: 100%;
            height: 100%;
            flex: 1;
            min-height: 0;
            background: #000;
            touch-action: none;
        }

        .minigame-hint {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-family: 'DepartureMono', monospace;
            font-size: clamp(9px, 2.2vw, 11px);
            color: var(--text-muted);
            letter-spacing: 1px;
            pointer-events: none;
        }

        /* Pixel catcher game panel (right of minigame, slide far left) */
        body.minigame-pixel-open #mainAndGameWrap {
            transform: translateX(-400vw);
        }

        #pixelGamePanel {
            flex: 0 0 100vw;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: #000;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: stretch;
            position: relative;
        }

        #pixelGameCanvas {
            display: block;
            width: 100%;
            height: 100%;
            flex: 1;
            min-height: 0;
            background: #000;
            touch-action: none;
        }

        .pixel-game-hint {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-family: 'DepartureMono', monospace;
            font-size: clamp(9px, 2.2vw, 11px);
            color: var(--text-muted);
            letter-spacing: 1px;
            pointer-events: none;
            white-space: nowrap;
        }

        /* Shooter game panel (left of main, slide right to reveal) */
        #shooterGamePanel {
            flex: 0 0 100vw;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: #000;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: stretch;
            position: relative;
        }

        #shooterGameCanvas {
            display: block;
            width: 100%;
            height: 100%;
            flex: 1;
            min-height: 0;
            background: #000;
            touch-action: none;
        }

        .shooter-game-hint {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-family: 'DepartureMono', monospace;
            font-size: clamp(9px, 2.2vw, 11px);
            color: var(--text-muted);
            letter-spacing: 1px;
            pointer-events: none;
        }

        /* Draw game panel (30 seconds draw then slide back) */
        #drawGamePanel {
            flex: 0 0 100vw;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: #000;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: stretch;
            position: relative;
        }

        #drawGameCanvas {
            display: block;
            width: 100%;
            height: 100%;
            flex: 1;
            min-height: 0;
            background: #000;
            touch-action: none;
            cursor: crosshair;
        }

        .draw-game-hint {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'DepartureMono', monospace;
            font-size: clamp(34px, 7vw, 42px);
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 2px;
            text-transform: uppercase;
            pointer-events: none;
            text-align: center;
            opacity: 0.95;
            transition: opacity 0.35s ease;
        }

        .draw-game-hint.is-faded {
            opacity: 0;
        }

        .draw-game-timer {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            font-family: 'DepartureMono', monospace;
            font-size: clamp(14px, 3vw, 18px);
            color: var(--text-muted);
            pointer-events: none;
        }

        .draw-game-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: 'DepartureMono', monospace;
            font-size: clamp(24px, 5.5vw, 36px);
            color: #aaa;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-align: center;
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.14);
            padding: 14px 18px;
            opacity: 0;
            pointer-events: none;
        }

        .draw-game-message.show {
            animation: drawGameMessageFade 3s ease forwards;
        }

        @keyframes drawGameMessageFade {
            0% { opacity: 0; }
            15% { opacity: 1; }
            85% { opacity: 1; }
            100% { opacity: 0; }
        }

        /* While drawing, let strokes pass even over the menu */
        body.minigame-draw-open .brutalist-nav {
            pointer-events: none;
        }


        body.video-star-return .video-star {
            animation: starToBottomLeft 1.2s ease both;
        }

        /* World Events star stays visible so it can open the shooter game */

        .screen-inner--bio {
            display: flex;
            flex-direction: row;
            align-items: stretch;
            justify-content: flex-start;
            padding: 0;
            overflow: hidden;
            height: 100%;
        }

        .bio-model-wrap {
            flex: 0 0 45%;
            max-width: 45%;
            min-width: 0;
            position: relative;
            background: var(--bg-tertiary);
        }

        .bio-model-wrap canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        #bioModelCanvas:focus {
            outline: none;
        }

        .bio-setup-panel {
            position: absolute;
            bottom: 12px;
            left: 12px;
            z-index: 20;
            font-family: 'DepartureMono', monospace;
            font-size: 10px;
            color: var(--text-muted);
            background: rgba(10, 10, 11, 0.92);
            border: 1px solid var(--border);
            border-radius: 4px;
            overflow: hidden;
        }

        .bio-setup-toggle {
            display: block;
            width: 100%;
            padding: 6px 10px;
            background: none;
            border: none;
            color: var(--text-primary);
            font-family: inherit;
            font-size: 10px;
            letter-spacing: 1px;
            cursor: pointer;
            text-align: left;
        }

        .bio-setup-toggle:hover {
            background: var(--bg-tertiary);
        }

        .bio-setup-body {
            padding: 8px 10px 10px;
            display: none;
            border-top: 1px solid var(--border);
        }

        .bio-setup-panel.open .bio-setup-body {
            display: block;
        }

        .bio-setup-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }

        .bio-setup-row label {
            flex: 0 0 72px;
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bio-setup-row input[type="number"],
        .bio-setup-row input[type="range"] {
            flex: 1;
            min-width: 0;
        }

        .bio-setup-row input[type="number"] {
            padding: 4px 6px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 10px;
        }

        .bio-setup-row input[type="range"] {
            padding: 0;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: var(--border);
            border-radius: 3px;
        }

        .bio-setup-row input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
        }

        .bio-setup-row input[type="range"]::-moz-range-thumb {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
            border: none;
        }

        .bio-setup-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .bio-setup-actions button {
            padding: 5px 10px;
            font-family: inherit;
            font-size: 9px;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            cursor: pointer;
        }

        .bio-setup-actions button:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .bio-setup-actions button.primary {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--bg-primary);
        }

        .bio-model-fallback {
            display: none;
            position: absolute;
            left: 42px;
            bottom: 17px;
            right: 12px;
            font-size: 10px;
            color: var(--text-muted);
            line-height: 1.4;
            pointer-events: auto;
        }
        .bio-model-wrap.bio-model-load-error .bio-model-fallback {
            display: block;
            animation: bioFallbackIn 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
        }
        .bio-model-fallback-phrase {
            margin: 0 0 8px 0;
        }

        @keyframes bioFallbackIn {
            from { transform: translateX(-18px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @media (max-width: 768px) {
            .bio-model-fallback {
                left: 32px;
                bottom: 16px;
                right: 16px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .bio-model-wrap.bio-model-load-error .bio-model-fallback {
                animation: none;
            }
        }
        .bio-model-fallback-link {
            color: var(--accent);
            text-decoration: underline;
        }
        .bio-model-fallback-link:hover {
            opacity: 0.8;
        }

        .bio-content {
            flex: 1;
            min-width: 0;
            max-width: 770px;
            margin-left: calc(5% - 26px);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 24px 32px 80px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            align-self: center; /* center Background / Artistic Focus / Manifesto vertically */
        }
        .bio-content::-webkit-scrollbar {
            display: none;
        }

        .bio-content h3 {
            display: none;
        }

        .bio-content p {
            font-size: 12px;
            line-height: 1.65;
            color: var(--text-primary);
            margin: 0 0 12px 0;
        }

        .bio-content p:last-child {
            margin-bottom: 0;
        }

        .bio-tabs {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            margin-bottom: 4px;
        }

        .bio-tab {
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-family: 'DepartureMono', monospace;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 2px 0;
            border-bottom: 1px solid transparent;
            cursor: pointer;
            transition: font-size 0.2s ease, color 0.2s ease, border-bottom-color 0.2s ease;
        }

        .bio-tab.active {
            color: var(--text-primary);
            border-bottom-color: var(--text-primary);
            font-size: 22px;
        }

        .bio-block--background {
            margin-top: 8px;
        }

        .bio-focus-list {
            list-style: disc;
            margin: 0 0 12px 0;
            padding-left: 20px;
        }
        .bio-focus-list li {
            font-size: 12px;
            line-height: 1.65;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        .bio-focus-list li:last-child {
            margin-bottom: 0;
        }

        .bio-block {
            display: none;
        }

        .bio-block.active {
            display: block;
        }

        .bio-block--manifesto {
            font-size: 12px;
            line-height: 1.7;
        }

        .bio-manifesto-line {
            opacity: 0;
            transform: translateY(6px);
            animation: bioManifestoLineIn 0.7s ease forwards;
        }

        @keyframes bioManifestoLineIn {
            0% { opacity: 0; transform: translateY(6px); }
            60% { opacity: 1; transform: translateY(0); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .bio-skills {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .bio-skill {
            font-size: 12px;
            line-height: 1.5;
            color: var(--text-primary);
            padding: 10px 14px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .bio-skill:hover {
            border-color: var(--accent-dim);
        }

        .bio-skill.active {
            border-color: var(--accent);
            background: rgba(34, 211, 238, 0.08);
        }

        .fullpage {
            width: 100%;
            height: 100vh;
            height: 100dvh;
            min-height: 100vh;
            min-height: 100dvh;
            overflow: hidden;
            position: relative;
            outline: none;
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        .fullpage:focus,
        .screen:focus,
        .screen-inner:focus {
            outline: none;
        }

        .fullpage-slider {
            display: flex;
            flex-direction: column;
            width: 200vw;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
        }

        .screen {
            width: 100vw;
            min-width: 100vw;
            height: 100vh;
            height: 100dvh;
            min-height: 100vh;
            min-height: 100dvh;
            position: relative;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
        }

        .slider-row {
            display: flex;
            flex-direction: row;
            width: 200vw;
            flex-shrink: 0;
            height: 100vh;
            height: 100dvh;
            min-height: 100vh;
            min-height: 100dvh;
        }

        .slider-row .screen {
            width: 100vw;
            min-width: 100vw;
        }

        .screen-inner {
            flex: 1;
            position: relative;
            min-height: 0;
            width: 100%;
        }

        .screen-inner--content {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .screen-inner--lab {
            flex-direction: row;
            align-items: stretch;
            justify-content: flex-start;
            overflow: hidden;
        }

        .lab-left {
            flex: 0 0 40%;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding: 24px 24px 80px 32px;
            min-width: 0;
        }

        .lab-right {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            overflow: hidden;
        }

        .lab-scroll {
            flex: 1;
            min-height: 0;
            overflow-y: hidden;
            overflow-x: hidden;
            width: 100%;
            padding: 16px 24px 24px 24px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
        }

        .lab-scroll .gallery-grid_c {
            width: 100%;
            grid-template-columns: repeat(3, 1fr);
            grid-auto-rows: auto;
            gap: 24px;
            align-items: stretch;
            justify-items: stretch;
        }

        .lab-scroll .figure_c {
            height: auto !important;
            min-height: 0;
            aspect-ratio: 1 / 1;
            width: 100%;
        }

        .screen-inner--chat {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px 32px 80px;
        }

        .chat-form {
            width: 100%;
            max-width: 420px;
        }

        .chat-messages {
            width: 100%;
        }

        .chat-bubble {
            font-size: 36px;
            line-height: 1.3;
            color: var(--text-muted);
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .chat-bubble.user {
            color: var(--text-primary);
            font-size: 36px;
        }

        .chat-bubble.user::before {
            content: "→ ";
            color: var(--accent);
        }

        .chat-input-wrap {
            position: relative;
            border-bottom: 2px solid var(--border);
        }

        .chat-placeholder-marquee {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            display: flex;
            align-items: center;
            overflow: hidden;
            pointer-events: none;
        }

        .chat-placeholder-marquee__track {
            display: flex;
            white-space: nowrap;
            animation: chat-marquee 12s linear infinite;
            font-family: 'DepartureMono', monospace;
            font-size: 36px;
            letter-spacing: 0.5px;
            color: var(--text-muted);
        }

        @keyframes chat-marquee {
            0%   { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .chat-placeholder-marquee.hidden {
            display: none;
        }

        .chat-input {
            width: 100%;
            background: transparent;
            border: none;
            padding: 12px 0;
            font-family: 'DepartureMono', monospace;
            font-size: 36px;
            line-height: 1.3;
            color: var(--text-primary);
            letter-spacing: 0.5px;
            outline: none;
        }

        /* Allow selection and caret in form fields */
        input,
        textarea,
        .chat-input {
            user-select: text;
        }

        .chat-input::placeholder {
            color: var(--text-muted);
        }

        .chat-options {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px 12px;
            margin-top: 10px;
        }
        .chat-option-btn {
            border: 1px solid var(--border);
            background: rgba(0,0,0,0.25);
            color: #aaa;
            font-family: 'DepartureMono', monospace;
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 10px 10px;
            cursor: pointer;
            text-align: left;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
        }
        .chat-option-btn:hover {
            color: #ddd;
            border-color: rgba(200, 200, 200, 0.45);
            background: rgba(0,0,0,0.45);
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .chat-options {
                grid-template-columns: 1fr;
            }
        }

        .chat-form .chat-bubble.chat-done {
            font-size: 36px;
            color: var(--text-primary);
            text-align: center;
        }

        .chat-form .chat-done {
            font-size: 12px;
            color: var(--accent);
            letter-spacing: 1px;
        }

        .section-title-wrap {
            position: absolute;
            top: 0;
            left: 0;
            padding: 24px 32px;
            z-index: 5;
        }

        .section-title-wrap .title-block .title {
            margin-bottom: 4px;
        }

        .section-title-wrap .title-block .subtitle {
            margin-bottom: 0;
        }

        .section-center-title {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 5;
            pointer-events: none;
        }

        .section-center-title .hero-title {
            font-size: clamp(60px, 12vw, 84px);
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--text-primary);
            margin: 0;
        }

        @media (max-width: 768px) {
            .section-center-title .hero-title.hero-title--exhibitions {
                font-size: clamp(20px, 4.8vw, 30px);
                letter-spacing: 2px;
            }

            #section1 .section-title-wrap--secondary::before,
            #section3 .section-title-wrap--secondary::before {
                content: 'gønz';
                position: absolute;
                top: 19px;
                left: 32px;
                font-size: 46px;
                font-weight: 700;
                letter-spacing: 2px;
                text-transform: uppercase;
                color: var(--text-primary);
                z-index: 100;
                line-height: 1;
                margin-bottom: 2px;
            }

            #section1 .section-title-wrap--secondary,
            #section3 .section-title-wrap--secondary {
                position: absolute;
                top: 0;
                left: 0;
            }

            #section1 .section-title-wrap--secondary .title-block .subtitle,
            #section3 .section-title-wrap--secondary .title-block .subtitle {
                position: absolute;
                top: 67px;
                left: 32px;
                white-space: nowrap;
            }

            #section1 .section-center-title,
            #section3 .section-center-title {
                top: auto;
                left: auto;
                right: 20px;
                bottom: 22px;
                transform: none;
                text-align: right;
                width: auto;
            }

            #section1 .section-center-title .hero-title,
            #section3 .section-center-title .hero-title {
                text-align: right;
            }

            #section3 .section-center-title .hero-title {
                max-width: 115px;
                margin-left: auto;
                line-height: 1.05;
            }

            #section3 .section-center-title {
                left: 20px;
                right: 20px;
            }

            #section3 .section-center-title .hero-title {
                display: block;
                width: 100%;
                max-width: 140px;
                margin-right: 0;
                white-space: normal;
            }

            #section3 .section-center-title {
                text-align: right !important;
                right: 20px !important;
                left: 20px !important;
            }

            #section3 .section-center-title .hero-title,
            #section3 .section-center-title .hero-title.hero-title--exhibitions {
                text-align: right !important;
                margin-left: auto;
                margin-right: 0;
                display: inline-block !important;
                width: auto !important;
                max-width: none !important;
                white-space: nowrap !important;
                line-height: 1.1;
            }
        }

        .section-center-title .hero-title.hero-title--exhibitions {
            color: #aaa;
            font-size: clamp(42px, 8.5vw, 64px);
        }

        .section-title-wrap--secondary .title-block .title,
        .section-title-wrap--secondary .title-block .subtitle {
            font-size: 11px;
            color: var(--text-muted);
            letter-spacing: 1px;
            font-weight: 400;
            text-transform: none;
        }

        .section-title-wrap--secondary .title-block .title {
            margin-bottom: 2px;
        }

        .scroll-hint {
            font-size: 10px;
            color: var(--text-muted);
            letter-spacing: 2px;
            opacity: 0.7;
        }

        #renderCanvas {
            width: 100%;
            height: 100%;
            display: block;
            touch-action: none;
            position: absolute;
            top: 0;
            left: 0;
            outline: none;
        }

        #renderCanvas:focus {
            outline: none;
        }

        /* World Events: mask left third so globe reads in right 2/3 of screen */
        .world-events-left-mask {
            position: absolute;
            top: 0;
            left: 0;
            width: 25vw;
            height: 100%;
            background: var(--bg-primary);
            z-index: 2;
            pointer-events: none;
        }

        @media (min-width: 1400px) {
            .world-events-left-mask {
                width: 30vw; /* slightly more mask on very wide screens, but still keep globe more to the right */
            }
        }

        @media (min-width: 1201px) {
            .world-events-left-mask {
                display: none;
            }
        }

        .ui-overlay {
            position: absolute;
            pointer-events: none;
            z-index: 10;
        }

        .header {
            top: 19px;
            left: 32px;
            right: auto;
            padding: 0;
            display: block;
        }

        .title-block {
            pointer-events: auto;
        }

        .title {
            font-size: 42px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .subtitle {
            font-size: 11px;
            color: var(--text-muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            display: inline-block;
            padding: 0 6px;
            border-top: 1px solid var(--text-muted);
            border-bottom: 1px solid var(--text-muted);
        }

        /* World Events header: stretch subtitle line ~20px longer */
        .ui-overlay.header .title-block .subtitle {
            padding-left: 0;
            padding-right: 0;
        }

        .controls {
            display: flex;
            gap: 8px;
            pointer-events: auto;
        }

        .control-btn {
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 8px 16px;
            font-family: 'DepartureMono', monospace;
            font-size: 11px;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .control-btn:hover {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-color: var(--accent);
        }

        .control-btn.active {
            background: var(--accent-dim);
            border-color: var(--accent);
            color: var(--accent);
        }

        .control-btn:focus,
        .control-btn:focus-visible {
            outline: none;
        }

        .event-panel {
            position: absolute;
            right: 32px;
            top: 50%;
            transform: translateY(-50%);
            width: 360px;
            max-height: 85vh;
            pointer-events: none;
            z-index: 10;
        }

        .event-info {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            max-width: 360px;
            max-height: 85vh;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            pointer-events: auto;
            overflow-y: auto;
            overflow-x: hidden;
            display: block;
        }

        .event-info.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .event-panel-hero {
            width: 100%;
            aspect-ratio: 16/10;
            background: var(--bg-tertiary);
            overflow: hidden;
            position: relative;
        }

        #eventHeroExpandBtn {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 26px;
            height: 26px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(160, 160, 160, 0.35);
            background: rgba(0, 0, 0, 0.45);
            color: #aaa;
            font-size: 12px;
            line-height: 1;
            cursor: pointer;
            z-index: 2;
            pointer-events: auto;
            touch-action: manipulation;
            opacity: 0.75;
            transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        #eventHeroExpandBtn:hover {
            opacity: 1;
            border-color: rgba(200, 200, 200, 0.5);
            color: #ddd;
        }

        .event-panel-hero.empty #eventHeroExpandBtn {
            display: none;
        }

        .event-panel-hero-slider {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            height: 100%;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .event-panel-hero-slider::-webkit-scrollbar {
            display: none;
        }

        .event-panel-hero-slide {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            background: var(--bg-tertiary);
            overflow: hidden;
        }

        .event-panel-hero-slide img,
        .event-panel-hero-slide video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            background: #000;
        }

        .event-panel-hero-slide video {
            object-fit: contain;
        }

        .event-panel-hero img,
        .event-panel-hero video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            background: #000;
        }

        .event-panel-hero video {
            object-fit: contain;
        }

        .event-panel-hero.empty {
            display: none;
        }

        .event-panel-body {
            padding: 16px 20px;
        }

        /* Preview event container: keep text compact */
        #eventDescription {
            display: -webkit-box;
            -webkit-line-clamp: 4;
            /* line-clamp: 4; removed — non-standard, -webkit-line-clamp above is sufficient */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .event-title {
            font-size: 13px;
            font-weight: 700;
            color: #aaa;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .event-location {
            font-size: 11px;
            color: #777;
            margin-bottom: 4px;
            letter-spacing: 0.5px;
        }

        .event-date {
            font-size: 10px;
            color: var(--text-muted);
            letter-spacing: 1px;
        }

        .event-index {
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }

        .event-panel-gallery {
            display: flex;
            gap: 8px;
            padding: 12px 20px 16px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .event-panel-gallery::-webkit-scrollbar {
            display: none;
        }

        .event-panel-gallery.empty {
            display: none;
        }

        #eventPanelCloseBtn {
            position: absolute;
            bottom: 10px;
            right: 12px;
            width: 24px;
            height: 24px;
            border: 1px solid rgba(160,160,160,0.35);
            background: rgba(0,0,0,0.45);
            color: #aaa;
            cursor: pointer;
            z-index: 12;
            opacity: 0.85;
            transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            pointer-events: auto;
        }
        #eventPanelCloseBtn:hover {
            opacity: 1;
            color: #ddd;
            border-color: rgba(200,200,200,0.5);
        }
        .event-info:not(.visible) + #eventPanelCloseBtn {
            display: none;
        }

        @media (max-width: 900px) {
            .event-panel {
                right: 16px;
                width: min(360px, calc(100vw - 32px));
            }
        }

        .event-panel-gallery-item {
            flex-shrink: 0;
            width: 80px;
            height: 56px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            overflow: hidden;
        }

        /* Fullscreen media overlay for World Events hero */
        #eventMediaOverlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.92);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 99998;
        }
        #eventMediaOverlay.show {
            display: flex;
        }
        #eventMediaOverlay .event-media-overlay-inner {
            width: 100vw;
            height: 100vh;
            display: grid;
            grid-template-columns: 3fr 1fr; /* 75% / 25% */
            background: var(--bg-secondary);
            border-left: 1px solid var(--border);
        }
        .event-media-overlay-left {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
            overflow: hidden;
            border-right: 1px solid var(--border);
            position: relative;
        }
        .event-overlay-nav {
            position: absolute;
            right: 16px;
            bottom: 16px;
            display: flex;
            gap: 10px;
            z-index: 5;
            pointer-events: auto;
        }
        .event-overlay-nav button {
            width: 34px;
            height: 34px;
            border: 1px solid var(--border);
            background: rgba(0,0,0,0.55);
            color: #aaa;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            font-size: 16px;
            transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
        }
        .event-overlay-nav button:hover {
            color: #fff;
            background: rgba(0,0,0,0.75);
            transform: translateY(-1px);
        }
        .event-media-overlay-right {
            width: 100%;
            height: 100%;
            background: var(--bg-secondary);
            padding: 24px 20px;
            overflow-y: auto;
            color: #aaa;
            font-size: 13px;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge legacy */
        }
        .event-media-overlay-right::-webkit-scrollbar {
            width: 0;
            height: 0;
            display: none;
        }
        .event-media-overlay-right h3 {
            font-size: 16px;
            margin: 0 0 8px 0;
            color: #aaa;
        }
        .event-media-overlay-right .event-meta {
            font-size: 11px;
            color: #777;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }
        .event-media-overlay-right p {
            margin: 0 0 12px 0;
            color: #9a9a9a;
        }
        .event-media-overlay-right .event-tech {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border);
            color: #9a9a9a;
        }
        .event-media-overlay-right .event-tech-title {
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #777;
            margin-bottom: 10px;
        }
        .event-media-overlay-right .event-tech-grid {
            display: grid;
            grid-template-columns: 88px 1fr;
            gap: 6px 12px;
            align-items: start;
            font-size: 12px;
            line-height: 1.5;
        }
        .event-media-overlay-right .event-tech-key {
            color: #777;
            letter-spacing: 0.4px;
        }
        #eventMediaOverlay video,
        #eventMediaOverlay img {
            max-width: 100%;
            max-height: 100%;
            width: 100%;
            height: 100%;
            border: 0;
            object-fit: contain;
            background: #000;
        }
        #eventMediaOverlay iframe {
            width: 100%;
            height: 100%;
            border: 0;
            background: #000;
        }

        @media (max-width: 900px) {
            #eventMediaOverlay .event-media-overlay-inner {
                grid-template-columns: 1fr;
                grid-template-rows: 75vh 25vh;
            }
            .event-media-overlay-left {
                border-right: 0;
                border-bottom: 1px solid var(--border);
            }
            .event-media-overlay-right {
                padding: 18px 16px 20px;
                justify-content: flex-start;
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none; /* IE/Edge legacy */
            }
            .event-media-overlay-right::-webkit-scrollbar {
                width: 0;
                height: 0;
                display: none;
            }
            .event-media-overlay-right p {
                display: -webkit-box;
                -webkit-line-clamp: 6; /* 2 lines preview + 4 more */
                /* line-clamp removed — non-standard */
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
        }
        #eventMediaOverlayClose {
            position: fixed;
            top: 18px;
            right: 20px;
            width: 32px;
            height: 32px;
            border: 1px solid var(--border);
            background: rgba(0,0,0,0.7);
            color: var(--text-primary);
            cursor: pointer;
            z-index: 99999;
        }

        .event-panel-gallery-item img,
        .event-panel-gallery-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .stats {
            position: absolute;
            bottom: 16px;
            right: 32px;
            text-align: right;
            pointer-events: none;
            z-index: 10;
        }
        .stats--hidden {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        .stats--visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .stat-label {
            font-size: 9px;
            color: var(--text-muted);
            letter-spacing: 1px;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .stat-item {
            font-size: 10px;
            color: var(--text-muted);
            letter-spacing: 1px;
            margin-bottom: 4px;
        }

        .stat-value {
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
        }

        .timeline-bar {
            display: none;
        }

        .timeline-dot {
            width: 8px;
            height: 8px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .timeline-dot:hover {
            background: var(--accent-dim);
            border-color: var(--accent);
            transform: scale(1.5);
        }

        .timeline-dot.active {
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: 0 0 12px var(--accent-dim);
        }

        .instructions {
            position: absolute;
            bottom: 16px;
            right: 32px;
            text-align: right;
            pointer-events: none;
            z-index: 10;
        }

        .instruction-item {
            font-size: 9px;
            color: var(--text-muted);
            letter-spacing: 1px;
            margin-bottom: 8px;
            opacity: 0.6;
        }

        .instruction-key {
            color: var(--text-secondary);
        }

        .hidden-scoreboard-invite {
            pointer-events: auto;
            cursor: pointer;
            opacity: 0.45;
            transition: opacity 0.2s ease, color 0.2s ease;
        }

        .hidden-scoreboard-invite:hover,
        .hidden-scoreboard-invite.unlocked {
            opacity: 1;
            color: var(--text-primary);
        }

        .hidden-scoreboard-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.78);
            z-index: 10050;
            padding: 16px;
        }

        .hidden-scoreboard-modal.show {
            display: flex;
        }

        .hidden-scoreboard-panel {
            width: min(780px, 96vw);
            max-height: 90vh;
            overflow: auto;
            background: #0d0d0f;
            border: 1px solid var(--border);
            padding: 28px 24px 20px;
        }

        .hidden-scoreboard-body {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 24px;
            margin-bottom: 16px;
        }

        .hidden-scoreboard-left {
            flex-shrink: 0;
            width: clamp(80px, 18vw, 140px);
        }

        .hidden-scoreboard-title {
            font-size: clamp(13px, 2.2vw, 20px);
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 0px;
            text-transform: uppercase;
            line-height: 1.15;
            margin: 0 0 10px;
        }

        .hidden-scoreboard-summary {
            font-size: 10px;
            color: var(--text-muted);
            letter-spacing: 0.6px;
            line-height: 1.5;
        }

        .hidden-scoreboard-status {
            font-size: 11px;
            color: var(--text-muted);
            letter-spacing: 0.8px;
            margin-bottom: 10px;
        }

        .hidden-scoreboard-list {
            list-style: none;
            margin: 0;
            padding: 0;
            flex: 1;
            border-top: 1px solid var(--border);
            min-width: 0;
        }

        .hidden-scoreboard-item {
            display: flex;
            flex-direction: column;
            padding: 10px 0 8px;
            border-bottom: 1px solid rgba(255,255,255,0.07);
        }

        .hidden-scoreboard-item:last-child {
            border-bottom: 0;
        }

        .hidden-scoreboard-item .sb-rank {
            font-size: 9px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 1px;
        }

        .hidden-scoreboard-item .sb-row {
            display: flex;
            align-items: baseline;
            gap: 0;
            min-width: 0;
        }

        .hidden-scoreboard-item .sb-name {
            font-size: clamp(22px, 4.5vw, 42px);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: -0.5px;
            line-height: 1;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex-shrink: 1;
            min-width: 0;
        }

        .hidden-scoreboard-item .sb-line {
            flex: 1;
            border-bottom: 1px solid rgba(255,255,255,0.18);
            margin: 0 8px 4px;
            min-width: 12px;
        }

        .hidden-scoreboard-item .sb-score {
            font-size: clamp(13px, 2vw, 18px);
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--text-muted);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .hidden-scoreboard-item strong {
            color: var(--text-primary);
        }

        .hidden-scoreboard-form {
            margin-top: 12px;
            display: none;
            grid-template-columns: 1fr auto;
            gap: 8px;
        }

        .hidden-scoreboard-form.show {
            display: grid;
        }

        .hidden-scoreboard-input,
        .hidden-scoreboard-btn {
            font-family: 'DepartureMono', monospace;
            font-size: 12px;
            letter-spacing: 0.7px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-primary);
            padding: 8px 10px;
        }

        .hidden-scoreboard-btn {
            cursor: pointer;
            text-transform: uppercase;
        }

        .hidden-scoreboard-close {
            margin-top: 10px;
            width: 100%;
            font-family: 'DepartureMono', monospace;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 8px;
            cursor: pointer;
        }

        .header-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .header-star {
            font-size: 10px;
            color: var(--text-primary);
            line-height: 1;
        }
        .header-star-img {
            width: 25px;
            height: 25px;
            display: block;
        }

        .section-star-wrap {
            position: absolute;
            top: 50%;
            right: 22px;
            transform: translateY(-50%);
            z-index: 5;
        }

        #contactStarWrap {
            will-change: transform;
        }

        .section-star-wrap .header-star {
            font-size: 10px;
        }
        .section-star-wrap .header-star-img {
            width: 25px;
            height: 25px;
        }

        .page-label {
            position: absolute;
            left: 6px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: var(--text-muted);
            letter-spacing: 1px;
            z-index: 6;
            pointer-events: none;
        }

        .brutalist-nav {
            position: fixed;
            left: 32px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 100;
            pointer-events: auto;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (min-width: 769px) {
            body.on-world-events .brutalist-nav {
                position: fixed;
                isolation: isolate;
            }

            body.on-world-events .brutalist-nav::before {
                content: '';
                position: absolute;
                inset: -14px -18px -14px -18px;
                border: 1px solid rgba(255, 255, 255, 0.08);
                background: rgba(8, 8, 10, 0.28);
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px);
                pointer-events: none;
                z-index: -1;
            }
        }

        .brutalist-nav.brutalist-nav--off-screen {
            transform: translate(calc(-100% - 64px), -50%);
            pointer-events: none;
        }

        .brutalist-nav-sections {
            max-height: 85vh;
            width: 360px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .brutalist-nav-events {
            width: 25vw; /* match header black strip width */
            height: 450px;
            max-height: 52vh;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .brutalist-nav-events::-webkit-scrollbar {
            display: none;
        }

        .brutalist-nav-events.hidden,
        .brutalist-nav-sections.hidden {
            display: none;
        }

        .brutalist-nav-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
        }

        .brutalist-nav-list li {
            margin: 0 0 4px 0;
            padding: 0;
        }

        .brutalist-nav-list a,
        .brutalist-nav-events .nav-event-item {
            display: block;
            font-family: 'DepartureMono', monospace;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #444;
            text-decoration: none;
            padding: 2px 0;
            text-align: left;
            border: none;
            background: none;
            cursor: pointer;
            transition: opacity 0.2s ease, color 0.2s ease;
        }

        .brutalist-nav-list a:hover,
        .brutalist-nav-list a.active {
            color: #aaa;
        }

        .brutalist-nav-events .nav-event-item {
            overflow: hidden;
            max-width: 100%;
            width: 100%;
            text-align: left;
            position: relative;
            padding-right: 28px;
            color: #444;
            transition: opacity 0.2s ease, color 0.2s ease;
        }

        .brutalist-nav-events .nav-event-item:hover,
        .brutalist-nav-events .nav-event-item.active {
            color: #aaa;
        }

        .brutalist-nav-events .nav-event-item .nav-event-item-text {
            display: inline-block;
            white-space: nowrap;
            transition: transform 1s ease;
        }
        .brutalist-nav-events .nav-event-item.active {
            opacity: 1;
            overflow: visible;
        }
        .brutalist-nav-events .nav-event-item.active::after {
            content: '→';
            position: absolute;
            right: -20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--accent);
            pointer-events: none;
        }

        .brutalist-nav-list a:hover,
        .brutalist-nav-events .nav-event-item:hover {
            opacity: 0.7;
        }

        .brutalist-nav-list a.active {
            opacity: 1;
        }

        @media (min-width: 769px) and (max-width: 1200px) {
            .world-events-left-mask {
                display: none;
            }

            .section-center-title .hero-title {
                font-size: clamp(40px, 8vw, 56px);
            }

            .section-center-title .hero-title.hero-title--exhibitions {
                font-size: clamp(28px, 5.6vw, 42px);
            }

            .brutalist-nav {
                left: 32px;
            }

            .brutalist-nav-sections {
                width: 300px;
            }

            .brutalist-nav-events {
                width: 22vw;
            }

            .brutalist-nav-list a,
            .brutalist-nav-events .nav-event-item {
                font-size: 19px;
                letter-spacing: 1.5px;
            }

            .title {
                font-size: 38px;
            }

            .subtitle {
                font-size: 10px;
            }

            #section7 .section-title-wrap {
                padding-left: 44px;
            }

            #section7 .section-title-wrap .title-block .title {
                font-size: 34px;
            }

            #section7 .section-title-wrap .title-block .subtitle {
                font-size: 9px;
            }
        }

        @media (max-width: 768px) {
            .top-video-container {
                position: relative;
                overflow: hidden;
                background: var(--bg-primary);
            }

            .top-video-bg {
                top: 0;
                left: 0;
                width: 100%;
                height: 50%;
                background: var(--bg-primary);
                z-index: 4;
            }

            .top-video-container video {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100%;
                height: 50%;
                object-fit: cover;
            }

            .header {
                padding: 0;
                flex-direction: column;
                gap: 16px;
            }

            .title {
                font-size: 36px;
            }

            .controls {
                width: 100%;
                justify-content: flex-start;
            }

            .control-btn {
                padding: 6px 12px;
                font-size: 10px;
            }

            .brutalist-nav {
                top: calc(72px + 40px); /* move ~5% (5vh) up on mobile */
                left: 15px;
                right: auto;
                width: calc(100% - 30px);
                transform: none;
                padding: 12px 16px 0;
            }

            .brutalist-nav.brutalist-nav--off-screen {
                transform: translate(-100%, 0);
            }

            .screen-inner--chat {
                justify-content: flex-end;
                padding-bottom: 25vh;
                align-items: flex-start;
                padding-left: 32px;
                padding-right: 32px;
            }

            .brutalist-nav-sections {
                width: 100%;
                max-height: 40vh;
                align-items: flex-start;
                justify-content: flex-start;
            }

            .brutalist-nav-list {
                width: 100%;
                align-items: flex-start;
            }

            .brutalist-nav-list a,
            .brutalist-nav-events .nav-event-item {
                width: 100%;
                text-align: left;
                font-size: 18px;
                letter-spacing: 1.5px;
                margin-bottom: 4px;
            }

            .brutalist-nav-events {
                width: 100%;
                height: 120px;
                max-height: 120px;
            }

            .brutalist-nav-events .nav-event-item {
                padding: 0;
                padding-right: 22px;
            }

            .brutalist-nav-list li:last-child .brutalist-nav-list a,
            .brutalist-nav-events .nav-event-item:last-child {
                margin-bottom: 0;
            }

            .event-panel {
                top: auto;
                right: 0;
                bottom: 0;
                left: 0;
                width: 100%;
                max-width: 100%;
                transform: none;
                padding: 0;
            }

            /* World Events globe should fill full width on small screens */
            .world-events-left-mask {
                width: 0 !important;
                display: none;
            }

            .event-info {
                max-width: 100%;
                width: 100%;
                overflow: hidden;
            }

            .event-info.visible {
                max-height: 45vh;
            }

            .event-panel-hero {
                aspect-ratio: auto;
                width: 100%;
                height: 60px;
                max-height: 60px;
                overflow: hidden;
            }

            .event-panel-hero img,
            .event-panel-hero video,
            .event-panel-hero-slide img,
            .event-panel-hero-slide video {
                object-fit: cover;
                width: 100%;
                height: 60px;
                background: #000;
            }

            #eventPanelHeroSlider {
                align-items: center;
            }

            #eventPanelHeroSlider > .event-panel-hero-slide {
                display: flex;
                align-items: center;
                justify-content: center;
                max-height: 60px;
                overflow: hidden;
            }

            #eventPanelHeroSlider > .event-panel-hero-slide > video {
                width: 100%;
                height: 60px;
                margin: 0 auto;
                object-fit: cover;
            }

            .event-panel-body {
                padding: 12px 16px;
            }

            #eventDescription {
                -webkit-line-clamp: 2;
                /* line-clamp removed — non-standard */
            }

            .event-panel-gallery {
                padding: 10px 16px 12px;
            }

            .event-panel-gallery-item {
                width: 64px;
                height: 45px;
            }

            .stats {
                right: 20px;
                bottom: 16px;
                text-align: right;
            }

            .stats--hidden {
                opacity: 0;
                transform: translateX(100%);
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .stats--visible {
                opacity: 1;
                transform: translateX(0);
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .instructions {
                right: 20px;
                bottom: 16px;
            }

            .timeline-bar {
                left: 16px;
            }

            .page-label {
                left: 4px;
            }

            .header .header-right {
                position: fixed;
                top: auto;
                left: auto;
                right: 16px;
                bottom: 16px;
            }

            .section-star-wrap {
                position: fixed;
                top: 24px;
                left: auto;
                right: 16px;
                bottom: auto;
            }

            .screen-inner > .instructions {
                display: none;
            }

            #section7 .instructions {
                display: block;
                right: 16px;
                bottom: 16px;
            }

            #section7 .instructions .instruction-item:not(.hidden-scoreboard-invite) {
                display: none;
            }

            #section7 .hidden-scoreboard-invite {
                font-size: 10px;
                opacity: 0.95;
            }

            .screen-inner--content {
                padding: 16px;
            }

            .screen-inner--lab {
                flex-direction: column;
            }

            .lab-left {
                flex: none;
                padding: 16px 16px 12px;
            }

            .lab-right {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 50vh;
            }

            .lab-scroll {
                padding: 8px 16px 16px;
                width: 100%;
                height: 100%;
                justify-content: stretch;
                align-items: stretch;
                overflow: hidden;
            }

            .lab-scroll .gallery-grid_c {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                grid-template-rows: repeat(auto-fit, 1fr);
                gap: 8px;
                height: 100%;
            }

            .lab-scroll .figure_c {
                aspect-ratio: 1 / 1;
                height: 100%;
                min-height: 0;
            }

            .screen-inner--bio {
                flex-direction: column;
                position: relative;
            }

            .bio-model-wrap {
                flex: 0 0 50vh;
                max-width: 100%;
                min-height: 50vh;
            }

            .bio-model-fallback {
                left: 20px;
                bottom: 12px;
                right: auto;
            }

            /* hide the poem text on small screens */
            .bio-model-fallback-phrase {
                display: none;
            }

            .bio-content {
                margin-left: 0;
                padding: 0 32px 32px;
                gap: 12px;
                flex: 0 0 50vh;
                max-height: 50vh;
                overflow-y: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .bio-content::-webkit-scrollbar {
                display: none;
            }

            /* hide "BIO / History & skills" title on mobile so tabs sit
               flush at the 50vh midpoint */
            .screen-inner--bio .section-title-wrap {
                display: none;
            }

        }

        .loading {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            transition: opacity 0.5s ease;
        }

        .loading.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loading-text {
            font-size: 11px;
            letter-spacing: 3px;
            color: var(--text-muted);
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        /* Gallery section (third screen) */
        .screen-inner--gallery {
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 0;
            overflow: hidden;
        }

        .gallery-event-panel {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 24px 32px;
            pointer-events: none;
            z-index: 10;
        }

        .gallery-event-panel--bottom-right {
            left: auto;
            right: 32px;
            bottom: 24px;
            padding: 0;
            text-align: right;
        }

        .gallery-info-cell {
            width: 100%;
            height: 100%;
            min-height: 0;
            display: flex;
            align-items: flex-start; /* top-left on big screens */
            justify-content: flex-start;
            padding: 0;
            overflow: hidden;
        }

        .gallery-info-cell .event-info.gallery-info {
            width: auto;
            min-width: 0;
            max-width: calc(100% - 110px);
            height: 50%;
            min-height: 0;
            padding: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            border: none;
            background: transparent;
            border: none;
            color: var(--text-muted);
        }

        @media (max-width: 768px) {
            .gallery-scroll {
                padding: 16px 20px;
            }
            .gallery-info-cell .event-info.gallery-info {
                max-width: 100%;
            }
        }

        .gallery-info-cell .event-info.gallery-info .event-title,
        .gallery-info-cell .event-info.gallery-info .event-location,
        .gallery-info-cell .event-info.gallery-info .event-index {
            color: var(--text-muted);
        }

        .gallery-info-cell .event-info .event-title {
            font-size: 11px;
            margin-bottom: 4px;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .gallery-info-cell .event-info .event-location {
            font-size: 10px;
            margin-bottom: 2px;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            /* line-clamp removed — non-standard */
            -webkit-box-orient: vertical;
        }

        .gallery-info-cell .event-info .event-index {
            font-size: 9px;
            margin-top: 6px;
            padding-top: 6px;
            flex-shrink: 0;
        }

        .gallery-event-panel .event-info,
        .locations-panel .event-info {
            opacity: 1;
            transform: none;
            pointer-events: auto;
        }

        .gallery-event-panel .event-info.gallery-info {
            padding: 6px 14px;
            max-height: 5em;
            overflow: hidden;
            color: var(--text-muted);
        }

        .gallery-event-panel .event-info.gallery-info .event-title,
        .gallery-event-panel .event-info.gallery-info .event-location,
        .gallery-event-panel .event-info.gallery-info .event-index {
            color: var(--text-muted);
        }

        .gallery-event-panel .event-info .event-title {
            font-size: 11px;
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .gallery-event-panel .event-info .event-location {
            font-size: 10px;
            margin-bottom: 2px;
        }

        .gallery-event-panel .event-info .event-index {
            font-size: 9px;
            margin-top: 6px;
            padding-top: 6px;
        }

        .locations-panel {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 24px 32px;
            pointer-events: none;
            z-index: 10;
        }

        .event-locations-list {
            font-size: 11px;
            color: var(--text-secondary);
            line-height: 1.6;
            letter-spacing: 0.5px;
            max-height: 80px;
            overflow-y: auto;
        }

        .gallery-scroll {
            flex: 1;
            min-height: 0;
            overflow: hidden;
            padding: 24px 32px;
            display: flex;
            align-items: stretch;
        }

        .gallery-scroll .gallery-grid_c {
            width: 100%;
        }

        .gallery-grid_c {
            display: grid;
            width: 100%;
            max-width: 100%;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-template-rows: repeat(3, minmax(0, 1fr));
            gap: 12px;
            align-items: stretch;
            justify-items: stretch;
            height: 100%;
            min-height: 0;
            max-height: 100%;
        }

        .gallery-grid_c--with-info-cell {
            max-height: 100%;
        }

        .gallery-scroll--with-panel {
            padding-bottom: 72px;
        }

        .figure_c {
            width: 100%;
            height: 100%;
            min-height: 160px;
            margin: 0;
            padding: 0;
            position: relative;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .figure_c:hover {
            transform: scale(1.02);
            border-color: var(--accent-dim);
            z-index: 1;
        }

        .figure_c a {
            display: block;
            width: 100%;
            height: 100%;
            text-decoration: none;
        }

        .figure_c img,
        .figure_c video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.2s ease;
        }

        .figure_c:hover img,
        .figure_c:hover video {
            transform: scale(1.05);
        }

        .figcaption_c {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 8px 12px;
            color: var(--text-primary);
            background: linear-gradient(transparent, rgba(0,0,0,0.85));
            font-family: 'DepartureMono', monospace;
            font-size: 10px;
            letter-spacing: 0.5px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .figure_c:hover .figcaption_c {
            opacity: 1;
        }

        /* Gallery: remove monochrome effect (keep subtle overlay) */
        #section2 .figure_c,
        #section4 .figure_c {
            transform: none;
        }
        #section2 .figure_c::after,
        #section4 .figure_c::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
            pointer-events: none;
        }
        #section2 .figure_c:hover,
        #section4 .figure_c:hover {
            transform: none;
        }
        #section2 .figure_c img,
        #section2 .figure_c video,
        #section4 .figure_c img,
        #section4 .figure_c video {
            filter: none;
        }

        @media (max-width: 768px) {
            .gallery-scroll {
                padding: 16px 20px;
            }
            .gallery-info-cell {
                align-items: flex-start; /* top-left on small screens */
            }
            .gallery-event-panel,
            .locations-panel {
                padding: 16px 20px;
            }

            .gallery-grid_c {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(6, 1fr);
                gap: 8px;
            }
            .figure_c {
                min-height: 0;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .gallery-grid_c {
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(4, 1fr);
            }
        }

        /* Event / Gallery Modal – slide from top, two columns, dashed close */
        .modal_c {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0);
            overflow: hidden;
            transition: background 0.35s ease;
            pointer-events: none;
        }

        .modal_c.show_c {
            display: block;
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.88);
        }

        .modal_c.closing {
            pointer-events: none;
        }

        .modal_c.closing .modal-panel_c {
            transform: translateY(-100%);
        }

        .modal-panel_c {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            min-height: 100vh;
            max-height: 100vh;
            background: var(--bg-secondary);
            transform: translateY(-100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .modal_c.show_c .modal-panel_c {
            transform: translateY(0);
        }

        .modal-panel_c__inner {
            display: grid;
            grid-template-columns: 3fr 1fr; /* match World Events modal: 75% / 25% */
            gap: 0;
            max-width: 100%;
            margin: 0;
            padding: 0;
            height: 100%;
            min-height: calc(100vh - 88px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal_c.show_c .modal-panel_c__inner {
            opacity: 1;
            transition-delay: 0.15s;
        }

        .modal_c.closing .modal-panel_c__inner {
            opacity: 0;
            transition-delay: 0s;
        }

        .modal-gallery_c {
            position: relative;
            overflow: hidden;
            background: var(--bg-secondary);
            border-right: 1px solid var(--border);
        }

        /* Gallery modal: media on left, text on right */
        .modal-gallery_c--split .modal-gallery_c__track {
            min-height: calc(100vh - 140px);
        }

        .modal-gallery_c--split .modal-gallery_c__slide {
            padding: 0;
        }

        .modal-gallery_c--split .modal-gallery_c__slide img,
        .modal-gallery_c--split .modal-gallery_c__slide video {
            max-width: 100%;
            max-height: 100%;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-gallery_c__track {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            height: 100%;
            min-height: min(50vh, 360px);
            cursor: grab;
            user-select: none;
            -webkit-overflow-scrolling: touch;
        }

        .modal-gallery_c__track:active {
            cursor: grabbing;
        }

        .zoom_c {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 200px;
            height: 200px;
            background: rgba(0, 0, 0, 0.7);
            border: 1px solid var(--border);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 10;
            background-size: 800%;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 4px;
        }

        .zoom-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .zoom-label {
            color: var(--text-primary);
            font-family: 'DepartureMono', monospace;
            font-size: 12px;
            letter-spacing: 0.5px;
        }

        .zoom-slider {
            width: 200px;
            height: 5px;
            background: white;
            border-radius: 2.5px;
            -webkit-appearance: none;
            appearance: none;
            outline: none;
            cursor: pointer;
        }

        .zoom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 10px;
            height: 10px;
            background: gray;
            border-radius: 0;
            cursor: pointer;
        }

        .zoom-slider::-moz-range-thumb {
            width: 10px;
            height: 10px;
            background: gray;
            border-radius: 0;
            cursor: pointer;
            border: none;
        }

        .gallery-nav-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .gallery-nav-btn {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid var(--text-primary);
            color: var(--text-primary);
            font-size: 24px;
            font-weight: 300;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease, transform 0.2s ease;
            font-family: 'DepartureMono', monospace;
        }

        .gallery-nav-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .gallery-nav-btn:active {
            transform: scale(0.95);
        }

        .gallery-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .modal-gallery_c__track::-webkit-scrollbar {
            height: 6px;
        }

        .modal-gallery_c__track::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
        }

        .modal-gallery_c__track::-webkit-scrollbar-thumb {
            background: var(--text-muted);
            border-radius: 3px;
        }

        .modal-gallery_c__slide {
            flex: 0 0 100%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            overflow: hidden;
        }

        .modal-gallery_c__slide img,
        .modal-gallery_c__slide video {
            max-width: 100%;
            max-height: min(55vh, 400px);
            object-fit: contain;
            display: block;
        }

        .modal-gallery_c__slide video {
            width: 100%;
        }

        .modal-info_c {
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 24px 20px;
            background: var(--bg-secondary);
            color: #aaa;
        }

        .modal-info_c__title {
            font-family: 'DepartureMono', monospace;
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #aaa;
            margin: 0 0 12px;
            line-height: 1.3;
        }

        .modal-info_c__meta {
            font-size: 11px;
            color: #777;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        .modal-info_c__meta:empty {
            display: none;
        }

        .modal-info_c__description {
            font-size: 13px;
            color: #9a9a9a;
            line-height: 1.6;
            letter-spacing: 0.3px;
        }

        /* Dashed cross close button */
        .close_c {
            position: absolute;
            top: 20px;
            right: 24px;
            width: 36px;
            height: 36px;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            z-index: 1001;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .modal_c.show_c .close_c {
            opacity: 1;
        }

        .modal_c.closing .close_c {
            opacity: 0;
        }

        .close_c:focus {
            outline: none;
        }

        .close_c__line {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 22px;
            height: 0;
            border: none;
            border-top: 2px dashed rgba(160, 160, 160, 0.9);
            transform-origin: center;
        }

        .close_c__line--h {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .close_c__line--v {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .close_c:hover .close_c__line {
            border-top-color: rgba(220, 220, 220, 1);
        }

        @media (max-width: 768px) {
            .modal-panel_c__inner {
                grid-template-columns: 1fr;
                grid-template-rows: 75vh 25vh;
                padding: 0;
            }

            .modal-gallery_c__track {
                min-height: 220px;
            }

            .modal-info_c__title {
                font-size: 16px;
            }
                /* Final phone override: Digital Art title must be right-aligned on one line */
                #section3 .section-center-title {
                    top: auto !important;
                    bottom: 22px !important;
                    left: 20px !important;
                    right: 20px !important;
                    transform: none !important;
                    text-align: right !important;
                }

                #section3 .section-center-title .hero-title,
                #section3 .section-center-title .hero-title.hero-title--exhibitions {
                    display: inline-block !important;
                    width: auto !important;
                    max-width: none !important;
                    margin: 0 !important;
                    margin-left: auto !important;
                    text-align: right !important;
                    white-space: nowrap !important;
                }
        }
    