:root {
            --video-opacity: 1;
            --environment-opacity: 0;
            --projection-progress: 0;
            --geo-panel-opacity: 1;
            --iran-panel-opacity: 0;
            --nav-opacity: 1;
            --lens-x: 50vw;
            --lens-y: 50vh;
            --lens-opacity: 0;
            --lens-user-opacity: 0.5;
            --lens-size: 58px;
            --lens-edge-blue: 0.01;
            --lens-edge-blur: 36%;
            --lens-radial-opacity: 0.13;
            --lens-saturate: 2.8;
            --lens-radius: 48% 52% 54% 46% / 46% 52% 48% 54%;
            --lens-rotation: 0deg;
            --lens-scale-x: 1;
            --lens-scale-y: 1;
            --screen-control-x: 72vw;
            --screen-control-y: 50vh;
            --screen-control-gap: 128px;
            --project-title-size: clamp(2.7rem, 6.2vw, 5rem);
            --project-body-size: clamp(0.96rem, 1.38vw, 1.06rem);
            --project-text-gap: 22px;
            --project-text-rotate-y: 0deg;
            --about-video-opacity: 0;
            --about-panel-0-opacity: 0;
            --about-panel-1-opacity: 0;
            --about-panel-2-opacity: 0;
            --about-panel-0-y: 30px;
            --about-panel-1-y: 30px;
            --about-panel-2-y: 30px;
            --chromatic-a: 20, 38, 92;
            --chromatic-b: 117, 65, 197;
            --chromatic-c: 245, 216, 150;
            --glass-blur: 1px;
            --glass-saturation: 1.55;
            --glass-panel-alpha: 0.1;
            --glass-border-alpha: 0.16;
            --glass-highlight-alpha: 0.8;
            --glass-glare-alpha: 0.14;
            --environment-shift: 0px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            background: #000;
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            min-height: 100vh;
            overflow-x: hidden;
            background:
                radial-gradient(circle at 50% 120%, rgba(72, 105, 180, 0.16), transparent 34rem),
                #000;
            color: #fff;
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            letter-spacing: 0;
        }

        body.scene-mode-active {
            overflow: visible;
        }

        body.scene-mode-active.scene-page-visible {
            overflow: auto;
        }

        body.settings-open {
            overflow: auto;
        }

        body.lowest-quality {
            --lens-opacity: 0;
            --lens-user-opacity: 0;
            --glass-blur: 0px;
            --glass-saturation: 1;
            --glass-highlight-alpha: 0.35;
            --glass-glare-alpha: 0.04;
        }

        body.lowest-quality .liquid-lens {
            display: none;
        }

        body.lowest-quality .liquid-glass,
        body.lowest-quality .projection-panel,
        body.lowest-quality .about-panel {
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        body.lowest-quality #projection-video-controls,
        body.lowest-quality .scene-wash {
            display: none;
        }

        ::selection {
            background: rgba(94, 161, 255, 0.9);
            color: #fff;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: #000; }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(#5EA1FF, #61F5FF);
            border-radius: 999px;
        }

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

        .liquid-defs {
            position: fixed;
            width: 0;
            height: 0;
            pointer-events: none;
        }

        #blackhole-background,
        #scene-root,
        .scene-wash {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
        }

        #blackhole-background {
            z-index: 0;
            opacity: var(--video-opacity);
            transition: opacity 180ms linear;
            background: #000 url("../media/blackholes-poster.jpg") center / cover no-repeat;
            pointer-events: none;
        }

        #blackhole-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            filter: saturate(1.08) contrast(1.04) brightness(0.9);
            transform: scale(1.01);
        }

        .video-vignette {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 18%, rgba(0, 0, 0, 0.18) 72%, #000 100%),
                radial-gradient(circle at 50% 42%, transparent 0, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.78) 100%);
        }

        .blackhole-lens {
            position: fixed;
            left: calc(var(--lens-x) - (var(--lens-size) / 2));
            top: calc(var(--lens-y) - (var(--lens-size) / 2));
            z-index: 1;
            width: var(--lens-size);
            height: var(--lens-size);
            border-radius: var(--lens-radius);
            opacity: calc(var(--lens-opacity) * var(--lens-user-opacity));
            pointer-events: none;
            border: 0 !important;
            outline: 0;
            box-shadow: none;
            transform: rotate(var(--lens-rotation)) scale(var(--lens-scale-x), var(--lens-scale-y));
            transform-origin: 50% 50%;
            background:
                radial-gradient(circle at 50% 50%,
                    transparent 0 42%,
                    rgba(255, 255, 255, calc(var(--lens-radial-opacity) * 0.22)) calc(64% - var(--lens-edge-blur)),
                    rgba(255, 255, 255, var(--lens-radial-opacity)) 68%,
                    rgba(97, 245, 255, var(--lens-edge-blue)) 80%,
                    transparent 100%);
            -webkit-backdrop-filter: url(#liquid-glass-lens) saturate(var(--lens-saturate)) contrast(1.08);
            backdrop-filter: url(#liquid-glass-lens) saturate(var(--lens-saturate)) contrast(1.08);
            transition: opacity 100ms ease;
            will-change: left, top, opacity, border-radius, transform;
        }

        .scene-wash {
            z-index: 1;
            opacity: var(--environment-opacity);
            background:
                radial-gradient(circle at 74% 58%, rgba(97, 245, 255, 0.10), transparent 28rem),
                radial-gradient(circle at 50% 72%, rgba(88, 112, 168, 0.16), transparent 28rem),
                linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(3, 4, 8, 0.92) 28%, #020205);
            pointer-events: none;
        }

        #scene-root {
            z-index: 2;
            pointer-events: none;
        }

        body:not(.dev-mode-enabled) #scene-toggle,
        body:not(.dev-mode-enabled) #settings-toggle,
        body:not(.dev-mode-enabled) #page-editor-toggle {
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
        }

        body:not(.dev-mode-enabled) #scene-hud,
        body:not(.dev-mode-enabled) .camera-timeline-dock,
        body:not(.dev-mode-enabled) .page-editor-panel,
        body:not(.dev-mode-enabled) .page-timeline-dock {
            display: none;
        }

        body.page-editor-active .projection-panel,
        body.page-editor-active .about-panel,
        body.page-editor-active .hero-copy,
        body.page-editor-active .hero-title-fallback {
            outline: 1px dashed rgba(97, 245, 255, 0.72);
            outline-offset: 8px;
            resize: both;
        }

        body.page-editor-active #scene-hud {
            opacity: 0;
            pointer-events: none;
        }

        [data-page-element] {
            translate: var(--page-editor-x, 0px) var(--page-editor-y, 0px);
            opacity: var(--page-editor-opacity, 1);
        }

        .scene-wash {
            z-index: 1;
            transform: translateY(var(--environment-shift));
            transition: transform 80ms linear;
        }

        #scene-root canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        body.scene-mode-active #scene-root {
            z-index: 40;
            pointer-events: auto;
        }

        body.scene-mode-active.scene-page-visible #scene-root {
            pointer-events: none;
        }

        body.scene-mode-active #blackhole-background {
            opacity: 0.12;
        }

        body.scene-mode-active .scene-wash {
            opacity: 0.94;
        }

        body.scene-mode-active .site-shell,
        body.scene-mode-active .site-nav,
        body.scene-mode-active #scene-toggle,
        body.scene-mode-active #settings-toggle,
        body.scene-mode-active #page-editor-toggle,
        body.scene-mode-active .blackhole-lens {
            opacity: 0;
            pointer-events: none;
        }

        body.scene-mode-active.scene-page-visible .site-shell,
        body.scene-mode-active.scene-page-visible .site-nav {
            opacity: 1;
            pointer-events: auto;
        }

        body.scene-mode-active.scene-layout-preview .site-shell,
        body.scene-mode-active.scene-layout-preview .site-nav {
            opacity: 0.82;
            pointer-events: none;
        }

        body.scene-mode-active.scene-layout-preview .site-shell {
            position: relative;
            z-index: 64;
        }

        body.scene-mode-active.scene-layout-preview .site-nav {
            z-index: 65;
        }

        body.settings-open:not(.scene-mode-active) #scene-root {
            pointer-events: none;
        }

        .liquid-glass {
            position: relative;
            isolation: isolate;
            border: 1px solid rgba(255, 255, 255, var(--glass-border-alpha));
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
                rgba(8, 12, 20, var(--glass-panel-alpha));
            -webkit-backdrop-filter: url(#liquid-glass-panel) blur(var(--glass-blur)) saturate(var(--glass-saturation));
            backdrop-filter: url(#liquid-glass-panel) blur(var(--glass-blur)) saturate(var(--glass-saturation));
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.26),
                inset 0 -24px 45px rgba(255, 255, 255, 0.035),
                0 24px 80px rgba(0, 0, 0, 0.42);
        }

        .liquid-glass::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: inherit;
            background:
                radial-gradient(circle at var(--x, 24%) var(--y, 18%), rgba(255, 255, 255, 0.2), transparent 22%),
                linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(97, 245, 255, 0.08));
            opacity: calc(var(--glass-highlight-alpha) * var(--glass-glare-alpha));
            pointer-events: none;
        }

        .liquid-glass::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            box-shadow:
                inset 1px 1px 0 rgba(255, 255, 255, 0.24),
                inset -1px -1px 0 rgba(97, 245, 255, 0.08);
        }

        body.chromatic-glass .liquid-glass {
            border-color: rgba(231, 243, 255, calc(var(--glass-border-alpha) + 0.11));
            background:
                radial-gradient(circle at 10% 10%, rgba(var(--chromatic-a), 0.18), transparent 28%),
                radial-gradient(circle at 88% 8%, rgba(var(--chromatic-b), 0.16), transparent 25%),
                radial-gradient(circle at 56% 110%, rgba(var(--chromatic-c), 0.12), transparent 34%),
                linear-gradient(138deg, rgba(255, 255, 255, 0.21), rgba(10, 12, 22, var(--glass-panel-alpha)) 42%, rgba(255, 255, 255, 0.06));
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.36),
                inset 0 -22px 56px rgba(var(--chromatic-a), 0.06),
                0 18px 58px rgba(0, 0, 0, 0.48),
                0 0 22px rgba(var(--chromatic-b), 0.08);
        }

        body.chromatic-glass .liquid-glass::before {
            background:
                radial-gradient(circle at var(--x, 26%) var(--y, 16%), rgba(255, 255, 255, 0.34), transparent 19%),
                conic-gradient(from 118deg at 58% 42%,
                    transparent 0 10%,
                    rgba(var(--chromatic-a), 0.28) 18%,
                    transparent 29%,
                    rgba(var(--chromatic-b), 0.24) 40%,
                    transparent 51%,
                    rgba(var(--chromatic-c), 0.2) 61%,
                    transparent 77%,
                    rgba(var(--chromatic-a), 0.22) 88%,
                    transparent 100%),
                linear-gradient(126deg, rgba(255, 255, 255, 0.24), transparent 31%, rgba(var(--chromatic-c), 0.1));
            mix-blend-mode: screen;
            opacity: calc(var(--glass-highlight-alpha) * var(--glass-glare-alpha) * 1.15);
        }

        body.chromatic-glass .liquid-glass::after {
            box-shadow:
                inset 1px 1px 0 rgba(255, 255, 255, 0.42),
                inset -1px 0 0 rgba(var(--chromatic-a), 0.28),
                inset 0 -1px 0 rgba(var(--chromatic-b), 0.2);
        }

        body.chromatic-glass .projection-panel:not(.glass-plane-enabled) {
            border-color: transparent;
            background: transparent;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            box-shadow: none;
        }

        body.chromatic-glass .projection-panel:not(.glass-plane-enabled)::before,
        body.chromatic-glass .projection-panel:not(.glass-plane-enabled)::after {
            display: none;
        }

        @supports not ((backdrop-filter: url(#liquid-glass-panel)) or (-webkit-backdrop-filter: url(#liquid-glass-panel))) {
            .liquid-glass {
                -webkit-backdrop-filter: blur(18px) saturate(1.55);
                backdrop-filter: blur(18px) saturate(1.55);
            }
        }

        .site-nav,
        .site-shell,
        #scene-toggle,
        #scene-hud {
            transition: opacity 180ms ease, transform 180ms ease;
        }

        .site-nav {
            opacity: var(--nav-opacity);
            background: transparent;
        }

        body.nav-hidden .site-nav {
            visibility: hidden;
            pointer-events: none;
        }

        .nav-inner {
            min-height: 72px;
            border-radius: 14px;
        }

        .nav-link {
            color: rgba(255, 255, 255, 0.62);
            transition: color 180ms ease;
        }

        .nav-link:hover {
            color: #fff;
        }

        #scene-toggle {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 30;
            min-height: 42px;
            padding: 0 12px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 12px;
            font-weight: 750;
            letter-spacing: 0;
        }

        #settings-toggle,
        #page-editor-toggle {
            position: fixed;
            right: 18px;
            z-index: 30;
            min-height: 38px;
            padding: 0 11px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.86);
            font-size: 12px;
            font-weight: 780;
            letter-spacing: 0;
        }

        #settings-toggle {
            bottom: 68px;
        }

        #page-editor-toggle {
            bottom: 114px;
        }

        kbd {
            min-width: 21px;
            padding: 2px 6px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            font: 800 11px/1 'Plus Jakarta Sans', sans-serif;
        }

        #scene-hud {
            position: fixed;
            top: 14px;
            right: 14px;
            bottom: 14px;
            z-index: 70;
            width: min(430px, calc(100vw - 28px));
            padding: 14px;
            border-radius: 12px;
            opacity: 0;
            overflow: auto;
            pointer-events: none;
            transform: translateX(12px);
        }

        .hud-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-top: 12px;
        }

        .hud-tab-panel {
            display: none;
        }

        .hud-tab-panel.active {
            display: block;
        }

        body.scene-mode-active #scene-hud,
        body.settings-open #scene-hud {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
        }

        .page-editor-panel {
            position: fixed;
            top: 92px;
            right: 18px;
            z-index: 55;
            width: min(420px, calc(100vw - 28px));
            max-height: calc(100vh - 126px);
            overflow: auto;
            padding: 16px;
            border-radius: 16px;
            opacity: 0;
            pointer-events: none;
            transform: translateX(18px);
            transition: opacity 180ms ease, transform 180ms ease;
        }

        body.page-editor-active .page-editor-panel {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
        }

        .scene-hud-header {
            position: sticky;
            top: -14px;
            z-index: 4;
            margin: -14px -14px 0;
            padding: 14px;
            border-radius: 12px 12px 8px 8px;
            background: linear-gradient(180deg, rgba(18, 24, 32, 0.9), rgba(18, 24, 32, 0.54));
            -webkit-backdrop-filter: blur(16px) saturate(1.35);
            backdrop-filter: blur(16px) saturate(1.35);
        }

        .scene-hud-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .scene-hud-row.two {
            grid-template-columns: repeat(2, 1fr);
        }

        .hud-button,
        .hud-file,
        .hud-select,
        .hud-input {
            min-height: 36px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 9px;
            background: rgba(255, 255, 255, 0.065);
            color: rgba(255, 255, 255, 0.84);
            font-size: 12px;
            font-weight: 760;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
            cursor: pointer;
        }

        .hud-input,
        .hud-select {
            width: 100%;
            justify-content: flex-start;
            padding-inline: 10px;
            font-weight: 650;
            outline: none;
        }

        .hud-select option,
        .hud-select optgroup {
            background: #09111d;
            color: rgba(255, 255, 255, 0.9);
        }

        textarea.hud-input {
            min-height: 88px;
            resize: vertical;
            line-height: 1.45;
            padding-block: 9px;
            display: block;
        }

        .hud-button:hover,
        .hud-file:hover,
        .hud-button.active {
            background: rgba(97, 245, 255, 0.14);
            border-color: rgba(97, 245, 255, 0.46);
            color: #fff;
        }

        .danger:hover {
            background: rgba(248, 113, 113, 0.18);
            border-color: rgba(248, 113, 113, 0.55);
        }

        #model-file,
        #scene-load-file,
        #camera-load-file,
        #setting-load-file,
        #page-import-config-file {
            display: none;
        }

        .hud-section {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .hud-collapse > summary {
            min-height: 34px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            color: rgba(255, 255, 255, 0.72);
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            cursor: pointer;
            list-style: none;
        }

        .hud-collapse > summary::-webkit-details-marker {
            display: none;
        }

        .hud-details {
            margin-top: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.035);
            overflow: hidden;
        }

        .hud-details > summary {
            min-height: 38px;
            padding: 0 11px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: rgba(255, 255, 255, 0.78);
            font-size: 12px;
            font-weight: 850;
            cursor: pointer;
            list-style: none;
        }

        .hud-details > summary::-webkit-details-marker {
            display: none;
        }

        .settings-reset-mini {
            width: 24px;
            height: 24px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.62);
            background: rgba(255, 255, 255, 0.05);
        }

        .settings-reset-mini:hover {
            color: #fff;
            border-color: rgba(97, 245, 255, 0.4);
            background: rgba(97, 245, 255, 0.12);
        }

        .settings-grid {
            display: grid;
            grid-template-columns: minmax(104px, 0.8fr) minmax(0, 1.2fr) 48px;
            gap: 8px;
            align-items: center;
            padding: 0 11px 11px;
        }

        .settings-grid label {
            color: rgba(255, 255, 255, 0.56);
            font-size: 11px;
            font-weight: 760;
        }

        .setting-value {
            color: rgba(255, 255, 255, 0.52);
            font-size: 11px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        .setting-help {
            color: rgba(255, 255, 255, 0.62);
            font-size: 11px;
            line-height: 1.35;
        }

        .page-editor-textarea {
            min-height: 138px;
            resize: vertical;
        }

        .paired-inputs {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 6px;
            min-width: 0;
        }

        .paired-inputs .hud-input {
            width: 100%;
            min-width: 0;
        }

        .page-editor-frame {
            position: fixed;
            z-index: 70;
            border: 1px dashed rgba(97, 245, 255, 0.86);
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 0 22px rgba(97, 245, 255, 0.16);
            pointer-events: none;
            border-radius: 10px;
        }

        .page-editor-frame.active {
            border-style: solid;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 26px rgba(97, 245, 255, 0.32);
        }

        .page-editor-frame-label {
            position: absolute;
            left: 0;
            top: -26px;
            padding: 4px 7px;
            border-radius: 8px;
            background: rgba(5, 9, 14, 0.92);
            color: rgba(178, 244, 255, 0.95);
            font-size: 10px;
            font-weight: 850;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .page-editor-move {
            position: absolute;
            inset: 0;
            cursor: move;
            pointer-events: auto;
            touch-action: none;
        }

        .page-editor-handle {
            position: absolute;
            width: 12px;
            height: 12px;
            border-radius: 999px;
            background: rgba(97, 245, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.84);
            pointer-events: auto;
            touch-action: none;
        }

        .page-editor-handle.nw { left: -6px; top: -6px; cursor: nwse-resize; }
        .page-editor-handle.ne { right: -6px; top: -6px; cursor: nesw-resize; }
        .page-editor-handle.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
        .page-editor-handle.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
        .page-editor-handle.n { left: 50%; top: -6px; transform: translateX(-50%); cursor: ns-resize; }
        .page-editor-handle.s { left: 50%; bottom: -6px; transform: translateX(-50%); cursor: ns-resize; }
        .page-editor-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
        .page-editor-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }

        .keybind-list {
            display: grid;
            grid-template-columns: 96px 1fr;
            gap: 8px 10px;
            padding: 0 11px 12px;
            font-size: 11px;
            line-height: 1.35;
        }

        .keybind-list span {
            color: rgba(97, 245, 255, 0.78);
            font-weight: 850;
            letter-spacing: 0.03em;
        }

        .keybind-list b {
            color: rgba(255, 255, 255, 0.62);
            font-weight: 700;
        }

        .hud-range {
            width: 100%;
            accent-color: #61f5ff;
        }

        .hud-color {
            width: 100%;
            min-height: 32px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
        }

        .object-list {
            display: grid;
            gap: 6px;
            max-height: 165px;
            overflow: auto;
        }

        .object-item {
            min-height: 34px;
            padding: 0 9px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.09);
            background: rgba(255, 255, 255, 0.045);
            color: rgba(255, 255, 255, 0.72);
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            text-align: left;
        }

        .object-item.active {
            border-color: rgba(97, 245, 255, 0.46);
            background: rgba(97, 245, 255, 0.12);
            color: #fff;
        }

        .object-item.multi {
            border-color: rgba(255, 216, 138, 0.48);
        }

        .object-select {
            min-width: 0;
            display: grid;
            gap: 2px;
            border: 0;
            background: transparent;
            padding: 0;
            font: inherit;
            color: inherit;
            text-align: left;
            cursor: pointer;
        }

        .object-select span:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .object-select span:last-child {
            color: rgba(255, 255, 255, 0.42);
            font-size: 10px;
        }

        .object-mini {
            width: 25px;
            height: 25px;
            border-radius: 7px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.62);
            cursor: pointer;
        }

        .object-mini.active {
            color: #fff;
            border-color: rgba(97, 245, 255, 0.44);
            background: rgba(97, 245, 255, 0.13);
        }

        .inspector-grid {
            display: grid;
            grid-template-columns: 38px repeat(3, 1fr);
            gap: 6px;
            align-items: center;
        }

        .inspector-grid span {
            color: rgba(255, 255, 255, 0.54);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        #scene-status {
            min-height: 34px;
            margin-top: 10px;
            padding: 9px 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 9px;
            background: rgba(255, 255, 255, 0.045);
            color: rgba(255, 255, 255, 0.68);
            font-size: 12px;
            line-height: 1.35;
        }

        .hero {
            min-height: 100svh;
            display: grid;
            align-items: end;
            padding-top: 7rem;
            padding-bottom: clamp(3rem, 9vh, 6.5rem);
        }

        .hero-copy {
            max-width: 760px;
            margin-inline: auto;
        }

        .hero-title-fallback {
            position: fixed;
            left: 50%;
            top: 29svh;
            z-index: 3;
            display: none;
            width: min(820px, 86vw);
            transform: translateX(-50%);
            color: rgba(240, 248, 255, 0.56);
            font-family: 'Playfair Display', serif;
            font-size: clamp(4rem, 12vw, 9rem);
            font-weight: 650;
            line-height: 0.9;
            text-align: center;
            text-shadow:
                0 0 28px rgba(210, 230, 255, 0.2),
                0 16px 42px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            transition: opacity 600ms ease;
        }

        body.title-loaded .hero-title-fallback {
            opacity: 0;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 34px;
            padding: 0 13px;
            border-radius: 10px;
            color: rgba(178, 244, 255, 0.94);
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .scroll-cue {
            width: 38px;
            height: 56px;
            margin-inline: auto;
            border-radius: 999px;
            display: grid;
            place-items: start center;
            padding-top: 9px;
            color: rgba(255, 255, 255, 0.72);
        }

        .scroll-cue span {
            width: 5px;
            height: 10px;
            border-radius: 99px;
            background: currentColor;
            animation: scroll-dot 1.8s ease-in-out infinite;
        }

        @keyframes scroll-dot {
            0% { transform: translateY(0); opacity: 0.3; }
            45% { opacity: 1; }
            100% { transform: translateY(21px); opacity: 0; }
        }

        .projection-story {
            position: relative;
            z-index: 10;
            min-height: 880vh;
            padding: 0 1.25rem 120vh;
        }

        .projection-sticky {
            position: sticky;
            top: 0;
            min-height: 100svh;
            display: flex;
            align-items: center;
            pointer-events: none;
        }

        .projection-copy-shell {
            width: min(500px, 92vw);
            margin-left: max(1rem, calc((100vw - 1280px) / 2 + 1.5rem));
            transform: translateY(1.5vh) perspective(960px) rotateY(var(--project-text-rotate-y));
            transform-origin: left center;
            pointer-events: auto;
        }

        .projection-panel {
            grid-area: 1 / 1;
            display: grid;
            align-self: center;
            gap: var(--project-text-gap);
            padding: clamp(1.25rem, 3vw, 2rem);
            border-radius: 14px;
            opacity: var(--panel-opacity, 0);
            transform:
                perspective(900px)
                translateY(var(--panel-y, 18px))
                rotateX(var(--card-tilt-x, 0deg))
                rotateY(var(--card-tilt-y, 0deg));
            transform-style: preserve-3d;
            transition: opacity 260ms ease, transform 260ms ease;
            max-height: calc(100svh - 7rem);
            overflow: hidden;
            pointer-events: none;
            user-select: none;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.18),
                inset 0 -12px 28px rgba(255, 255, 255, 0.035),
                0 18px 42px rgba(0, 0, 0, 0.22);
        }

        .projection-panel.glass-plane-enabled {
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
                rgba(8, 12, 20, calc(var(--glass-panel-alpha) * 0.82));
            box-shadow:
                inset 1px 1px 0 rgba(255, 255, 255, 0.28),
                inset -1px -1px 0 rgba(var(--chromatic-a), 0.1),
                0 18px 50px rgba(0, 0, 0, 0.35);
        }

        .projection-panel.glass-plane-enabled::after {
            transform: translateZ(-10px);
            box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
        }

        .projection-panel:not(.glass-plane-enabled) {
            border-color: transparent;
            background: transparent;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            box-shadow: none;
        }

        .projection-panel:not(.glass-plane-enabled) .project-link,
        .projection-panel:not(.glass-plane-enabled) .liquid-action {
            box-shadow: none;
        }

        .projection-panel:not(.glass-plane-enabled)::before,
        .projection-panel:not(.glass-plane-enabled)::after {
            display: none;
        }

        .projection-panel.active {
            pointer-events: auto;
        }

        .projection-panel-wrap {
            position: relative;
            display: grid;
        }

        .project-kicker {
            color: rgba(97, 245, 255, 0.86);
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .project-title {
            font-family: 'Playfair Display', serif;
            font-size: var(--project-title-size);
            font-weight: 650;
            line-height: 0.95;
            letter-spacing: 0;
            transform: translateZ(34px);
            color: rgba(240, 248, 255, 0.9);
            -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
            text-shadow:
                0 1px 0 rgba(255, 255, 255, 0.38),
                0 13px 24px rgba(0, 0, 0, 0.42),
                0 18px 32px rgba(97, 245, 255, 0.09),
                0 0 30px rgba(255, 255, 255, 0.14);
        }

        .project-copy {
            color: rgba(255, 255, 255, 0.66);
            font-size: var(--project-body-size);
            line-height: 1.82;
            transform: translateZ(20px);
            text-shadow: 0 9px 20px rgba(0, 0, 0, 0.38);
        }

        .projection-panel.glass-plane-enabled .project-kicker,
        .projection-panel.glass-plane-enabled .liquid-action {
            transform: translateZ(24px);
        }

        .projection-panel .liquid-action {
            transform: translateZ(0);
        }

        .projection-panel.glass-plane-enabled .liquid-action {
            transform: translateZ(58px);
            box-shadow:
                inset 1px 1px 0 rgba(255, 255, 255, 0.32),
                inset 0 -12px 26px rgba(255, 255, 255, 0.06),
                0 16px 36px rgba(0, 0, 0, 0.32);
        }

        .liquid-action.instagram-action {
            border-color: rgba(221, 74, 255, 0.38);
            background:
                radial-gradient(circle at 18% 12%, rgba(255, 214, 80, 0.24), transparent 30%),
                radial-gradient(circle at 82% 16%, rgba(225, 48, 108, 0.22), transparent 30%),
                linear-gradient(135deg, rgba(64, 93, 230, 0.22), rgba(131, 58, 180, 0.18), rgba(253, 29, 29, 0.12));
            color: #fff;
        }

        .project-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            align-self: start;
        }

        .projection-panel > .liquid-action,
        .project-actions .liquid-action {
            width: fit-content;
            min-width: 0;
            min-height: 48px;
            height: 48px;
            align-self: start;
            padding-inline: 18px;
            line-height: 1;
            font-size: 13px;
        }

        .liquid-action.icon-action {
            width: 48px;
            min-width: 48px;
            justify-content: center;
            padding-inline: 0;
            gap: 0;
        }

        .liquid-action.icon-action .ph-hourglass-high {
            font-size: 20px;
            margin-inline: 0;
        }

        .hourglass-flip-action {
            aspect-ratio: 1;
        }

        .project-actions .liquid-action.icon-action {
            width: 48px;
            min-width: 48px;
            height: 48px;
        }

        .liquid-action {
            width: max-content;
            min-height: 42px;
            padding: 0 14px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #fff;
            font-size: 12px;
            font-weight: 850;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .content-band {
            position: relative;
            z-index: 10;
            padding: clamp(4rem, 12vh, 8rem) 1.25rem;
        }

        .projection-video-controls {
            position: fixed;
            inset: 0;
            z-index: 22;
            pointer-events: none;
            opacity: 0;
            transition: opacity 180ms ease;
        }

        .projection-video-controls.visible {
            opacity: 1;
        }

        .projection-video-button {
            position: absolute;
            top: var(--screen-control-y);
            transform: translate(-50%, -50%);
            width: 42px;
            height: 42px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(12, 18, 28, 0.44);
            color: #fff;
            -webkit-backdrop-filter: blur(16px) saturate(1.5);
            backdrop-filter: blur(16px) saturate(1.5);
            display: grid;
            place-items: center;
            pointer-events: auto;
            cursor: pointer;
        }

        .projection-video-button.prev {
            left: calc(var(--screen-control-x) - var(--screen-control-gap));
        }

        .projection-video-button.next {
            left: calc(var(--screen-control-x) + var(--screen-control-gap));
            right: auto;
        }

        .projection-video-button.audio {
            left: calc(var(--screen-control-x) - 28px);
            top: calc(var(--screen-control-y) + var(--screen-control-gap) * 0.78);
        }

        .projection-video-button.pause {
            left: calc(var(--screen-control-x) + 28px);
            top: calc(var(--screen-control-y) + var(--screen-control-gap) * 0.78);
        }

        .about-scroll-band {
            position: relative;
            min-height: 268svh;
            margin-top: -100svh;
            padding: 0;
            overflow: clip;
            isolation: isolate;
        }

        .about-background-video {
            position: sticky;
            top: 0;
            z-index: -2;
            width: 100%;
            height: 100svh;
            object-fit: cover;
            opacity: var(--about-video-opacity);
            filter: saturate(1.25) contrast(1.05);
            pointer-events: none;
        }

        .about-scroll-band::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            background:
                radial-gradient(circle at 50% 42%, rgba(31, 48, 118, 0.08), transparent 46%),
                linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.58) 18%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.16) 100%);
            pointer-events: none;
        }

        .about-scroll-copy {
            position: relative;
            min-height: 220svh;
            margin-top: 0;
            display: grid;
            align-content: start;
            gap: 32svh;
            padding: 28svh max(1.25rem, 5vw) clamp(30svh, 24vw, 42svh);
        }

        .about-panel {
            width: min(680px, 92vw);
            height: auto;
            min-height: 0;
            padding: clamp(1.1rem, 3vw, 2rem);
            border-radius: 14px;
            color: rgba(255, 255, 255, 0.72);
            font-size: clamp(0.95rem, 1.3vw, 1.08rem);
            line-height: 1.78;
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
                rgba(8, 12, 20, calc(var(--glass-panel-alpha) * 0.84));
            user-select: none;
        }

        .about-panel[data-about-panel="0"] {
            opacity: var(--about-panel-0-opacity);
            transform: translateY(var(--about-panel-0-y)) rotateY(var(--project-text-rotate-y));
        }

        .about-panel[data-about-panel="1"] {
            margin-left: auto;
            opacity: var(--about-panel-1-opacity);
            transform: translateY(var(--about-panel-1-y)) rotateY(calc(var(--project-text-rotate-y) * -0.45));
        }

        .about-panel[data-about-panel="2"] {
            opacity: var(--about-panel-2-opacity);
            transform: translateY(var(--about-panel-2-y)) rotateY(var(--project-text-rotate-y));
        }

        .camera-timeline-dock {
            position: fixed;
            left: 50%;
            bottom: 16px;
            z-index: 68;
            width: min(860px, calc(100vw - 32px));
            min-height: 78px;
            padding: 10px 12px;
            border-radius: 12px;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 18px);
            transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease;
            overflow: hidden;
            max-height: 82px;
        }

        body.scene-mode-active .camera-timeline-dock,
        body.settings-open .camera-timeline-dock {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, 0);
        }

        .camera-timeline-dock.expanded {
            max-height: 188px;
        }

        .page-timeline-dock {
            z-index: 66;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 16px);
            display: none;
        }

        body.page-editor-active .page-timeline-dock {
            display: block;
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, 0);
        }

        .timeline-track {
            position: relative;
            height: 24px;
            margin-top: 9px;
            border-radius: 999px;
            cursor: pointer;
            background:
                linear-gradient(90deg,
                    rgba(20, 38, 92, 0.28) 0 18%,
                    rgba(23, 34, 79, 0.28) 18% 34%,
                    rgba(159, 7, 24, 0.24) 34% 50%,
                    rgba(219, 131, 31, 0.24) 50% 66%,
                    rgba(216, 178, 99, 0.22) 66% 82%,
                    rgba(97, 245, 255, 0.18) 82% 92%,
                    rgba(117, 65, 197, 0.22) 92% 100%),
                rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .timeline-marker {
            position: absolute;
            top: 50%;
            width: 12px;
            height: 12px;
            border-radius: 999px;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(255, 255, 255, 0.74);
            background: rgba(97, 245, 255, 0.82);
            box-shadow: 0 0 18px rgba(97, 245, 255, 0.56);
            cursor: grab;
            touch-action: none;
            z-index: 3;
        }

        .timeline-marker:active,
        .page-timeline-chip:active,
        .timeline-playhead:active {
            cursor: grabbing;
        }

        .timeline-playhead {
            position: absolute;
            top: 0;
            bottom: 0;
            left: calc(var(--timeline-progress, 0) * 100%);
            width: 2px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 0 14px rgba(255, 255, 255, 0.48);
            cursor: ew-resize;
            touch-action: none;
            z-index: 4;
        }

        .page-timeline-track .timeline-playhead {
            left: calc(var(--page-timeline-progress, 0) * 100%);
        }

        .timeline-playhead::before {
            content: "";
            position: absolute;
            left: 50%;
            top: -8px;
            width: 15px;
            height: 9px;
            transform: translateX(-50%);
            border-radius: 7px 7px 4px 4px;
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
        }

        .timeline-playhead::after {
            content: "";
            position: absolute;
            inset: -10px -11px -8px;
        }

        .timeline-section {
            position: absolute;
            top: 2px;
            bottom: 2px;
            border-radius: 999px;
            opacity: 0.44;
            pointer-events: none;
        }

        .page-timeline-chip {
            position: absolute;
            top: 50%;
            width: 20px;
            min-width: 20px;
            height: 20px;
            padding: 0;
            border-radius: 999px;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(255, 255, 255, 0.5);
            background: var(--chip-color, rgba(5, 9, 14, 0.82));
            color: rgba(255, 255, 255, 0.82);
            font-size: 9px;
            font-weight: 850;
            text-transform: uppercase;
            cursor: grab;
            touch-action: none;
            text-align: center;
            line-height: 18px;
            z-index: 3;
            box-shadow: 0 0 14px color-mix(in srgb, var(--chip-color, rgba(97, 245, 255, 0.7)) 60%, transparent);
        }

        .page-timeline-chip.active {
            color: #fff;
            border-color: rgba(97, 245, 255, 0.9);
            box-shadow: 0 0 18px rgba(97, 245, 255, 0.4);
        }

        .perf-overlay {
            position: fixed;
            top: 88px;
            left: 14px;
            z-index: 80;
            min-width: 172px;
            padding: 11px 12px;
            border-radius: 14px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-8px);
            transition: opacity 160ms ease, transform 160ms ease;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.68);
        }

        body.perf-overlay-active .perf-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .perf-overlay div {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            align-items: baseline;
            margin-top: 3px;
        }

        .perf-overlay b {
            color: #fff;
            font-variant-numeric: tabular-nums;
        }

        .heart-burst {
            position: fixed;
            left: 50%;
            top: 50%;
            z-index: 23;
            color: rgba(255, 128, 190, 0.96);
            font-size: 52px;
            text-shadow: 0 0 28px rgba(255, 128, 190, 0.68);
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -50%) scale(0.7);
        }

        .heart-burst.active {
            animation: heart-pop 760ms ease both;
        }

        @keyframes heart-pop {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
            24% { opacity: 1; transform: translate(-50%, -54%) scale(1.05); }
            100% { opacity: 0; transform: translate(-50%, -74%) scale(1.35); }
        }

        .section-kicker {
            color: rgba(97, 245, 255, 0.82);
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .reveal {
            opacity: 0;
            transform: translateY(32px);
            transition: opacity 760ms ease, transform 760ms ease;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .about-rule {
            height: 1px;
            width: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
        }

        @media (max-width: 768px) {
            .nav-inner {
                border-radius: 16px;
            }

            #scene-hud {
                left: 10px;
                right: 10px;
                top: 10px;
                bottom: 10px;
                width: auto;
            }

            .projection-sticky {
                align-items: end;
                padding-bottom: 5.5rem;
            }

            .projection-copy-shell {
                margin-inline: auto;
                transform: translateY(0) perspective(900px) rotateY(var(--project-text-rotate-y));
                transform-origin: center center;
            }

            .project-title {
                font-size: var(--project-title-size);
                text-shadow:
                    0 0 12px rgba(var(--project-title-glow, 97, 245, 255), 0.72),
                    0 0 28px rgba(var(--project-title-glow, 97, 245, 255), 0.42),
                    0 10px 24px rgba(0, 0, 0, 0.68);
            }

            .projection-panel {
                gap: var(--project-text-gap);
                padding: 1rem;
                max-height: calc(100svh - 5.5rem);
                transform: translateY(var(--panel-y, 18px));
                border-color: transparent !important;
                background: transparent !important;
                -webkit-backdrop-filter: none !important;
                backdrop-filter: none !important;
                box-shadow: none !important;
            }

            .projection-panel::before,
            .projection-panel::after {
                display: none !important;
            }

            .projection-panel .liquid-action {
                transform: none !important;
                box-shadow:
                    inset 1px 1px 0 rgba(255, 255, 255, 0.32),
                    inset 0 -12px 26px rgba(255, 255, 255, 0.06),
                    0 16px 36px rgba(0, 0, 0, 0.32);
            }

            .project-copy {
                line-height: 1.55;
                color: rgba(255, 255, 255, 0.92);
                text-shadow: 0 4px 14px rgba(0, 0, 0, 0.92);
            }

            .about-panel {
                width: min(92vw, 680px);
                color: rgba(255, 255, 255, 0.92);
                text-shadow: 0 4px 14px rgba(0, 0, 0, 0.92);
            }

            .about-scroll-copy {
                padding-inline: 0;
                min-height: 258svh;
                padding-bottom: 54svh;
            }

            .about-scroll-band {
                min-height: 318svh;
            }

            .about-background-video {
                width: 100%;
                max-width: 100%;
                margin-left: 0;
            }

            .about-panel[data-about-panel="0"],
            .about-panel[data-about-panel="2"] {
                margin-left: 0;
                border-radius: 0 14px 14px 0;
                transform: translateY(var(--about-panel-0-y));
            }

            .about-panel[data-about-panel="1"] {
                margin-left: auto;
                border-radius: 14px 0 0 14px;
                transform: translateY(var(--about-panel-1-y));
            }

            .about-panel[data-about-panel="2"] {
                transform: translateY(var(--about-panel-2-y));
            }

            .pai-orbital-footer {
                padding-top: 0 !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: 0.01ms !important;
            }
        }
