/* Project pages and a deterministic moving contact sheet. */
.project-identifier.identifier-cover { padding: 0; background: none; border: 0; }
.project-identifier.identifier-cover img { width: min(100%, 240px); height: auto; max-height: none; aspect-ratio: 1; object-fit: contain; }
.inspection[open], .inspection[open] * { cursor: auto !important; }
.inspection[open] button, .inspection[open] a { cursor: pointer !important; }
body.cursor-fallback, body.cursor-fallback * { cursor: auto !important; }
body.cursor-fallback a, body.cursor-fallback button { cursor: pointer !important; }
body.cursor-fallback .cursor { display: none !important; }
.study-intro > div { min-width: 0; }
.study-intro h1 { overflow-wrap: anywhere; }
.case-suzi .study-visual { max-width: 430px; }
.case-suzi .study-gallery { gap: clamp(24px, 6vw, 85px); align-items: center; }
/* A neutral support preserves dark transparent logos without recolouring them. */
.study-visual button[data-inspect="zifu-logo"], .memory-piece button[data-inspect="gnight-logo"] { background: #f5f5f3; }
.explore-media img { width: min(100%, calc(480px * var(--media-ratio))); aspect-ratio: var(--media-ratio); max-width: 100%; max-height: 480px; margin-inline: auto; }
.explore-media { display: flex; align-items: center; justify-content: center; }
@media(max-width:760px) { .explore-media img { width: min(100%, calc(360px * var(--media-ratio))); max-height: 360px; } }
.dedicated-case {
    max-width: 1440px;
    padding: 120px 5vw 90px
}

.case-back {
    display: inline-block;
    margin-bottom: 44px;
    font-size: 11px;
    letter-spacing: .08em;
    color: #aaa
}

.study-intro {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 7vw;
    align-items: center
}

.study-intro h1 {
    font-size: clamp(56px, 7vw, 110px);
    line-height: .9;
    letter-spacing: -.075em;
    margin: 22px 0
}

.study-lead {
    font-size: clamp(20px, 2.2vw, 31px);
    line-height: 1.2;
    letter-spacing: -.025em;
    max-width: 580px;
    color: #ddd
}

.study-facts {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 35px 0 0
}

.study-facts dt {
    font-size: 9px;
    letter-spacing: .1em;
    color: #888
}

.study-facts dd {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 700
}

.study-note {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
    max-width: 420px
}

.study-hero {
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    min-width: 0
}

.study-hero img {
    max-width: 100%;
    width: min(100%, calc(510px * var(--media-ratio)));
    aspect-ratio: var(--media-ratio);
    height: auto;
    max-height: 510px;
    object-fit: contain
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin: 60px 0 0;
    padding: 20px 0
}

.chapter-nav a {
    font-size: 11px;
    color: #aaa;
    transition: color .2s
}

.chapter-nav a:hover {
    color: #fff
}

.study-chapter {
    padding: 80px 0;
    border-bottom: 1px solid #222;
    scroll-margin-top: 100px
}

.chapter-copy {
    max-width: 660px;
    margin-bottom: 38px
}

.chapter-copy h2 {
    font-size: clamp(34px, 4.5vw, 66px);
    line-height: .95;
    letter-spacing: -.055em;
    margin: 14px 0 22px
}

.chapter-copy>p:last-child {
    color: #aaa;
    line-height: 1.65;
    max-width: 580px
}

.study-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    align-items: flex-start
}

.study-visual {
    margin: 0;
    min-width: 0;
    flex: 0 1 calc(50% - 17px);
    max-width: 510px
}

.study-visual.scale-small {
    flex-basis: calc(33.333% - 24px);
    max-width: 310px
}

.study-visual.scale-large {
    flex-basis: 68%;
    max-width: 780px
}

.study-visual.scale-featured {
    flex-basis: 100%;
    max-width: 950px
}

.study-visual button,
.evidence-pages button {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: #fff;
    text-align: left
}

.study-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1
}

.study-visual figcaption,
.evidence-pages figcaption,
.study-videos figcaption {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.study-visual figcaption span,
.evidence-pages figcaption span {
    font-size: 9px;
    white-space: nowrap;
    color: #ccc
}

.chapter-screens .study-gallery {
    gap: 32px
}

.chapter-screens .study-visual {
    flex: 0 1 240px
}

.chapter-screens .study-visual img {
    max-height: 650px;
    width: auto;
    max-width: 100%;
    margin-inline: auto
}

.evidence-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px
}

.evidence-pages figure {
    margin: 0;
    max-width: 610px
}

.evidence-pages img {
    width: 100%;
    height: auto;
    max-height: 570px;
    object-fit: contain;
    object-position: left top
}

.study-evidence {
    margin-top: 32px
}

.document-link {
    margin-top: 25px;
    border: 1px solid #555;
    border-radius: 999px;
    padding: 13px 18px;
    color: #fff;
    background: linear-gradient(120deg, #ffffff18, #ffffff05);
    font-size: 11px;
    box-shadow: inset 0 1px #ffffff50
}

.document-link small {
    margin-left: 14px;
    color: #999
}

.study-videos {
    margin-top: 36px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap
}

.study-videos figure {
    margin: 0;
    max-width: 800px;
    width: 100%
}

.study-videos video {
    display: block;
    width: min(100%, calc(560px * var(--video-ratio)));
    height: auto;
    aspect-ratio: var(--video-ratio);
    max-height: 560px;
    background: #080808
}

.chapter-reveal {
    transform: translateX(-18px);
    opacity: 0;
    transition: transform .65s ease, opacity .65s ease
}

.chapter-reveal.arrived {
    transform: none;
    opacity: 1
}

.case-next {
    font-size: clamp(28px, 4vw, 54px)
}

/* Inspection is a native modal: focus trapping, Escape and real scrollable zoom. */
body.inspection-open {
    overflow: hidden
}

.inspection {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: #0b0b0b
}

.inspection[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto
}

.inspection::backdrop {
    background: #000d
}

.inspection-bar {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: inset 0 -1px rgba(255, 255, 255, 0.15);
    z-index: 1
}

.inspection-bar .kicker {
    margin: 0 0 5px;
    font-size: 9px
}

.inspection-bar strong {
    font-size: 13px
}

.inspection-tools {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap
}

.inspection-bar button,
.inspection-bar a {
    border: 1px solid #ffffff42;
    border-radius: 999px;
    background: #ffffff09;
    color: #fff;
    font: 700 10px Helvetica, Arial, sans-serif;
    padding: 10px 13px;
    min-height: 44px
}

.inspection-bar button:disabled {
    opacity: .35
}

.inspection-tools output {
    font-size: 11px;
    min-width: 48px;
    text-align: center
}

.inspection-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) translate3d(0, 0, 0);
    -webkit-transform: translateY(-50%) translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.inspection-nav-btn:hover {
    background: rgba(28, 28, 36, 0.92);
}
.inspection-nav-btn:active {
    transform: translateY(-50%) scale(0.92) translate3d(0, 0, 0);
    -webkit-transform: translateY(-50%) scale(0.92) translate3d(0, 0, 0);
}
.inspection-nav-btn:disabled {
    opacity: 0.15;
    pointer-events: none;
}
.inspection-nav-prev { left: 16px; }
.inspection-nav-next { right: 16px; }

@media (max-width: 768px) {
    .inspection-nav-btn {
        width: 44px;
        height: 44px;
        background: rgba(14, 14, 18, 0.75);
    }
    .inspection-nav-prev { left: 10px; }
    .inspection-nav-next { right: 10px; }
}

.inspection-stage {
    min-height: 0;
    overflow: auto;
    padding: 16px;
    overscroll-behavior: contain
}

.inspection-paper {
    margin: 0 auto;
    max-width: none !important;
    max-height: none !important
}

.inspection-paper img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain
}

.inspection-status {
    font-size: 12px;
    margin: 0;
    text-align: center;
    color: #bbb
}

.inspection-status:empty {
    display: none
}

/* Each sequence includes its trailing gap, so the repeated halves match exactly. */
.memory-wall {
    width: calc(100% + 6.4vw);
    margin: 24px -3.2vw 0;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
    scrollbar-color: #444 #080808;
    position: relative
}

.memory-track {
    display: flex;
    width: max-content;
    animation: memory-drift 125s linear infinite;
    will-change: transform
}

.memory-sequence {
    display: flex;
    gap: 36px;
    padding: 26px 36px 30px 0;
    align-items: flex-start;
    height: 700px
}

.memory-piece {
    flex: none;
    margin: 0;
    position: relative;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
    width: var(--art-width)
}

.memory-piece button {
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
    display: block
}

.memory-piece img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: none;
    opacity: 1
}

.memory-piece figcaption {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px
}

.memory-piece small {
    font-size: 9px;
    color: #888;
    letter-spacing: .03em
}

.size-large {
    --art-width: 350px
}

.size-medium {
    --art-width: 265px
}

.size-small {
    --art-width: 210px
}

.size-detail {
    --art-width: 170px
}

.size-portrait {
    --art-width: 210px
}

.size-landscape {
    --art-width: 350px
}

.level-top {
    margin-top: 0
}

.level-middle {
    margin-top: 98px
}

.level-bottom {
    margin-top: 240px
}

.memory-piece.size-detail {
    padding: 18px;
    background: #101010;
    border: 1px solid #252525
}

.memory-piece.is-active {
    z-index: 2;
    transform: translateY(-7px) scale(1.025)
}

.memory-piece.move-before {
    transform: translateX(-16px)
}

.memory-piece.move-after {
    transform: translateX(16px)
}

.memory-wall:hover .memory-track,
.memory-wall:focus-within .memory-track,
.memory-wall.is-paused .memory-track,
.memory-wall.is-offscreen .memory-track,
body.inspection-open .memory-track {
    animation-play-state: paused
}

.memory-control {
    margin-top: 24px;
    border: 1px solid #555;
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff08;
    color: #ccc;
    font: 700 10px Helvetica, Arial, sans-serif
}

.memory-copy button {
    pointer-events: auto
}

.memory-control:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px
}

@keyframes memory-drift {
    to {
        transform: translateX(-50%)
    }
}

@media(min-width:761px) and (max-width:1050px) {
    .memory-piece {
        --art-width: 230px
    }

    .memory-piece.size-small {
        --art-width: 170px
    }

    .memory-piece.size-detail {
        --art-width: 130px
    }

    .memory-piece.size-portrait {
        --art-width: 165px
    }

    .memory-piece.size-landscape {
        --art-width: 280px
    }

    .memory-sequence {
        height: 570px
    }

    .level-bottom {
        margin-top: 210px
    }

    .study-intro {
        gap: 4vw
    }

    .study-intro h1 {
        font-size: 66px
    }

    .study-hero img {
        max-height: 400px;
        width: min(100%, calc(400px * var(--media-ratio)))
    }

    .dedicated-case {
        padding-inline: 5vw
    }

    .evidence-pages {
        gap: 18px
    }
}

@media(max-width:760px) {
    .dedicated-case {
        padding: 94px 5vw 60px
    }

    .case-back {
        margin-bottom: 30px
    }

    .study-intro {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .study-intro h1 {
        font-size: 58px
    }

    .study-lead {
        font-size: 22px
    }

    .study-facts {
        gap: 18px
    }

    .study-hero img {
        max-height: 380px;
        max-width: 100%;
        width: min(100%, calc(380px * var(--media-ratio)))
    }

    .chapter-nav {
        margin-top: 32px;
        gap: 12px 18px
    }

    .chapter-nav a {
        font-size: 10px
    }

    .study-chapter {
        padding: 50px 0
    }

    .study-gallery {
        gap: 24px
    }

    .study-visual,
    .study-visual.scale-large,
    .study-visual.scale-featured {
        flex-basis: 100%;
        max-width: 100%
    }

    .study-visual.scale-small {
        flex-basis: calc(50% - 12px);
        max-width: 180px
    }

    .chapter-screens .study-gallery {
        gap: 24px 16px
    }

    .chapter-screens .study-visual {
        flex: 0 1 calc(50% - 8px)
    }

    .evidence-pages {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .evidence-pages img {
        max-height: 500px;
        width: auto;
        max-width: 100%
    }

    .inspection-bar {
        padding: 12px;
        gap: 10px
    }

    .inspection-bar>div:first-child {
        max-width: calc(100% - 95px)
    }

    .inspection-tools {
        gap: 6px
    }

    .inspection-bar button,
    .inspection-bar a {
        padding: 10px;
        font-size: 9px
    }

    .memory-wall {
        width: calc(100% + 10vw);
        margin-inline: -5vw;
        scroll-snap-type: x proximity
    }

    .memory-track {
        animation: none;
        transform: none
    }

    .memory-sequence {
        height: 470px;
        gap: 24px;
        padding: 22px 5vw
    }

    .memory-copy {
        display: none
    }

    .memory-piece {
        scroll-snap-align: center
    }

    .size-large {
        --art-width: 240px
    }

    .size-medium {
        --art-width: 190px
    }

    .size-small {
        --art-width: 150px
    }

    .size-detail {
        --art-width: 120px
    }

    .size-portrait {
        --art-width: 150px
    }

    .size-landscape {
        --art-width: 245px
    }

    .level-middle {
        margin-top: 45px
    }

    .level-bottom {
        margin-top: 125px
    }

    .memory-control {
        display: none
    }

    .memory-piece.move-before,
    .memory-piece.move-after,
    .memory-piece.is-active {
        transform: none
    }
}

@media(prefers-reduced-motion:reduce) {
    .memory-track {
        animation: none;
        transform: none
    }

    .memory-copy,
    .memory-control {
        display: none
    }

    .memory-wall {
        overflow-x: auto
    }

    .chapter-reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .memory-piece {
        transition: none;
        transform: none !important
    }
}

/* ==========================================================================
   Metrics & Diffusion Block — Editorial & Minimalist
   ========================================================================== */
.study-metrics {
    margin: 40px 0 24px;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 32px 48px;
}

.metric-primary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-num {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.metric-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888888;
    margin: 0;
}

.metric-breakdown {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 28px 44px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-item-num {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #e5e5e5;
    font-variant-numeric: tabular-nums;
}

.metric-item-plat {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
}

@media (max-width: 640px) {
    .study-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 28px 0;
    }
    .metric-breakdown {
        gap: 20px 32px;
    }
}

