
        body {
            background-color: #0a0a0a;
            color: #f5f5f5;
            margin: 0;
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
        }

        /* Hide native cursor only when custom cursor is active (fine pointers) */
        body.has-cursor,
        body.has-cursor a,
        body.has-cursor button {
            cursor: none;
        }

        #intro-wrapper {
            position: fixed;
            inset: 0;
            z-index: 1;
            background: #0a0a0a;
        }

        canvas {
            width: 100vw;
            height: 100vh;
            object-fit: cover;
        }

        main {
            position: relative;
            z-index: 10;
        }

        section {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 10vh 10%;
            position: relative;
        }

        #page-bg-overlay {
            position: fixed;
            inset: 0;
            z-index: 5;
            background: #0a0a0a;
            opacity: 0;
            pointer-events: none;
        }

        .grain-overlay {
            position: fixed;
            inset: -100px;
            z-index: 999;
            pointer-events: none;
            opacity: 0.09;
            background: url("data:image/svg+xml,%3Csvg width='256' height='256' viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            background-size: 256px 256px;
            animation: grainShift 0.9s steps(4) infinite;
            will-change: background-position;
        }

        /* film-grain flicker — remove this block to freeze the grain */
        @keyframes grainShift {
            0% { background-position: 0 0; }
            25% { background-position: -64px 32px; }
            50% { background-position: 32px -48px; }
            75% { background-position: -32px -64px; }
            100% { background-position: 0 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            .grain-overlay { animation: none; }
        }

        .nav-link {
            opacity: 0.4;
            transition: opacity 0.4s ease;
        }

        .nav-link:hover {
            opacity: 0.75;
        }

        .nav-link.active {
            opacity: 1;
        }

        #intro-video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
            opacity: 0;
            z-index: 3;
        }

        #home-video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
            opacity: 0;
        }

        #connect-scene {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
        }

        #connect-approved-layer {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            pointer-events: none;
            will-change: transform;
            opacity: 1;
        }

        #next-section-btn {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 1000;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, visibility 0.3s ease;
            will-change: transform;
        }

        /* ── TYPE TOKENS ── */
        :root {
            --font-display: "Instrument Serif", serif;
            --font-body: 'Inter', sans-serif;
            --font-mono: monospace;
            --text-hero: clamp(3.75rem, 8vw, 6rem);
            --text-display: clamp(3rem, 6vw, 4.5rem);
            /* FIX: was declared twice — the 2nd tiny value overrode the display size.
               One declaration now, sized for the list-row layout. */
            --text-works-title: clamp(1.5rem, 2.6vw, 2.4rem);
            --text-grid-title: 1.5rem;
            --text-section-heading: 1rem;
            --text-body: 15px;
            --text-small: 13px;
            --text-label: 9px;
            --weight-light: 300;
            --weight-regular: 400;
            --leading-tight: 1.1;
            --leading-body: 1.8;
            --leading-relaxed: 1.6;
            --accent: #C8B89A;
        }

        /* ── TYPE CLASSES ── */
        .type-hero {
            font-family: var(--font-display);
            font-size: var(--text-hero);
            font-weight: var(--weight-light);
            font-style: normal;
            letter-spacing: -0.03em;
            line-height: var(--leading-tight);
            color: #fff;
        }

        .type-display {
            font-family: var(--font-display);
            font-size: var(--text-display);
            font-weight: var(--weight-light);
            font-style: normal;
            letter-spacing: -0.03em;
            line-height: var(--leading-tight);
            color: #fff;
        }

        .type-section-label {
            font-family: var(--font-mono);
            font-size: var(--text-label);
            text-transform: uppercase;
            letter-spacing: 0.4em;
            opacity: 0.3;
        }

        .type-section-heading {
            font-family: var(--font-body);
            font-size: var(--text-section-heading);
            font-weight: var(--weight-light);
            letter-spacing: -0.01em;
            text-transform: uppercase;
            color: #fff;
        }

        .type-body {
            font-family: var(--font-body);
            font-size: var(--text-body);
            font-weight: var(--weight-light);
            line-height: var(--leading-body);
            color: rgba(255, 255, 255, 0.6);
        }

        .type-body p {
            margin-bottom: 2rem;
        }

        .type-body-accent {
            font-family: var(--font-body);
            font-size: var(--text-small);
            font-weight: var(--weight-light);
            line-height: var(--leading-relaxed);
            color: rgba(255, 255, 255, 0.3);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            padding-left: 1.5rem;
        }

        .type-grid-title {
            font-family: var(--font-display);
            font-size: var(--text-grid-title);
            font-weight: var(--weight-regular);
            font-style: normal;
            line-height: var(--leading-tight);
            color: #fff;
            margin-bottom: 16px;
            text-transform: lowercase;
        }

        .type-grid-desc {
            font-family: var(--font-body);
            font-size: var(--text-small);
            font-weight: var(--weight-light);
            line-height: var(--leading-relaxed);
            color: rgba(255, 255, 255, 0.4);
        }

        .type-model-heading {
            font-family: var(--font-body);
            font-size: 1.25rem;
            font-weight: var(--weight-light);
            color: #fff;
            margin-bottom: 0.5rem;
        }

        .type-model-subhead {
            font-family: var(--font-display);
            font-style: italic;
            font-size: var(--text-small);
            opacity: 0.4;
            letter-spacing: 0.05em;
        }

        .type-model-title {
            font-family: var(--font-display);
            font-size: var(--text-grid-title);
            font-weight: var(--weight-regular);
            font-style: normal;
            line-height: var(--leading-tight);
            color: #fff;
            margin-bottom: 12px;
        }

        .type-model-desc {
            font-family: var(--font-body);
            font-size: var(--text-small);
            font-weight: var(--weight-light);
            line-height: var(--leading-relaxed);
            color: rgba(255, 255, 255, 0.4);
        }

        .type-works-title {
            font-family: var(--font-body);
            font-size: var(--text-works-title);
            font-weight: var(--weight-light);
            letter-spacing: -0.03em;
            text-transform: capitalize;
            color: #fff;
        }

        .type-caption {
            font-family: var(--font-mono);
            font-size: var(--text-label);
            letter-spacing: 0.3em;
            color: var(--accent);
            opacity: 0.4;
        }

        .line-internal {
            opacity: 0;
            transform: translateY(100%);
            will-change: transform;
        }

        /* word-split reveal units (hero + connect) */
        .w-unit {
            display: inline-block;
            opacity: 0;
            transform: translateY(24px);
            filter: blur(8px);
            will-change: transform, filter, opacity;
        }

        #work-bg-overlay {
            position: fixed;
            inset: 0;
            z-index: 2;
            background-size: cover;
            background-position: center;
            opacity: 0;
            pointer-events: none;
            will-change: transform, opacity;
        }

        /* subtle scrim so list text stays legible over any image */
        #work-bg-overlay::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0.65) 100%);
        }

        /* ── HORIZONTAL GRID LAYOUT ── */
        .grid-row-5 {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 1px;
            background: rgba(26, 24, 20, .1);
            border-top: 1px solid rgba(26, 24, 20, .1);
            border-bottom: 1px solid rgba(26, 24, 20, .1);
        }

        .s4 .grid-row-5 {
            background: rgba(255, 255, 255, .07);
            border-color: rgba(255, 255, 255, .07);
        }

        .grid-item {
            background: var(--cream);
            padding: 32px 20px;
            transition: background 0.3s ease;
        }

        .s4 .grid-item {
            background: #1A1814;
        }

        .grid-item:hover {
            background: rgba(200, 184, 154, 0.05);
        }

        .s4 .grid-item:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        /* Glass UI for Home Section */
        .glass-ui-home {
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        button {
            font-family: var(--font-body);
        }

        #next-section-btn svg {
            transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            transform-origin: center;
        }

        /* --- Home Section Layout: Bottom Anchored --- */
        #home {
            justify-content: flex-end;
            padding-bottom: 2rem;
            height: 100vh;
        }

        .pill-button {
            height: 50px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            padding: 0 30px;
            font-size: var(--text-small);
            font-weight: 400;
            letter-spacing: 0.05em;
            text-transform: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            will-change: transform;
        }

        .pill-button-primary {
            background: #fff;
            color: #000;
        }

        .pill-button-secondary {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        /* Work filter */
        .filter-btn {
            font-family: var(--font-mono);
            font-size: 9px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.35);
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 999px;
            padding: 6px 16px;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }

        .filter-btn:hover {
            color: rgba(255, 255, 255, 0.7);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .filter-btn.active {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .work-item {
            max-height: 120px;
            overflow: hidden;
            transition: max-height 0.4s ease, padding-top 0.4s ease, padding-bottom 0.4s ease, border-color 0.3s ease;
        }

        .work-item.work-hidden {
            max-height: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            border-color: transparent !important;
            pointer-events: none;
        }

        /* works title: clip wipe reveal + accent sweep on hover */
        .work-item .type-works-title {
            position: relative;
        }

        #focus {
            text-align: left !important;
            align-items: flex-start !important;
        }

        .focus-body-copy {
            max-width: 90%;
        }

        /* --- Operating Model Grid ---
           Borders converted to pseudo-elements so the grid can "construct itself"
           on scroll (scaleX/scaleY draw-ins) via the .built class. */
        .model-grid,
        .model-grid-5 {
            display: grid;
            position: relative;
        }

        .model-grid::before,
        .model-grid-5::before,
        .model-grid::after,
        .model-grid-5::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
            z-index: 1;
        }

        .model-grid::before,
        .model-grid-5::before {
            top: 0;
        }

        .model-grid::after,
        .model-grid-5::after {
            bottom: 0;
            transition-delay: 0.15s;
        }

        .model-grid.built::before,
        .model-grid-5.built::before,
        .model-grid.built::after,
        .model-grid-5.built::after {
            transform: scaleX(1);
        }

        .model-grid {
            grid-template-columns: repeat(3, 1fr);
            margin-top: 5rem;
            perspective: 1400px;
        }

        .model-grid .model-item {
            backface-visibility: hidden;
            will-change: transform;
        }

        .model-grid-5 {
            grid-template-columns: repeat(5, 1fr);
        }

        .model-item {
            padding: 40px;
            position: relative;
            transition: background 0.4s ease;
        }

        /* vertical dividers as draw-in pseudo elements (replaces border-right) */
        .model-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background: rgba(255, 255, 255, 0.1);
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .model-item:first-child::before {
            display: none;
        }

        .built .model-item::before {
            transform: scaleY(1);
        }

        .built .model-item:nth-child(2)::before { transition-delay: 0.10s; }
        .built .model-item:nth-child(3)::before { transition-delay: 0.18s; }
        .built .model-item:nth-child(4)::before { transition-delay: 0.26s; }
        .built .model-item:nth-child(5)::before { transition-delay: 0.34s; }
        .built .model-item:nth-child(6)::before { transition-delay: 0.42s; }

        .model-item:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        /* ── OPERATING MODEL — PINNED LAYERED STACK ── */
        #om-pin {
            position: relative;
        }

        .om-head {
            position: absolute;
            top: 7vh;
            left: 6vw;
            z-index: 5;
        }

        #om-stage {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .om-card {
            position: absolute;
            width: 66vw;
            max-width: 1280px;
            height: 68vh;
            display: flex;
            background: #100f0d;
            border: 1px solid rgba(255, 255, 255, 0.08);
            overflow: hidden;
            will-change: transform, filter;
        }

        .om-card.om-flip {
            flex-direction: row-reverse;
        }

        .om-media {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .om-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(1);
            transform: scale(1.1);
            will-change: transform, filter;
        }

        .om-copy {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 1.25rem;
            padding: clamp(2rem, 5vw, 5rem);
        }

        .om-title {
            font-family: var(--font-display);
            font-size: clamp(2.2rem, 4vw, 3.4rem);
            font-weight: var(--weight-light);
            letter-spacing: -0.02em;
            line-height: 1.05;
            color: #fff;
        }

        .om-desc {
            font-family: var(--font-body);
            font-size: var(--text-body);
            font-weight: var(--weight-light);
            line-height: var(--leading-body);
            color: rgba(255, 255, 255, 0.85);
            max-width: 46ch;
        }

        /* karaoke units — scroll brightens them one by one */
        .om-desc .om-w,
        .kw {
            opacity: 0.22;
        }

        .om-progress {
            position: absolute;
            left: 2vw;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 1.4rem;
            z-index: 5;
        }

        .om-step {
            font-family: var(--font-mono);
            font-size: 9px;
            letter-spacing: 0.3em;
            color: rgba(255, 255, 255, 0.25);
            transition: color 0.4s ease;
        }

        .om-step.is-active {
            color: var(--accent);
        }

        @media (max-width: 768px) {
            #om-stage {
                height: auto;
                flex-direction: column;
                gap: 1.5rem;
                padding: 3rem 1.5rem;
            }

            .om-head {
                position: static;
                margin-bottom: 0.5rem;
                align-self: flex-start;
            }

            .om-card,
            .om-card.om-flip {
                position: relative;
                width: 100%;
                height: auto;
                flex-direction: column;
            }

            .om-media {
                height: 220px;
                flex: none;
            }

            .om-media img {
                filter: grayscale(0);
                transform: none;
            }

            .om-copy {
                padding: 1.75rem;
            }

            .om-desc .om-w {
                opacity: 1;
            }

            .om-progress {
                display: none;
            }
        }

        /* ROW LAYOUT: show all om-cards in a single row and enable hover-expand
           When #om-stage has .row-layout, cards become flex children and stop
           using the pinned stacked behavior. First card is expanded by default. */
        /* ROW LAYOUT: show all om-cards in a single row and enable hover-expand
           When #om-stage has .row-layout, cards become flex children and stop
           using the pinned stacked behavior. First card is expanded by default. */
        /* constrain row layout to page margins (matches main content padding) */
        #om-stage.row-layout {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 1rem;
            height: auto;
            position: relative;
            padding: 0 6vw; /* align with page content horizontal padding */
            box-sizing: border-box;
            max-width: 100%;
            min-height: 340px; /* ensure stage has visible area */
            flex-direction: column; /* place header above the row */
        }

        /* ensure cards have a visible height in row layout */
        #om-stage.row-layout {
            align-items: flex-start;
        }

        /* force three equal columns (with gap) so cards are always visible */
        #om-stage.row-layout .om-card {
            position: relative;
            width: auto;
            height: auto;
            flex: 0 0 calc((100% - 2rem) * 0.2);
            transform: none;
            transition: box-shadow 0.3s ease;
            overflow: hidden;
            min-width: 0;
            background: transparent; /* show image-only for collapsed cards */
            border: none;
            min-height: 300px; /* ensure collapsed cards remain visible */
            display: flex;
            flex-direction: column;
            will-change: flex-basis, transform;
        }

        #om-stage.row-layout .om-card.is-open {
            flex: 0 0 calc((100% - 2rem) * 0.6); /* expanded card width (60%) */
            box-shadow: 0 30px 60px rgba(0,0,0,0.45);
            background: #100f0d;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* media always visible; copy hidden until card is expanded */
        #om-stage.row-layout .om-media {
            flex: 1 1 100%;
            min-height: 220px;
            height: 100%;
        }

        #om-stage.row-layout .om-media {
            display: block;
            position: relative; /* for overlay pseudo-element */
        }
        /* overlay copy on top of image so it doesn't change card height */
        #om-stage.row-layout .om-copy {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 1.25rem;
            padding: 2rem;
            box-sizing: border-box;
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: opacity 0.45s ease, transform 0.45s ease;
            /* allow gradient to span full image width; keep text width constrained via .om-desc */
            background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0) 60%);
            color: #fff;
            z-index: 2;
        }

        /* ensure image fills media area */
        #om-stage.row-layout .om-media img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            opacity: 1 !important;
        }

        /* overlay that sits on top of the image but below the text */
        #om-stage.row-layout .om-media::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.0);
            transition: background 0.45s ease;
            z-index: 1;
        }

        /* when card is open, darken overlay and show color image */
        #om-stage.row-layout .om-card.is-open .om-media::after {
            background: rgba(0,0,0,0.45);
        }

        /* stronger left→right gradient when the card is open */
        #om-stage.row-layout .om-card.is-open .om-copy {
            background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.32) 35%, rgba(0,0,0,0) 60%);
        }

        #om-stage.row-layout .om-card.is-open .om-media img {
            filter: grayscale(0) !important;
            transform: scale(1) !important;
            transition: filter 0.45s ease, transform 0.45s ease;
        }

        /* the horizontal row that holds the cards */
        #om-stage.row-layout .om-row {
            display: flex;
            gap: 1rem;
            width: 100%;
            box-sizing: border-box;
            align-items: stretch;
        }

        @media (min-width: 769px) {
            /* set a baseline row height but allow the opened card to become square */
            #om-stage.row-layout .om-row {
                min-height: 420px;
            }
            #om-stage.row-layout .om-card {
                height: auto; /* allow height animation when opening */
                min-height: 0;
            }
            #om-stage.row-layout .om-media {
                height: auto;
            }
            #om-stage.row-layout .om-media img {
                transform: none !important;
            }
        }

        /* show copy only for expanded card */
        #om-stage.row-layout .om-card.is-open .om-copy {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        /* half-card (non-open) show image only, hide textual caption */
        /* hide title/caption for collapsed cards (they remain over image when open) */
        #om-stage.row-layout .om-card:not(.is-open) .om-copy .type-caption,
        #om-stage.row-layout .om-card:not(.is-open) .om-copy .om-title {
            display: none;
        }

        /* when in row layout, place the head in normal flow above the cards */
        #om-stage.row-layout .om-head {
            position: static;
            margin-bottom: 1.25rem;
            left: auto;
            top: auto;
            align-self: flex-start;
            z-index: 2;
            order: -1; /* ensure it's rendered before the cards */
            width: 100%;
            padding-left: 0; /* padding is controlled by #om-stage */
        }

        /* hide the old pinned progress markers in row mode */
        #om-stage.row-layout .om-progress {
            display: none !important;
        }

        /* ── STRATEGIC OUTCOMES — EXPANDING COLUMNS ── */
        .oc-flex {
            display: flex;
            height: 440px;
            position: relative;
        }

        .oc-panel {
            flex: 1;
            min-width: 0;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: flex;
        }

        .oc-panel:first-child {
            border-left: none;
        }

        .oc-panel.is-open {
            flex: 2.7;
        }

        .oc-panel.is-open {
            background: rgba(255, 255, 255, 0.02);
        }

        .oc-img-wrap {
            overflow: hidden;
            width: 100%;
            aspect-ratio: 16 / 9;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease 0.05s;
        }

        .oc-panel.is-open .oc-img-wrap {
            max-height: 220px;
            opacity: 1;
        }

        .oc-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(0.6);
            transform: scale(1.12);
            clip-path: inset(0 100% 0 0);
            transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, filter 0.6s ease 0.2s;
        }

        .oc-panel.is-open .oc-img {
            clip-path: inset(0 0% 0 0);
            transform: scale(1);
            filter: grayscale(0);
        }

        .oc-inner {
            position: absolute;
            left: 0;
            bottom: 0;
            width: min(34vw, 460px);
            padding: 28px 26px;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .oc-num {
            transition: opacity 0.4s ease;
        }

        .oc-panel.is-open .oc-num {
            opacity: 1;
        }

        .oc-title {
            font-family: var(--font-display);
            font-size: clamp(1.2rem, 1.8vw, 1.6rem);
            font-weight: var(--weight-regular);
            line-height: 1.15;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .oc-panel.is-open .oc-title {
            white-space: normal;
        }

        .oc-desc {
            font-family: var(--font-body);
            font-size: var(--text-small);
            font-weight: var(--weight-light);
            line-height: var(--leading-relaxed);
            color: rgba(255, 255, 255, 0.55);
            opacity: 0;
            transform: translateY(10px);
            filter: blur(6px);
            transition: opacity 0.55s ease 0.12s, transform 0.55s ease 0.12s, filter 0.55s ease 0.12s;
        }

        .oc-panel.is-open .oc-desc {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }

        @media (max-width: 768px) {
            .oc-flex {
                flex-direction: column;
                height: auto;
            }

            .oc-panel,
            .oc-panel.is-open {
                flex: none;
                min-height: 150px;
                border-left: none;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
            }

            .oc-inner {
                position: relative;
                width: 100%;
            }

            .oc-img-wrap {
                max-height: 220px;
                opacity: 1;
            }

            .oc-img {
                clip-path: none;
                transform: none;
                filter: grayscale(0);
            }

            .oc-desc {
                opacity: 1;
                transform: none;
                filter: none;
            }
        }

        /* ── WORKS HINT ── */
        .works-hint {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin: 3.5rem 0 0.5rem;
        }

        .works-hint .type-caption {
            opacity: 0.7;
        }

        .works-hint-sub {
            font-family: var(--font-mono);
            font-size: 9px;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.3);
        }

        .works-hint-arrow {
            color: var(--accent);
            font-size: 11px;
            animation: hintBob 2s ease-in-out infinite;
        }

        @keyframes hintBob {
            0%, 100% { transform: translateY(0); opacity: 0.5; }
            50% { transform: translateY(4px); opacity: 1; }
        }

        /* ── AI PRODUCTION PIPELINE — HORIZONTAL SCROLL STAGE ── */
        #pipe-pin {
            position: relative;
        }

        /* synthetics is a lead-in, not a full-viewport section — it hands
           straight into the pipeline stage, so it sizes to its content */
        #synthetics {
            min-height: auto;
            padding-bottom: 2rem;
        }

        #pipe-stage {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
        }

        .pipe-h-head {
            padding: 0 6vw;
            margin-bottom: 4vh;
        }

        #pipeTrack {
            display: flex;
            gap: 3vw;
            padding: 0 6vw;
            will-change: transform;
        }

        .pipe-card {
            flex: 0 0 auto;
            width: min(56vw, 760px);
            background: #100f0d;
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: clamp(1.5rem, 2.5vw, 2.5rem);
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        /* browsers exclude end margins and end padding of a flex
           container from scrollWidth — a real ::after flex item is
           the only reliable way to reserve space after the last card
           (3vw spacer + 3vw track gap = 6vw, matching the left) */
        #pipeTrack::after {
            content: '';
            flex: 0 0 3vw;
        }

        .pipe-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--accent);
            opacity: 0.6;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .pipe-card.pipe-current::after {
            transform: scaleX(1);
        }

        .pipe-card .type-caption {
            transition: opacity 0.4s ease;
        }

        .pipe-card .type-model-title {
            font-size: clamp(1.6rem, 2.4vw, 2.2rem);
        }

        .pipe-img-wrap {
            overflow: hidden;
            aspect-ratio: 16 / 9;
        }

        .pipe-img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            filter: grayscale(1);
            transform: scale(1.18);
            clip-path: inset(0 100% 0 0);
            transition: filter 0.6s ease;
            will-change: transform, clip-path;
        }

        .pipe-card:hover .pipe-img {
            filter: grayscale(0);
        }

        .pipe-title,
        .pipe-desc {
            will-change: transform, filter, opacity;
        }

        .pipe-desc {
            max-width: 60ch;
        }

        @media (max-width: 768px) {
            #pipe-stage {
                height: auto;
                padding: 3rem 0;
            }

            #pipeTrack {
                flex-direction: column;
                gap: 1.25rem;
                padding: 0 1.5rem;
            }

            .pipe-card {
                width: 100%;
            }
        }

        /* ── CUSTOM CURSOR ── */
        #cursor-dot {
            position: fixed;
            top: 0;
            left: 0;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #fff;
            z-index: 2000;
            pointer-events: none;
            mix-blend-mode: difference;
            transform: translate(-50%, -50%);
            opacity: 0;
        }

        #cursor-ring {
            position: fixed;
            top: 0;
            left: 0;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.45);
            z-index: 2000;
            pointer-events: none;
            mix-blend-mode: difference;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
            opacity: 0;
        }

        #cursor-ring .cursor-label {
            font-family: var(--font-mono);
            font-size: 8px;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: #fff;
            opacity: 0;
            transition: opacity 0.25s ease;
            white-space: nowrap;
        }

        #cursor-ring.is-link {
            width: 52px;
            height: 52px;
            border-color: rgba(255, 255, 255, 0.8);
        }

        #cursor-ring.is-view {
            width: 72px;
            height: 72px;
            border-color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.06);
        }

        #cursor-ring.is-view .cursor-label {
            opacity: 1;
        }

        /* ── PROJECT DETAIL PANEL ── */
        #project-detail {
            position: fixed;
            inset: 0;
            z-index: 1500;
            background: #ffffff;
            color: #0a0a0a;
            transform: translateY(100%);
            overflow-y: auto;
            overflow-x: hidden;
            pointer-events: none;
        }

        #project-detail .type-display {
            color: #0a0a0a;
        }

        #project-detail .type-caption {
            color: #0a0a0a;
        }

        #project-detail .type-section-label {
            color: #0a0a0a;
        }

        #project-detail .type-body {
            color: rgba(10, 10, 10, 0.6);
        }

        #project-detail .type-body-accent {
            color: rgba(10, 10, 10, 0.5);
        }

        #project-detail.is-open {
            pointer-events: all;
        }

        .pd-bar {
            position: sticky;
            top: 0;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 6rem;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        }

        @media (max-width: 768px) {
            .pd-bar {
                padding: 1.25rem 1.5rem;
            }
        }

        #project-detail-close {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid rgba(0, 0, 0, 0.15);
            background: rgba(0, 0, 0, 0.04);
            backdrop-filter: blur(10px);
            color: #0a0a0a;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s ease, border-color 0.3s ease;
            flex-shrink: 0;
        }

        #project-detail-close:hover {
            background: rgba(0, 0, 0, 0.08);
            border-color: rgba(0, 0, 0, 0.3);
        }

        .pd-meta-row {
            display: flex;
            align-items: center;
            gap: 2rem;
            flex-wrap: wrap;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            padding: 1.5rem 0;
            margin: 2.5rem 0;
        }

        .pd-meta-item {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .pd-bottom-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 3rem 0;
            margin-top: 4rem;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .pd-nav-btn {
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
            background: none;
            border: none;
            color: #0a0a0a;
            padding: 0;
            transition: opacity 0.3s ease;
        }

        .pd-nav-btn:hover {
            opacity: 0.6;
        }

        .pd-nav-btn:disabled {
            opacity: 0.15;
            cursor: default;
        }

        .pd-nav-btn-label {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .pd-nav-btn.prev .pd-nav-btn-label {
            text-align: left;
        }

        .pd-nav-btn.next .pd-nav-btn-label {
            text-align: right;
        }

        .pd-nav-direction {
            font-family: var(--font-mono);
            font-size: var(--text-label);
            letter-spacing: 0.3em;
            text-transform: uppercase;
            opacity: 0.35;
        }

        .pd-nav-title {
            font-family: var(--font-display);
            font-size: 1.125rem;
            font-weight: var(--weight-light);
            line-height: 1.2;
            max-width: 240px;
        }

        .pd-nav-arrow {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid rgba(0, 0, 0, 0.14);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: border-color 0.3s ease;
        }

        .pd-nav-btn:hover .pd-nav-arrow {
            border-color: rgba(0, 0, 0, 0.4);
        }

        .pd-close-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            background: none;
            border: none;
            color: #0a0a0a;
            transition: opacity 0.3s ease;
        }

        .pd-close-btn:hover {
            opacity: 0.6;
        }

        .pd-close-circle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid rgba(0, 0, 0, 0.14);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.3s ease;
        }

        .pd-close-btn:hover .pd-close-circle {
            border-color: rgba(0, 0, 0, 0.4);
        }

        /* ── PROJECT DETAIL IMAGE — clip + scale reveal on scroll ── */
        .pd-img-wrap {
            position: relative;
            width: 100%;
            margin-bottom: 30px;
            overflow: hidden;
        }

        .pd-img-wrap.is-loading {
            background: rgba(0, 0, 0, 0.06);
            min-height: 240px;
        }

        .pd-img-wrap.is-loading::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
            animation: pd-shimmer 1.6s ease-in-out infinite;
        }

        @keyframes pd-shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        .pd-img-wrap img {
            width: 100%;
            display: block;
            opacity: 0;
            transform: scale(1.06);
            transition: opacity 0.7s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .pd-img-wrap img.loaded {
            opacity: 1;
            transform: scale(1);
        }

        /* media blocks fade in and slide up as they enter the panel */
        .pd-reveal {
            opacity: 0;
            transform: translateY(44px);
            transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: transform, opacity;
        }

        .pd-reveal.pd-in {
            opacity: 1;
            transform: translateY(0);
        }

        /* ── BLUEPRINT × BOOT LOADER ── */
        #bp-loader {
            position: fixed;
            inset: 0;
            z-index: 200;
            background: #0a0a0a;
            perspective: 1200px;
            perspective-origin: 50% 50%;
        }

        #bp-loader.gone {
            display: none;
        }

        #bp-plane {
            position: absolute;
            inset: 0;
            transform-style: preserve-3d;
            will-change: transform;
            transition: opacity 1.1s ease;
        }

        #bp-plane.dissolve {
            opacity: 0;
            pointer-events: none;
        }

        .bp-line {
            position: absolute;
            background: rgba(255, 255, 255, 0.09);
            will-change: transform, background;
        }

        .bp-v {
            width: 1px;
            top: 0;
            bottom: 0;
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1), background 0.3s ease, box-shadow 0.3s ease;
        }

        .bp-h {
            height: 1px;
            left: 0;
            right: 0;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1), background 0.3s ease, box-shadow 0.3s ease;
        }

        .bp-v.on {
            transform: scaleY(1);
        }

        .bp-h.on {
            transform: scaleX(1);
        }

        .bp-line.near {
            background: rgba(200, 184, 154, 0.55);
            box-shadow: 0 0 12px rgba(200, 184, 154, 0.25);
        }

        .bp-node {
            position: absolute;
            width: 5px;
            height: 5px;
            border: 1px solid rgba(200, 184, 154, 0.45);
            background: transparent;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
            will-change: transform;
        }

        .bp-node.on {
            transform: translate(-50%, -50%) scale(1);
        }

        .bp-label {
            position: absolute;
            font-family: var(--font-mono);
            font-size: 8px;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.18);
            opacity: 0;
            transition: opacity 0.6s ease, color 0.3s ease;
            white-space: nowrap;
        }

        .bp-label.on {
            opacity: 1;
        }

        .bp-label.near {
            color: rgba(200, 184, 154, 0.7);
        }

        #coord-tag {
            position: fixed;
            z-index: 210;
            font-family: var(--font-mono);
            font-size: 8px;
            letter-spacing: 0.2em;
            color: rgba(200, 184, 154, 0.55);
            pointer-events: none;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.4s ease;
            transform: translate(14px, 14px);
        }

        #coord-tag.show {
            opacity: 1;
        }

        #boot-log {
            position: fixed;
            left: 6vw;
            bottom: 15vh;
            pointer-events: none;
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.45);
            line-height: 2.1;
            z-index: 205;
            transition: opacity 0.9s ease;
        }

        .log-line {
            opacity: 0;
            white-space: pre;
            display: block;
            transition: opacity 0.12s;
        }

        .log-line.show {
            opacity: 1;
        }

        .log-ok {
            color: rgba(200, 184, 154, 0.9);
        }

        .log-dim {
            color: rgba(255, 255, 255, 0.2);
        }

        #blink-cur {
            display: inline-block;
            width: 6px;
            height: 11px;
            background: rgba(200, 184, 154, 0.8);
            vertical-align: middle;
        }

        #boot-pct {
            position: fixed;
            right: 6vw;
            bottom: 15vh;
            pointer-events: none;
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 0.3em;
            color: rgba(255, 255, 255, 0.3);
            z-index: 205;
            transition: opacity 0.9s ease;
        }

        #boot-pct b {
            color: rgba(200, 184, 154, 0.9);
            font-weight: 400;
        }

        #bg-asset-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            height: 1px;
            background: rgba(255, 255, 255, 0.28);
            z-index: 999;
            width: 0;
            pointer-events: none;
            opacity: 0;
        }

        .pd-close-label {
            font-family: var(--font-mono);
            font-size: var(--text-label);
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: #0a0a0a;
            opacity: 0.35;
        }

        @media (prefers-reduced-motion: reduce) {
            .bp-v, .bp-h, .bp-node, .bp-label, .w-unit, .line-internal { transition: none !important; }
        }
    
