/* ============================================================
   BASE / MOBILE FIRST
   ============================================================ */
   body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Helvetica Neue', sans-serif;
    color: white;
}

/* ── Loader ── */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    overflow: visible;
}

.loader-snapshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ── Motion-blur overlay ── */
.motion-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    will-change: transform;
}

/* ── Slides container ── */
.slides-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* stable on mobile despite URL-bar show/hide */
    position: relative;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ── Individual slides ── */
.slide {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    visibility: hidden;
    z-index: 1;
    pointer-events: auto;
    background-color: #000;
}

.slide[style*="visibility: visible"],
.slide[style*="opacity: 1"] {
    pointer-events: auto;
}

.slide:first-child {
    visibility: visible;
    z-index: 2;
}

/* ── Media container ── */
.media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.media-container picture {
    display: contents;
}

.media-container video,
.media-container img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    will-change: opacity, transform;
}

.slide.is-playing .media-container video {
    object-fit: contain;
}

/* ── Slide cover ──
   The project cover, layered over its video. It fades out once the preview
   actually starts playing and fades straight back in when we leave, so a slide
   we walk away from shows its cover again instead of the frame it stopped on. */
.media-container .slide-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.slide.is-preview .media-container .slide-cover {
    opacity: 0;
}

/* ── Slide content ── */
.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 48px;
}

/* ── Title ── */
.title {
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 100%;
    opacity: 0;
    transform: translateY(-50px);
    text-align: center;
}

/* ── Award laurel (p.award) on the home slide: bottom right. The mobile block
      moves it up, above the fixed logo. ── */
.slide-award {
    position: absolute;
    right: 36px;
    bottom: 36px;
    width: clamp(150px, 13vw, 230px);
    height: auto;
    z-index: 11;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

/* ── Tap-to-reveal project info — mobile only, see the mobile block ── */
.slide-info {
    display: none;
}

/* ── Mobile fixed logo ── */
.logo-fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    max-width: 70%;
    height: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

/* ── About overlay (shared mobile + desktop) ── */
.about-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    color: #000;
    z-index: 2000;
    display: block;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh;
    /* visibility:hidden prevents flash on load.
       NO transform here — GSAP owns yPercent exclusively.
       Mixing CSS transform + GSAP yPercent causes conflicts. */
    visibility: hidden;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-back {
    background: transparent;
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 400;
    border: none;
    z-index: 2001;
    user-select: none;
    pointer-events: auto;
    font-family: inherit;
    /* Position overridden per breakpoint */
}

.about-logo {
    cursor: pointer;
    width: 60%;
    max-width: 600px;
    margin-top: 80px;
    margin-bottom: 96px;
    height: auto;
    object-fit: contain;
}

.about-description {
    width: 100%;
    text-align: left;
    margin-bottom: 96px;
}

.about-description p {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}

.about-services {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 96px;
    text-transform: uppercase;
    font-size: 32px;
    line-height: 1.2;
}

.service-label {
    color: #999;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 4px;
}

.about-visual {
    width: 100%;
    margin-bottom: 120px;
    padding-left: 0;
}

.about-visual .ascii-video {
    width: 220px;
    line-height: 0;
    font-size: 0;
}

.ascii-video .ascii-layer {
    display: block;
    width: 100%;
    height: auto;
}

.about-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 48px;
}

.contact-link {
    font-size: 80px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    line-height: 76px;
    text-transform: lowercase;
    word-break: break-all;
}

.contact-link span {
    vertical-align: bottom;
}

.contact-link i {
    rotate: 45deg;
    font-size: 65px;
}

/* ── Legal links (under the emails in the info page) ── */
.about-legal {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.legal-link {
    font-size: 16px;
    text-decoration: none;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color .2s ease;
}

.legal-link:hover {
    color: #000;
}

/* ── Gallery overlay (mobile-first base) ── */
.gallery-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 2500;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}

.gallery-nav {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    z-index: 10;
}

.gallery-nav__logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.gallery-nav__tabs {
    display: flex;
    gap: 24px;
    align-items: center;
}

.gallery-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #000;
    padding: 0 0 2px;
    border-bottom: 1px solid transparent;
}

.gallery-tab.is-active {
    border-bottom-color: #000;
}

.gallery-nav__info {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #000;
    padding: 0;
}

.gallery-view {
    padding: 8px 12px 60px;
    box-sizing: border-box;
}

.gallery-case {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    align-items: start;
}

.case-item {
    overflow: hidden;
    cursor: pointer;
}

.case-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.case-item__title {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

.hidden-mobile {
    display: none;
}

/* ============================================================
   DESKTOP — hidden on mobile, shown at 768px+
   ============================================================ */

/* ── Desktop navigation bar ── */
.desktop-nav {
    display: none;
}

/* ── Desktop project page ── */
.project-page {
    display: none;
}

/* ============================================================
   DESKTOP BREAKPOINT — 768px+
   ============================================================ */
@media (min-width: 768px) {

    .hidden-mobile{
        display: block;
    }

    /* Hide mobile logo */
    .logo-fixed {
        display: none;
    }

    /* ── Desktop nav ── */
    .desktop-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 24px 36px;
        box-sizing: border-box;
        z-index: 200;
        pointer-events: auto;
        /* starts white, flips to black on project page */
        color: white;
    }

    .desktop-nav__logo {
        height: 40px;
        width: auto;
        cursor: pointer;
        user-select: none;
        -webkit-user-drag: none;
        object-fit: contain;
        /* white version by default */
    }

    /* black logo variant shown on project page */
    .desktop-nav.is-dark .desktop-nav__logo {
        /* We swap the src via JS */
    }

    .desktop-nav__project-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        text-align: center;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        opacity: 0;
        transition: opacity 0.4s ease;
        color: inherit;
    }

    .desktop-nav__project-title.visible {
        opacity: 1;
    }

    .desktop-nav__links {
        display: flex;
        gap: 48px;
        align-items: center;
    }

    .desktop-nav__btn {
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Helvetica Neue', sans-serif;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: inherit;
        padding: 0;
        transition: opacity 0.2s ease;
    }

    .desktop-nav__btn:hover {
        opacity: 0.5;
    }

    /* Title on slide — repositioned for desktop (top-center under nav) */
    .title {
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.08em;
        /* On desktop the title is in the nav bar, so hide per-slide title */
        display: none;
    }

    /* ── Slide content: remove padding top since nav is fixed ── */
    .slide-content {
        padding: 100px 36px 36px;
    }

    /* ─────────────────────────────────────────────
       PROJECT PAGE
    ───────────────────────────────────────────── */
    .project-page {
        display: block;
        position: fixed;
        inset: 0;
        background: #000;
        z-index: 500;
        overflow: hidden;
        visibility: hidden;
        /* flex column: top white bar | media | bottom white bar */
        display: flex;
        flex-direction: column;
    }

    /* ── Top white bar (permanent, like info_projet header) ── */
    .project-nav {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 24px 36px;
        box-sizing: border-box;
        z-index: 15;
        background: #fff;
        color: #000;
        pointer-events: auto;
    }

    .project-nav__logo {
        height: 40px;
        width: auto;
        cursor: pointer;
        user-select: none;
        -webkit-user-drag: none;
        object-fit: contain;
    }

    .project-nav__btn {
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Helvetica Neue', sans-serif;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #000;
        padding: 0;
        transition: opacity 0.2s ease;
    }

    .project-nav__btn:hover { opacity: 0.5; }

    /* ── Black media area — grows/shrinks between the two bars ── */
    .project-track-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        position: relative;
        overflow: hidden;
        background-color: white;
    }

    /* The actual scrolling track */
    .project-track {
        position: absolute;
        inset: 0;
        will-change: transform;
    }

    /* ── Individual project panel ── */
    .project-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        display: flex;
        align-items: stretch;
        padding: 0;
        box-sizing: border-box;
    }

    /* ── Media grid — one wide video (60%) + one photo (40%) ── */
    .project-media-grid {
        display: grid;
        grid-template-columns: 60fr 40fr;
        grid-template-rows: 1fr;
        column-gap: 6px;
        margin: 0 6px;
        width: 100%;
        height: 100%;
        align-items: stretch;
    }

    /* ── Multi-video grid (ba&sh) — 3 equal cells that rotate ── */
    .project-media-grid--multi {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ── Portrait variant (bvlgari) — the video cell is a bit wider than the
          9:16 source (2:3), so the video zooms in slightly under object-fit:
          cover; the photo takes every remaining pixel. Flex rather than grid
          so the video width derives from the (definite) height. ── */
    .project-media-grid--portrait {
        display: flex;
        column-gap: 6px;
    }

    .project-media-grid--portrait .project-cell--video {
        flex: 0 0 auto;
        height: 100%;
        aspect-ratio: 2 / 3;
    }

    .project-media-grid--portrait .project-cell--photo {
        flex: 1 1 0;
        min-width: 0;
    }

    .project-cell {
        overflow: hidden;
        background: #000;
        position: relative;
        height: 100%;
    }

    /* ── Award laurel (p.award) over the panel media, top right ── */
    .project-award {
        position: absolute;
        top: 24px;
        right: 30px;
        width: clamp(150px, 13vw, 230px);
        height: auto;
        z-index: 5;
        pointer-events: none;
        user-select: none;
        filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
    }

    .project-cell video,
    .project-cell img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* ── Rotating video cell: poster image shown while paused, video shown
          while active. ── */
    .project-media-grid--multi .project-cell--video .project-poster,
    .project-media-grid--multi .project-cell--video .project-video {
        position: absolute;
        inset: 0;
    }

    .project-media-grid--multi .project-cell--video .project-video {
        display: none;
    }

    .project-media-grid--multi .project-cell--video.is-active .project-video {
        display: block;
    }

    .project-media-grid--multi .project-cell--video.is-active .project-poster {
        display: none;
    }

    /* ── Bottom white info bar — fixed height so the media area above never
          shifts when the description length changes between projects ── */
    .project-info-panel {
        flex: 0 0 90px;
        height: 90px;
        background: #fff;
        color: #000;
        z-index: 20;
        overflow: hidden;
    }

    /* Meta bar — always visible: title | description | credits | date */
    .project-info-meta {
        display: grid;
        grid-template-columns: 1fr 3fr 2fr 1fr;
        gap: 24px;
        padding: 20px 36px;
        box-sizing: border-box;
        background: #fff;
        align-items: start;
    }

    .project-info-meta__title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #000;
        line-height: 1.4;
    }

    .project-info-meta__description {
        font-size: 10px;
        font-weight: 400;
        text-transform: uppercase;
        line-height: 1.6;
        letter-spacing: 0.04em;
        color: #000;
    }

    /* Projects without credits: the description also takes the credits column,
       so long texts stay within the fixed-height bar instead of clipping. */
    .project-info-meta.no-credits .project-info-meta__description {
        grid-column: 2 / 4;
    }

    .project-info-meta.no-credits .project-info-meta__credits {
        display: none;
    }

    .project-info-meta.no-credits .project-info-meta__date {
        grid-column: 4;
    }

    .project-info-meta__credits {
        font-size: 10px;
        font-weight: 400;
        text-transform: uppercase;
        line-height: 1.6;
        letter-spacing: 0.04em;
        color: #000;
        white-space: pre-line;
    }

    .project-info-meta__date {
        font-size: 10px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #000;
        text-align: right;
    }

    /* ── About overlay on desktop ── */
    .about-overlay {
        z-index: 3000;
        /* The layout below fits one screen down to ~580px tall; scrolling stays
           available under that so nothing is ever clipped out of reach. */
    }

    /* ═══════════════════════════════════════════════
       GALLERY OVERLAY (INDEX / CASE)
    ═══════════════════════════════════════════════ */
    .gallery-overlay {
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 2500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden; /* GSAP owns this */
    }

    /* ── Gallery nav header ── */
    .gallery-nav {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 20px 48px;
        box-sizing: border-box;
        background: #fff;
        z-index: 10;
    }

    .gallery-nav__logo {
        height: 36px;
        width: auto;
        object-fit: contain;
        justify-self: start;
        opacity: 1;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }

    .gallery-nav__logo.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .gallery-nav__tabs {
        display: flex;
        gap: 40px;
        align-items: center;
        justify-content: center;
    }

    .gallery-tab {
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Helvetica Neue', sans-serif;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        color: #000;
        padding: 0 0 3px;
        border-bottom: 1px solid transparent;
        transition: border-color 0.2s ease;
    }

    .gallery-tab.is-active {
        border-bottom-color: #000;
    }

    .gallery-nav__info {
        justify-self: end;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Helvetica Neue', sans-serif;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        color: #000;
        padding: 0;
        transition: opacity 0.2s ease;
    }

    .gallery-nav__info:hover,
    .gallery-tab:hover { opacity: 0.45; }

    /* ── Gallery views wrapper ── */
    .gallery-view {
        padding: 32px 48px 80px;
        box-sizing: border-box;
    }

    /* ═══ INDEX — true CSS masonry via column-count ═══ */
    .gallery-masonry {
        column-count: 5;
        column-gap: 8px;
    }

    .masonry-item {
        break-inside: avoid;
        margin-bottom: 8px;
        overflow: hidden;
        background: #eee;
    }

    .masonry-item img {
        width: 100%;
        display: block;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    /* Variable heights via aspect-ratio to create the staggered masonry feel */
    .masonry-item--mid   img { aspect-ratio: 4/3; }
    .masonry-item--tall  img { aspect-ratio: 3/4; }
    .masonry-item--xtall img { aspect-ratio: 2/3; }

    /* Hover: slight dim */
    .masonry-item:hover img { opacity: 0.85; }

    /* ═══ CASE — scattered 5-col grid ═══ */
    .gallery-case {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        column-gap: 24px;
        row-gap: 0;
        align-items: start;
        padding-top: 24px;
    }

    .case-item {
        position: relative;
        cursor: pointer;
        overflow: hidden;
        margin: 10px 0;
    }

    /* Portrait items taller, landscape shorter, square balanced */
    .case-item--portrait  img { aspect-ratio: 3/4; }
    .case-item--landscape img { aspect-ratio: 4/3; }
    .case-item--square    img { aspect-ratio: 1/1; }

    .case-item img {
        width: 100%;
        display: block;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .case-item:hover img { opacity: 0.8; }

    .case-item__title {
        display: block;
        margin: 10px 0;
        font-size: 12px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #000;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .case-item:hover .case-item__title {
        opacity: 1;
        transform: translateY(0);
    }

    /* Vertical offset for the scattered look — odd columns start lower */
    .case-item[style*="grid-column: 1"],
    .case-item[style*="grid-column: 3"],
    .case-item[style*="grid-column: 5"] {
        margin-top: 48px;
    }

    .about-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: clamp(24px, 4.5vh, 48px) 60px clamp(24px, 4.5vh, 60px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        position: relative;
        /* The whole INFO fits in one screen: fixed height, and every gap below
           is expressed in vh so a short laptop screen tightens the rhythm
           instead of pushing the legal links out of view. */
        height: 100vh;
        height: 100dvh;
    }

    /* Top bar: logo left, BACK right */
    .about-topbar {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: clamp(16px, 4vh, 40px);
    }

    .about-logo {
        width: auto;
        max-width: 220px;
        height: auto;
        max-height: clamp(56px, 12vh, 106px);
        margin: 0;
        object-fit: contain;
        align-self: flex-start;
    }

    .about-back {
        position: static;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.08em;
        top: auto;
        left: auto;
    }

    /* Description + address block */
    .about-description {
        margin-bottom: clamp(16px, 3.5vh, 36px);
        max-width: 680px;
    }

    .about-description p {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin: 0 0 clamp(12px, 2.5vh, 24px) 0;
    }

    .about-address {
        font-style: normal;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.6;
        color: #000;
    }

    /* Middle row: services left + visual right */
    .about-middle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: start;
        margin-bottom: clamp(16px, 3.5vh, 40px);
    }

    .about-services {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 48px;
        margin: 0;
        font-size: 13px;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        align-items: start;
    }

    .service-label {
        color: #999;
        font-size: 13px;
        padding-top: 1px;
    }

    .service-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .service-list li {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    /* Creative visual — lifted out of the flow, filling the right half of the
       page, vertically centred and flush right (see maquette). */
    .about-visual {
        position: absolute;
        top: 100px;            /* clears the BACK button, sits high on the page */
        bottom: 60px;          /* fill the available height */
        right: 60px;           /* matches container padding-right → flush with content edge */
        width: 50%;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: stretch;      /* fill the available height */
        justify-content: flex-end; /* flush right */
        z-index: -1;               /* sits behind the page content (e.g. the email) */
    }

    .about-visual .ascii-video {
        width: auto;
        height: 100%;
        max-width: 100%;
    }

    .about-visual .ascii-video .ascii-layer {
        width: auto;
        height: 100%;
        max-width: 100%;
    }

    /* Footer: big email + instagram — pinned to the bottom of the 100vh screen */
    .about-footer {
        margin-top: auto;
        gap: 0;
        margin-bottom: 0;
    }

    .about-legal {
        margin-top: clamp(12px, 3vh, 32px);
        margin-bottom: 0;
    }

    .contact-link {
        font-size: clamp(40px, 7vh, 72px);   /* shrinks on short screens so the footer stays in 100vh */
        line-height: 0.95;
        display: block;
    }
}

/* ============================================================
   MOBILE — legacy styles, unchanged
   ============================================================ */
@media (max-width: 767px) {
    .slide-content {
        padding: 24px;
    }

    /* ── Award laurel on the slide: above the fixed logo ── */
    .slide-award {
        right: 16px;
        bottom: 140px;
        width: 150px;
    }

    /* ── Tap-to-reveal project info: description + credits as highlighted
          lines over the video: description lines flush with the left edge,
          credits lines flush with the right edge, a gap between the two
          groups and none between lines. Each rendered line is its
          own .line: a white background (.line__bg, swept in from the side) and
          the text (.line__in), whose letters (.char) rise one by one through
          the overflow mask of the line. Transform origins are set by main.js.
          Lines are built at open time by splitInfoLines() in main.js. ── */
    .slide-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        position: absolute;
        left: 0;
        right: 0;
        /* Anchored to the bottom, clear of the fixed logo (bottom 20px + ~95px tall). */
        bottom: 140px;
        z-index: 11;
        pointer-events: none;
        visibility: hidden;
    }

    .slide.is-info .slide-info {
        visibility: visible;
    }

    .slide-info__text {
        margin: 0;
        max-width: 100%;
        color: #000;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .slide-info__credits {
        align-self: flex-end;
    }

    .slide-info__credits .line {
        margin-left: auto;
    }

    /* Measuring pass: same horizontal padding as a line so the wrap points
       match; the probe is replaced by the lines right away. */
    .slide-info__probe {
        display: block;
        padding: 0 10px;
    }

    .slide-info .line {
        display: block;
        position: relative;
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
        padding: 5px 10px;
        overflow: hidden;
    }

    .slide-info .line__bg {
        position: absolute;
        inset: 0;
        background: #fff;
        will-change: transform;
    }

    .slide-info .line__in {
        position: relative;
        display: block;
        white-space: nowrap;
    }

    .slide-info .char {
        display: inline-block;
        will-change: transform;
    }

    /* The whole About fits one screen: the container is at least the viewport
       tall, the footer is pushed to the bottom, and the blocks above are sized
       so nothing overflows on a regular phone (it still scrolls on very short
       screens rather than clipping). */
    .about-container {
        padding: 20px 20px 24px;
        box-sizing: border-box;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .title {
        font-size: 16px;
        margin-top: 20px;
        display: block;
    }

    .about-back {
        position: fixed;
        top: 24px;
        left: 20px;
        font-size: 16px;
    }

    .about-logo {
        width: 64%;
        margin-top: 32px;
        margin-bottom: 24px;
    }

    .about-description {
        margin-bottom: 24px;
    }

    .about-description p {
        font-size: 15px;
    }

    /* Address: same treatment as desktop (uppercase, tracked), and the row is
       stretched to the full width so it sits on the left like the description
       instead of being centred by the container. */
    .about-middle {
        width: 100%;
        margin-bottom: 24px;
    }

    .about-address {
        margin-top: 20px;
        font-style: normal;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: left;
    }

    .about-services {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 15px;
        margin-top: 24px;
        margin-bottom: 0;
    }

    .service-label {
        margin-bottom: 4px;
    }

    /* No ASCII flower on mobile (main.js also skips loading the video). */
    .about-visual {
        display: none;
    }

    .contact-link {
        font-size: clamp(22px, 3.4vh, 28px);
        line-height: 1.1;
    }

    .contact-link i {
        font-size: clamp(22px, 3.4vh, 28px);
    }

    /* Footer pinned to the bottom of the screen, legal links right under it. */
    .about-footer {
        margin-top: auto;
        gap: 8px;
        margin-bottom: 12px;
    }

    .about-legal {
        margin-top: 0;
        margin-bottom: 0;
    }

    .logo-fixed {
        max-width: 60%;
        bottom: 10px;
    }

    /* Override: force auto-placement dans la grille 2 colonnes (le JS assigne grid-column 1-5 pour le desktop) */
    .case-item {
        grid-column: auto !important;
        margin-top: 0 !important;
    }
}

/* ── Curseur "CLICK FOR MORE" (page d'accueil, desktop) ─────────────────────── */
.explore-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 150;
    opacity: 0;
    transform: translate3d(-200px, -200px, 0) translate(18px, 18px);
    transition: opacity .5s ease;
    mix-blend-mode: difference;
    will-change: transform, opacity;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
}

.explore-cursor.is-visible {
    opacity: 1;
}

/* Pas de curseur custom sur écrans tactiles / mobiles */
@media (max-width: 767px), (hover: none) {
    .explore-cursor { display: none; }
}