        :root {
            --bg-color: #ffffff;
            --text-color: #000000;
            --text-secondary: #888888;
            --text-secondary-hover: #000000;
            --page-pad-x: clamp(2rem, 6vw, 5rem);
            --page-pad-y: clamp(2rem, 4vw, 4rem);
            --gap-xl: clamp(2rem, 4vw, 4rem);
            --gap-lg: clamp(1.5rem, 3vw, 3rem);
            --gap-md: clamp(1rem, 2vw, 2rem);
            --home-image-gap: clamp(1rem, 3vw, 2.5rem);
            --home-image-max: clamp(240px, 34vw, 520px);
            --home-image-min: clamp(180px, 24vw, 280px);
            --project-image-max: clamp(360px, 38vw, 640px);
            --project-image-min: clamp(260px, 28vw, 420px);
            --zoom-exit-duration: 1.2s;
            --zoom-scale-laptop: 1.28;
            --zoom-scale-phone: 1.65;
            --zoom-text-width-factor: 0.4;
            --zoom-text-min: 300;
            --zoom-text-max: 500;
            --zoom-text-gap: 32;
            --zoom-target-x-offset: 110;
            --zoom-target-x-phone-shift: 80;
            --zoom-target-y-laptop: 80;
            --zoom-target-y-phone: 90;
            --aiva-zoom-offset: 90px;
            --top-pad-y: clamp(5rem, 10vw, 8rem);
            --top-pad-x-left: clamp(11.25rem, 21vw, 29rem);
            --top-pad-x-right: clamp(13.25rem, 23vw, 31rem);
            --top-right-pad-left: clamp(4rem, 8vw, 8rem);
            --top-right-pad-top: clamp(0.2rem, 0.8vw, 0.9rem);
            --carousel-top: 18rem;
            --home-text-shift: clamp(1.3rem, 3.4vw, 5.1rem);
            --carousel-offset: clamp(8rem, 12vw, 14rem);
        }

        [data-theme="dark"] {
            --bg-color: #000000;
            --text-color: #ffffff;
            --text-secondary: #888888;
            --text-secondary-hover: #ffffff;
        }

        * {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }

        body {
            background: var(--bg-color);
            color: var(--text-color);
            font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            transition: background-color 0.45s ease, color 0.45s ease;
        }

        img {
            -webkit-user-drag: none;
            user-drag: none;
        }

        /* Custom cursor */
        html, body, * {
            cursor: none !important;
            user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
        }

        .custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(160, 160, 160, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.22);
            mix-blend-mode: normal;
            pointer-events: none;
            transform: translate(-50%, -50%) scale(1);
            transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
            z-index: 10001;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            opacity: 1;
        }

        @media (max-width: 768px) {
            .custom-cursor {
                display: none;
            }

            .splash-screen {
                background: rgb(16, 16, 18);
                opacity: 0;
                animation: splash-screen-mobile-in 0.28s ease forwards;
            }

            .splash-video {
                animation: splash-in-mobile 0.42s ease-out both;
                animation-delay: 0.22s;
            }

            .splash-screen.exiting .splash-video {
                animation: splash-out-mobile 0.36s ease-in both;
            }
        }

        body.cursor-small .custom-cursor {
            width: 20px;
            height: 20px;
        }

        .page {
            position: relative;
            width: 100%;
            min-height: 100vh;
            display: none;
        }

        .page.active {
            display: block;
        }

        /* Project overlay (copied layout from original) */
        .project-detail-overlay {
            position: fixed;
            inset: 0;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            z-index: 5;
            background-color: transparent;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .project-detail-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .project-detail-overlay .project-content-container {
            opacity: 0;
            filter: blur(10px);
            transition: opacity var(--text-reveal-duration) ease var(--text-reveal-delay),
                        filter var(--text-reveal-duration) ease var(--text-reveal-delay),
                        transform var(--text-reveal-duration) ease var(--text-reveal-delay);
            z-index: 40;
            pointer-events: auto;
        }

        .project-detail-overlay.active .project-content-container {
            opacity: 1;
            filter: blur(0px);
        }

        .project-detail-overlay .corner-back {
            position: fixed;
            top: 3rem;
            left: 4rem;
            font-size: 2.25rem;
            color: var(--text-secondary);
            background: none;
            border: none;
            cursor: none;
            opacity: 0;
            filter: blur(10px);
            pointer-events: none;
            z-index: 45;
            transition: opacity var(--text-reveal-duration) ease var(--text-reveal-delay),
                        filter var(--text-reveal-duration) ease var(--text-reveal-delay);
        }

        .project-detail-overlay.active .corner-back {
            opacity: 1;
            filter: blur(0px);
            pointer-events: auto;
        }

        .project-detail-overlay:not(.active) .project-content-container {
            transition: opacity var(--zoom-duration) ease,
                        filter var(--zoom-duration) ease,
                        transform var(--zoom-duration) ease;
        }

        .project-content-container {
            position: fixed;
            top: 50%;
            left: var(--zoom-text-left, 50%);
            transform: translateX(0) translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(1rem, 2.5vw, 2.5rem);
            width: min(1300px, 86vw);
        }

        .project-left {
            flex: 0 0 40%;
            max-width: clamp(300px, 31.25vw, 500px);
            min-width: 0;
            padding-left: clamp(0.25rem, 1vw, 1.5rem);
        }

        .project-title {
            font-size: clamp(0.9rem, 1.2vw, 1.2rem);
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: clamp(0.3rem, 0.5vw, 0.5rem);
            line-height: 1.2;
            white-space: nowrap;
        }

        .project-role,
        .project-design,
        .project-year {
            font-size: clamp(0.75rem, 0.95vw, 0.95rem);
            font-weight: 400;
            color: var(--text-color);
            margin-bottom: clamp(0.1rem, 0.15vw, 0.15rem);
            line-height: 1.3;
            white-space: nowrap;
        }

        .project-company {
            font-size: 0.95rem;
            font-weight: 400;
            color: var(--text-color);
            margin-bottom: 0;
            display: block;
        }

        .project-year {
            font-size: clamp(0.75rem, 0.95vw, 0.95rem);
            margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
        }

        .project-link-arrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border: 2px solid var(--text-color);
            border-radius: 50%;
            font-size: clamp(0.9rem, 1.2vw, 1.2rem);
            color: var(--text-color);
            text-decoration: none;
            margin-bottom: clamp(0.5rem, 1vw, 1rem);
            margin-top: clamp(0.5rem, 1vw, 1rem);
            line-height: 1;
        }

        .project-contributors {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            margin-top: clamp(1.5rem, 2vw, 2.5rem);
            color: var(--text-secondary);
        }

        .project-contributor {
            font-size: clamp(0.7rem, 0.875vw, 0.875rem);
        }

        .project-right {
            flex: 0 1 60%;
            max-width: clamp(1500px, 110vw, 2400px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .project-image-container {
            width: 100%;
            max-width: clamp(1500px, 110vw, 2400px);
        }

        .project-image {
            width: 100%;
            height: auto;
            object-fit: contain;
            display: block;
        }

        /* When zoomed, use the carousel image only (hide duplicate overlay image) */
        .home-page.zoomed .project-right {
            display: none;
        }

        .project-detail-overlay .project-right {
            display: none;
        }

        /* Match original web view text sizing/spacing */
        .project-detail-overlay .project-content-container .project-title,
        .project-detail-overlay .project-content-container .project-role,
        .project-detail-overlay .project-content-container .project-design,
        .project-detail-overlay .project-content-container .project-company,
        .project-detail-overlay .project-content-container .project-year,
        .project-detail-overlay .project-content-container .project-contributor {
            font-size: clamp(0.9rem, 1.2vw, 1.2rem);
            line-height: 0.56;
        }

        .project-detail-overlay .project-content-container .project-contributor {
            line-height: 1.2;
        }

        .project-detail-overlay .project-content-container .project-title {
            margin-bottom: 0;
        }

        .project-detail-overlay .project-content-container .project-role {
            margin-bottom: 0;
        }

        .project-detail-overlay .project-content-container .project-design {
            margin-bottom: 0;
        }

        .project-detail-overlay .project-content-container .project-company {
            margin-bottom: 0;
        }

        .project-detail-overlay .project-content-container .project-year {
            margin-bottom: clamp(0.2rem, 0.4vw, 0.4rem);
        }

        .project-detail-overlay .project-content-container .project-contributors {
            margin-top: clamp(1.5rem, 2vw, 2.5rem);
        }

        .project-detail-overlay .project-content-container .project-link-arrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border: 2px solid var(--text-color);
            border-radius: 50%;
            font-size: clamp(0.9rem, 1.2vw, 1.2rem);
            margin-top: clamp(0.8rem, 1.6vw, 1.8rem);
            margin-bottom: 0;
        }

        .top-controls {
            position: fixed;
            top: 3rem;
            left: 4rem;
            right: 4rem;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            z-index: 10;
            pointer-events: none;
        }

        .back-button {
            font-size: 2.05rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 300;
            letter-spacing: 0.1em;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, color 0.2s ease;
        }

        .back-button:hover {
            color: var(--text-secondary-hover);
        }

        .theme-toggle {
            pointer-events: auto;
            position: relative;
            width: 2.2rem;
            height: 2.2rem;
            border: none;
            background: none;
            color: var(--text-secondary);
            cursor: none !important;
            display: grid;
            place-items: center;
        }

        .theme-toggle:hover {
            color: var(--text-secondary-hover);
        }

        .theme-toggle .sun-icon,
        .theme-toggle .moon-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            display: inline-block;
            transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 1.8rem;
            line-height: 1;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            width: 1.8rem;
            height: 1.8rem;
            display: grid;
            place-items: center;
        }

        .theme-toggle .sun-icon {
            opacity: 1;
            transform: translate(-50%, -50%) rotate(0deg) scale(1);
            width: 1em;
            height: 1em;
            display: inline-block;
            position: relative;
        }

        .theme-toggle .moon-icon {
            opacity: 0;
            font-size: 1.62rem;
            transform: translate(-50%, -50%) rotate(-90deg) scale(0);
        }

        [data-theme="dark"] .theme-toggle .sun-icon {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(90deg) scale(0);
        }

        [data-theme="dark"] .theme-toggle .moon-icon {
            opacity: 1;
            transform: translate(-50%, -50%) rotate(0deg) scale(1);
        }

        /* CSS sun symbol (match original) */
        .theme-toggle .sun-icon::before {
            content: "";
            position: absolute;
            inset: 28% 28%;
            border-radius: 50%;
            background: currentColor;
        }

        .theme-toggle .sun-icon::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 2px;
            height: 2px;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow:
                0 -9px 0 0 currentColor,
                0 9px 0 0 currentColor,
                -9px 0 0 0 currentColor,
                9px 0 0 0 currentColor,
                6px 6px 0 0 currentColor,
                -6px 6px 0 0 currentColor,
                6px -6px 0 0 currentColor,
                -6px -6px 0 0 currentColor;
            opacity: 0.9;
        }

        .theme-toggle .moon-icon {
            font-size: 1.62rem;
            line-height: 1;
        }

        .top-controls.show-back .back-button {
            opacity: 1;
            pointer-events: auto;
        }

        .top-controls.show-back {
            pointer-events: auto;
        }

        .top-controls.show-back .back-button {
            position: fixed;
            top: 3rem;
            left: 4rem;
        }

        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding-top: var(--top-pad-y);
            padding-left: var(--top-pad-x-left);
            padding-right: var(--top-pad-x-right);
            column-gap: clamp(1rem, 6vw, 6rem);
            z-index: 2;
            pointer-events: auto;
        }

        .top-left,
        .top-right {
            display: flex;
            flex-direction: column;
            gap: clamp(0.2rem, 0.6vw, 0.5rem);
            pointer-events: auto;
        }

        .top-right {
            align-items: flex-start;
            text-align: left;
            padding-left: var(--top-right-pad-left);
            padding-top: var(--top-right-pad-top);
            transform: translateX(calc(-1 * var(--home-text-shift)));
        }

        .top-left {
            transform: translateX(var(--home-text-shift));
        }

        .name-section {
            pointer-events: auto;
        }

        .name-section .name,
        .name-section .year {
            margin: 0;
            font-weight: 400;
            font-size: clamp(1.35rem, 2.1vw, 2.35rem);
            line-height: 1.1;
        }
            55% {
                opacity: 0.98;
                transform: translateY(-6%) scale(1);
                filter: blur(0.35px);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }
        }

        .links-section {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            text-align: left;
            pointer-events: auto;
        }

        .links-section .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: clamp(0.95rem, 1.2vw, 1.25rem);
            transition: color 0.2s ease, transform 0.2s ease;
            transform-origin: left center;
            display: inline-block;
        }

        .links-section .nav-link:hover {
            color: var(--text-secondary-hover);
            transform: scale(1.05);
        }

        .timeline-carousel {
            position: fixed;
            top: var(--carousel-top);
            left: 0;
            right: 0;
            width: 100%;
            z-index: 1;
            overflow: visible;
            pointer-events: auto;
            padding-bottom: clamp(2rem, 6vh, 6rem);
            transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1);
            transform-origin: center bottom;
        }

        @media (max-width: 1600px) {
            :root {
                --top-pad-y: clamp(4.2rem, 9vw, 7rem);
                --top-pad-x-left: clamp(8.5rem, 15.5vw, 15.5rem);
                --top-pad-x-right: clamp(9.5rem, 16.5vw, 16.5rem);
                --top-right-pad-left: clamp(3rem, 6vw, 6rem);
                --top-right-pad-top: clamp(0.15rem, 0.7vw, 0.8rem);
                --carousel-top: 16rem;
                --home-text-shift: clamp(2.6rem, 5.6vw, 6.9rem);
                --aiva-zoom-offset: 120px;
            }
        }

        @media (min-width: 1800px) {
            :root {
                --zoom-scale-laptop: 1.2;
                --zoom-scale-phone: 1.52;
                --aiva-zoom-offset: 140px;
            }
        }

        @media (max-width: 1400px) {
            :root {
                --zoom-scale-laptop: 1.15;
                --zoom-scale-phone: 1.45;
                --zoom-text-width-factor: 0.35;
                --zoom-text-max: 440;
                --zoom-text-gap: 26;
                --zoom-target-x-offset: 90;
                --zoom-target-x-phone-shift: 60;
                --zoom-target-y-laptop: 60;
                --zoom-target-y-phone: 70;
            }
        }

        @media (max-width: 1100px) {
            :root {
                --zoom-scale-laptop: 1.05;
                --zoom-scale-phone: 1.32;
                --zoom-text-width-factor: 0.32;
                --zoom-text-max: 380;
                --zoom-text-gap: 22;
                --zoom-target-x-offset: 70;
                --zoom-target-x-phone-shift: 45;
                --zoom-target-y-laptop: 45;
                --zoom-target-y-phone: 55;
            }
        }

        :root {
            --zoom-duration: 0.8s;
            --text-reveal-duration: 0.25s;
            --text-reveal-delay: calc(var(--zoom-duration) * 0.2);
        }

        .carousel-container {
            display: flex;
            align-items: flex-end;
            gap: clamp(2rem, 6vw, 6rem);
            padding-left: clamp(2rem, 6vw, 6rem);
            padding-right: clamp(2rem, 6vw, 6rem);
            width: 100%;
            justify-content: center;
            overflow: visible;
            cursor: grab;
            touch-action: pan-x;
            pointer-events: auto;
            user-select: none;
            max-width: 100%;
        }

        .carousel-container.dragging {
            cursor: grabbing;
        }

        /* Mobile overrides copied from previous build */
        @media (max-width: 768px) {
                    .custom-cursor {
                        display: none;
                    }
                }

        @media (max-width: 768px) {
                    .timeline-carousel {
                        width: max-content;
                        max-width: none;
                        left: 30px !important;
                        margin-left: 0 !important;
                        transform: translateX(0) translateY(-90px) !important;
                        top: calc(6.5rem + 6.0rem + var(--carousel-offset, 0px) + var(--carousel-bp-offset, 0px) + var(--carousel-size-offset, 0px)) !important;
                    }

                    .carousel-item {
                        display: block;
                    }

                    .carousel-item.active {
                        display: block;
                        transform: translateY(0) scale(1);
                        transform-origin: center bottom;
                    }

                    .timeline-carousel.zoomed .carousel-item {
                        display: block;
                    }

                    .carousel-container {
                        display: flex;
                        align-items: flex-end;
                        gap: 1.25rem;
                        overflow: visible;
                        padding-left: 0;
                    }

                    .laptop-stack {
                        height: 180px;
                    }

                    .phone-stack {
                        height: 140px;
                        width: auto;
                        transform: translateX(0);
                    }

                    .image-stack {
                        position: relative;
                        display: inline-block;
                    }

                    .image-stack .carousel-image {
                        width: auto;
                        height: 100%;
                    }

                    .image-stack .carousel-image.dark-image {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 100%;
                    }

                    .timeline-carousel.zoomed .carousel-item.active {
                        transform: translateX(0) translateY(-80px) scale(var(--active-zoom-scale));
                        transform-origin: center bottom;
                        transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
                    }

                    .timeline-carousel.zoomed .carousel-item.is-left {
                        transform: translateX(-120vw) scale(1);
                        transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
                    }

                    .timeline-carousel.zoomed .carousel-item.is-right {
                        transform: translateX(120vw) scale(1);
                        transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
                    }

                    .project-detail-overlay .project-left {
                        opacity: 0;
                        transition: opacity 0.35s ease;
                        transition-delay: 0s;
                    }

                    .project-detail-overlay.active .project-left {
                        opacity: 1;
                        transition-delay: 2.2s;
                    }
                }

        @media (max-width: 768px) {
                    .home-page {
                        z-index: 1;
                    }

                    .timeline-carousel {
                        z-index: 3;
                    }

                    .home-page .top-bar,
                    .home-page .top-left,
                    .home-page .top-right,
                    .home-page .name-section,
                    .home-page .links-section {
                        position: relative;
                        z-index: 20;
                        pointer-events: auto;
                    }
                }

        @media (max-width: 480px) {
                    .timeline-carousel {
                        width: 150px;
                        max-width: 150px;
                    }
                }

        @media (max-width: 480px) {
                    .project-image-container {
                        max-width: 100% !important;
                    }
                }

        @media (max-width: 480px) {
                    .project-page-container {
                        flex-direction: column;
                        padding: 4rem 5.5rem;
                        gap: 3rem;
                    }

                    .project-left {
                        flex: 1;
                        max-width: 100%;
                    }

                    .project-right {
                        width: 100%;
                        max-width: 100%;
                    }

                    .project-image-container {
                        max-width: 100% !important;
                    }
                }

        @media (max-width: 480px) {
                    .project-page-container {
                        padding: 2.5rem 3.5rem;
                    }
                }

        @media (max-width: 480px) {
                    .top-controls {
                        top: clamp(2.2rem, 4.5vw, 3.2rem);
                        left: clamp(2rem, 4.5vw, 2.5rem);
                        right: clamp(2rem, 4.5vw, 2.5rem);
                    }

                    .theme-toggle {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                        /* Align vertically with chevron - match back button top position exactly */
                        align-items: flex-start !important;
                    }

                    .theme-toggle:focus {
                        outline: none !important;
                    }

                    .theme-toggle:active {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .theme-toggle .sun-icon,
                    .theme-toggle .moon-icon {
                        font-size: 1.75rem !important;
                        width: 1.75rem !important;
                        height: 1.75rem !important;
                        text-align: center !important;
                        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
                        /* Ensure symbols render as text, not emoji */
                        font-variant-emoji: text;
                        -webkit-font-feature-settings: "liga" off;
                    }

                    /* Mobile: Back button bigger, more horizontal padding */
                    .back-button {
                        font-size: clamp(2.3rem, 5vw, 2.9rem) !important;
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .back-button:focus {
                        outline: none !important;
                    }

                    .back-button:active {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .project-back-button {
                        font-size: clamp(2.3rem, 5vw, 2.9rem) !important;
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .project-back-button:focus {
                        outline: none !important;
                    }

                    .project-back-button:active {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    /* Mobile: Name and year bigger, moved up higher, same horizontal padding as links */
                    .name-section {
                        position: fixed;
                        top: auto;
                        bottom: 60%;
                        left: 0;
                        padding: clamp(2rem, 4vw, 4rem) clamp(3rem, 8vw, 5.5rem);
                        padding-bottom: 0;
                        padding-left: clamp(3rem, 8vw, 5.5rem) !important;
                        padding-right: clamp(3rem, 8vw, 5.5rem) !important;
                        transform: translateY(0);
                    }

                    .name {
                        font-size: clamp(2rem, 5vw, 2.5rem) !important;
                        margin-bottom: clamp(0.1rem, 0.15vw, 0.15rem) !important;
                    }

                    .year {
                        font-size: clamp(2rem, 5vw, 2.5rem) !important;
                        margin-bottom: clamp(0.1rem, 0.15vw, 0.15rem) !important;
                    }

                    /* Mobile: Links right underneath year text, almost zero spacing, same horizontal padding */
                    .links-section {
                        position: fixed;
                        top: auto;
                        bottom: 60%;
                        left: 0;
                        padding: 0 clamp(3rem, 8vw, 5.5rem);
                        padding-top: 0;
                        transform: translateY(calc(100% - 2.5rem));
                        flex-direction: column;
                        align-items: flex-start;
                        gap: clamp(0.05rem, 0.1vw, 0.1rem);
                    }

                    .nav-link {
                        font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
                    }

                    /* Mobile: Carousel image on bottom half */
                    .timeline-carousel {
                        position: fixed;
                        top: auto;
                        bottom: 0;
                        left: 50%;
                        transform: translateX(-50%);
                        width: clamp(150px, 35vw, 220px);
                        max-width: clamp(150px, 35vw, 220px);
                        padding-bottom: clamp(2rem, 5vh, 4rem);
                    }

                    /* Mobile: About page - simple layout matching reference, same horizontal padding as home page */
                    .about-page-container {
                        flex-direction: column;
                        padding: 0;
                        gap: 0;
                        align-items: stretch;
                    }

                    /* Mobile: reset About layout to simple stacked flow */
                    .about-flex-group {
                        flex-direction: column !important;
                        height: auto !important;
                        gap: clamp(1.5rem, 3vw, 2rem) !important;
                        width: 100% !important;
                        max-width: 100% !important;
                        margin: 0 !important;
                        align-items: flex-start !important;
                    }

                    .about-left {
                        width: 100% !important;
                        max-width: 100% !important;
                        min-width: 0 !important;
                        height: auto !important;
                        overflow: visible !important;
                    }

                    .about-text-wrap {
                        transform: none !important;
                        height: auto !important;
                    }

                    .about-links {
                        margin-top: 0 !important;
                    }

                    /* Mobile: Completely reset about-right for mobile */
                    .about-right {
                        order: -1 !important;
                        width: 100% !important;
                        max-width: 100% !important;
                        height: clamp(220px, 50vw, 320px) !important;
                        min-height: clamp(220px, 50vw, 320px) !important;
                        max-height: none !important;
                        padding-top: clamp(1.5rem, 3vw, 3rem) !important;
                        padding-left: clamp(1rem, 3vw, 2rem) !important;
                        padding-right: clamp(1rem, 3vw, 2rem) !important;
                        padding-bottom: 0 !important;
                        display: flex !important;
                        align-items: center !important;
                        justify-content: center !important;
                        background: none !important;
                        opacity: 1 !important;
                        visibility: visible !important;
                        overflow: visible !important;
                        position: relative !important;
                        flex: none !important;
                        z-index: 2 !important;
                    }

                    .about-left {
                        z-index: 1 !important;
                    }

                    /* Force about-right to be visible */
                    #about.active .about-right,
                    #about .about-right,
                    #about.active .about-page-container .about-right,
                    #about .about-page-container .about-right,
                    .about-page-container .about-right {
                        opacity: 1 !important;
                        visibility: visible !important;
                        display: flex !important;
                        height: auto !important;
                        min-height: 0 !important;
                        max-height: none !important;
                    }

                    /* Mobile: Completely reset about-image for mobile */
                    .about-image {
                        width: 100% !important;
                        max-width: 100% !important;
                        height: 100% !important;
                        min-width: 0 !important;
                        min-height: 0 !important;
                        max-height: none !important;
                        object-fit: contain !important;
                        object-position: center !important;
                        display: block !important;
                        opacity: 1 !important;
                        visibility: visible !important;
                        background: none !important;
                        background-color: transparent !important;
                        filter: none !important;
                        -webkit-filter: none !important;
                        mix-blend-mode: normal !important;
                        position: relative !important;
                        z-index: 10 !important;
                    }

                    /* Force about-image to be visible with all possible selectors */
                    #about.active .about-image,
                    #about .about-image,
                    #about.active .about-right .about-image,
                    #about .about-right .about-image,
                    .about-right .about-image,
                    .about-right img,
                    img.about-image,
                    #about.active .about-page-container .about-image,
                    #about .about-page-container .about-image,
                    .about-page-container .about-image,
                    .about-page-container img {
                        width: 100% !important;
                        max-width: 100% !important;
                        height: auto !important;
                        min-width: 0 !important;
                        min-height: 0 !important;
                        max-height: none !important;
                        display: block !important;
                        opacity: 1 !important;
                        visibility: visible !important;
                        background: none !important;
                        background-color: transparent !important;
                        filter: none !important;
                        -webkit-filter: none !important;
                        mix-blend-mode: normal !important;
                    }

                    .about-left {
                        width: 100%;
                        padding-left: clamp(1rem, 3vw, 2rem) !important;
                        padding-right: clamp(1rem, 3vw, 2rem) !important;
                        padding-top: clamp(1.5rem, 3.5vw, 2.5rem) !important;
                        padding-bottom: clamp(4rem, 8vw, 6.5rem);
                    }

                    /* Mobile: Bigger bio and links text */
                    .about-paragraph {
                        font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
                        line-height: 1.5 !important;
                    }

                    .email-link,
                    .about-link {
                        font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
                    }

                    .project-page-container {
                        padding: clamp(2rem, 4vw, 4rem) clamp(3rem, 8vw, 5.5rem);
                        gap: clamp(2rem, 4vw, 3rem);
                    }

                    .project-left {
                        flex: 1;
                        max-width: 100%;
                    }

                    .project-right {
                        width: 100%;
                        max-width: 100%;
                    }

                    .project-image-container {
                        max-width: 100% !important;
                        min-width: 0;
                    }

                    /* Mobile: Project overlay - image larger and lower (text stays put) */
                    .timeline-carousel.zoomed {
                        top: 102vh !important;
                        left: 50% !important;
                        transform-origin: center bottom !important;
                        transform: translateX(-50%) translateY(-50%) scale(4.0) !important;
                    }

                    .project-landing .timeline-carousel.zoomed {
                        top: calc(102vh - 28px) !important;
                        left: calc(88% + 40px) !important;
                        transform: translateX(-50%) translateY(-50%) scale(4.0) !important;
                    }

                    .project-aiva .timeline-carousel.zoomed {
                        left: calc(10% - 75px) !important;
                        top: calc(102vh + 70px) !important;
                        transform: translateX(-50%) translateY(-50%) scale(3.9) !important;
                    }

                    .timeline-carousel.zoomed .carousel-image {
                        image-rendering: -webkit-optimize-contrast;
                        image-rendering: auto;
                        filter: none;
                    }

                    /* Mobile: Project content container - positioned below zoomed image */
                    .project-detail-overlay .project-content-container {
                        position: fixed !important;
                        top: calc(26vh + 292px) !important;
                        left: 50% !important;
                        transform: translateX(-50%) translateX(55px) !important;
                        width: 100% !important;
                        max-width: 520px !important;
                        display: flex !important;
                        justify-content: space-between !important;
                        align-items: flex-start !important;
                        padding: 0 clamp(2.5rem, 6vw, 4.5rem) !important;
                        height: auto !important;
                    }

                    /* Mobile: Project left - title and year only */
                    .project-detail-overlay .project-left {
                        position: relative !important;
                        left: auto !important;
                        top: auto !important;
                        transform: none !important;
                        flex: 0 0 auto !important;
                        max-width: 320px !important;
                        display: grid !important;
                        grid-template-columns: 1fr 1fr !important;
                        column-gap: clamp(2rem, 5vw, 3rem) !important;
                        align-items: start !important;
                        margin-top: 12px !important;
                    }

                    .project-detail-overlay .project-left > * {
                        grid-column: 1;
                        margin-top: 0 !important;
                    }

                    /* Mobile: Show role and design on mobile */
                    .project-detail-overlay .project-role,
                    .project-detail-overlay .project-design {
                        display: block !important;
                        font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
                    }

                    .project-detail-overlay .project-company {
                        display: block !important;
                        font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
                    }

                    /* Mobile: Project right - contributors only (no image) */
                    .project-detail-overlay .project-right {
                        display: flex !important;
                        flex: 0 0 auto !important;
                        max-width: 220px !important;
                        align-items: flex-start !important;
                        justify-content: flex-end !important;
                    }

                    .project-detail-overlay .project-right .project-image-container {
                        display: none !important;
                    }

                    /* Mobile: Contributors on the right column */
                    .project-detail-overlay .project-contributors {
                        grid-column: 2 !important;
                        grid-row: 1 / span 6 !important;
                        justify-self: start !important;
                        text-align: left !important;
                        margin-top: -70px !important;
                        transform: translateY(-28px) !important;
                        padding-top: 0 !important;
                        align-self: start !important;
                        margin-bottom: 0 !important;
                    }

                    .project-detail-overlay .project-contributor {
                        font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
                    }

                    .project-detail-overlay .project-title,
                    .project-detail-overlay .project-year {
                        font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
                    }

                    /* Mobile: Smooth opacity fades to avoid blink on zoom out */
                    .name-section,
                    .links-section,
                    .theme-toggle,
                    .project-detail-overlay .project-left {
                        transition: opacity 0.35s ease !important;
                    }

                }

        @media (max-width: 480px) {
                    .theme-toggle {
                        top: clamp(1.8rem, 3.5vw, 2.3rem) !important;
                        right: clamp(1.5rem, 3.5vw, 2rem) !important;
                        left: auto !important;
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                        /* Align vertically with chevron - match back button top position exactly */
                        align-items: flex-start !important;
                    }

                    /* Mobile: Theme toggle aligned vertically with back button */
                    .back-button {
                        top: clamp(1rem, 2vw, 1.5rem) !important;
                    }

                    .project-back-button {
                        top: clamp(1rem, 2vw, 1.5rem) !important;
                    }

                    .theme-toggle:focus {
                        outline: none !important;
                    }

                    .theme-toggle:active {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .theme-toggle .sun-icon,
                    .theme-toggle .moon-icon {
                        font-size: 1.75rem !important;
                        width: 1.75rem !important;
                        height: 1.75rem !important;
                        text-align: center !important;
                        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
                        /* Ensure symbols render as text, not emoji */
                        font-variant-emoji: text;
                        -webkit-font-feature-settings: "liga" off;
                    }

                    /* Mobile: Back button bigger, more horizontal padding */
                    .back-button {
                        top: clamp(1rem, 2vw, 1.5rem);
                        left: clamp(1.5rem, 3.5vw, 2rem) !important;
                        font-size: clamp(2rem, 4vw, 2.5rem) !important;
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .back-button:focus {
                        outline: none !important;
                    }

                    .back-button:active {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .project-back-button {
                        font-size: clamp(2.3rem, 5vw, 2.9rem) !important;
                        left: clamp(1.5rem, 3.5vw, 2rem) !important;
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .project-back-button:focus {
                        outline: none !important;
                    }

                    .project-back-button:active {
                        outline: none !important;
                        -webkit-tap-highlight-color: transparent !important;
                    }

                    .name-section {
                        padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
                    }

                    .links-section {
                        padding: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
                    }

                    .about-page-container {
                        padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
                    }

                    .project-page-container {
                        padding: clamp(1.5rem, 3vw, 4rem) clamp(2rem, 5vw, 5.5rem);
                    }
                }


        .carousel-track {
            display: flex;
            align-items: flex-end;
            gap: clamp(2rem, 6vw, 6rem);
            transform: translateX(calc(var(--carousel-offset, 0px) + var(--carousel-drag-offset, 0px)));
            will-change: transform;
            max-width: 100%;
        }

        .carousel-item {
            display: flex;
            align-items: flex-end;
            transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .image-stack {
            position: relative;
            display: inline-block;
            transform-origin: center bottom;
            transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1);
            backface-visibility: hidden;
            transform-style: preserve-3d;
        }

        .laptop-stack {
            height: clamp(340px, 30vw, 520px);
            max-height: calc(100vh - 16rem);
        }

        .phone-stack {
            height: clamp(234px, 21.6vw, 360px);
            max-height: calc(100vh - 18rem);
            width: auto;
            transform: translateX(12px);
        }

        .griz-stack {
            height: clamp(234px, 21.6vw, 360px);
            max-height: calc(100vh - 18rem);
            width: auto;
            transform: translateX(0);
        }

        @media (min-width: 769px) {
            .enduros-stack {
                height: clamp(94px, 8.64vw, 144px);
                max-height: calc(100vh - 18rem);
                width: auto;
                transform: translateX(12px);
            }

            .home-page:not(.zoomed) .timeline-carousel .image-stack {
                cursor: pointer !important;
            }

            .home-page:not(.zoomed) .timeline-carousel .image-stack .carousel-image {
                transition:
                    opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    filter 0.22s ease,
                    transform 0.22s ease;
            }

            .home-page:not(.zoomed) .timeline-carousel .image-stack:hover {
                transform: translateY(-4px) scale(1.02);
            }

            .home-page:not(.zoomed) .timeline-carousel .image-stack:hover .carousel-image {
                filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
            }
        }

        @media (max-width: 900px) {
            .carousel-container,
            .carousel-track {
                gap: clamp(1.5rem, 5vw, 4rem);
                padding-left: clamp(1.5rem, 5vw, 4rem);
                padding-right: clamp(1.5rem, 5vw, 4rem);
            }
        }

        .image-stack .carousel-image {
            width: auto;
            height: 100%;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: auto;
            backface-visibility: hidden;
            transform: translateZ(0);
            -webkit-user-drag: none;
            user-select: none;
            touch-action: pan-x;
        }

        .image-stack .carousel-image.dark-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .carousel-image.light-image {
            opacity: 1;
            transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .carousel-image.dark-image {
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        [data-theme="dark"] .carousel-image.light-image {
            opacity: 0;
        }

        [data-theme="dark"] .carousel-image.dark-image {
            opacity: 1;
        }

        .aiva-image { display: block; }

        .image-stack.expanded {
            position: fixed;
            left: 50%;
            top: 55%;
            transform: translate(-50%, -50%) scale(2.4);
            z-index: 20;
        }

        @media (max-width: 900px) {
            .image-stack.expanded {
                transform: translate(-50%, -50%) scale(2.1);
            }
        }

        .home-page.zoom-enter .carousel-item.slide-left,
        .home-page.zoom-enter .carousel-item.slide-right {
            opacity: 1;
            pointer-events: none;
        }

        .home-page.zoom-enter .image-stack:not(.zoomed-active) {
            transform: translate(var(--zoom-dx, 0px), var(--zoom-dy, 0px)) scale(var(--zoom-scale, 1));
            transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1);
        }

        .home-page.zoom-enter .carousel-item.slide-left .image-stack:not(.zoomed-active) {
            transform: translate(calc(var(--zoom-dx, 0px) - 120vw), var(--zoom-dy, 0px)) scale(var(--zoom-scale, 1));
        }

        .home-page.zoom-enter .carousel-item.slide-right .image-stack:not(.zoomed-active) {
            transform: translate(calc(var(--zoom-dx, 0px) + 120vw), var(--zoom-dy, 0px)) scale(var(--zoom-scale, 1));
        }

        .home-page.zoom-enter.swiping .carousel-item.slide-left .image-stack:not(.zoomed-active),
        .home-page.zoom-enter.swiping .carousel-item.slide-right .image-stack:not(.zoomed-active) {
            transform: translate(var(--zoom-dx, 0px), var(--zoom-dy, 0px)) scale(var(--zoom-scale, 1));
        }

        .home-page.zoom-enter .carousel-item {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .home-page.zoom-enter .carousel-item.zoom-visible {
            opacity: 1 !important;
            visibility: visible !important;
        }

        @keyframes slide-back-left {
            0% { transform: translateX(-120vw); }
            100% { transform: translateX(0); }
        }

        @keyframes slide-back-right {
            0% { transform: translateX(120vw); }
            100% { transform: translateX(0); }
        }

        .home-page.zoom-exit .carousel-item.slide-left {
            transform: translateX(-120vw);
            animation: slide-back-left var(--zoom-exit-duration) cubic-bezier(0.22, 0.9, 0.2, 1) both;
        }

        .home-page.zoom-exit .carousel-item.slide-right {
            transform: translateX(120vw);
            animation: slide-back-right var(--zoom-exit-duration) cubic-bezier(0.22, 0.9, 0.2, 1) both;
        }

        .home-page.zoom-exit .carousel-item {
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto;
            transition: none !important;
        }

        .home-page.zoomed .carousel-item {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .home-page.zoomed .carousel-item.zoom-visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* Ignore slide transforms when measuring positions */
        .no-slide .carousel-item.slide-left,
        .no-slide .carousel-item.slide-right {
            transform: none !important;
        }

        .image-stack.zoomed-active {
            z-index: 30;
            transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 1;
            visibility: visible;
        }

        .image-stack.zoomed-active .carousel-image {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: auto;
            filter: none;
        }

        .phone-stack .carousel-image {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: auto;
            filter: none;
        }

        .home-page.zoomed .name-section,
        .home-page.zoomed .links-section,
        .home-page.zoomed .theme-toggle {
            opacity: 0;
            filter: blur(10px);
            transition: opacity 0.5s ease, filter 0.5s ease;
        }

        .home-page .name-section,
        .home-page .links-section,
        .home-page .theme-toggle {
            transition: opacity var(--zoom-duration) ease,
                        filter var(--zoom-duration) ease;
        }

        .timeline-carousel.zoomed {
            transform: scale(1.08);
        }

        .theme-toggle {
            opacity: 0;
            pointer-events: none;
        }

        .zoom-project-aiva .theme-toggle {
            opacity: 1 !important;
            filter: none !important;
            pointer-events: auto !important;
        }

        .zoom-project-aiva #top-controls {
            pointer-events: auto !important;
        }

        .project-page {
            padding: var(--page-pad-y) var(--page-pad-x);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }

        .project-layout {
            display: flex;
            align-items: center;
            gap: var(--gap-xl);
            width: 100%;
            max-width: 1200px;
            justify-content: center;
        }

        .project-text {
            flex: 0 1 40%;
            min-width: 260px;
        }

        .project-text h2 {
            font-size: clamp(1.1rem, 1.6vw, 1.6rem);
            font-weight: 500;
            margin: 0 0 0.5rem 0;
        }

        .project-text p {
            margin: 0;
            font-size: clamp(0.9rem, 1.1vw, 1.1rem);
            color: var(--text-color);
        }

        .project-text .meta {
            margin-top: 0.35rem;
            color: var(--text-secondary);
        }

        .project-text .contributors {
            margin-top: 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.1rem;
            color: var(--text-secondary);
        }

        .project-image {
            flex: 0 1 60%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .project-image img {
            width: 100%;
            max-width: var(--project-image-max);
            min-width: var(--project-image-min);
            height: auto;
            object-fit: contain;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: auto;
        }

        /* About page (from original build) */
        .page.about-page {
            min-height: 100vh;
            position: fixed;
            inset: 0;
            z-index: 5;
            background-color: var(--about-glass-bg, rgba(255, 255, 255, 0.6));
            backdrop-filter: blur(14px) saturate(120%);
            -webkit-backdrop-filter: blur(14px) saturate(120%);
            opacity: 0;
            visibility: hidden;
            transform-origin: center;
            transition: background-color 0.45s ease;
        }

        .page.about-page.active {
            display: block;
            opacity: 1;
            visibility: visible;
        }

        .page.about-page .about-page-container {
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .page.about-page.show-content .about-page-container {
            opacity: 1;
        }

        .page.about-page.entering {
            opacity: 1;
            visibility: visible;
            animation: puff-in-center 0.45s cubic-bezier(0.470, 0.000, 0.745, 0.715) 0.08s both;
        }

        .page.about-page.exiting {
            animation: puff-out-center 0.45s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
            opacity: 1;
            visibility: visible;
        }

        .home-page.about-exit {
            animation: slide-out-bck-center 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
        }

        .home-page.about-enter {
            animation: slide-in-bck-center 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
        }

        .home-page.entry-puff {
            animation: puff-in-center 0.7s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
        }

        html.preload-hide,
        html.preload-hide body {
            opacity: 0;
        }

        .entry-loading .home-page {
            opacity: 0;
            transform: translateY(18px) scale(0.96);
            filter: blur(4px);
        }

        .splash-screen {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgb(28, 27, 30);
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .splash-screen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .splash-video {
            width: clamp(120px, 22vw, 280px);
            max-height: 32vh;
            object-fit: contain;
            border: 0;
            animation: splash-in 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
            animation-delay: 0.34s;
            will-change: transform, filter, opacity;
        }

        
        .splash-screen.exiting .splash-video {
            animation: splash-out 0.52s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
        }

        .splash-screen.exiting {
            animation: splash-overlay-out 0.44s ease 0.24s both;
        }
.home-page.about-hidden {
            opacity: 0;
            pointer-events: none;
        }

        .about-page-container {
            display: flex;
            min-height: 100vh;
            padding: 6.5rem 12rem;
            gap: clamp(2rem, 4vw, 4rem);
            align-items: center;
            justify-content: center;
            transform-origin: center top;
            background-color: var(--bg-color);
            transition: background-color 0.45s ease, color 0.45s ease;
        }

        .about-flex-group {
            display: flex;
            align-items: stretch;
            justify-content: flex-start;
            gap: 10px;
            width: auto;
            max-width: 1200px;
            min-width: 0;
            height: var(--about-image-height, auto);
            align-items: stretch;
            margin: 0 auto;
        }

        .about-left {
            flex: 1 1 0;
            width: var(--about-image-width, 100%);
            max-width: var(--about-image-width, 420px);
            min-width: 240px;
            background-color: transparent;
            transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        transform 0.25s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            overflow: hidden;
            min-width: 0;
        }

        .about-text-wrap {
            width: 100%;
            max-width: 100%;
            transform-origin: top left;
            transform: scale(var(--about-text-scale, 1));
            transition: transform 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }

        .about-right {
            flex: 0 0 auto;
            width: clamp(260px, 32vw, 520px);
            height: clamp(220px, 28vw, 420px);
            max-width: 520px;
            min-width: 240px;
            background: none;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            opacity: 1;
            visibility: visible;
            transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            min-width: 0;
            background-image: none;
        }

        .page.about-page.active .about-right {
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
        }

        .page.about-page.active .about-image {
            opacity: 1 !important;
            visibility: visible !important;
            display: block !important;
        }

        .about-paragraph {
            font-size: clamp(1.05rem, 0.72vw + 0.88rem, 1.32rem);
            line-height: var(--about-text-line-height, 1.58);
            color: var(--text-color);
            font-weight: 300;
            max-width: 100%;
            overflow-wrap: normal;
            word-break: normal;
            hyphens: none;
            -webkit-hyphens: none;
            flex: 0 0 auto;
            margin-bottom: 0;
            transition: color 0.45s ease;
        }

        .about-links {
            display: flex;
            flex-direction: column;
            gap: 0;
            max-width: 100%;
            margin-top: auto;
            transform: translateY(calc(-1 * var(--about-links-lift, clamp(1.05rem, 2.25vw, 2.2rem))));
            flex: 0 0 auto;
        }

        .email-link,
        .about-link {
            font-size: clamp(0.9rem, 0.5vw + 0.75rem, 1.1rem);
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 300;
            transition: color 0.45s ease, transform 0.2s ease;
            display: inline-block;
            transform-origin: left center;
            max-width: 100%;
            overflow-wrap: normal;
            word-break: normal;
            hyphens: none;
            -webkit-hyphens: none;
            line-height: 1.02;
            margin: 0;
        }

        .email-link:hover,
        .about-link:hover {
            color: var(--text-secondary-hover);
            transform: scale(1.05);
        }

        .about-image {
            max-width: 100%;
            max-height: 100%;
            width: 100%;
            height: 100%;
            min-width: 0;
            min-height: 0;
            object-fit: contain;
            object-position: center;
            filter: none;
            display: block;
            opacity: 1;
            visibility: visible;
            position: relative;
            z-index: 1;
            background: transparent;
            border-radius: 0 !important;
        }

        /* Smoother light/dark transition on About page */
        .page.about-page,
        .page.about-page .about-page-container,
        .page.about-page .about-left,
        .page.about-page .about-right,
        .page.about-page .about-paragraph,
        .page.about-page .about-link,
        .page.about-page .email-link,
        .page.about-page .about-image {
            transition: background-color 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        color 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        filter 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* Web: tighten About text + links and center the block on the image edge */
        @media (min-width: 769px) {
            .about-flex-group {
                display: grid;
                grid-template-columns: minmax(280px, 360px) clamp(260px, 32vw, 520px);
                column-gap: 10px;
                align-items: stretch;
                height: clamp(220px, 28vw, 420px);
            }

            .about-left {
                width: 100%;
                max-width: none;
                min-width: 0;
                height: 100%;
                display: flex;
                align-items: stretch;
                justify-content: flex-start;
                overflow: hidden;
            }

            .about-text-wrap {
                width: 100%;
                height: 100%;
                margin-left: 0;
                text-align: left;
                justify-content: space-between;
                transform: none !important;
            }

            .about-paragraph {
                margin: 0;
                hyphens: none;
                -webkit-hyphens: none;
                word-break: normal;
                overflow-wrap: normal;
            }

            .about-links {
                margin-top: 0;
                transform: none !important;
                padding-top: 0;
            }

            .about-right {
                width: 100%;
                max-width: none;
                min-width: 0;
                height: 100%;
            }

            .about-image {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }

        @keyframes puff-in-center {
            0% {
                transform: scale(1.08);
                filter: blur(4px);
                opacity: 0;
            }
            100% {
                transform: scale(1);
                filter: blur(0);
                opacity: 1;
            }
        }

        @keyframes splash-in {
            0% {
                opacity: 0;
                filter: blur(14px);
                transform: scale(0.75);
            }
            100% {
                opacity: 1;
                filter: blur(0);
                transform: scale(1);
            }
        }

        @keyframes splash-out {
            0% {
                opacity: 1;
                filter: blur(0);
                transform: scale(1);
            }
            58% {
                opacity: 1;
                filter: blur(1px);
                transform: scale(0.76);
            }
            100% {
                opacity: 0;
                filter: blur(10px);
                transform: scale(0.56);
            }
        }

        @keyframes splash-in-mobile {
            0% {
                opacity: 0;
                transform: scale(0.92);
                filter: blur(4px);
            }
            100% {
                opacity: 1;
                transform: scale(1);
                filter: blur(0);
            }
        }

        @keyframes splash-out-mobile {
            0% {
                opacity: 1;
                transform: scale(1);
                filter: blur(0);
            }
            100% {
                opacity: 0;
                transform: scale(0.9);
                filter: blur(4px);
            }
        }

        @keyframes splash-overlay-out {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        @keyframes splash-screen-mobile-in {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        @keyframes puff-out-center {
            0% {
                transform: scale(1);
                filter: blur(0);
                opacity: 1;
            }
            100% {
                transform: scale(1.08);
                filter: blur(4px);
                opacity: 0;
            }
        }

        @keyframes slide-out-bck-center {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(0.94);
                opacity: 0;
            }
        }

        @keyframes slide-in-bck-center {
            0% {
                transform: scale(0.94);
                opacity: 0;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @media (max-width: 900px) {
            .project-layout {
                flex-direction: column;
                align-items: center;
                text-align: left;
            }

            .project-text,
            .project-image {
                width: 100%;
                max-width: 100%;
            }
        }

        @media (max-width: 700px) {
            .top-controls {
                top: 1.5rem;
                left: 1.5rem;
                right: 1.5rem;
            }

            .top-controls.show-back .back-button {
                top: 1.5rem;
                left: 1.5rem;
            }
        }

        /* =========================================================
           Mobile Breakpoint Reset (single-file mobile rebuild base)
           ========================================================= */
        @media (max-width: 768px) {
            :root {
                --top-pad-y: 7.6rem;
                --top-pad-x-left: 1.05rem;
                --top-pad-x-right: 1.05rem;
                --top-right-pad-left: 1.4rem;
                --top-right-pad-top: 0.1rem;
                --carousel-offset: 2.6rem;
                --home-image-gap: 0.95rem;
            }

            html, body {
                height: 100svh !important;
                overflow: hidden !important;
                overscroll-behavior: none !important;
            }

            .page,
            .home-page {
                height: 100svh !important;
                overflow: hidden !important;
                touch-action: pan-x !important;
            }

            .top-bar {
                justify-content: flex-start !important;
                align-items: flex-start !important;
                flex-direction: column !important;
                row-gap: 0.55rem !important;
            }

            .top-left,
            .top-right {
                transform: none !important;
            }

            .top-right {
                margin-top: 0.75rem !important;
                padding-left: 0 !important;
                padding-top: 0 !important;
            }

            .name-section {
                top: var(--top-pad-y) !important;
                left: var(--top-pad-x-left) !important;
                transform: translateX(-0.85rem) !important;
            }

            .name-section .name,
            .name-section .year {
                font-size: clamp(2.45rem, 7.7vw, 3.8rem) !important;
                line-height: 1.01 !important;
            }

            .links-section {
                position: static !important;
                top: auto !important;
                left: auto !important;
                right: auto !important;
                margin-top: 0 !important;
                gap: 0.4rem !important;
                transform: translateX(-0.9rem) !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
            }

            .links-section .nav-link {
                font-size: clamp(1.35rem, 4.4vw, 2.1rem) !important;
                line-height: 1 !important;
            }

            .timeline-carousel {
                left: -1.7rem !important;
                top: calc(22.4rem + var(--carousel-offset)) !important;
                transform: translateX(calc(var(--carousel-offset, 0px) + var(--carousel-drag-offset, 0px))) !important;
                transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
            }

            .carousel-container {
                gap: var(--home-image-gap) !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            .carousel-track {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            .griz-stack {
                height: 252px !important;
            }

            .laptop-stack {
                height: 296px !important;
            }

            .phone-stack {
                height: 224px !important;
            }

            .image-stack.enduros-stack:not(.zoomed-active) .carousel-image {
                transform: translateZ(0) scale(0.4) !important;
                transform-origin: center bottom !important;
                transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
                will-change: transform !important;
            }

            .image-stack.enduros-stack.zoom-exiting .carousel-image,
            .image-stack.enduros-stack.zoomed-active.zoom-exiting .carousel-image {
                transform: translateZ(0) scale(0.4) !important;
                transform-origin: center bottom !important;
                transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
                will-change: transform !important;
            }

            .image-stack.enduros-stack.zoomed-active .carousel-image {
                transform: translateZ(0) scale(1) !important;
                transition: transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
                will-change: transform !important;
            }

            .image-stack.griz-stack:not(.zoomed-active) .carousel-image {
                transform: translateZ(0) scale(0.9) !important;
                transform-origin: center bottom !important;
            }

            .image-stack.griz-stack.zoomed-active .carousel-image {
                transform: translateZ(0) scale(1) !important;
            }

            /* Mobile About: image top-center, text box below, links below */
            #about.about-page .about-page-container {
                display: flex !important;
                align-items: flex-start !important;
                justify-content: center !important;
                padding: 6.2rem 1.3rem 2rem !important;
                min-height: 100svh !important;
            }

            #about.about-page .about-flex-group {
                width: min(92vw, 460px) !important;
                max-width: 460px !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: flex-start !important;
                gap: 0.95rem !important;
                height: auto !important;
            }

            #about.about-page .about-right {
                order: 1 !important;
                width: min(92vw, 420px) !important;
                height: auto !important;
                min-width: 0 !important;
                max-width: 420px !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                overflow: visible !important;
                margin-top: -1.1rem !important;
            }

            #about.about-page .about-image {
                width: 100% !important;
                height: auto !important;
                object-fit: contain !important;
                display: block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #about.about-page .about-left {
                order: 2 !important;
                width: min(92vw, 420px) !important;
                max-width: 420px !important;
                min-width: 0 !important;
                height: auto !important;
                display: flex !important;
                align-items: center !important;
                justify-content: flex-start !important;
                padding: 0 !important;
                margin: 0 !important;
            }

            #about.about-page .about-text-wrap {
                width: 100% !important;
                background: rgba(255, 255, 255, 0.06) !important;
                border: 1px solid rgba(255, 255, 255, 0.14) !important;
                border-radius: 12px !important;
                padding: 0.95rem 1rem !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                gap: 0.8rem !important;
                transform: none !important;
                height: auto !important;
            }

            #about.about-page .about-paragraph {
                margin: 0 !important;
                font-size: clamp(1.24rem, 4.1vw, 1.44rem) !important;
                line-height: 1.45 !important;
                hyphens: none !important;
                -webkit-hyphens: none !important;
                word-break: normal !important;
                overflow-wrap: normal !important;
            }

            #about.about-page .about-links {
                margin: 0 !important;
                transform: translateY(-0.5rem) !important;
                gap: 0.28rem !important;
                width: 100% !important;
            }

            #about.about-page .about-link,
            #about.about-page .email-link {
                hyphens: none !important;
                -webkit-hyphens: none !important;
                word-break: normal !important;
                overflow-wrap: normal !important;
            }

            .project-detail-overlay .corner-back {
                top: 1.55rem !important;
                left: 1.45rem !important;
            }

            .zoom-project-aiva #top-controls .theme-toggle {
                position: fixed !important;
                top: 1.55rem !important;
                right: 1.45rem !important;
                left: auto !important;
            }

            /* Mobile About transitions */
            #about.about-page.entering {
                animation: puff-in-center 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
            }

            #about.about-page.exiting {
                animation: puff-out-center 0.52s cubic-bezier(0.22, 1, 0.36, 1) both !important;
            }

            .home-page.about-exit {
                animation: slide-out-bck-center 0.48s cubic-bezier(0.22, 1, 0.36, 1) both !important;
            }

            .home-page.about-enter {
                animation: slide-in-bck-center 0.48s cubic-bezier(0.22, 1, 0.36, 1) both !important;
            }

            .project-detail-overlay .project-content-container {
                top: auto !important;
                bottom: 5.1rem !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                width: min(92vw, 520px) !important;
                gap: clamp(1.1rem, 3vw, 2.2rem) !important;
                padding: 0 clamp(1.2rem, 4.5vw, 2rem) !important;
            }

            /* Mobile overlay: keep zoomed image visible and text cleanly separated */
            .timeline-carousel.zoomed {
                left: -1.7rem !important;
                top: calc(22.4rem + var(--carousel-offset)) !important;
                transform: translateX(calc(var(--carousel-offset, 0px) + var(--carousel-drag-offset, 0px))) !important;
            }

            .project-landing .timeline-carousel.zoomed,
            .project-aiva .timeline-carousel.zoomed,
            .project-griz .timeline-carousel.zoomed {
                left: -1.7rem !important;
                top: calc(22.4rem + var(--carousel-offset)) !important;
                transform: translateX(calc(var(--carousel-offset, 0px) + var(--carousel-drag-offset, 0px))) !important;
            }

            .home-page.zoom-enter .carousel-item.zoom-visible,
            .home-page.zoomed .carousel-item.zoom-visible,
            .home-page.zoom-exit .carousel-item.zoom-visible {
                opacity: 1 !important;
                visibility: visible !important;
            }

            /* While exiting zoom, bring all carousel items back so side items slide in */
            .home-page.zoomed.zoom-exit .carousel-item {
                opacity: 1 !important;
                visibility: visible !important;
                pointer-events: none !important;
            }

            .home-page.zoom-enter .carousel-item:not(.zoom-visible),
            .home-page.zoomed:not(.zoom-exit) .carousel-item:not(.zoom-visible) {
                opacity: 0 !important;
                visibility: hidden !important;
                animation: none !important;
                transition: none !important;
                transform: none !important;
                pointer-events: none !important;
            }

            .home-page.zoomed .image-stack.zoomed-active {
                opacity: 1 !important;
                visibility: visible !important;
                will-change: transform !important;
            }

            /* Puff text back when returning home from overlay */
            .home-page.zoom-exit .name-section,
            .home-page.zoom-exit .links-section {
                opacity: 0 !important;
                filter: blur(8px) !important;
                animation: puff-in-center 0.22s cubic-bezier(0.47, 0, 0.745, 0.715) both !important;
                animation-delay: 0s !important;
            }

            .home-page.zoom-exit .links-section {
                animation-delay: 0.03s !important;
            }

            .project-detail-overlay .project-content-container {
                display: flex !important;
                justify-content: center !important;
                align-items: flex-start !important;
                bottom: 3.1rem !important;
                width: min(84vw, 430px) !important;
            }

            .project-detail-overlay .project-left {
                width: 100% !important;
                max-width: 100% !important;
                margin-top: 0 !important;
                display: grid !important;
                grid-template-columns: 1fr auto !important;
                column-gap: clamp(0.9rem, 3vw, 1.35rem) !important;
                row-gap: 0.04rem !important;
                align-items: start !important;
                position: relative !important;
                overflow: visible !important;
            }

            .project-detail-overlay .project-left > :not(.project-contributors) {
                grid-column: 1 !important;
                margin: 0 !important;
            }

            .project-detail-overlay .project-right {
                display: none !important;
            }

            .project-detail-overlay .project-image-container,
            .project-detail-overlay #project-image {
                display: none !important;
            }

            .project-detail-overlay .project-title,
            .project-detail-overlay .project-role,
            .project-detail-overlay .project-design,
            .project-detail-overlay .project-company,
            .project-detail-overlay .project-year,
            .project-detail-overlay .project-contributor {
                font-size: clamp(1rem, 3.3vw, 1.22rem) !important;
                line-height: 1.02 !important;
            }

            .project-detail-overlay .project-content-container .project-link-arrow {
                margin-top: 5.4rem !important;
                margin-bottom: 0 !important;
                transform: translateY(0.45rem) !important;
                line-height: 1 !important;
            }

            .project-detail-overlay .project-contributors {
                grid-column: 2 !important;
                grid-row: 1 / span 7 !important;
                margin-top: 0 !important;
                transform: none !important;
                padding-top: 0 !important;
                align-self: start !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 0.2rem !important;
                white-space: nowrap !important;
            }
        }

        @media (max-width: 480px) {
            .name-section .name,
            .name-section .year {
                font-size: clamp(1.9rem, 8.1vw, 2.8rem) !important;
            }

            .links-section .nav-link {
                font-size: clamp(1.1rem, 4.8vw, 1.7rem) !important;
            }

            .timeline-carousel {
                left: -1.7rem !important;
            }

            .griz-stack {
                height: 210px !important;
            }

            .laptop-stack {
                height: 246px !important;
            }

            .phone-stack {
                height: 186px !important;
            }
        }
        /* Force home links vertical everywhere */
        .home-page .top-right .links-section,
        .home-page .links-section {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
            gap: 0.25rem !important;
            text-align: left !important;
            overflow: visible !important;
        }

        .home-page .top-right .links-section .nav-link,
        .home-page .links-section .nav-link {
            display: block !important;
            width: max-content !important;
            line-height: 1.24 !important;
            padding-bottom: 0.08em !important;
        }

        @media (min-width: 769px) {
            .home-page .top-right .links-section,
            .home-page .links-section {
                transform: translateY(-8px) !important;
            }
        }

        @media (max-width: 768px) {
            .home-page .top-bar {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                row-gap: 0.5rem !important;
                transform: translateY(-60px) !important;
            }

            .home-page .top-left,
            .home-page .top-right {
                transform: none !important;
            }

            .home-page .name-section {
                transform: translateX(calc(-0.85rem - 12px)) !important;
            }

            .home-page .name-section .name {
                white-space: nowrap !important;
                display: block !important;
            }

            .home-page .top-right {
                margin-top: 4.15rem !important;
                padding: 0 !important;
                transform: translateX(11px) !important;
            }

            .home-page .top-right .links-section,
            .home-page .links-section {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                gap: 0.35rem !important;
                margin-top: 0 !important;
                position: static !important;
                left: auto !important;
                right: auto !important;
                top: auto !important;
                transform: none !important;
            }
        }
        @media (max-width: 768px) {
            body.zoom-project-landing .project-detail-overlay .project-left,
            body.zoom-project-aiva .project-detail-overlay .project-left {
                margin-top: 14px !important;
                transform: translateY(14px) !important;
            }
        }
        /* Tablet portrait only: isolated overrides so desktop/mobile stay unchanged */
        @media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
            html,
            body,
            .home-page {
                overflow: hidden !important;
                touch-action: pan-x !important;
            }

            .timeline-carousel,
            .carousel-container,
            .carousel-track,
            .image-stack {
                touch-action: pan-x !important;
            }

            .custom-cursor {
                display: none !important;
            }

            .home-page .top-bar {
                top: clamp(2.2rem, 4.5vh, 3.6rem) !important;
                left: clamp(2.2rem, 4vw, 3.8rem) !important;
                right: clamp(2.2rem, 4vw, 3.8rem) !important;
                transform: translateY(116px) !important;
                display: flex !important;
                flex-direction: row !important;
                justify-content: space-between !important;
                align-items: flex-start !important;
                row-gap: 0 !important;
            }

            .home-page .top-left {
                transform: translateX(-24px) !important;
            }

            .home-page .top-right {
                transform: translateX(24px) !important;
            }

            .home-page .name-section .name {
                font-size: clamp(2.35rem, 4.6vw, 3.1rem) !important;
                line-height: 1.2 !important;
                margin-bottom: 0.25rem !important;
            }

            .home-page .name-section .year {
                font-size: clamp(2.35rem, 4.6vw, 3.1rem) !important;
                line-height: 1.2 !important;
            }

            .home-page .links-section .nav-link {
                font-size: clamp(1.34rem, 2.55vw, 1.65rem) !important;
                line-height: 1.24 !important;
            }

            .home-page .name-section .year {
                margin-bottom: 0 !important;
            }

            .home-page .links-section {
                gap: 0.32rem !important;
                margin-top: 0 !important;
            }

            .timeline-carousel {
                top: 62% !important;
                transform: translateX(0) translateY(-50%) !important;
                transition: top var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1),
                            left var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1),
                            transform var(--zoom-duration) cubic-bezier(0.16, 1, 0.3, 1) !important;
            }

            .timeline-carousel.zoomed {
                top: 37.5% !important;
            }

            .carousel-container {
                gap: clamp(1.8rem, 3vw, 2.6rem) !important;
                padding-left: clamp(1.6rem, 3.6vw, 2.8rem) !important;
                padding-right: clamp(1.6rem, 3.6vw, 2.8rem) !important;
            }

            .griz-stack {
                height: clamp(300px, 39vw, 380px) !important;
            }

            .laptop-stack {
                height: clamp(430px, 55vw, 520px) !important;
            }

            .phone-stack {
                height: clamp(300px, 39vw, 380px) !important;
            }

            .timeline-carousel .phone-stack.enduros-stack {
                height: clamp(120px, 16vw, 150px) !important;
                max-height: clamp(120px, 16vw, 150px) !important;
            }

            .carousel-item[data-project="griz"] {
                margin-inline: 1.1rem !important;
            }

            .project-detail-overlay .project-content-container {
                width: min(860px, 90vw) !important;
                gap: 0 !important;
                top: 72% !important;
                left: 50% !important;
                transform: translateX(-50%) translateY(-50%) !important;
            }

            .project-detail-overlay .project-left {
                max-width: min(760px, 86vw) !important;
                width: 100% !important;
                padding-left: 0 !important;
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                column-gap: clamp(1.8rem, 4vw, 3.2rem) !important;
                row-gap: 0 !important;
                align-items: start !important;
                transform: translateX(-28px) !important;
            }

            .project-detail-overlay .project-left > :not(.project-contributors) {
                grid-column: 1 !important;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }

            .project-detail-overlay .project-right {
                display: none !important;
            }

            /* Tablet portrait overlay pages: slightly looser text spacing */
            .project-detail-overlay .project-title,
            .project-detail-overlay .project-role,
            .project-detail-overlay .project-design,
            .project-detail-overlay .project-company,
            .project-detail-overlay .project-year,
            .project-detail-overlay .project-contributor {
                font-size: clamp(1.35rem, 2.25vw, 1.75rem) !important;
                line-height: 1.16 !important;
                margin-bottom: 0 !important;
                margin-top: 0 !important;
            }

            .project-detail-overlay .project-contributors {
                grid-column: 2 !important;
                grid-row: 1 / span 6 !important;
                justify-self: start !important;
                text-align: left !important;
                margin-top: 0 !important;
                transform: none !important;
                padding-top: 0 !important;
                align-self: start !important;
            }

            .project-detail-overlay .project-contributor {
                white-space: nowrap !important;
            }

            .project-detail-overlay .project-title {
                margin-bottom: 0.36rem !important;
            }

            .project-detail-overlay .project-role {
                margin-bottom: 0.28rem !important;
            }

            .project-detail-overlay .project-design {
                margin-bottom: 0.16rem !important;
            }

            .project-detail-overlay .project-company {
                margin-bottom: 0.16rem !important;
            }

            .project-detail-overlay .project-year {
                margin-bottom: 0.24rem !important;
            }

            .project-detail-overlay .project-content-container .project-link-arrow {
                margin-top: 2.55rem !important;
                transform: translateY(1.35rem) !important;
            }

            /* Tablet portrait About page: rebuilt to guarantee image + text + links are visible */
            #about.about-page .about-page-container {
                display: flex !important;
                align-items: flex-start !important;
                justify-content: center !important;
                padding: 4.2rem 2rem 2rem !important;
                min-height: 100svh !important;
                overflow-y: auto !important;
            }

            #about.about-page .about-flex-group {
                width: min(88vw, 760px) !important;
                max-width: 760px !important;
                display: grid !important;
                grid-template-columns: 1fr !important;
                grid-auto-rows: auto !important;
                justify-items: center !important;
                align-items: start !important;
                gap: 1rem !important;
                height: auto !important;
                max-height: none !important;
                margin: 16rem auto 0 !important;
                transform: none !important;
            }

            #about.about-page .about-right {
                order: 1 !important;
                width: min(72vw, 520px) !important;
                max-width: 520px !important;
                min-width: 0 !important;
                height: auto !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                overflow: visible !important;
                margin: 0 !important;
                transform: none !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #about.about-page .about-image {
                width: 100% !important;
                height: auto !important;
                object-fit: contain !important;
                display: block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #about.about-page .about-left {
                order: 2 !important;
                width: min(72vw, 520px) !important;
                max-width: 520px !important;
                min-width: 0 !important;
                height: auto !important;
                display: block !important;
                overflow: visible !important;
                padding: 0 !important;
                margin: 0 !important;
                transform: none !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #about.about-page .about-text-wrap {
                width: 100% !important;
                height: auto !important;
                text-align: left !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                justify-content: flex-start !important;
                gap: 0.72rem !important;
                transform: none !important;
                padding: 0 !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #about.about-page .about-paragraph {
                font-size: clamp(1.28rem, 2.4vw, 1.85rem) !important;
                line-height: 1.46 !important;
                margin: 0 !important;
            }

            #about.about-page .about-links {
                display: flex !important;
                flex-direction: column !important;
                gap: 0.35rem !important;
                margin: 0 !important;
                transform: none !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #about.about-page .about-link,
            #about.about-page .email-link {
                font-size: clamp(1.08rem, 2.1vw, 1.4rem) !important;
                line-height: 1.2 !important;
            }

            /* Keep bottoms aligned across overlay projects in tablet portrait */
            body.zoom-project-landing .timeline-carousel.zoomed {
                top: 37.5% !important;
                left: -7% !important;
            }

            body.zoom-project-aiva .timeline-carousel.zoomed,
            body.zoom-project-griz .timeline-carousel.zoomed,
            body.zoom-project-enduros .timeline-carousel.zoomed {
                top: 37.5% !important;
                left: -4% !important;
            }

            body.zoom-project-enduros .timeline-carousel.zoomed {
                top: 46% !important;
            }
        }

        @media (min-width: 700px) and (max-width: 1400px) and (orientation: landscape) {
            html,
            body {
                height: 100dvh !important;
                overflow: hidden !important;
                overscroll-behavior-y: none !important;
                touch-action: pan-x !important;
            }

            .home-page {
                height: 100dvh !important;
                overflow: hidden !important;
                overscroll-behavior-y: none !important;
                touch-action: pan-x !important;
            }

            .custom-cursor {
                display: none !important;
            }

            html,
            body,
            * {
                cursor: auto !important;
            }

            body.zoom-project-landing .timeline-carousel.zoomed {
                top: 39% !important;
            }
        }

        /* Disable custom cursor globally */
        html,
        body,
        * {
            cursor: auto !important;
        }

        .custom-cursor {
            display: none !important;
        }
