:root {
            --bg-primary: #F6F4F0;
            --bg-surface: rgba(255, 255, 255, 0.88);
            --bg-card: rgba(255, 255, 255, 0.92);
            --text-primary: #141413;
            --text-muted: #57554F;
            --accent: #FF4F00;
            --accent-text: #B33A00;
            --accent-on: #141413;
            --border-color: rgba(20, 20, 19, 0.14);
        }

        html.dark {
            --bg-primary: #0E100F;
            --bg-surface: rgba(14, 18, 22, 0.88);
            --bg-card: rgba(12, 20, 28, 0.92);
            --text-primary: #F2F4F3;
            --text-muted: #98A29D;
            --accent: #FF5E1A;
            --accent-text: #FF5E1A;
            --accent-on: #141413;
            --border-color: rgba(242, 244, 243, 0.15);
        }

        * {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        button {
            user-select: none;
            -webkit-user-select: none;
        }

        :focus-visible {
            outline: 2px solid var(--accent-text);
            outline-offset: 3px;
        }

        html, body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            overscroll-behavior: none;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .hairline-border {
            border-color: var(--border-color);
        }

        .altitude-labels {
            position: relative;
            display: block;
        }

        .altitude-labels > button {
            position: absolute;
            right: 0;
            transform: translateY(-50%);
            min-height: 28px;
            font-size: 11px;
            line-height: 1;
            white-space: nowrap;
        }

        .altitude-scrubber {
            transition: opacity 180ms ease, visibility 180ms linear;
        }

        .altitude-scrubber.is-hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        @media (max-width: 1155px) {
            #altitudeScrubber > div:first-child,
            #altitudeScrubber > div:last-child,
            #altitudeScrubber .altitude-labels {
                display: none;
            }

            #altitudeScrubber > div + div {
                margin-top: 0;
            }

            #altitudeScrubber .altitude-labels + #altitudeTrack {
                margin-left: 0;
            }
        }

        .altitude-tick {
            position: absolute;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        .strengths-mobile-copy {
            display: none;
        }

        .about-layout {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        #sceneContact .contact-links-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: stretch;
        }

        #sceneContact .contact-links-grid > a {
            justify-content: center;
            min-width: 0;
            text-align: center;
        }

        #sceneContact .contact-actions > button {
            justify-content: center;
            min-height: 44px;
        }

        .about-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        #aboutTabs {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        #aboutTabs [role="tab"] {
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 44px;
            padding: 6px 12px;
            border: 1px solid var(--border-color);
            border-radius: 999px;
            text-align: center;
            font-family: "JetBrains Mono", monospace;
            font-size: 0.75rem;
            line-height: 1.25;
            white-space: nowrap;
            transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
        }

        .about-tab-index {
            flex: 0 0 auto;
            font-family: "JetBrains Mono", monospace;
            font-size: 0.75rem;
            color: var(--accent-text);
        }

        .about-tab-label {
            min-width: 0;
        }

        .about-tab-slash {
            flex: 0 0 auto;
            color: var(--accent-text);
        }

        #aboutTabs [role="tab"][aria-selected="true"] {
            background: var(--text-primary);
            color: var(--bg-primary);
            border-color: var(--text-primary);
        }

        #aboutTabs [role="tab"][aria-selected="false"] {
            background: transparent;
            color: var(--text-muted);
        }

        #aboutTabs [role="tab"][aria-selected="false"]:hover {
            color: var(--text-primary);
            border-color: var(--accent-text);
        }

        .about-info-card {
            min-width: 0;
        }

        .about-heading {
            min-width: 0;
            max-width: 52%;
            text-align: right;
        }

        .about-heading > div {
            justify-content: flex-end;
            font-size: 0.7rem;
            line-height: 1.3;
        }

        .about-heading h2 {
            margin-top: 4px;
            font-size: clamp(1.25rem, 2.4vw, 2rem);
        }

        .apple-glass {
            background: var(--bg-surface);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
        }

        .card-surface {
            background: var(--bg-card);
            backdrop-filter: blur(16px) saturate(160%);
            -webkit-backdrop-filter: blur(16px) saturate(160%);
            box-shadow: 0 12px 32px -8px rgba(10, 18, 28, 0.08);
        }

        /* Spatial 3D Stage & Layers */
        .mobile-project-hint {
            display: none;
        }

        #spatialViewport {
            perspective: 1400px;
            transform-style: preserve-3d;
        }

        .spatial-scene {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            opacity: 0;
        }

        .spatial-scene.is-interactive {
            pointer-events: auto;
        }

        .work-card-slide {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .work-card-slide.is-active {
            pointer-events: auto;
        }

        /* 3D Curved Spatial Gallery / Cylindrical Coverflow Carousel (Reference Aesthetic) */
        .spatial-gallery-stage {
            perspective: 1400px;
            transform-style: preserve-3d;
            position: relative;
            width: 100%;
            height: 455px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
            touch-action: none;
        }

        #sceneProjects .max-w-6xl > div:first-child {
            position: relative;
            z-index: 300;
        }

        .spatial-gallery-ring {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .project-3d-slot {
            position: absolute;
            width: 268px;
            height: 396px;
            transform-style: preserve-3d;
        }

        @media (min-width: 640px) {
            .project-3d-slot {
                width: 288px;
                height: 416px;
            }
        }

        .project-carousel-card {
            width: 100%;
            height: 100%;
            border-radius: 26px;
            overflow: hidden;
            transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
                        box-shadow 0.46s cubic-bezier(0.22, 1, 0.36, 1),
                        border-color 0.32s ease,
                        opacity 0.35s ease,
                        filter 0.35s ease;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .project-preview-video {
            background: #05070B;
        }

        #modalProjectMedia video {
            object-fit: contain;
        }

        /* When any card in the 3D gallery is hovered, gently dim non-hovered sibling cards */
        .carousel-has-hover .project-3d-slot:not(.is-hovered-slot) .project-carousel-card {
            opacity: 0.52 !important;
            filter: brightness(0.84) saturate(0.85);
        }

        /* Enlarged, highlighted & Z-boosted hovered 3D card state */
        .project-carousel-card.is-hovered-card {
            opacity: 1 !important;
            border-color: var(--accent) !important;
            box-shadow: 0 34px 75px -12px rgba(255, 79, 0, 0.38),
                        0 0 0 2px var(--accent),
                        0 0 42px -4px rgba(255, 115, 40, 0.35) !important;
        }

        html.dark .project-carousel-card.is-hovered-card {
            box-shadow: 0 36px 80px -12px rgba(255, 107, 43, 0.45),
                        0 0 0 2px var(--accent),
                        0 0 48px -4px rgba(255, 107, 43, 0.4) !important;
        }

        #altitudeTrack {
            min-width: 44px;
        }

        #altitudeTrack:focus-visible {
            outline-color: var(--accent-text);
        }

        #altitudeThumb {
            position: absolute;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
            transition: box-shadow 180ms ease;
        }

        #altitudeThumb::before {
            position: absolute;
            top: 50%;
            left: 50%;
            width: calc(100% + 28px);
            height: 8px;
            border-radius: 9999px;
            background: var(--accent);
            content: "";
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -50%) scaleX(0.32);
            transition: opacity 140ms ease,
                        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        #altitudeTrack:hover #altitudeThumb,
        #altitudeTrack:focus-visible #altitudeThumb {
            box-shadow: 0 0 12px var(--accent);
        }

        #altitudeTrack:hover #altitudeThumb::before,
        #altitudeTrack:focus-visible #altitudeThumb::before {
            opacity: 1;
            transform: translate(-50%, -50%) scaleX(1);
        }

        #altitudeTrack:active #altitudeThumb {
            box-shadow: 0 0 14px var(--accent);
        }

        #altitudeTrack:active #altitudeThumb::before {
            transform: translate(-50%, -50%) scaleX(0.94);
        }

        @media (prefers-reduced-motion: reduce) {
            #altitudeThumb,
            #altitudeThumb::before {
                transition: none;
            }
        }

        #projectModal > div {
            max-height: calc(100dvh - 2rem);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            overscroll-behavior: contain;
        }

        .project-modal-panel {
            border-top: 2px solid var(--accent);
            background-image: radial-gradient(ellipse at 92% 0%, rgba(255, 115, 45, 0.1), transparent 38%);
        }

        .project-modal-content {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .project-modal-content::-webkit-scrollbar {
            display: none;
        }

        .project-modal-header > div {
            flex: 1 1 auto;
            min-width: 0;
        }

        .project-modal-header,
        .project-modal-actions {
            flex: 0 0 auto;
        }

        .project-modal-actions {
            padding-top: 14px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-primary);
        }

        .project-modal-actions #modalProjectLinks {
            gap: 8px;
        }

        .project-modal-actions .project-modal-link {
            flex: 1 1 auto;
        }

        .project-modal-artwork {
            isolation: isolate;
            background: var(--bg-card);
        }

        .project-modal-artwork::after {
            position: absolute;
            z-index: 1;
            inset: 35% 0 0;
            background: linear-gradient(180deg, transparent, rgba(8, 12, 16, 0.52));
            content: "";
            pointer-events: none;
        }

        .project-modal-art-label {
            max-width: calc(100% - 1.5rem);
            overflow: hidden;
            background: rgba(8, 12, 16, 0.72);
            text-overflow: ellipsis;
            white-space: nowrap;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .project-modal-intro {
            padding-left: 14px;
            border-left: 2px solid var(--accent);
        }

        .project-modal-build {
            padding: 16px;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            background: var(--bg-surface);
        }

        .project-modal-details {
            display: grid;
            gap: 10px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .project-modal-details li {
            position: relative;
            padding-left: 18px;
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.55;
        }

        .project-modal-details li::before {
            position: absolute;
            top: 0.62em;
            left: 1px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            content: "";
        }

        .project-modal-tags {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }

        .project-modal-tags span {
            padding: 5px 9px;
            color: var(--text-muted);
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: 9999px;
            font-size: 11px;
            line-height: 1.4;
        }

        .project-modal-tag-extra {
            display: contents;
        }

        .project-modal-tag-extra[hidden] {
            display: none;
        }

        .project-modal-tag-toggle {
            padding: 5px 11px;
            color: var(--accent-text);
            background: var(--bg-card);
            border: 1px solid var(--accent-text);
            border-radius: 9999px;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.4;
            cursor: pointer;
            transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .project-modal-tag-toggle:hover {
            color: var(--accent-on);
            background: var(--accent);
            border-color: var(--accent);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 79, 0, 0.26);
        }

        .project-modal-tag-toggle[aria-expanded="true"] {
            color: var(--accent-on);
            background: var(--accent);
            border-color: var(--accent);
        }

        .project-modal-tag-toggle:focus-visible {
            outline: 2px solid var(--accent-text);
            outline-offset: 2px;
        }

        .project-modal-link {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.65rem 1rem;
            border: 1px solid transparent;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 600;
            transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .project-modal-link:hover {
            transform: translateY(-1px);
        }

        .project-modal-link:focus-visible {
            outline: 2px solid var(--accent-text);
            outline-offset: 3px;
        }

        .project-modal-link--demo {
            color: var(--accent-on);
            background: var(--accent);
            box-shadow: 0 6px 18px rgba(255, 79, 0, 0.2);
        }

        .project-modal-link--demo:hover {
            box-shadow: 0 9px 24px rgba(255, 79, 0, 0.3);
        }

        .project-modal-link--repo {
            color: var(--text-primary);
            background: var(--bg-surface);
            border-color: var(--text-primary);
        }

        .project-modal-link--repo:hover,
        .project-modal-link--resource:hover {
            border-color: var(--accent-text);
            background: var(--bg-card);
        }

        .project-modal-link--resource {
            color: var(--text-primary);
            background: var(--bg-surface);
            border-color: var(--border-color);
            font-weight: 500;
        }

        @keyframes top-nav-arrive {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #topNavigation > button,
        #topNavigation > nav,
        #topNavigation > div {
            animation: top-nav-arrive 560ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
        }

        #topNavigation > nav {
            animation-delay: 70ms;
        }

        #topNavigation > nav {
            position: relative;
            isolation: isolate;
        }

        .nav-scene-indicator {
            position: absolute;
            z-index: 0;
            top: 0;
            left: 0;
            width: 0;
            height: 0;
            border-radius: 9999px;
            background: var(--text-primary);
            pointer-events: none;
            transform: translate3d(0, 0, 0);
        }

        .nav-scene-droplet {
            position: absolute;
            z-index: 2;
            top: 0;
            left: 0;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--text-primary);
            opacity: 0;
            pointer-events: none;
            transform: translate3d(0, 0, 0);
        }

        #topNavigation .nav-pill-btn {
            position: relative;
            z-index: 1;
            transition: color 180ms ease;
        }

        #topNavigation .nav-pill-btn.is-active {
            color: var(--bg-primary);
        }

        #topNavigation > div {
            animation-delay: 140ms;
        }

        #topNavigation > button,
        #topNavigation > nav,
        #topNavigation > div,
        .nav-pill-btn {
            transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
                        border-color 180ms ease,
                        box-shadow 180ms ease;
        }

        @media (hover: hover) {
            #topNavigation > button:hover,
            #topNavigation > div:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 22px rgba(10, 18, 28, 0.1);
            }

            #topNavigation .nav-pill-btn:hover {
                transform: translateY(-1px);
            }
        }

        @media (max-width: 899px) {
            .spatial-scene.is-interactive {
                box-sizing: border-box;
                align-items: flex-start;
                justify-content: flex-start;
                overflow-x: hidden;
                overflow-y: auto;
                padding-top: max(148px, calc(128px + env(safe-area-inset-top)));
                padding-bottom: max(104px, calc(88px + env(safe-area-inset-bottom)));
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }

            [data-collapse-on-mobile] > summary {
                list-style: none;
            }

            [data-collapse-on-mobile] .mobile-disclosure-summary::-webkit-details-marker {
                display: none;
            }

            [data-collapse-on-mobile] .disclosure-chevron {
                flex: 0 0 auto;
                transition: transform 160ms ease;
            }

            [data-collapse-on-mobile][open] .disclosure-chevron {
                transform: rotate(180deg);
            }

            #topNavigation {
                top: max(8px, env(safe-area-inset-top));
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 8px;
                padding-inline: max(12px, env(safe-area-inset-left));
            }

            #topNavigation > button {
                grid-column: 1;
                grid-row: 1;
            }

            #topNavigation > nav {
                grid-column: 1 / -1;
                grid-row: 2;
                justify-self: center;
                max-width: 100%;
                min-height: 52px;
            }

            #topNavigation > div {
                grid-column: 2;
                grid-row: 1;
                gap: 4px;
                padding-inline: 8px;
            }
        }

        @media (min-width: 640px) and (max-width: 899px) {
            #sceneWork #workDeckContainer {
                height: 520px;
            }

            #sceneWork .work-card-slide {
                box-sizing: border-box;
                height: 100%;
                grid-template-columns: minmax(0, 1fr);
                grid-template-rows: 148px minmax(0, 1fr);
                align-content: stretch;
                gap: 16px;
                padding: 24px;
            }

            #sceneWork .work-card-slide > div:first-child {
                height: 148px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) {
                min-height: 0;
                padding-block: 0;
            }

            #sceneWork .work-card-slide h3 {
                margin-bottom: 8px;
                font-size: clamp(1.25rem, 3vw, 2rem);
            }

            #sceneWork .work-card-slide p {
                margin-bottom: 12px;
                font-size: 13px;
                line-height: 1.4;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(4) {
                gap: 6px;
                margin-bottom: 12px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(4) > span {
                padding: 4px 8px;
                font-size: 10px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:nth-child(2) {
                padding-top: 10px;
                font-size: 11px;
            }
        }

        @media (max-width: 899px) {
            #sceneProjects {
                align-items: flex-start;
                padding-top: max(148px, calc(128px + env(safe-area-inset-top)));
            }

            #sceneProjects .spatial-gallery-stage {
                height: 260px;
            }

            #sceneProjects .max-w-6xl > div:first-child {
                margin-bottom: 1.25rem;
            }

            #projectFilterBar {
                flex-wrap: nowrap;
                max-width: 100%;
                overflow-x: auto;
            }

            #projectFilterBar .proj-filter-btn {
                flex: 0 0 auto;
            }

            .project-3d-slot {
                width: 220px;
                height: 290px;
            }

            #sceneProjects .project-carousel-card > div:first-child {
                height: 140px;
            }
        }

        @media (max-width: 639px) {
            .project-carousel-card {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }

            .carousel-has-hover .project-3d-slot:not(.is-hovered-slot) .project-carousel-card {
                filter: none;
            }

            footer {
                bottom: max(12px, env(safe-area-inset-bottom));
                gap: 8px;
                padding-inline: 12px;
            }

            footer > div:first-child {
                flex: 1 1 auto;
                min-width: 0;
            }

            #chapterIndex {
                flex: 0 0 auto;
            }

            #chapterName {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            #nextStageBtn {
                flex: 0 1 auto;
                gap: 6px;
                min-width: 44px;
                padding-inline: 12px;
                white-space: nowrap;
            }

            #scrollHintLabel {
                max-width: clamp(72px, 24vw, 108px);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .project-3d-slot {
                width: 172px;
                height: 260px;
            }

            #sceneProjects .project-carousel-card > div:first-child {
                height: 92px;
            }

            .project-card-coords {
                display: block;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) {
                padding: 12px;
            }

            #sceneProjects .project-carousel-card h3 {
                font-size: 11px;
                margin-bottom: 4px;
            }

            #sceneProjects .project-carousel-card p {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                font-size: 11px;
                line-height: 1.45;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) {
                padding-top: 8px;
                margin-top: 6px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child {
                gap: 4px;
                margin-bottom: 6px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child > span {
                max-width: 100%;
                font-size: 9px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child {
                gap: 4px;
                font-size: 11px;
                white-space: nowrap;
            }

            #sceneProjects .spatial-gallery-stage {
                height: 248px;
            }

            #sceneWork #workDeckContainer {
                height: 560px !important;
            }

            #sceneWork .work-card-slide {
                box-sizing: border-box;
                height: 100%;
                grid-template-columns: minmax(0, 1fr);
                grid-template-rows: 108px minmax(0, 1fr);
                align-items: stretch;
                align-content: stretch;
                gap: 12px;
                padding: 16px;
            }

            #sceneWork .work-card-slide:not(.is-active) {
                opacity: 0 !important;
                pointer-events: none;
            }

            #sceneWork .work-card-slide > div:first-child {
                height: 108px !important;
            }

            #sceneWork .work-card-coordinates {
                max-width: calc(100% - 1.5rem);
                overflow: hidden;
                text-align: right;
                line-height: 1.15;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
            }

            #sceneWork .work-card-slide > div:nth-child(2) {
                height: auto;
                min-height: 0;
                justify-content: space-between;
                overflow: hidden;
                padding-top: 0;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:first-child {
                flex-wrap: wrap;
                gap: 2px 6px;
                margin-bottom: 6px;
                font-size: 10px;
            }

            #sceneWork .work-card-slide h3 {
                margin-bottom: 8px;
                font-size: 1.25rem;
                line-height: 1.15;
            }

            #sceneWork .work-card-slide p {
                margin-bottom: 12px;
                font-size: 0.8125rem;
                line-height: 1.45;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(3) {
                gap: 6px;
                margin-bottom: 12px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(3) > span {
                padding: 3px 8px;
                font-size: 9px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:nth-child(2) {
                flex-wrap: wrap;
                gap: 6px 12px;
                padding-top: 10px;
                font-size: 10px;
            }
        }

        @media (max-width: 359px) {
            .project-3d-slot {
                width: 160px;
                height: 248px;
            }
        }

        @media (min-width: 380px) and (max-width: 639px) {
            #sceneAbout .mobile-credentials-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.5rem;
            }

            #sceneAbout .mobile-credentials-grid > div {
                padding: 0.75rem;
            }

            #sceneAbout .mobile-credential-meta {
                align-items: flex-start;
                flex-wrap: wrap;
                gap: 0.25rem 0.5rem;
            }
        }

        @media (max-width: 639px) and (orientation: portrait) {
            #topNavigation > button {
                min-width: 0;
                max-width: 100%;
                overflow: hidden;
                padding-inline: 10px;
            }

            #navOwnerName {
                display: block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            #topNavigation > nav {
                scrollbar-width: none;
            }

            #topNavigation > nav::-webkit-scrollbar {
                display: none;
            }

            .spatial-scene.is-interactive,
            #sceneProjects.is-interactive {
                box-sizing: border-box;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                padding: max(132px, calc(124px + env(safe-area-inset-top))) 12px max(76px, calc(68px + env(safe-area-inset-bottom)));
                overscroll-behavior: none;
                -webkit-overflow-scrolling: auto;
                touch-action: none;
            }

            #sceneProjects.is-interactive {
                align-items: flex-start;
                touch-action: pan-x pan-y;
            }

            .spatial-scene.is-interactive > div {
                min-height: 0;
                max-height: 100%;
            }

            #sceneHero {
                padding-inline: 16px;
            }

            #sceneHero > div > p:first-of-type {
                display: none;
            }

            .hero-intro-meta {
                max-width: 100%;
                gap: 4px;
                margin-bottom: 12px;
                padding: 6px 8px;
                font-size: 8px;
                letter-spacing: 0.04em;
            }

            #heroRoleBadge {
                font-size: inherit;
                letter-spacing: inherit;
            }

            #sceneHero h1 {
                margin-bottom: 10px;
                font-size: clamp(1.7rem, 7vw, 2.15rem);
                line-height: 1.02;
            }

            #heroBioText {
                display: block;
                overflow: visible;
                margin-bottom: 16px;
                font-size: 14px;
                line-height: 1.5;
            }

            #sceneHero > div > div:last-child {
                gap: 6px;
            }

            #sceneHero > div > div:last-child > * {
                min-height: 40px;
                padding: 8px 12px;
                font-size: 11px;
            }

            #sceneHero > div > div:last-child > a[href*="github.com"],
            #sceneHero > div > div:last-child > a[href*="linkedin.com"] {
                display: none;
            }

            #sceneProjects .max-w-6xl > div:first-child {
                position: relative;
                z-index: 30;
                display: flex;
                flex-direction: column;
                gap: 8px;
                margin-bottom: 28px;
            }

            #sceneProjects .max-w-6xl > div:first-child > div:last-child {
                display: contents;
            }

            #sceneProjects .max-w-6xl > div:first-child > div:first-child > div:first-child > span:nth-child(n+2),
            #carouselStatusBadge,
            #sceneProjects .max-w-6xl > div:first-child > div:first-child > p,
            #carouselModeBtn {
                display: none;
            }

            #sceneProjects .max-w-6xl > div:first-child > div:first-child > div:first-child {
                margin-bottom: 0;
                font-size: 9px;
            }

            #sceneProjects h2 {
                font-size: 1.35rem;
                line-height: 1.1;
            }

            #sceneProjects .max-w-6xl > div:first-child > div:last-child {
                gap: 0;
            }

            #projectFilterBar {
                order: 2;
                flex: 0 0 auto;
                width: 100%;
                min-width: 0;
                min-height: 40px;
                gap: 4px;
                flex-wrap: nowrap;
                overflow-x: auto;
                overflow-y: hidden;
                scrollbar-width: none;
                touch-action: pan-x;
                overscroll-behavior-x: contain;
            }

            #projectFilterBar::-webkit-scrollbar {
                display: none;
            }

            #projectFilterBar .proj-filter-btn {
                flex: 0 0 auto;
                padding: 5px 7px;
                font-size: 8px;
                letter-spacing: 0;
            }

            #sceneProjects [aria-label="Project carousel controls"] {
                order: 1;
                align-self: flex-end;
                flex: 0 0 auto;
            }

            #sceneProjects [aria-label="Project carousel controls"] > button {
                min-height: 40px;
                padding: 6px 10px;
                font-size: 9px;
            }

            #sceneProjects .spatial-gallery-stage {
                height: clamp(190px, calc(100dvh - 574px), 270px);
            }

            .project-3d-slot {
                width: clamp(196px, 56vw, 224px);
                height: clamp(190px, calc(100dvh - 564px), 280px);
            }

            #sceneProjects .project-carousel-card > div:first-child {
                height: clamp(66px, 22vw, 88px);
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) {
                padding: 10px;
            }

            #sceneProjects .project-carousel-card h3 {
                font-size: 12px;
                line-height: 1.2;
            }

            #sceneProjects .project-carousel-card p {
                font-size: 11px;
                line-height: 1.3;
                -webkit-line-clamp: 2;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child > span:nth-child(n+3) {
                display: none;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child > span:first-child {
                font-size: 0;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child > span:first-child::after {
                content: "Tap to inspect";
                font-size: 11px;
            }

            #sceneWork > div > div:first-child {
                gap: 8px;
                margin-bottom: 8px;
            }

            #sceneWork > div > div:first-child > div:first-child > span {
                font-size: 10px;
                line-height: 1.25;
                letter-spacing: 0.08em;
            }

            #sceneWork h2 {
                font-size: 1.2rem;
                line-height: 1.1;
            }

            #workStageDots {
                gap: 4px;
            }

            #workStageDots button {
                display: inline-flex;
                flex: 1 1 calc(50% - 4px);
                align-items: center;
                justify-content: center;
                gap: 4px;
                min-width: 0;
                max-width: calc(50% - 2px);
                min-height: 36px;
                padding: 5px 8px;
                font-size: 9px;
                white-space: nowrap;
            }

            #workStageDots .work-dot-id,
            #workStageDots button > span:last-child {
                flex: 0 0 auto;
            }

            #workStageDots .work-dot-title {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            #workStageDots button > span:last-child {
                color: var(--accent-text);
            }

            #sceneWork #workDeckContainer {
                height: clamp(220px, calc(100dvh - 430px), 320px) !important;
            }

            #sceneWork .work-card-slide {
                grid-template-rows: 92px minmax(0, 1fr);
                gap: 8px;
                padding: 12px;
            }

            #sceneWork .work-card-slide > div:first-child {
                height: 92px !important;
            }

            #sceneWork .work-card-slide > div:first-child > span:first-child {
                top: 6px;
                left: 8px;
                font-size: 9px;
            }

            #sceneWork .work-card-coordinates {
                right: 8px;
                bottom: 6px;
                max-width: calc(100% - 1rem);
                font-size: 9px;
                -webkit-line-clamp: 1;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:first-child {
                flex-wrap: nowrap;
                gap: 1px 5px;
                margin-bottom: 3px;
                overflow: hidden;
                font-size: 11px;
                white-space: nowrap;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:first-child > span:nth-child(n+2) {
                display: none;
            }

            #sceneWork .work-card-slide h3 {
                margin-bottom: 4px;
                font-size: 1.05rem;
                line-height: 1.08;
            }

            #sceneWork .work-card-slide p {
                display: -webkit-box;
                overflow: hidden;
                margin-bottom: 4px;
                font-size: 11px;
                line-height: 1.3;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(4) {
                gap: 4px;
                margin-bottom: 4px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:nth-child(2) > span:first-child {
                display: none;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(4) > span {
                padding: 2px 6px;
                font-size: 9px;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:nth-child(2) {
                justify-content: flex-end;
                padding-top: 4px;
                font-size: 11px;
            }

            #sceneAbout > div {
                gap: 10px;
            }

            .about-header {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            #aboutTabs {
                order: 2;
                align-self: stretch;
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 4px;
            }

            #aboutTabs [role="tab"] {
                justify-content: center;
                min-width: 0;
                min-height: 36px;
                padding: 5px 7px;
                gap: 4px;
                border-radius: 999px;
                font-size: 8px;
                line-height: 1.15;
                white-space: nowrap;
            }

            #aboutTabs .about-tab-index {
                font-size: 8px;
            }

            #aboutTabs .about-tab-label {
                overflow: hidden;
                text-overflow: ellipsis;
            }

            #aboutTabs .about-tab-slash {
                font-size: 8px;
            }

            .about-heading {
                order: 1;
                max-width: none;
                text-align: left;
            }

            .about-heading > div {
                justify-content: flex-start;
                font-size: 8px;
                line-height: 1.15;
            }

            .about-heading h2 {
                margin-top: 3px;
                font-size: 1.05rem;
                line-height: 1.05;
            }

            .about-info-card {
                padding: 6px !important;
                border-radius: 16px;
            }

            #academicsPanel {
                gap: 6px;
            }

            #academicsPanel > :not([hidden]) ~ :not([hidden]) {
                margin-top: 4px;
            }

            #academicsPanel > div:first-child {
                padding: 10px;
                gap: 5px;
            }

            #academicsPanel > div:first-child > :not([hidden]) ~ :not([hidden]) {
                margin-top: 4px;
            }

            #academicsPanel > div:first-child h3 {
                font-size: 11px;
                line-height: 1.2;
            }

            #academicsPanel > div:first-child p {
                font-size: 11px;
            }

            #sceneAbout .mobile-credentials-grid {
                grid-template-columns: minmax(0, 1fr);
                gap: 6px;
            }

            #sceneAbout .mobile-credentials-grid > div {
                min-width: 0;
                padding: 8px;
            }

            #sceneAbout .mobile-credential-meta {
                align-items: flex-start;
                flex-wrap: wrap;
                gap: 2px 4px;
                font-size: 9px;
            }

            #sceneAbout .mobile-credential-meta > span {
                font-size: 9px;
                overflow-wrap: anywhere;
            }

            #sceneAbout .mobile-credentials-grid h4 {
                font-size: 10px;
                line-height: 1.2;
            }

            #sceneAbout .mobile-credentials-grid p {
                font-size: 11px;
                line-height: 1.25;
            }

            #strengthsPanel:not([hidden]) {
                min-height: 0;
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            #strengthsPanel > div {
                margin: 0;
                padding: 10px 12px;
                gap: 8px;
            }

            #strengthsPanel > div > div {
                min-width: 0;
            }

            #strengthsPanel h3 {
                font-size: 12px;
                line-height: 1.2;
            }

            #sceneAbout .strengths-mobile-copy {
                display: inline;
            }

            #sceneAbout .strengths-full-copy {
                display: none;
            }

            #strengthsPanel p {
                display: block;
                margin-top: 3px;
                font-size: 10px;
                line-height: 1.25;
            }

            #sceneAbout .coursework-disclosure > summary {
                min-height: 32px;
            }

            #sceneContact .max-w-3xl > div:first-child {
                gap: 4px;
                margin-bottom: 8px;
                padding: 6px 9px;
                font-size: 9px;
                letter-spacing: 0.06em;
            }

            #sceneContact .max-w-3xl > div:first-child > span:nth-child(n+2) {
                display: none;
            }

            #sceneContact h2 {
                margin-bottom: 8px;
                font-size: clamp(1.7rem, 7vw, 2.15rem);
                line-height: 1.02;
            }

            #sceneContact .max-w-3xl > p {
                display: -webkit-box;
                overflow: hidden;
                margin-bottom: 10px;
                font-size: 11px;
                line-height: 1.35;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
            }

            #sceneContact .contact-links-grid {
                display: grid;
                width: 100%;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 6px;
                margin-bottom: 8px;
            }

            #sceneContact .contact-links-grid > a {
                justify-content: center;
                min-height: 40px;
                padding: 7px 8px;
                font-size: 10px;
            }

            #sceneContact .contact-actions {
                gap: 6px;
                margin-bottom: 0;
            }

            #sceneContact .contact-actions > button {
                min-height: 40px;
                padding: 7px 10px;
                font-size: 10px;
            }

            #sceneContact .contact-footer {
                display: none;
            }

            #sceneContact #contactEmailText {
                font-size: 10px;
            }

            footer {
                bottom: max(8px, env(safe-area-inset-bottom));
            }
        }

        @media (max-width: 639px) and (orientation: portrait) and (max-height: 640px) {
            .spatial-scene.is-interactive,
            #sceneProjects.is-interactive {
                padding-top: max(132px, calc(124px + env(safe-area-inset-top)));
                padding-bottom: max(60px, calc(52px + env(safe-area-inset-bottom)));
            }

            #sceneAbout.is-interactive {
                padding-bottom: max(72px, calc(64px + env(safe-area-inset-bottom)));
            }

            .mobile-education-dates {
                display: none;
            }

            #sceneHero h1,
            #sceneContact h2 {
                font-size: clamp(1.55rem, 6.4vw, 1.9rem);
            }

            #sceneProjects .spatial-gallery-stage {
                height: 166px;
            }

            #sceneProjects .max-w-6xl > div:first-child {
                margin-bottom: 12px;
            }

            .project-3d-slot {
                width: 196px;
                height: 166px;
            }

            #sceneProjects .project-carousel-card > div:first-child {
                height: 50px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) {
                padding: 8px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) {
                padding-top: 5px;
                margin-top: 3px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child {
                display: none;
            }

            #sceneWork #workDeckContainer {
                height: 190px !important;
            }

            #sceneWork .work-card-slide {
                grid-template-rows: 42px minmax(0, 1fr);
                gap: 6px;
                padding: 10px;
            }

            #sceneWork .work-card-slide > div:first-child {
                height: 42px !important;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:nth-child(4) > span:nth-child(n+3) {
                display: none;
            }

            #sceneWork .work-card-slide p {
                -webkit-line-clamp: 1;
            }

            #sceneAbout > div {
                gap: 4px;
            }

            .about-header {
                gap: 4px;
            }

            #aboutTabs {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 4px;
            }

            #aboutTabs [role="tab"] {
                min-width: 0;
                min-height: 36px;
                padding: 5px 6px;
                font-size: 8px;
            }

            .about-heading > div {
                font-size: 9px;
                letter-spacing: 0.06em;
            }

            .about-heading h2 {
                font-size: 0.9rem;
                line-height: 1;
            }

            #academicsPanel {
                gap: 4px;
            }

            #academicsPanel > :not([hidden]) ~ :not([hidden]) {
                margin-top: 3px;
            }

            #academicsPanel > div:first-child {
                padding: 7px;
                gap: 3px;
            }

            #academicsPanel > div:first-child h3 {
                font-size: 11px;
                line-height: 1.1;
            }

            #academicsPanel > div:first-child > div:first-child {
                gap: 4px;
            }

            #academicsPanel > div:first-child > div:first-child > span {
                padding: 2px 5px;
                font-size: 11px;
            }

            #academicsPanel > div:first-child > p {
                margin-top: 2px;
                font-size: 11px;
            }

            #sceneAbout .mobile-credentials-grid {
                gap: 4px;
            }

            #sceneAbout .mobile-credentials-grid > div {
                padding: 5px;
            }

            #sceneAbout .mobile-credential-meta {
                gap: 1px 3px;
            }

            #sceneAbout .mobile-credential-meta > span {
                font-size: 11px;
            }

            #sceneAbout .mobile-credentials-grid h4 {
                font-size: 11px;
                line-height: 1.1;
            }

            #sceneAbout .mobile-credentials-grid p {
                display: none;
            }

            #strengthsPanel > div {
                padding: 5px 8px;
                gap: 4px;
            }

            #strengthsPanel h3 {
                font-size: 11px;
                line-height: 1.1;
            }

            #strengthsPanel p {
                margin-top: 2px;
                font-size: 11px;
                line-height: 1.25;
            }
        }

        @media (max-width: 639px) {
            .apple-glass,
            .card-surface {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }

            .project-modal {
                padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
                background-color: rgba(8, 12, 16, 0.76);
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }

            .project-modal-panel {
                max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
                padding: 16px;
                border-radius: 24px;
                background-image: radial-gradient(ellipse at 92% 0%, rgba(255, 115, 45, 0.08), transparent 34%);
            }

            .project-modal-header {
                gap: 8px;
                margin-bottom: 14px;
                padding-bottom: 12px;
            }

            .project-modal-header > div > span:first-child {
                font-size: 11px;
            }

            #modalMeta {
                overflow-wrap: anywhere;
                font-size: 12px;
                line-height: 1.45;
            }

            .project-modal-artwork {
                height: clamp(150px, 26dvh, 210px);
                margin-bottom: 16px;
                border-radius: 18px;
            }

            .project-modal-art-label {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }

            .project-modal-intro {
                margin-bottom: 14px;
            }

            .project-modal-build {
                margin-bottom: 14px;
                padding: 12px;
            }

            .project-modal-details {
                gap: 8px;
            }

            .project-modal-details li {
                font-size: 13px;
            }

            .project-modal-facts {
                padding-bottom: 4px;
            }

            .project-modal-actions {
                padding-top: 12px;
            }

            .project-modal-actions .project-modal-link {
                min-height: 46px;
                padding-inline: 12px;
                font-size: 13px;
            }

            #carouselStatusBadge,
            #sceneProjects .project-carousel-controls {
                display: none;
            }

            .desktop-project-hint {
                display: none;
            }

            .mobile-project-hint {
                display: inline;
            }

            #sceneProjects.is-interactive {
                overflow-x: hidden;
                overflow-y: auto;
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }

            #sceneProjects.is-interactive > div {
                display: flex;
                height: 100%;
                max-height: none;
                min-height: 0;
                flex-direction: column;
            }

            #sceneProjects .spatial-gallery-stage {
                flex: 1 1 0;
                height: auto;
                min-height: 0;
                overflow: visible;
                perspective: none;
                touch-action: pan-y;
                cursor: default;
            }

            #sceneProjects .spatial-gallery-stage > div:first-child {
                display: none;
            }

            #sceneProjects .spatial-gallery-ring {
                width: calc(100% + 32px);
                height: 100%;
                margin-inline: -16px;
                padding: 4px 16px 18px;
                display: flex;
                align-items: stretch;
                justify-content: flex-start;
                gap: 14px;
                transform-style: flat;
                overflow-x: auto;
                overflow-y: hidden;
                overscroll-behavior-x: contain;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
                scrollbar-width: none;
                touch-action: pan-x pan-y;
            }

            #sceneProjects .spatial-gallery-ring::-webkit-scrollbar {
                display: none;
            }

            #sceneProjects .project-3d-slot {
                position: relative;
                inset: auto;
                flex: 0 0 min(82vw, 340px);
                width: min(82vw, 340px);
                height: 100%;
                transform: none !important;
                opacity: 1 !important;
                z-index: auto !important;
                pointer-events: auto !important;
                scroll-snap-align: center;
            }

            #sceneProjects .project-carousel-card {
                height: 100%;
                min-height: 0;
                border-radius: 24px;
                box-shadow: 0 10px 26px rgba(10, 18, 28, 0.08);
                transition: none;
                transform: none !important;
                filter: none !important;
            }

            #sceneProjects .project-carousel-card > div:first-child {
                height: 168px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) {
                padding: 16px;
            }

            #sceneProjects .project-carousel-card h3 {
                font-size: 13px;
                margin-bottom: 6px;
            }

            #sceneProjects .project-carousel-card p {
                display: -webkit-box;
                -webkit-line-clamp: 3;
                font-size: 12px;
                line-height: 1.5;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child {
                display: flex;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html, body {
                transition: none !important;
            }

            #topNavigation > button,
            #topNavigation > nav,
            #topNavigation > div,
            .nav-pill-btn {
                animation: none !important;
                transition: none !important;
            }

            .nav-scene-indicator {
                animation: none !important;
            }

            .spatial-scene {
                transition: opacity 160ms ease-out !important;
            }

            .project-3d-slot,
            .project-carousel-card {
                transition: none !important;
            }

            .animate-pulse,
            .animate-ping {
                animation: none !important;
            }
        }

        .motion-reduced .spatial-scene {
            transition: opacity 160ms ease-out !important;
        }

        .motion-reduced .project-3d-slot,
        .motion-reduced .project-carousel-card {
            transition: none !important;
        }

        .motion-reduced .animate-pulse,
        .motion-reduced .animate-ping {
            animation: none !important;
        }

        @media (max-width: 639px) {
            .nav-pill-btn {
                min-width: 44px;
            }

            .altitude-labels > button {
                min-height: 44px;
                font-size: 11px;
            }

            #sceneHero > div > div:last-child > * {
                min-height: 44px;
                font-size: 11px;
            }

            #projectFilterBar .proj-filter-btn,
            #sceneProjects [aria-label="Project carousel controls"] > button {
                min-height: 44px;
                font-size: 11px;
            }

            #workStageDots button {
                min-height: 44px;
                font-size: 11px;
            }

            #aboutTabs [role="tab"] {
                min-height: 44px;
                font-size: 11px;
                white-space: normal;
            }

            #aboutTabs .about-tab-label {
                overflow: visible;
                text-overflow: clip;
                white-space: normal;
            }

            #aboutTabs .about-tab-index {
                font-size: 11px;
            }

            #aboutTabs .about-tab-slash {
                font-size: 10px;
            }

            .about-heading > div {
                font-size: 10px;
            }

            #sceneAbout .coursework-disclosure > summary {
                min-height: 44px;
                font-size: 11px;
            }

            #sceneAbout .mobile-credential-meta > span {
                font-size: 11px;
            }

            #academicsPanel > div:first-child h3,
            #sceneAbout .mobile-credentials-grid h4 {
                font-size: 11px;
                line-height: 1.2;
            }

            #academicsPanel > div:first-child > div:first-child > span,
            #academicsPanel > div:first-child > p {
                font-size: 11px;
            }

            #strengthsPanel h3 {
                font-size: 11px;
                line-height: 1.2;
            }

            #strengthsPanel p {
                font-size: 11px;
                line-height: 1.2;
            }

            #sceneContact .contact-links-grid > a,
            #sceneContact .contact-actions > button {
                min-height: 44px;
                font-size: 11px;
            }

            #sceneContact #contactEmailText {
                font-size: 11px;
            }
        }

        @keyframes sonar-button-ripple {
            from {
                opacity: 0.7;
                transform: scale(0.82);
            }
            to {
                opacity: 0;
                transform: scale(1.42);
            }
        }

        .sonar-ping-btn {
            position: relative;
            isolation: isolate;
        }

        .sonar-ping-btn::before {
            position: absolute;
            z-index: -1;
            inset: -3px;
            border: 1px solid var(--accent);
            border-radius: inherit;
            content: "";
            opacity: 0;
            pointer-events: none;
        }

        .sonar-ping-btn.is-pinging::before {
            animation: sonar-button-ripple 900ms ease-out both;
        }

        @media (min-width: 640px) {
            .carousel-has-hover .project-3d-slot:not(.is-hovered-slot) .project-carousel-card h3,
            .carousel-has-hover .project-3d-slot:not(.is-hovered-slot) .project-carousel-card p {
                opacity: 0.52;
            }
        }

        @media (max-width: 639px) and (orientation: portrait) {
            .spatial-scene.is-interactive,
            #sceneProjects.is-interactive {
                box-sizing: border-box;
                align-items: stretch;
                justify-content: center;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                overscroll-behavior-y: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }

            .spatial-scene.is-interactive > div {
                max-height: none;
                min-height: min-content;
                margin-block: auto;
            }

            #sceneProjects.is-interactive > div {
                height: auto;
                min-height: 100%;
            }

            #sceneProjects .spatial-gallery-stage {
                flex: 0 0 auto;
                height: clamp(280px, calc(100dvh - 360px), 460px);
                min-height: 280px;
            }

            #sceneProjects .max-w-6xl > div:first-child > div:first-child > p {
                display: block;
                margin-top: 3px;
                font-size: 13px;
                line-height: 1.45;
            }

            #sceneProjects .project-carousel-card > div:first-child {
                height: 104px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) {
                padding: 10px 12px;
            }

            #sceneProjects .project-carousel-card h3 {
                font-size: 14px;
                line-height: 1.3;
            }

            #sceneProjects .project-carousel-card p {
                font-size: 13px;
                line-height: 1.45;
                -webkit-line-clamp: 4;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) {
                padding-top: 6px;
                margin-top: 4px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child {
                margin-bottom: 4px;
            }

            #sceneProjects .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child > span:first-child::after {
                font-size: 12px;
            }

            #sceneWork #workDeckContainer {
                height: clamp(280px, calc(100dvh - 300px), 420px) !important;
            }

            #sceneWork .work-card-slide {
                grid-template-rows: minmax(100px, 30%) minmax(0, 1fr);
                gap: 12px;
                padding: 14px;
            }

            #sceneWork .work-card-slide > div:first-child {
                height: 100px !important;
            }

            #sceneWork .work-card-slide > div:nth-child(2) {
                min-height: 0;
            }

            #sceneWork > div > div:first-child > div:first-child > span {
                font-size: 12px;
                line-height: 1.4;
                letter-spacing: 0.05em;
            }

            #sceneWork .work-card-slide h3 {
                font-size: 18px;
                line-height: 1.2;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:first-child {
                flex-wrap: wrap;
                overflow: visible;
                font-size: 11px;
                line-height: 1.4;
                white-space: normal;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:first-child > span:nth-child(2) {
                display: none;
            }

            #sceneWork .work-card-slide > div:nth-child(2) > div:first-child > div:first-child > span:nth-child(3) {
                display: inline;
            }

            #sceneWork .work-card-slide p {
                font-size: 14px;
                line-height: 1.45;
                -webkit-line-clamp: 4;
            }

            #workStageDots .work-dot-title-full {
                display: none;
            }

            #workStageDots .work-dot-title-short {
                display: inline;
            }

            #workStageDots button {
                gap: 6px;
                font-size: 12px;
            }

            #aboutTabs [role="tab"] {
                font-size: 12px;
                line-height: 1.3;
            }

            #aboutTabs .about-tab-index,
            #aboutTabs .about-tab-slash {
                font-size: 11px;
            }

            .about-heading > div {
                font-size: 11px;
                line-height: 1.4;
            }

            .about-heading h2 {
                font-size: 18px;
                line-height: 1.2;
            }

            #academicsPanel > div:first-child h3,
            #sceneAbout .mobile-credentials-grid h4 {
                font-size: 14px;
                line-height: 1.35;
            }

            #academicsPanel > div:first-child p,
            #academicsPanel > div:first-child > div:first-child > span,
            #sceneAbout .mobile-credential-meta > span {
                font-size: 12px;
                line-height: 1.45;
            }

            #academicsPanel .coursework-disclosure > div {
                font-size: 12px;
                line-height: 1.5;
            }

            #sceneAbout .mobile-education-dates,
            #sceneAbout .mobile-credentials-grid p {
                display: block !important;
            }

            #sceneAbout .mobile-credentials-grid p,
            #strengthsPanel p {
                font-size: 13px;
                line-height: 1.5;
            }

            #strengthsPanel h3 {
                font-size: 14px;
                line-height: 1.35;
            }

            #sceneContact .max-w-3xl > div:first-child {
                flex-wrap: wrap;
                font-size: 11px;
                line-height: 1.4;
            }

            #sceneContact h2 {
                font-size: clamp(1.8rem, 7vw, 2.4rem);
                line-height: 1.12;
            }

            #sceneContact .max-w-3xl > p {
                display: block;
                overflow: visible;
                font-size: 14px;
                line-height: 1.5;
                -webkit-line-clamp: unset;
            }

            #sceneContact .contact-links-grid > a,
            #sceneContact .contact-actions > button {
                font-size: 12px;
                line-height: 1.4;
            }

            #sceneContact #contactEmailText {
                font-size: 12px;
            }

            footer {
                gap: 8px;
                padding-inline: 12px;
            }

            footer > div:first-child {
                gap: 5px;
                font-size: 12px;
            }

            #chapterName {
                overflow: visible;
                text-overflow: clip;
                white-space: nowrap;
            }

            #nextStageBtn {
                flex: 0 0 auto;
            }

            #scrollHintLabel {
                max-width: none;
                overflow: visible;
                text-overflow: clip;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .sonar-ping-btn.is-pinging::before {
                animation: none;
            }
        }

        .motion-reduced .sonar-ping-btn.is-pinging::before {
            animation: none;
        }

        @media (min-width: 640px) {
            .work-dot-title-short {
                display: none;
            }
        }

        @media (max-width: 639px) and (orientation: portrait) and (max-height: 640px) {
            #sceneProjects .project-carousel-card > div:first-child {
                height: 80px;
            }
        }

        @media (max-width: 639px) {
            .spatial-scene.is-interactive,
            #sceneProjects.is-interactive {
                overflow: hidden !important;
                overscroll-behavior: none;
                -webkit-overflow-scrolling: auto;
                touch-action: pan-x !important;
            }

            #sceneProjects .spatial-gallery-ring {
                touch-action: pan-x !important;
            }
        }

        /* ==========================================================================
           PROJECT VIEW SWITCH — Orbit · Survey Register · Atlas Plate
           ========================================================================== */
        .proj-view-switch {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .proj-view-option {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 44px;
            padding: 0 12px;
            border: 1px solid var(--border-color);
            border-radius: 9999px;
            background: var(--bg-surface);
            color: var(--text-muted);
            font-family: "JetBrains Mono", monospace;
            font-size: 11px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
        }

        .proj-view-option:hover {
            border-color: var(--accent);
            color: var(--text-primary);
        }

        .proj-view-option:focus-visible {
            outline: 2px solid var(--accent-text);
            outline-offset: 3px;
        }

        .proj-view-option.is-active {
            border-color: var(--text-primary);
            background: var(--text-primary);
            color: var(--bg-primary);
        }

        .proj-view-option .proj-view-icon {
            width: 13px;
            height: 13px;
            flex: 0 0 auto;
        }

        #sceneProjects[data-project-view="register"] .project-carousel-controls,
        #sceneProjects[data-project-view="atlas"] .project-carousel-controls {
            display: none;
        }

        /* Instrument masthead: ruled coordinates, title with view switch, scope rail */
        .projects-header {
            margin-bottom: 24px;
        }

        .projects-kicker {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            padding-bottom: 9px;
            border-bottom: 1px solid var(--border-color);
            font-family: "JetBrains Mono", monospace;
            font-size: 11px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-text);
        }

        .projects-kicker-sep,
        .projects-kicker-archive {
            color: var(--text-muted);
        }

        .projects-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
            color: var(--text-muted);
            letter-spacing: 0.1em;
        }

        .projects-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px 24px;
            margin-top: 14px;
        }

        .projects-title-copy {
            min-width: 0;
            max-width: 41rem;
        }

        .projects-title-copy p {
            margin-top: 6px;
            max-width: 58ch;
        }

        .projects-title-row > .proj-view-switch {
            flex: 0 0 auto;
            margin-top: 2px;
            margin-left: auto;
        }

        .projects-rail {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 14px;
            padding-top: 11px;
            border-top: 1px solid var(--border-color);
        }

        .projects-rail > #projectFilterBar {
            min-width: 0;
        }

        .projects-rail > .project-carousel-controls {
            flex: 0 0 auto;
        }

        #sceneProjects .project-view-meta {
            display: none;
        }

        /* --- Shared list geometry for both alternate views --- */
        #sceneProjects .spatial-gallery-stage.projects-view--register,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas {
            display: block;
            height: 455px;
            padding: 2px 14px 6px;
            perspective: none;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior-y: contain;
            touch-action: pan-y;
            cursor: default;
            background: var(--bg-surface);
            -webkit-backdrop-filter: blur(14px) saturate(1.08);
            backdrop-filter: blur(14px) saturate(1.08);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: inset 0 -22px 22px -22px color-mix(in srgb, var(--text-primary) 26%, transparent);
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #sceneProjects .projects-view--register .spatial-gallery-stage > div:first-child,
        #sceneProjects .projects-view--atlas .spatial-gallery-stage > div:first-child {
            display: none;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .spatial-gallery-ring,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .spatial-gallery-ring {
            display: block;
            width: 100%;
            height: auto;
            padding: 0;
            transform-style: flat;
            overflow: visible;
            touch-action: pan-y !important;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-3d-slot,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-3d-slot {
            position: relative;
            inset: auto;
            flex: 0 0 auto;
            width: 100%;
            height: auto;
            transform: none !important;
            opacity: 1 !important;
            z-index: auto !important;
            pointer-events: auto !important;
            scroll-snap-align: none;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card {
            display: grid;
            align-items: center;
            height: auto;
            border: 0;
            border-top: 1px solid var(--border-color);
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            overflow: visible;
            transition: background-color 180ms ease;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card:hover,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card:hover {
            background: color-mix(in srgb, var(--accent) 7%, transparent);
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card:focus-visible,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card:focus-visible {
            outline: 2px solid var(--accent-text);
            outline-offset: -2px;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card > div:first-child,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card > div:first-child {
            height: auto;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }

        #sceneProjects .projects-view--register .project-carousel-card > div:first-child > div,
        #sceneProjects .projects-view--atlas .project-carousel-card > div:first-child > div {
            display: none;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card > div:nth-child(2),
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card > div:nth-child(2) {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 4px;
            padding: 0;
            background: transparent;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card h3,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card h3 {
            margin-bottom: 0;
            font-size: 14px;
            line-height: 1.3;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card p,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card p {
            font-size: 12px;
            line-height: 1.45;
            color: var(--text-muted);
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card > div:nth-child(2) > div:nth-child(2),
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card > div:nth-child(2) > div:nth-child(2) {
            padding-top: 0;
            margin-top: 0;
            border-top: 0;
        }

        #sceneProjects .projects-view--register .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child,
        #sceneProjects .projects-view--atlas .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child {
            margin-bottom: 0;
            gap: 4px;
        }

        #sceneProjects .projects-view--register .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child,
        #sceneProjects .projects-view--atlas .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:last-child {
            display: none;
        }

        #sceneProjects .projects-view--register .project-carousel-card > div:nth-child(2) p {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-view-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
            padding-left: 12px;
            border-left: 1px solid var(--border-color);
            font-family: "JetBrains Mono", monospace;
            text-align: right;
        }

        .project-view-idx {
            font-size: 11px;
            letter-spacing: 0.12em;
            color: var(--text-muted);
        }

        .project-view-alt {
            font-size: 12px;
            letter-spacing: 0.06em;
            color: var(--accent-text);
        }

        .project-view-coords {
            display: none;
        }

        /* --- Survey register: thumbnail, prose, elevation readout --- */
        #sceneProjects .projects-view--register .project-carousel-card {
            grid-template-columns: 112px minmax(0, 1fr) 78px 18px;
            grid-template-areas: "media body meta arrow";
            column-gap: 18px;
            padding: 12px 4px 12px 0;
        }

        #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card > div:first-child {
            grid-area: media;
            width: 112px;
            height: 72px;
        }

        #sceneProjects .projects-view--register .project-carousel-card > div:nth-child(2) {
            grid-area: body;
        }

        #sceneProjects .projects-view--register .project-carousel-card > .project-view-meta {
            grid-area: meta;
            align-self: center;
        }

        #sceneProjects .projects-view--register .project-carousel-card::after,
        #sceneProjects .projects-view--atlas .project-carousel-card::after {
            content: "→";
            justify-self: end;
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1;
            transition: color 160ms ease, transform 160ms ease;
        }

        #sceneProjects .projects-view--register .project-carousel-card::after {
            grid-area: arrow;
        }

        #sceneProjects .projects-view--register .project-carousel-card:hover::after,
        #sceneProjects .projects-view--atlas .project-carousel-card:hover::after {
            color: var(--accent-text);
            transform: translateX(2px);
        }

        /* --- Atlas plate: numbered plates in two columns --- */
        #sceneProjects .spatial-gallery-stage.projects-view--atlas .spatial-gallery-ring {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            align-content: start;
        }

        #sceneProjects .projects-view--atlas .project-carousel-card {
            grid-template-columns: 76px minmax(0, 1fr) 16px;
            grid-template-areas:
                "meta meta meta"
                "media body arrow";
            column-gap: 14px;
            row-gap: 8px;
            align-items: center;
            padding: 12px 16px 12px 0;
        }

        #sceneProjects .projects-view--atlas .project-3d-slot:nth-child(even) .project-carousel-card {
            padding-left: 16px;
            border-left: 1px solid var(--border-color);
        }

        #sceneProjects .projects-view--atlas .project-carousel-card > .project-view-meta {
            grid-area: meta;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
        }

        #sceneProjects .projects-view--atlas .project-view-idx {
            font-family: "Instrument Serif", serif;
            font-style: italic;
            font-size: 1.5rem;
            line-height: 1;
            letter-spacing: 0;
            color: var(--accent-text);
        }

        #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card > div:first-child {
            grid-area: media;
            width: 76px;
            height: 58px;
        }

        #sceneProjects .projects-view--atlas .project-carousel-card > div:nth-child(2) {
            grid-area: body;
        }

        #sceneProjects .projects-view--atlas .project-carousel-card::after {
            grid-area: arrow;
        }

        #sceneProjects .projects-view--atlas .project-carousel-card h3 {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }

        #sceneProjects .projects-view--atlas .project-carousel-card p {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }

        #sceneProjects .projects-view--atlas .project-carousel-card > div:nth-child(2) > div:nth-child(2) > div:first-child > span:nth-child(n+3) {
            display: none;
        }

        /* Both alternate views scroll without a visible scrollbar */
        #sceneProjects .spatial-gallery-stage.projects-view--register::-webkit-scrollbar,
        #sceneProjects .spatial-gallery-stage.projects-view--atlas::-webkit-scrollbar {
            display: none;
        }

        /* The one authored moment: rows settle in when the view changes */
        @keyframes project-view-row-in {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #sceneProjects .spatial-gallery-stage.is-entering .project-carousel-card {
            animation: project-view-row-in 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
            animation-delay: calc(var(--enter-i, 0) * 34ms);
        }

        @media (prefers-reduced-motion: reduce) {
            #sceneProjects .spatial-gallery-stage.is-entering .project-carousel-card {
                animation: none;
            }
        }

        .motion-reduced #sceneProjects .spatial-gallery-stage.is-entering .project-carousel-card {
            animation: none;
        }

        @media (max-width: 899px) {
            .projects-header {
                margin-bottom: 20px;
            }

            .projects-kicker {
                gap: 6px;
                padding-bottom: 8px;
                font-size: 10px;
            }

            .projects-kicker-archive,
            .projects-kicker-sep,
            .projects-status {
                display: none;
            }

            .projects-title-row {
                flex-direction: column;
                gap: 10px;
                margin-top: 11px;
            }

            .projects-title-copy {
                max-width: none;
            }

            .projects-title-copy p {
                max-width: 65ch;
            }

            .projects-title-row > .proj-view-switch {
                margin-left: 0;
                align-self: flex-end;
            }

            .projects-rail {
                flex-wrap: wrap;
                row-gap: 8px;
                margin-top: 11px;
                padding-top: 9px;
            }

            .projects-rail > #projectFilterBar {
                flex: 1 1 100%;
            }

            .projects-rail > .project-carousel-controls {
                margin-left: auto;
            }

            #sceneProjects .proj-view-option {
                min-height: 44px;
                padding: 0 10px;
                font-size: 11px;
            }
        }

        /* Phones always use the atlas; the view switch is desktop-only. */
        @media (max-width: 639px) {
            #sceneProjects #projectViewControl {
                display: none;
            }
        }

        @media (max-width: 639px) {
            #sceneProjects .spatial-gallery-stage.projects-view--register,
            #sceneProjects .spatial-gallery-stage.projects-view--atlas {
                height: auto;
                min-height: 0;
                flex: 0 0 auto;
                padding: 2px 10px 6px;
                overflow: visible;
                touch-action: pan-y;
            }

            #sceneProjects .spatial-gallery-stage.projects-view--register .spatial-gallery-ring,
            #sceneProjects .spatial-gallery-stage.projects-view--atlas .spatial-gallery-ring {
                width: 100%;
                margin-inline: 0;
                padding: 0;
                overflow: visible;
                gap: 0;
            }

            #sceneProjects .spatial-gallery-stage.projects-view--register .project-3d-slot,
            #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-3d-slot {
                width: 100%;
                flex: 0 0 auto;
            }

            #sceneProjects .spatial-gallery-stage.projects-view--atlas .spatial-gallery-ring {
                display: block;
            }

            #sceneProjects .projects-view--atlas .project-3d-slot:nth-child(even) .project-carousel-card {
                padding-left: 0;
                border-left: 0;
            }

            #sceneProjects .projects-view--register .project-carousel-card {
                grid-template-columns: 84px minmax(0, 1fr) 16px;
                grid-template-areas:
                    "meta meta meta"
                    "media body arrow";
                row-gap: 6px;
                column-gap: 12px;
                padding: 12px 2px 12px 0;
            }

            #sceneProjects .projects-view--register .project-carousel-card > .project-view-meta {
                grid-area: meta;
                flex-direction: row;
                align-items: baseline;
                justify-content: space-between;
                padding-left: 0;
                border-left: 0;
                text-align: left;
            }

            #sceneProjects .spatial-gallery-stage.projects-view--register .project-carousel-card > div:first-child {
                width: 84px;
                height: 60px;
            }

            #sceneProjects .projects-view--atlas .project-carousel-card {
                grid-template-columns: 72px minmax(0, 1fr) 16px;
                padding: 12px 2px 12px 0;
            }

            #sceneProjects .spatial-gallery-stage.projects-view--atlas .project-carousel-card > div:first-child {
                width: 72px;
                height: 56px;
            }
        }

        @media (max-width: 639px) {
            #sceneProjects.is-interactive[data-project-view="register"],
            #sceneProjects.is-interactive[data-project-view="atlas"] {
                overflow-x: hidden !important;
                overflow-y: auto !important;
                touch-action: pan-y !important;
                justify-content: flex-start;
            }

            #sceneProjects[data-project-view="register"] .max-w-6xl,
            #sceneProjects[data-project-view="atlas"] .max-w-6xl {
                min-height: min-content;
                margin-block: 0;
            }
        }

        @media (max-width: 639px) and (orientation: portrait) {
            #sceneProjects.is-interactive[data-project-view="register"],
            #sceneProjects.is-interactive[data-project-view="atlas"] {
                overflow-y: auto !important;
                touch-action: pan-y !important;
                justify-content: flex-start;
            }

            #sceneProjects[data-project-view="register"] .max-w-6xl,
            #sceneProjects[data-project-view="atlas"] .max-w-6xl {
                min-height: min-content;
                margin-block: 0;
            }
        }

        /* Keep the masthead structure intact where legacy compact-phone rules still apply */
        @media (max-width: 639px) and (orientation: portrait) {
            #sceneProjects .max-w-6xl > .projects-header {
                gap: 0;
                margin-bottom: 16px;
            }

            #sceneProjects .projects-header > .projects-rail {
                display: flex !important;
                gap: 10px !important;
                margin-top: 10px;
                padding-top: 8px;
            }
        }
