:root {
    color: #111;
    background: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-fade-out 220ms ease-in both; }
::view-transition-new(root) { animation: page-fade-in 420ms ease-out both; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

* { box-sizing: border-box; }

html, body, body * { cursor: none !important; }
.site-cursor {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    background: center / contain no-repeat url("images/cursor-neon-hand-open.svg");
    transform: translate(-8px, -8px);
}
.site-cursor.is-pressed { background-image: url("images/cursor-neon-hand-closed.svg"); }
.site-cursor.is-hidden { opacity: 0; }
body:not([data-view]) .site-cursor {
    width: 28px;
    height: 28px;
    transform: translate(-14px, -14px);
    background-image: url("images/cursor-neon-target.svg");
}
body.project-detail-page .site-cursor { background-image: url("images/cursor-neon-target.svg"); }
body.process-flow-page .site-cursor { background-image: url("images/cursor-neon-crosshair.svg"); }
body[data-view="scroll"] .site-cursor {
    width: 24px;
    height: 24px;
    transform: translate(-12px, -12px);
    background-image: url("images/cursor-neon-crosshair.svg");
}
@media (hover: none) {
    html, body, body * { cursor: auto !important; }
    .site-cursor { display: none; }
}

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    background: #fff;
}

button,
a { color: inherit; font: inherit; }

.portfolio-screen {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: white;
}

.site-nav {
    position: absolute;
    z-index: 10;
    top: 3.2vh;
    right: 2.4vw;
    left: 2.4vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    font-size: clamp(11px, 1.15vw, 18px);
    font-weight: 500;
    letter-spacing: -.045em;
}

.site-nav a { width: fit-content; text-decoration: none; }
.site-nav a:first-child { text-decoration: underline #54b8e8 2px; text-underline-offset: 3px; }
.site-nav .nav-work { justify-self: center; }
.site-nav a:last-child { justify-self: end; }
.site-nav a:hover { opacity: .5; }

.view-switch {
    position: fixed;
    z-index: 8;
    top: 50%;
    transform: translateY(-50%);
}

.view-switch-scroll { left: 2.3vw; }
.view-switch-grid { right: 2.3vw; }
body[data-view="overview"] .view-switch-grid { display: none; }
body[data-view="scroll"] .view-switch-scroll { display: none; }

.view-button {
    display: flex;
    width: auto;
    min-width: 0;
    height: clamp(28px, 5.3vh, 58px);
    align-items: stretch;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .88;
    transition: opacity 180ms ease, transform 450ms cubic-bezier(.2,.8,.2,1);
}

.view-button:hover { opacity: 1; }
.view-button.is-active { opacity: 1; }
.view-button img { display: block; width: auto; height: 100%; object-fit: cover; }

.grid-icon { width: clamp(56px, 8vw, 94px); height: clamp(36px, 6vh, 64px); }
.grid-icon-tiles {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 2px;
    transform: perspective(clamp(48px, 6.8vw, 82px)) rotateX(55deg) scale(.88);
    transform-origin: center center;
}
.grid-icon-tiles img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms ease;
}
.view-switch-grid .view-button:is(:hover, :focus-visible) .grid-icon-tiles > * {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 9px rgb(0 0 0 / 32%);
}

.view-switch-scroll .view-button { width: clamp(70px, 8vw, 96px); height: clamp(40px, 6vh, 58px); }
.flight-icon { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.flight-icon img {
    position: absolute;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 5px rgb(0 0 0 / 24%);
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms ease;
}
.flight-icon img:nth-child(1) { top: 4%; left: 4%; width: 21%; height: 25%; }
.flight-icon img:nth-child(2) { top: 37%; left: 4%; width: 21%; height: 25%; }
.flight-icon img:nth-child(3) { top: 2%; left: 40%; width: 21%; height: 25%; }
.flight-icon img:nth-child(4) { top: 37%; right: 4%; width: 21%; height: 25%; }
.flight-icon img:nth-child(5) { top: 4%; right: 4%; width: 21%; height: 25%; }
.flight-icon img:nth-child(6) { bottom: 4%; left: 40%; width: 21%; height: 25%; }
.flight-icon img:nth-child(7) { bottom: 4%; left: 4%; width: 21%; height: 25%; }
.flight-icon img:nth-child(8) { bottom: 4%; right: 4%; width: 21%; height: 25%; }
.flight-icon img:nth-child(9) { top: 37%; left: 40%; width: 21%; height: 25%; }
.view-switch-scroll .view-button:is(:hover, :focus-visible) .flight-icon > * { transform: translateY(-3px) scale(1.1); box-shadow: 0 5px 9px rgb(0 0 0 / 32%); }

.gallery-area {
    position: relative;
    min-height: 100svh;
}

.gallery-window {
    position: absolute;
    top: 30vh;
    left: 6.4vw;
    width: 87.2vw;
    height: 58vh;
    overflow-x: auto;
    overflow-y: hidden;
    perspective: 1400px;
    cursor: grab;
    scrollbar-width: none;
    transition: top 900ms cubic-bezier(.18,.75,.24,1), left 900ms cubic-bezier(.18,.75,.24,1), width 900ms cubic-bezier(.18,.75,.24,1), height 900ms cubic-bezier(.18,.75,.24,1), transform 900ms cubic-bezier(.18,.75,.24,1);
}

.gallery-window::-webkit-scrollbar { display: none; }
.gallery-window.is-dragging { cursor: grabbing; }

.gallery-track {
    position: relative;
    display: flex;
    width: max-content;
    height: 100%;
    align-items: flex-start;
    gap: 2.3vw;
    transform-origin: center center;
    transition: transform 900ms cubic-bezier(.18,.75,.24,1), gap 900ms cubic-bezier(.18,.75,.24,1);
    will-change: transform;
}

.work-image {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: min(34.1vw, 56.5vh);
    margin: 0;
    transform-origin: center center;
    transition: width 900ms cubic-bezier(.18,.75,.24,1), height 900ms cubic-bezier(.18,.75,.24,1), transform 650ms cubic-bezier(.2,.8,.2,1), filter 650ms ease, opacity 250ms ease;
}
.work-image {
    appearance: none;
    border: 1px solid rgb(23 23 20 / 8%);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.work-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}
.work-image-preview-video {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-image-store { width: min(39.4vw, 65.2vh); }
.work-image-pavement { width: min(45.35vw, 75.15vh); }
.work-image-font { width: min(24.1vw, 39.9vh); background: #eeedeb; }
.work-image-font img { object-fit: contain; background: #eeedeb; mix-blend-mode: multiply; }

body[data-view="overview"] .gallery-window {
    top: 50%;
    left: 50%;
    width: min(68vw, 1040px);
    height: min(60vh, 650px);
    transform: translate(-50%, -50%);
    overflow: visible;
}

body[data-view="overview"] .gallery-track {
    --grid-base-rotate-x: 55deg;
    --grid-hover-rotate-x: 0deg;
    --grid-perspective: 900px;
    display: grid;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: clamp(6px, .8vw, 12px);
    transform: perspective(var(--grid-perspective, 1300px))
        rotateX(calc(var(--grid-base-rotate-x) + var(--grid-drag-rotate-x, 0deg) + var(--grid-float-rotate-x, 0deg) + var(--grid-hover-rotate-x)))
        rotateY(var(--grid-drag-rotate-y, 0deg))
        rotateZ(calc(var(--grid-drag-rotate-z, 0deg) + var(--grid-float-rotate-z, 0deg)))
        scale(.84);
    transition: transform 1100ms cubic-bezier(.2,.8,.2,1), gap 1800ms cubic-bezier(.2,.8,.2,1), grid-template-columns 1800ms cubic-bezier(.2,.8,.2,1), grid-template-rows 1800ms cubic-bezier(.2,.8,.2,1);
    animation: overview-float 18s ease-in-out infinite alternate;
}
body[data-view="overview"] .gallery-area { cursor: url("images/cursor-neon-hand-open.svg") 8 8, grab; }
body[data-view="overview"] .gallery-area:active,
body[data-view="overview"] .gallery-area:active .work-image,
body[data-view="overview"] .work-image:active { cursor: url("images/cursor-neon-hand-closed.svg") 8 8, grabbing; }
body[data-view="overview"] .gallery-track.is-pointer-dragging {
    cursor: url("images/cursor-neon-hand-closed.svg") 8 8, grabbing;
    transition: transform 170ms cubic-bezier(.2,.7,.25,1);
    animation-play-state: paused;
}
body[data-view="overview"] .gallery-track.is-pointer-dragging .work-image { cursor: url("images/cursor-neon-hand-closed.svg") 8 8, grabbing; }
body[data-view="overview"] .gallery-track.is-pointer-returning {
    transition: transform 1050ms cubic-bezier(.2,.72,.25,1);
    animation-play-state: paused;
}

.grid-project-title {
    position: absolute;
    z-index: 8;
    padding: 9px 13px;
    border: 1px solid rgb(23 23 20 / 13%);
    border-radius: 99px;
    color: #111;
    background: rgb(255 255 255 / 76%);
    backdrop-filter: blur(10px);
    font-size: clamp(11px, 1.15vw, 18px);
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.grid-project-title.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
body:not([data-view="overview"]) .grid-project-title { display: none; }

body[data-view="overview"] .work-image {
    position: relative;
    z-index: 1;
    cursor: url("images/cursor-neon-hand-open.svg") 8 8, grab;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: 50% 100%;
    box-shadow: 0 14px 28px rgb(0 0 0 / 20%);
    transition: transform 750ms cubic-bezier(.2,.8,.2,1), box-shadow 750ms ease, filter 750ms ease;
    will-change: transform;
}

body[data-view="overview"] .work-image:hover,
body[data-view="overview"] .work-image:focus-visible {
    z-index: 5;
    transform: scale(1.15);
    box-shadow: 0 28px 40px rgb(0 0 0 / 38%);
}
.work-image:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

@media (max-width: 700px) {
    .site-nav { top: 22px; right: 18px; left: 18px; font-size: 12px; }
    .view-switch { top: 50%; }
    .view-switch-scroll { left: 18px; }
    .view-switch-grid { right: 18px; }
    .view-button { height: 32px; }
    .grid-icon { width: 58px; height: 36px; }
    .gallery-window { top: 30vh; left: 5vw; width: 90vw; height: 58vh; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    .gallery-window::-webkit-scrollbar { display: none; }
    .gallery-track { gap: 5vw; }
    .work-image { height: 54vh; }
    .work-image-store { width: 62.3vh; }
    .work-image-pavement { width: 71.8vh; }
    body[data-view="overview"] .gallery-window { top: 50%; width: 90vw; height: min(70vw, 53vh); transform: translate(-50%, -50%); overflow: visible; }
    body[data-view="overview"] .gallery-track {
        --grid-base-rotate-x: 55deg;
        --grid-hover-rotate-x: 0deg;
        --grid-perspective: 780px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: clamp(5px, 1.4vw, 10px);
        transform: perspective(var(--grid-perspective, 900px))
            rotateX(calc(var(--grid-base-rotate-x) + var(--grid-drag-rotate-x, 0deg) + var(--grid-float-rotate-x, 0deg) + var(--grid-hover-rotate-x)))
            rotateY(var(--grid-drag-rotate-y, 0deg))
            rotateZ(calc(var(--grid-drag-rotate-z, 0deg) + var(--grid-float-rotate-z, 0deg)))
            scale(.88);
    }
    body[data-view="overview"] .work-image { width: 100%; height: 100%; }
}

.instagram-link {
    width: fit-content;
    color: inherit;
    font-size: clamp(18px, 2.5vw, 32px);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.instagram-link:hover { opacity: .55; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Navigation pills make the hovered link easy to spot. */
.site-nav a {
    padding: 9px 13px;
    border: 1px solid rgb(17 17 17 / 18%);
    border-radius: 999px;
    background: #fff;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
    color: #fff;
    border-color: #27834f;
    background: #27834f;
    opacity: 1;
}

/* Loop copies are only shown in the horizontal scrolling layout. */
body[data-view="overview"] .loop-copy { display: none; }

body[data-view="overview"] .gallery-track {
    transform-origin: center center;
}

@property --grid-float-rotate-x {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@property --grid-float-rotate-z {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes overview-float {
    from { --grid-float-rotate-x: -1.5deg; }
    to { --grid-float-rotate-x: 1.5deg; }
}
body[data-view="overview"] .gallery-track:hover,
body[data-view="overview"] .gallery-track:focus-within {
    --grid-hover-rotate-x: calc(0deg - var(--grid-base-rotate-x) - var(--grid-float-rotate-x));
    --grid-float-rotate-z: 0deg;
}

@media (prefers-reduced-motion: reduce) {
    body[data-view="overview"] .gallery-track { animation: none; }
}

@media (max-width: 700px) {
    .site-nav a { padding: 7px 9px; }
}

/* The process keeps its full-screen floating image field. */
body[data-view="scroll"] .portfolio-screen { min-height: 100vh; overflow: hidden; background-image: none; }
body[data-view="scroll"] .gallery-area { min-height: 100vh; }
body[data-view="scroll"] .gallery-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    color: #fff;
    background: #000;
    perspective: 1800px;
    perspective-origin: 50% 50%;
    cursor: url("images/cursor-neon-crosshair.svg") 12 12, crosshair;
}
body[data-view="scroll"] .gallery-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    transform: translateZ(0);
    transform-style: preserve-3d;
    rotate: none;
    scale: none;
    translate: none;
    animation: none;
    transition: none;
}
body[data-view="scroll"] .work-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: clamp(34px, 5vw, 72px);
    height: clamp(34px, 5vw, 72px);
    padding: 4px;
    border: 0;
    background: #fff;
    transform: none;
    rotate: none;
    scale: none;
    animation: none;
    transition: none;
    cursor: url("images/cursor-neon-crosshair.svg") 12 12, crosshair;
    will-change: translate, scale;
}
body[data-view="scroll"] .work-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A light, paper-like surface keeps the gallery playful without crowding it. */
:root {
    --paper: #f7f6f2;
    --ink: #171714;
    --accent: #4265dd;
    background: var(--paper);
}

body, .portfolio-screen { background-color: var(--paper); }
.portfolio-screen { background-image: radial-gradient(ellipse at 50% 44%, #fff 0%, #fbfaf7 48%, var(--paper) 100%); }
body[data-view="scroll"],
body[data-view="scroll"] .portfolio-screen {
    color: #fff;
    background-color: #000;
    background-image: none;
}

.site-nav {
    position: fixed;
    top: 22px;
    right: 3vw;
    left: 3vw;
    font-size: clamp(10px, .85vw, 14px);
    letter-spacing: .08em;
}
.site-nav a {
    padding: 9px 13px;
    border: 1px solid rgb(23 23 20 / 13%);
    border-radius: 99px;
    background: rgb(255 255 255 / 76%);
    backdrop-filter: blur(10px);
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.site-nav a:first-child { color: inherit; border-color: rgb(23 23 20 / 13%); text-decoration: none; }
.site-nav a:hover { transform: translateY(-2px); border-color: var(--accent); background: #fff; opacity: 1; }

.work-image {
    padding: 8px;
    border: 1px solid rgb(23 23 20 / 8%);
    background: #fff;
    box-shadow: 0 14px 32px rgb(35 33 27 / 10%);
}
body[data-view="overview"] .work-image { padding: 0; border: 0; background: transparent; }

.instagram-link { text-decoration: none; }
.instagram-link:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 700px) {
    .site-nav { top: 14px; right: 12px; left: 12px; font-size: 10px; }
    .site-nav a { padding: 8px 9px; }
    .grid-project-title { padding: 8px 9px; font-size: 10px; }
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #111;
    border-color: #eaff00;
    background: #eaff00;
}

/* Keep the navigation pills crisp against the black moving-image view. */
body[data-view="scroll"] .site-nav a {
    color: #fff;
    border-color: #fff;
    background: #000;
    opacity: 1;
}
body[data-view="scroll"] .site-nav a:hover,
body[data-view="scroll"] .site-nav a:focus-visible {
    border-color: #eaff00;
    background: #eaff00;
}
body[data-view="overview"] .site-nav a:hover,
body[data-view="overview"] .site-nav a:focus-visible {
    color: #111;
    border-color: #eaff00;
    background: #eaff00;
}
body[data-view="overview"] .site-nav .nav-work:not(:hover, :focus-visible) {
    color: #fff;
    border-color: #000;
    background: #000;
}
body[data-view="scroll"] .site-nav .nav-work:not(:hover, :focus-visible) {
    color: #111;
    border-color: #fff;
    background: #fff;
}
body[data-view="scroll"] .nav-work-overview { display: none; }
body[data-view="overview"] .nav-work-scroll { display: none; }

.project-detail-page { min-height: 100vh; overflow-x: hidden; color: #111; background: var(--paper); }
.process-flow-page { color: #fff; background: #000; }
.info-page { min-height: 100svh; color: #111; background: var(--paper); }
body.info-page .info-content {
    min-height: 100svh;
    padding: clamp(120px, 18vh, 190px) 0 0;
}
body.info-page .info-portraits {
    width: min(32.1vw, 570px);
    margin: 0 auto;
}
body.info-page .info-portrait-frame {
    position: relative;
    width: 100%;
}
body.info-page .info-portraits img {
    display: block;
    width: 100%;
    aspect-ratio: .63;
    object-fit: cover;
}
body.info-page .info-portraits img.info-portrait-blink {
    position: absolute;
    top: 13.51%;
    left: 45%;
    width: 10.86%;
    height: 2.55%;
    aspect-ratio: auto;
    object-fit: fill;
    opacity: 0;
    pointer-events: none;
    mask-image:
        radial-gradient(ellipse 23% 48% at 22% 50%, #000 58%, transparent 100%),
        radial-gradient(ellipse 23% 48% at 66% 50%, #000 58%, transparent 100%);
    mask-composite: add;
    animation: info-portrait-double-blink 7s step-end infinite;
}
@keyframes info-portrait-double-blink {
    0%, 91%, 93%, 94%, 96%, 100% { opacity: 0; }
    92%, 95% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    body.info-page .info-portraits img.info-portrait-blink { animation: none; }
}
body.info-page .info-description {
    width: min(92vw, 1720px);
    margin: clamp(40px, 5vh, 72px) auto 0;
    padding-bottom: clamp(48px, 8vh, 96px);
}
.project-nav {
    position: fixed;
    z-index: 20;
    top: 22px;
    right: 3vw;
    left: 3vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    font-size: clamp(10px, .85vw, 14px);
    font-weight: 500;
    letter-spacing: .08em;
    pointer-events: none;
}
.project-nav a {
    width: fit-content;
    padding: 9px 13px;
    border: 1px solid rgb(23 23 20 / 13%);
    border-radius: 99px;
    background: rgb(255 255 255 / 76%);
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.project-nav a:nth-child(2) { justify-self: center; }
.project-nav a:last-child { justify-self: end; }
.process-flow-page .project-nav a {
    color: #fff;
    border-color: rgb(255 255 255 / 24%);
    background: rgb(0 0 0 / 82%);
}
.info-view-switch {
    position: relative;
    justify-self: center;
    pointer-events: auto;
}
.project-work-switch {
    position: relative;
    justify-self: center;
    pointer-events: auto;
}
.project-work-switch > .project-work-link,
.project-work-choices > a {
    box-sizing: border-box;
    display: flex;
    width: clamp(88px, 5.9vw, 102px);
    height: clamp(34px, 2.03vw, 35px);
    align-items: center;
    justify-content: center;
}
.project-work-switch > .project-work-link { width: fit-content; }
.info-view-current { display: block; }
.info-view-choices {
    position: absolute;
    top: 100%;
    left: 50%;
    display: grid;
    gap: 7px;
    width: max-content;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.project-work-choices {
    position: absolute;
    top: 100%;
    left: 50%;
    display: grid;
    gap: 7px;
    width: max-content;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.info-view-switch:hover .info-view-choices,
.info-view-switch:focus-within .info-view-choices {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.project-work-switch:hover .project-work-choices,
.project-work-switch:focus-within .project-work-choices {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.project-work-switch > .project-work-link:hover,
.project-work-switch > .project-work-link:focus-visible,
.project-work-switch > .project-work-link:active,
.project-work-choices > a:hover,
.project-work-choices > a:focus-visible,
.project-work-choices > a:active {
    color: #111;
    border-color: #eaff00;
    background: #eaff00;
}
.project-nav a:hover,
.project-nav a:focus-visible { color: #111; border-color: #eaff00; background: #eaff00; transform: translateY(-2px); }
.project-nav a[aria-current="page"]:not(:hover, :focus-visible),
.project-detail-page .project-work-link:not(:hover, :focus-visible) {
    color: #fff;
    border-color: rgb(255 255 255 / 24%);
    background: #000;
}
.process-flow-page .project-nav a.project-work-link[aria-current="page"]:not(:hover, :focus-visible) {
    color: #111;
    border-color: #fff;
    background: #fff;
}
.project-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 12vh 6vw;
    background: radial-gradient(ellipse at 50% 44%, #fff 0%, #fbfaf7 48%, var(--paper) 100%);
}
.project-title {
    margin: 0;
}
.project-cover-frame { margin: 0; }
.project-cover {
    display: block;
    width: auto;
    height: auto;
    max-width: min(60vw, 800px);
    max-height: 58vh;
    object-fit: contain;
    box-shadow: 0 16px 44px rgb(35 33 27 / 14%);
    opacity: 0;
    transform: scale(.62);
    transform-origin: center;
    will-change: transform, opacity;
}
.project-hero.is-ready .project-cover { animation: project-cover-grow 520ms cubic-bezier(.18,.75,.24,1) both; }
@keyframes project-cover-grow {
    from { opacity: 0; transform: scale(.62); }
    to { opacity: 1; transform: scale(1); }
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(28px, 5vw, 72px) clamp(18px, 3vw, 44px);
    max-width: 1480px;
    margin: 0 auto;
    padding: 5vh clamp(24px, 6vw, 90px) 12vh;
    background: var(--paper);
}
.project-image-step {
    display: block;
    width: 100%;
}
.project-image-frame {
    width: 100%;
    margin: 0;
}
.project-image-frame img,
.project-image-frame video { display: block; width: 100%; height: auto; object-fit: contain; background: #000; }
.project-image-step.is-spread { grid-column: 1 / -1; }
.project-image-frame .project-spread-composite { width: 100%; }
body.project-detail-page.has-project-description .project-gallery { padding-bottom: 0; }
.project-description {
    width: min(calc(100% - clamp(48px, 12vw, 220px)), 1720px);
    margin: clamp(40px, 5vh, 72px) auto 0;
    padding-bottom: clamp(48px, 8vh, 96px);
}
.project-description p {
    margin: 0;
    color: #000;
    font-family: inherit;
    font-size: clamp(23px, 1.8vw, 32px);
    font-weight: 450;
    letter-spacing: -.025em;
    line-height: 1.38;
    text-align: left;
}
body.project-detail-page:not(.process-flow-page) .project-image-step.is-full-width { grid-column: 1 / -1; }
body.project-detail-page:not(.process-flow-page) .project-image-step.is-full-width .project-image-frame {
    width: min(84%, 960px);
    margin: 0 auto;
}
.project-gallery--newspaper .project-image-step.is-spread .project-image-frame {
    width: 100%;
    max-width: none;
    margin: 0;
}
.project-gallery--newspaper .project-image-step:not(.is-spread) .project-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(74vh, 60vw, 900px);
}
.project-gallery--newspaper .project-image-step:not(.is-spread) .project-image-frame > img,
.project-gallery--newspaper .project-image-step:not(.is-spread) .project-image-frame > video {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.process-flow-page { min-height: 100vh; overflow-x: clip; background: #000; }
.process-flow-page main { padding-top: 72px; background: #000; }
.process-project-list {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
    background: #000;
}
.process-project {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, max-content);
    align-items: start;
    column-gap: clamp(14px, 3vw, 48px);
    row-gap: clamp(64px, 11vh, 132px);
    padding: clamp(30px, 7vh, 88px) 0 clamp(100px, 17vh, 210px);
}
.process-project-note {
    position: static;
    z-index: 3;
    display: flex;
    align-self: start;
    justify-self: start;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    color: rgb(255 255 255 / 80%);
    background: #000;
    font-size: var(--label-font-size, clamp(10px, .85vw, 14px));
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.process-project-note:hover,
.process-project-note:focus-visible,
.process-project-note:active {
    border-color: #eaff00;
    color: #111;
    background: #eaff00;
    transform: translateY(-2px);
}
.process-project-media {
    display: block;
    width: min(84%, 430px);
    height: auto;
    justify-self: center;
    margin: 0;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #000;
    opacity: var(--process-scroll-opacity, .72);
    transform: scale(var(--process-scroll-scale, .9));
    transform-origin: center;
    transition: opacity 100ms linear, transform 100ms linear;
    will-change: opacity, transform;
}
@media (hover: hover) and (pointer: fine) {
    .process-project-media:hover {
        z-index: 2;
        transform: scale(var(--process-scroll-scale, .9)) scale(1.22);
    }
}

@media (max-width: 700px) {
    .project-nav { top: 14px; right: 12px; left: 12px; font-size: 10px; }
    .project-nav a { padding: 8px 9px; }
    .project-cover { max-width: 72vw; max-height: 54vh; }
    .project-detail-page:not(.process-flow-page) .project-gallery {
        gap: 28px 16px;
        padding: 4vh 5vw 10vh;
    }
    body.project-detail-page.has-project-description .project-gallery { padding-bottom: 0; }
    .project-description {
        width: calc(100% - 10vw);
        margin-top: 36px;
        padding-bottom: 56px;
    }
    .project-description p { font-size: clamp(21px, 5vw, 25px); line-height: 1.42; }
    body.project-detail-page:not(.process-flow-page) .project-image-step.is-full-width .project-image-frame { width: 88%; }
    body.project-detail-page:not(.process-flow-page) .project-gallery--newspaper .project-image-step.is-spread .project-image-frame { width: 100%; }
    body.info-page .info-content { padding-top: 100px; }
    body.info-page .info-portraits { width: 45vw; }
    body.info-page .info-description { width: 90vw; margin-top: 28px; }
}
@media (max-width: 760px) {
    .process-flow-page main { padding-top: 62px; }
    .process-project-list { padding-right: 20px; padding-left: 20px; }
    .process-project { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(48px, 9vh, 96px); }
    .process-project-note { justify-self: start; }
    .process-project-media { width: min(90%, 420px); }
}
@media (max-width: 420px) {
    .process-project { grid-template-columns: minmax(0, 1fr); row-gap: 46px; }
    .process-project-media { width: min(88%, 440px); }
}

/* Keep navigation and hover labels on one consistent type scale. */
:root { --label-font-size: clamp(10px, .85vw, 14px); }
.site-nav,
.project-nav,
.grid-project-title {
    font-family: inherit;
    font-size: var(--label-font-size);
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1;
}
@media (max-width: 700px) {
    :root { --label-font-size: 10px; }
    .site-nav a,
    .project-nav a,
    .grid-project-title { padding: 8px 9px; }
}

/* Small neon-yellow prompt in the floating process grid. */
body[data-view="scroll"] .process-instruction {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    margin: 0;
    color: #eaff00;
    opacity: 1;
    visibility: visible;
    transition: opacity 350ms ease, visibility 350ms ease;
    font-family: inherit;
    font-size: clamp(9px, .72vw, 12px);
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}
body[data-view="scroll"] .process-instruction.is-hidden {
    opacity: 0;
    visibility: hidden;
}
body[data-view="overview"] .process-instruction { display: none; }
body[data-view="overview"] .work-image img {
    filter: grayscale(1);
    transition: filter 420ms ease;
}
body[data-view="overview"] .work-image[data-project-id="project-07"]:not(.loop-copy) .work-image-preview-video {
    display: block;
    filter: grayscale(1);
    transition: filter 420ms ease;
}
body[data-view="overview"] .work-image[data-project-id="project-07"]:not(.loop-copy) > img { visibility: hidden; }
body[data-view="overview"] .work-image:hover img,
body[data-view="overview"] .work-image:focus-visible img { filter: grayscale(0); }
body[data-view="overview"] .work-image[data-project-id="project-08"]:not(.loop-copy) > img {
    background: #fff;
    filter: invert(1);
    mix-blend-mode: normal;
}
body[data-view="overview"] .work-image[data-project-id="project-07"]:not(.loop-copy):hover .work-image-preview-video,
body[data-view="overview"] .work-image[data-project-id="project-07"]:not(.loop-copy):focus-visible .work-image-preview-video { filter: grayscale(0); }
body[data-view="overview"] .grid-project-title {
    border-color: #eaff00;
    color: #111;
    background: #eaff00;
    backdrop-filter: none;
}
body[data-view="scroll"] .work-image img {
    filter: none;
    mix-blend-mode: normal;
    background: transparent;
}
body[data-view="scroll"] .work-image {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Touch layouts: all project and view controls stay visible without hover. */
@media (max-width: 760px) and (hover: none) and (pointer: coarse) {
    html,
    body { min-height: 100%; overflow-x: hidden; }

    body[data-view] .portfolio-screen {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .site-nav {
        top: max(10px, env(safe-area-inset-top));
        right: 12px;
        left: 12px;
        align-items: center;
        font-size: 11px;
    }
    .site-nav a,
    .project-nav a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 8px 9px;
        font-size: 11px;
        letter-spacing: .04em;
        touch-action: manipulation;
    }
    body[data-view="scroll"] .site-nav .nav-work:not(:hover, :focus-visible) {
        color: #111;
        border-color: #fff;
        background: #fff;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    .gallery-area {
        min-height: 0;
        padding: calc(70px + env(safe-area-inset-top)) 14px 108px;
    }
    body[data-view="scroll"] .gallery-area { min-height: 0; }
    .gallery-window,
    body[data-view="overview"] .gallery-window,
    body[data-view="scroll"] .gallery-window {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 0;
        border-radius: 0;
        transform: none;
        perspective: none;
        cursor: auto;
    }
    .gallery-track,
    body[data-view="overview"] .gallery-track,
    body[data-view="scroll"] .gallery-track {
        position: relative;
        display: grid;
        width: 100%;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        align-items: stretch;
        justify-items: stretch;
        gap: 10px;
        padding: 0;
        transform: none;
        transform-style: flat;
        animation: none;
        transition: none;
        will-change: auto;
    }
    .gallery-track .loop-copy { display: none; }
    .work-image,
    body[data-view="overview"] .work-image,
    body[data-view="scroll"] .work-image {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 0;
        border: 0;
        border-radius: 2px;
        background: #e8e6e1;
        box-shadow: 0 5px 16px rgb(35 33 27 / 12%);
        transform: none;
        rotate: none;
        scale: none;
        translate: none;
        animation: none;
        transition: box-shadow 160ms ease, outline-color 160ms ease;
        cursor: pointer;
        touch-action: manipulation;
        will-change: auto;
    }
    .work-image img,
    body[data-view="overview"] .work-image img,
    body[data-view="scroll"] .work-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        visibility: visible;
        filter: none;
        mix-blend-mode: normal;
        background: #e8e6e1;
    }
    body[data-view="overview"] .work-image[data-project-id="project-07"]:not(.loop-copy) .work-image-preview-video { display: none; }
    body[data-view="overview"] .work-image[data-project-id="project-07"]:not(.loop-copy) > img { visibility: visible; }
    body[data-view="overview"] .work-image[data-project-id="project-08"]:not(.loop-copy) > img {
        filter: none;
        mix-blend-mode: normal;
        background: #e8e6e1;
    }
    .work-image::after {
        position: absolute;
        right: 7px;
        bottom: 7px;
        left: 7px;
        display: block;
        width: fit-content;
        max-width: calc(100% - 14px);
        padding: 8px 9px;
        border-radius: 999px;
        color: #111;
        background: #eaff00;
        content: attr(data-project-title);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: .06em;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
    }
    .work-image:active { box-shadow: 0 2px 8px rgb(35 33 27 / 18%); }
    .work-image:focus-visible { outline: 3px solid #eaff00; outline-offset: 2px; }
    .grid-project-title { display: none !important; }

    .view-switch {
        top: auto;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
    }
    .view-button,
    .view-switch-scroll .view-button,
    .view-switch-grid .view-button {
        display: flex;
        width: auto;
        min-width: 132px;
        height: 48px;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        border: 1px solid #111;
        border-radius: 999px;
        color: #fff;
        background: #111;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .08em;
        opacity: 1;
        box-shadow: 0 4px 18px rgb(0 0 0 / 18%);
        touch-action: manipulation;
    }
    .view-button .flight-icon,
    .view-button .grid-icon-tiles { display: none; }
    .view-switch-scroll .view-button::after { content: "PROCESS"; }
    .view-switch-grid .view-button::after { content: "WORK"; }
    body[data-view="scroll"] .view-switch-grid .view-button {
        border-color: #eaff00;
        color: #111;
        background: #eaff00;
    }

    body[data-view="scroll"] .process-instruction {
        top: calc(58px + env(safe-area-inset-top));
        right: 14px;
        left: 14px;
        width: fit-content;
        max-width: calc(100vw - 28px);
        margin: 0 auto;
        padding: 9px 12px;
        border: 1px solid rgb(234 255 0 / 60%);
        border-radius: 999px;
        color: #eaff00;
        background: #000;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .project-nav {
        top: max(8px, env(safe-area-inset-top));
        right: 8px;
        left: 8px;
        align-items: center;
        font-size: 11px;
    }
    .project-nav a { padding-right: 8px; padding-left: 8px; }
    .project-detail-page:not(.process-flow-page) .project-hero {
        min-height: 82svh;
        padding: 92px 18px 30px;
    }
    .project-cover { max-width: 84vw; max-height: 56svh; }
    .project-detail-page:not(.process-flow-page) .project-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        max-width: none;
        padding: 22px 16px 44px;
    }
    .project-detail-page:not(.process-flow-page) .project-image-step,
    .project-detail-page:not(.process-flow-page) .project-image-step.is-full-width,
    .project-detail-page:not(.process-flow-page) .project-image-step.is-spread { grid-column: 1; }
    .project-detail-page:not(.process-flow-page) .project-image-step.is-full-width .project-image-frame,
    .project-gallery--newspaper .project-image-step.is-spread .project-image-frame {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .project-gallery--newspaper .project-image-step:not(.is-spread) .project-image-frame {
        display: block;
        height: auto;
    }
    .project-gallery--newspaper .project-image-step:not(.is-spread) .project-image-frame > img,
    .project-gallery--newspaper .project-image-step:not(.is-spread) .project-image-frame > video {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }
    .project-description {
        width: calc(100% - 32px);
        margin-top: 28px;
        padding-bottom: calc(48px + env(safe-area-inset-bottom));
    }
    .project-description p { font-size: clamp(18px, 5.2vw, 22px); line-height: 1.45; }

    .info-view-switch {
        display: flex;
        align-items: center;
        justify-self: center;
        gap: 3px;
    }
    .project-work-switch {
        display: flex;
        align-items: center;
        justify-self: center;
        gap: 3px;
    }
    .info-view-switch .info-view-current,
    .info-view-switch .info-view-choices a,
    .project-work-switch .project-work-link,
    .project-work-switch .project-work-choices a { min-height: 44px; }
    .project-work-choices > a { width: 72px; }
    .info-view-switch .info-view-choices {
        position: static;
        display: flex;
        width: auto;
        gap: 3px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .info-view-switch:hover .info-view-choices,
    .info-view-switch:focus-within .info-view-choices { opacity: 1; visibility: visible; transform: none; }
    .project-work-switch .project-work-choices {
        position: static;
        display: flex;
        width: auto;
        gap: 3px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    body.info-page .info-content { padding-top: calc(82px + env(safe-area-inset-top)); }
    body.info-page .info-portraits { width: min(72vw, 320px); }
    body.info-page .info-description { width: calc(100% - 36px); margin-top: 26px; }

    .process-flow-page main { padding-top: calc(70px + env(safe-area-inset-top)); }
    .process-project-list { padding: 0 16px; }
    .process-project {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: max-content;
        row-gap: 28px;
        padding: 18px 0 calc(64px + env(safe-area-inset-bottom));
    }
    .process-project > .process-project-note,
    .process-project > .process-project-media {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .process-project-note { min-height: 44px; font-size: 12px; }
    .process-project-media {
        width: 100%;
        max-width: none;
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
}

