.proc-mobile-steps {
    display: none;
}

@media (max-width: 900px) {
    .side-tab {
        display: none;
    }

    #hero {
        min-height: 100svh;
        padding: clamp(4.5rem, 9svh, 6rem) 5vw 2.75rem;
    }

    #hero .hero-kmpzr {
        padding-inline: 0;
    }

    #hero #test-write-1 {
        font-size: clamp(2rem, 9.3vw, 5.15rem);
        letter-spacing: -.05em;
        line-height: 1.12;
        margin: .7rem 0 0;
        white-space: nowrap;
        transform: scaleY(1.24);
    }

    #hero #test-write-2 {
        max-width: 44ch;
        margin: .85rem auto 0;
        padding: .25rem .4rem;
        font: 550 clamp(1rem, 4.2vw, 1.25rem)/1.35 var(--body);
        letter-spacing: .08em;
        transform: none;
        text-wrap: balance;
        text-shadow: none;
    }

    #hero #test-write-3 {
        display: none;
    }

    #hero #msg-scroll,
    #hero .hero-scroll {
        font-weight: 500;
        letter-spacing: .22em;
        color: var(--ink);
        text-shadow: 0 1px 6px #000;
    }

    #hero .no-signal .ns-line,
    #credits .credit-line {
        inset-inline: 7%;
        width: auto;
        translate: 0 -50%;
        transform: none;
        font-size: clamp(2rem, 7vw, 3.25rem);
        font-weight: 600;
        line-height: 1.18;
        text-wrap: balance;
        /* Keep the letters sharp while the scroll animation is paused mid-transition. */
        filter: none !important;
    }

    #hero .no-signal .ns-caps,
    #credits .credit-line.caps {
        font-family: var(--display);
        font-size: clamp(1.5rem, 5vw, 2.9rem);
        font-weight: 400;
        letter-spacing: .07em;
    }

    #hero .no-signal .ns-final,
    #credits .credit-final {
        padding: 1.4rem .9rem;
    }

    #lavori {
        padding-bottom: .85rem;
    }

    #lavori .sec-head {
        gap: 1.15rem;
        margin-bottom: 0;
    }

    #lavori .sec-head h2 {
        line-height: 1.12;
    }

    #lavori .see-all {
        font-size: .9rem;
        letter-spacing: .12em;
    }

    #workSection {
        min-height: 0;
        display: block;
    }

    #workSection .tv-frame {
        display: block;
        height: auto;
        will-change: auto;
    }

    #workTrack {
        width: 100%;
        padding-block: .55rem 1rem;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 6vw;
        transform: none;
        will-change: auto;
    }

    #workSection.work-scroll-animated {
        overflow: clip;
    }

    .work-scroll-animated #workTrack {
        width: max-content;
        overflow: visible;
        scroll-snap-type: none;
        will-change: transform;
    }

    .work-scroll-animated .work-card {
        height: calc(100svh - var(--home-nav-offset) - 2.3rem);
    }

    .work-scroll-animated .work-card:not(.cta-card) {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .work-scroll-animated .work-media {
        height: auto;
        min-height: 0;
    }

    .work-scroll-animated .work-card[href="/portfolio/chez-federico-et-pierre"] img {
        object-position: right center;
    }

    .work-card {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .work-card:focus-visible {
        outline: 2px solid var(--ink);
        outline-offset: -3px;
    }

    #workSection .work-info p {
        color: #d3d3d3;
        font-size: .95rem;
        letter-spacing: .04em;
    }

    #atelier {
        margin-top: 0;
    }

    #processus {
        display: block;
        min-height: 0;
        padding: 2.75rem 6vw 3.75rem;
    }

    #processus .proc-head {
        margin-bottom: 1.5rem;
    }

    #processus .proc-head h2 {
        font-size: clamp(2rem, 6.6vw, 3.4rem);
        line-height: 1.12;
        text-wrap: balance;
    }

    #processus .proc-head .line-inner {
        transform: none !important;
    }

    #processus .proc-wrap {
        display: none;
    }

    .proc-mobile-steps {
        display: block;
        border-top: 1px solid var(--line);
    }

    .proc-mobile-step {
        border-bottom: 1px solid var(--line);
    }

    .proc-mobile-step summary {
        display: grid;
        grid-template-columns: 2.2rem minmax(0, 1fr) .9rem;
        align-items: baseline;
        gap: .65rem;
        padding: 1rem 0;
        color: var(--ink);
        font: 400 clamp(1.2rem, 4.8vw, 1.85rem)/1.25 var(--display);
        list-style: none;
        text-transform: uppercase;
        cursor: pointer;
    }

    .proc-mobile-step summary::-webkit-details-marker {
        display: none;
    }

    .proc-mobile-step summary::after {
        content: '+' / '';
        font: 400 1.1rem/1 var(--body);
    }

    .proc-mobile-step[open] summary::after {
        content: '−' / '';
    }

    .proc-mobile-step summary:focus-visible {
        outline: 1px solid var(--ink);
        outline-offset: 2px;
    }

    .proc-mobile-number {
        font: 400 1rem/1 var(--display);
        color: #bbb;
    }

    .proc-mobile-copy {
        padding: 0 0 1.3rem 2.85rem;
        color: #e0e0e0;
        font: 400 clamp(1rem, 2.6vw, 1.15rem)/1.6 var(--body);
    }

    .proc-mobile-copy .proc-mobile-subtitle {
        margin-bottom: .65rem;
        color: var(--ink);
        font: italic 600 clamp(1.4rem, 5vw, 1.95rem)/1.2 var(--serif);
    }

    .proc-mobile-tags {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        margin-top: .9rem;
        list-style: none;
    }

    .proc-mobile-tags li {
        padding: .25rem .6rem;
        border: 1px solid var(--line);
        font-size: .875rem;
    }
}

@media (max-width: 380px) {
    .proc-mobile-copy {
        padding-left: 0;
    }
}
