
/* ==========================================
   GIANMARCO SPINA — V12
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #101010;
    color: #f5f5f5;
    font-family: Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* ==========================================
   INTRO
========================================== */

.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.intro.is-hidden {
    display: none;
}

.intro-backdrop {
    position: absolute;
    inset: 0;
    background: #050505;
    opacity: 1;

    transition: opacity 620ms ease;
}

.intro.is-landing {
    pointer-events: none;
}

.intro.is-landing .intro-backdrop {
    opacity: 0;
}

.skip-intro {
    position: absolute;
    top: 35px;
    right: 5%;
    z-index: 10;

    background: transparent;
    border: 0;

    color: #aaa;
    font-size: 10px;
    letter-spacing: .15em;

    cursor: pointer;
    transition: opacity .25s ease;
}

.skip-intro:hover {
    opacity: .5;
}

.intro.is-landing .skip-intro {
    opacity: 0;
    pointer-events: none;
}

.intro-artwork {
    position: relative;
    width: min(90vw, 1200px);
    z-index: 2;
    will-change: transform;
}

#morphArtwork {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.morph-line {
    fill: none;
    stroke: #f4f1eb;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.intro-caption {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;

    display: flex;
    justify-content: space-between;
    gap: 15px;

    font-family: "Courier New", monospace;
    font-size: 9px;
    letter-spacing: .12em;
    color: #777;

    opacity: 0;
    transition: opacity .25s ease;
}

.intro.is-drawing .intro-caption {
    opacity: 1;
}

.intro.is-morphing .intro-caption,
.intro.is-landing .intro-caption {
    opacity: 0;
}


/* ==========================================
   NAVIGATION
========================================== */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;

    width: 100%;
    padding: 35px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 13px;
    letter-spacing: .08em;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    font-size: 11px;
    letter-spacing: .12em;
    transition: opacity .3s ease;
}

nav a:hover {
    opacity: .45;
}


/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;

    overflow: hidden;
    isolation: isolate;
    background: #080808;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: -1;

    background-image:
        linear-gradient(
            rgba(0,0,0,.35),
            rgba(0,0,0,.55)
        ),
        url("images/hero.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.14) translateY(16px);
    filter: brightness(.35) blur(6px);
    will-change: transform, filter;
}

body.site-ready .hero::before {
    animation: imageImpact 1050ms
        cubic-bezier(.16,1,.3,1) both;
}

@keyframes imageImpact {
    0% {
        transform: scale(1.14) translateY(16px);
        filter: brightness(.35) blur(6px);
    }

    42% {
        transform: scale(.995) translateY(-5px);
        filter: brightness(1.12) blur(0);
    }

    100% {
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
}

.hero-content {
    position: absolute;
    top: clamp(35px,5vh,72px);
    left: 5%;
    width: 90%;
    z-index: 2;
}

.hero-name-slot {
    position: relative;
    width: min(86vw,1000px);
    aspect-ratio: 3 / 1;
}

.hero-signature {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hero-signature .morph-line {
    fill: none;
    stroke: #f5f5f5;
    stroke-width: 3.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-fallback-name {
    position: absolute;
    top: 30%;
    left: 7%;

    font-size: clamp(40px,6.5vw,90px);
    font-weight: 400;
    letter-spacing: -.065em;
    white-space: nowrap;
}

body.intro-active .hero-fallback-name,
body.js-enabled .hero-fallback-name {
    visibility: hidden;
}

.hero-name-slot.has-signature .hero-fallback-name {
    display: none;
}

.hero-subtitle {
    position: relative;
    margin-top: clamp(-125px,-10vw,-55px);
    margin-left: 7.5%;

    font-size: 10px;
    letter-spacing: .2em;
    color: #e0e0e0;
}

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    right: 5%;

    font-size: 10px;
    letter-spacing: .15em;
    color: #d0d0d0;

    transition: opacity .3s ease;
}


/* ==========================================
   DYNAMIC HOMEPAGE REVEAL — V10
========================================== */

body.intro-active .navbar,
body.intro-active .hero-subtitle,
body.intro-active .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

body.site-ready .navbar {
    animation: navbarImpact 460ms
        cubic-bezier(.12,1.45,.32,1) both;
}

@keyframes navbarImpact {
    0% {
        opacity: 0;
        transform: translateY(-45px);
    }

    72% {
        opacity: 1;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.site-ready nav a {
    display: inline-block;
    animation: menuImpact 480ms
        cubic-bezier(.16,1,.3,1) both;
}

body.site-ready nav a:nth-child(1) {
    animation-delay: 40ms;
}

body.site-ready nav a:nth-child(2) {
    animation-delay: 105ms;
}

body.site-ready nav a:nth-child(3) {
    animation-delay: 170ms;
}

@keyframes menuImpact {
    0% {
        opacity: 0;
        transform: translateY(-24px) rotate(-4deg);
        filter: blur(4px);
    }

    75% {
        opacity: 1;
        transform: translateY(3px) rotate(1deg);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

body.site-ready .hero-subtitle {
    transform-origin: left center;
    animation: subtitleImpact 720ms
        cubic-bezier(.16,1,.3,1) 85ms both;
}

@keyframes subtitleImpact {
    0% {
        opacity: 0;
        transform:
            translate(-25px,48px)
            skewY(8deg)
            scale(.84);
        filter: blur(6px);
        clip-path: inset(100% 0 0 0);
    }

    55% {
        opacity: 1;
        transform:
            translate(5px,-7px)
            skewY(-2deg)
            scale(1.045);
        filter: blur(0);
        clip-path: inset(0);
    }

    100% {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: inset(0);
    }
}

body.site-ready .scroll-indicator {
    transform-origin: right bottom;
    animation: scrollImpact 650ms
        cubic-bezier(.15,1.5,.3,1) 240ms both;
}

@keyframes scrollImpact {
    0% {
        opacity: 0;
        transform:
            translate(30px,50px)
            rotate(8deg)
            scale(.7);
    }

    68% {
        opacity: 1;
        transform:
            translate(-4px,-7px)
            rotate(-2deg)
            scale(1.06);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

body.no-intro-animation .hero::before,
body.no-intro-animation .navbar,
body.no-intro-animation nav a,
body.no-intro-animation .hero-subtitle,
body.no-intro-animation .scroll-indicator {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
}


/* ==========================================
   SELECTED WORKS
========================================== */

.works {
    padding: 110px 5% 140px;
    background: #101010;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 20px;
    border-bottom: 1px solid #383838;

    font-size: 10px;
    letter-spacing: .15em;
    color: #999;
}

.project {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 10%;

    align-items: center;
    padding-top: 90px;
}

.project-poster {
    position: relative;
}

.project-poster img {
    display: block;
    width: 100%;
    height: auto;

    transition: opacity .5s ease;
}

.project-poster img:hover {
    opacity: .75;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.project-number {
    font-size: 10px;
    letter-spacing: .18em;
    color: #888;
}

.project-info h2 {
    margin-top: 35px;
    font-family: Georgia,serif;
    font-size: clamp(65px,8vw,135px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.055em;
}

.project-info p {
    margin-top: 30px;
    font-size: 11px;
    letter-spacing: .15em;
    color: #999;
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    max-width: 300px;

    margin-top: 90px;
    padding-bottom: 15px;
    border-bottom: 1px solid #777;

    font-size: 11px;
    letter-spacing: .12em;
    transition: color .3s ease;
}

.project-link:hover {
    color: #999;
}

.project-link span {
    font-size: 18px;
}


/* ==========================================
   ABOUT / CONTACT
========================================== */

.home-about {
    padding: 110px 5% 140px;
    border-top: 1px solid #333;
}

.home-about h2,
.home-footer h2 {
    margin: 30px 0;
    font-family: Georgia,serif;
    font-weight: 400;
    font-size: clamp(48px,7vw,105px);
    letter-spacing: -.055em;
}

.home-about p,
.home-footer p {
    font-size: 11px;
    line-height: 2;
    letter-spacing: .13em;
    color: #aaa;
}

.home-footer {
    padding: 100px 5% 35px;
    border-top: 1px solid #333;
}

.home-footer > span {
    font-size: 10px;
    letter-spacing: .18em;
    color: #888;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: 140px;
    padding-top: 20px;
    border-top: 1px solid #333;

    font-size: 10px;
    letter-spacing: .1em;
    color: #888;
}


/* ==========================================
   NEW: INTO THE FRAME TRANSITION
========================================== */

/* The rest of the page retreats while opening. */

body.project-is-opening main,
body.project-is-opening .navbar {
    animation: pageRetreat 750ms
        cubic-bezier(.2,1,.3,1) both;
}

@keyframes pageRetreat {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: .15;
        transform: scale(.965);
        filter: blur(5px);
    }
}

/* Fullscreen animation stage */

.film-transition-stage {
    position: fixed;
    inset: 0;
    z-index: 20000;

    overflow: hidden;
    pointer-events: all;

    background: transparent;

    isolation: isolate;
}

/* Dark background grows immediately behind poster */

.film-transition-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: #050505;
    opacity: 0;

    transition: opacity 330ms ease;
}

.film-transition-stage.is-active::before {
    opacity: 1;
}

/* Clone starts at actual poster position */

.film-transition-poster {
    position: fixed;
    display: block;
    z-index: 1;

    margin: 0;
    padding: 0;
    border: 0;

    object-fit: cover;
    object-position: center center;

    max-width: none;
    max-height: none;

    will-change: left,top,width,height,filter;

    transition:
        left 680ms cubic-bezier(.16,1,.3,1),
        top 680ms cubic-bezier(.16,1,.3,1),
        width 680ms cubic-bezier(.16,1,.3,1),
        height 680ms cubic-bezier(.16,1,.3,1),
        filter 680ms ease;
}

.film-transition-stage.is-active .film-transition-poster {
    filter: saturate(.78) brightness(.72);
}

/* Image darkens when title is introduced */

.film-transition-shade {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.72),
            rgba(0,0,0,.40) 55%,
            rgba(0,0,0,.62)
        );

    opacity: 0;
    transition: opacity 440ms ease;
}

.film-transition-stage.show-title .film-transition-shade {
    opacity: 1;
}

/* Cinematic title */

.film-transition-typography {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 5%;

    pointer-events: none;
}

.film-transition-eyebrow {
    font-family: Helvetica,Arial,sans-serif;
    font-size: 10px;
    letter-spacing: .22em;
    color: #d5d5d5;

    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 420ms ease,
        transform 520ms cubic-bezier(.16,1,.3,1);
}

.film-transition-typography h2 {
    margin-top: 28px;

    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(90px,16vw,230px);
    font-weight: 400;
    letter-spacing: -.075em;
    line-height: .84;

    color: #f5f2eb;

    opacity: 0;

    transform:
        translateY(70px)
        scale(.88)
        skewY(4deg);

    filter: blur(9px);

    transition:
        opacity 450ms ease,
        transform 650ms cubic-bezier(.12,1.15,.3,1),
        filter 600ms ease;
}

.film-transition-footnote {
    margin-top: 45px;

    font-size: 10px;
    letter-spacing: .22em;
    color: #b4b4b4;

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 390ms ease 100ms,
        transform 450ms ease 100ms;
}

.film-transition-stage.show-title .film-transition-eyebrow,
.film-transition-stage.show-title .film-transition-footnote {
    opacity: 1;
    transform: translateY(0);
}

.film-transition-stage.show-title .film-transition-typography h2 {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Editing line — fast horizontal cut */

.film-transition-line {
    position: absolute;
    left: 0;
    top: 52%;
    z-index: 4;

    width: 100%;
    height: 1px;

    background: #f5f2eb;

    transform: scaleX(0);
    transform-origin: left center;

    opacity: 0;
    pointer-events: none;
}

.film-transition-stage.show-line .film-transition-line {
    animation: editingCut 500ms
        cubic-bezier(.65,0,.25,1) both;
}

@keyframes editingCut {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }

    12% {
        opacity: 1;
    }

    75% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

/* Final wipe hides the browser navigation */

.film-transition-curtain {
    position: absolute;
    inset: 0;
    z-index: 5;

    background: #101010;

    transform: translateY(101%);
    will-change: transform;

    pointer-events: none;
}

.film-transition-stage.close-frame .film-transition-curtain {
    transform: translateY(0);

    transition:
        transform 360ms cubic-bezier(.65,0,.25,1);
}


/* ==========================================
   MARE NEVE — PAGE ARRIVAL
========================================== */

/* This is activated only after clicking the project. */

body.film-arriving .film-intro,
body.film-arriving .film-overview {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(4px);

    transition:
        opacity 650ms ease,
        transform 750ms cubic-bezier(.16,1,.3,1),
        filter 750ms ease;
}

body.film-arriving.film-arrived .film-intro,
body.film-arriving.film-arrived .film-overview {
    opacity: 1;
    transform: none;
    filter: none;
}

body.film-arriving .film-overview {
    transition-delay: 140ms;
}


/* ==========================================
   MARE NEVE — EXISTING PROJECT STYLES
========================================== */

.film-page {
    background: #101010;
}

.film-intro {
    min-height: 65vh;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 140px 5% 65px;
}

.film-label {
    font-size: 10px;
    letter-spacing: .18em;
    color: #999;
}

.film-intro h1 {
    margin-top: 30px;

    font-family: Georgia,serif;
    font-size: clamp(65px,12vw,190px);
    font-weight: 400;

    letter-spacing: -.065em;
    line-height: 1;
}

.film-intro p {
    margin-top: 25px;

    font-size: 11px;
    letter-spacing: .18em;
    color: #aaa;
}

/* Film overview */

.film-overview {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr);

    gap: clamp(40px,8vw,150px);
    align-items: center;

    padding: 60px 5% 150px;
}

.film-poster {
    display: flex;
    justify-content: center;
    width: 100%;
}

.film-poster img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
}

.film-synopsis {
    width: 100%;
    max-width: 520px;
}

.film-synopsis h2 {
    margin: 20px 0 45px;

    font-family: Georgia,serif;
    font-size: clamp(45px,5vw,80px);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: 1.1;
}

.synopsis-language {
    margin-bottom: 35px;
}

.synopsis-language + .synopsis-language {
    padding-top: 30px;
    border-top: 1px solid #383838;
}

.synopsis-language p {
    margin-bottom: 17px;

    font-size: 14px;
    line-height: 1.8;
    letter-spacing: .005em;
    color: #c5c5c5;
}

.synopsis-language:last-child p {
    color: #999;
}


/* Behind the frame */

.film-frames {
    padding: 100px 5% 140px;
    border-top: 1px solid #333;
}

.film-frames h2 {
    margin-top: 25px;

    font-family: Georgia,serif;
    font-size: clamp(45px,6vw,90px);
    font-weight: 400;
    letter-spacing: -.045em;
}

.frame-entry {
    margin-top: 75px;
    margin-bottom: 150px;
}

.frame-entry + .frame-entry {
    border-top: 1px solid #333;
    padding-top: 90px;
}

.frame-image {
    width: 100%;
    overflow: hidden;
}

.frame-image img {
    display: block;
    width: 100%;
    height: auto;
}

.frame-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;

    padding-top: 40px;
}

.frame-heading {
    min-width: 0;
}

.frame-heading span {
    font-size: 10px;
    letter-spacing: .16em;
    color: #999;
}

.frame-heading h3 {
    margin-top: 25px;

    font-family: Georgia,serif;
    font-size: clamp(35px,4vw,65px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.frame-heading .frame-subtitle {
    display: block;
    margin-top: 20px;

    font-size: 10px;
    letter-spacing: .12em;
    color: #777;
}

.frame-text {
    width: 100%;
    max-width: 460px;
    min-width: 0;
}

.language-block {
    margin-bottom: 35px;
}

.language-block + .language-block {
    border-top: 1px solid #383838;
    padding-top: 30px;
}

.language-label {
    display: block;
    margin-bottom: 20px;

    font-size: 10px;
    letter-spacing: .18em;
    color: #888;
}

.language-block p {
    margin-bottom: 14px;

    font-size: 13px;
    line-height: 1.75;
    letter-spacing: .005em;
    color: #c5c5c5;
}

.language-block:last-child p {
    color: #999;
}


/* ==========================================
   SELECTED STILLS
========================================== */

.selected-stills {
    padding: 20px 5% 140px;
    border-top: 1px solid #333;
}

.selected-stills h2 {
    margin-top: 25px;

    font-family: Georgia,serif;
    font-size: clamp(45px,6vw,90px);
    font-weight: 400;
    letter-spacing: -.045em;
}

.stills-intro {
    margin-top: 22px;
    font-size: 11px;
    letter-spacing: .16em;
    color: #8e8e8e;
    text-transform: uppercase;
}

.stills-gallery {
    margin-top: 55px;
    display: grid;
    gap: 24px;
}

.still-row {
    display: grid;
    gap: 24px;
}

.still-row-two {
    grid-template-columns: 1fr 1fr;
}

.still-card {
    overflow: hidden;
    background: #0d0d0d;
}

.still-card img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        transform .5s ease,
        opacity .5s ease;
}

.still-card:hover img {
    transform: scale(1.01);
    opacity: .95;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .project {
        grid-template-columns: 48% 1fr;
        gap: 6%;
    }

    .project-info h2 {
        font-size: clamp(50px,7vw,90px);
    }

    .project-link {
        margin-top: 50px;
    }

    .film-overview {
        gap: 5%;
    }

    .synopsis-language p {
        font-size: 13px;
    }

    .frame-description {
        gap: 6%;
    }

    .frame-heading h3 {
        font-size: clamp(34px,4.5vw,55px);
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .intro-artwork {
        width: 98vw;
    }

    .intro-caption {
        font-size: 7px;
    }

    .skip-intro {
        top: 25px;
    }

    .navbar {
        padding: 25px 5%;
        align-items: flex-start;
        gap: 15px;
    }

    .logo {
        font-size: 11px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 9px;
    }

    .hero-content {
        top: 12vh;
        left: 3%;
        width: 94%;
    }

    .hero-name-slot {
        width: 94vw;
    }

    .hero-subtitle {
        margin-top: -7vw;
        margin-left: 7.5%;
        font-size: 8px;
        letter-spacing: .12em;
    }

    .hero-fallback-name {
        font-size: 7vw;
    }

    .works {
        padding: 70px 5%;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 45px;
    }

    .project-poster {
        width: 100%;
        max-width: 420px;
    }

    .project-info h2 {
        font-size: 70px;
    }

    .project-link {
        margin-top: 45px;
    }

    .section-heading {
        font-size: 9px;
    }

    .film-intro {
        min-height: 55vh;
        padding-bottom: 45px;
    }

    .film-intro h1 {
        font-size: 15vw;
    }

    .film-overview {
        grid-template-columns: 1fr;
        gap: 65px;
        padding: 35px 5% 100px;
    }

    .film-poster img {
        max-width: 420px;
    }

    .film-synopsis {
        max-width: 100%;
    }

    .film-synopsis h2 {
        font-size: 48px;
        margin-bottom: 35px;
    }

    .synopsis-language p {
        font-size: 13px;
    }

    .film-frames {
        padding-top: 70px;
    }

    .frame-entry {
        margin-top: 45px;
        margin-bottom: 90px;
    }

    .frame-entry + .frame-entry {
        padding-top: 55px;
    }

    .frame-description {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .frame-heading h3 {
        font-size: 42px;
    }

    .selected-stills {
        padding: 10px 5% 100px;
    }

    .selected-stills h2 {
        font-size: 48px;
    }

    .stills-gallery {
        margin-top: 40px;
        gap: 16px;
    }

    .still-row {
        gap: 16px;
    }

    .still-row-two {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        margin-top: 90px;
    }

    /* Transition typography on smaller screens */

    .film-transition-typography h2 {
        font-size: clamp(75px,18vw,130px);
    }

    .film-transition-eyebrow,
    .film-transition-footnote {
        font-size: 8px;
        letter-spacing: .15em;
    }
}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .hero::before {
        transform: none;
        filter: none;
    }

    body.site-ready .hero::before,
    body.site-ready .navbar,
    body.site-ready nav a,
    body.site-ready .hero-subtitle,
    body.site-ready .scroll-indicator {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }
}

/* ==========================================
   WORKS — MORE COMPACT EDITORIAL LAYOUT
========================================== */

.works {
    padding: 95px 8% 115px;
}

.project {
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
    gap: clamp(45px, 7vw, 110px);
    align-items: center;
    padding-top: 65px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-poster {
    width: 100%;
    max-width: 330px;
}

.project-info h2 {
    font-size: clamp(50px, 6vw, 82px);
    margin-top: 22px;
    line-height: .98;
}

.project-info p {
    margin-top: 22px;
    font-size: 10px;
}

.project-link {
    max-width: 260px;
    margin-top: 45px;
}

/* TABLET */

@media (max-width: 900px) {
    .project {
        grid-template-columns: minmax(0, 260px) 1fr;
        gap: 40px;
    }

    .project-info h2 {
        font-size: clamp(45px, 6vw, 65px);
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .works {
        padding: 70px 6% 90px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 40px;
    }

    .project-poster {
        max-width: 245px;
    }

    .project-info h2 {
        font-size: 58px;
    }

    .project-link {
        margin-top: 35px;
    }
}
/* =========================================================
   FINAL MOBILE PASS — HOME
   Gianmarco Spina Portfolio
========================================================= */


/* ---------------------------------------------------------
   TOUCH DEVICES
--------------------------------------------------------- */

@media (hover: none), (pointer: coarse) {

    .skip-intro:hover,
    nav a:hover,
    .project-poster img:hover,
    .project-link:hover,
    .still-card:hover img {
        opacity: inherit;
        transform: none;
    }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* -----------------------------------------------------
       INTRO
    ----------------------------------------------------- */

    .intro {
        min-height: 100svh;
    }

    .intro-artwork {
        width: 112vw;
        max-width: none;

        transform:
            translateX(-6vw);
    }

    .intro-caption {
        left: 6%;
        right: 6%;
        bottom:
            calc(
                22px +
                env(safe-area-inset-bottom)
            );

        font-size: 6px;
        letter-spacing: .1em;
    }

    .intro-caption span:last-child {
        text-align: right;
    }

    .skip-intro {
        top:
            calc(
                22px +
                env(safe-area-inset-top)
            );

        right: 6%;

        min-height: 44px;

        font-size: 8px;
        letter-spacing: .13em;
    }


    /* -----------------------------------------------------
       NAVIGATION

       Logo on first row.
       Menu underneath so four links are never crushed.
    ----------------------------------------------------- */

    .navbar {
        position: absolute;

        padding:
            calc(
                20px +
                env(safe-area-inset-top)
            )
            6%
            18px;

        display: grid;

        grid-template-columns:
            1fr;

        gap: 15px;

        align-items: start;
    }

    .logo {
        width: max-content;

        font-size: 11px;

        letter-spacing:
            .085em;

        line-height:
            1;
    }

    .navbar nav {
        display: flex;

        width: 100%;

        justify-content:
            space-between;

        align-items:
            center;

        gap: 0;
    }

    .navbar nav a {
        display: inline-flex;

        align-items:
            center;

        min-height:
            38px;

        font-size:
            8px;

        letter-spacing:
            .11em;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .hero {
        min-height:
            100svh;
    }

    .hero::before {
        inset:
            -2%;

        background-position:
            52% center;

        transform:
            scale(1.08)
            translateY(10px);

        filter:
            brightness(.40)
            blur(4px);
    }

    .hero-content {
        top:
            clamp(
                125px,
                18svh,
                165px
            );

        left:
            0;

        width:
            100%;
    }

    .hero-name-slot {
        width:
            106vw;

        margin-left:
            -3vw;

        aspect-ratio:
            3 / 1;
    }

    .hero-signature {
        width:
            100%;
    }

    .hero-subtitle {
        margin-top:
            -4vw;

        margin-left:
            8%;

        max-width:
            75%;

        font-size:
            8px;

        line-height:
            1.55;

        letter-spacing:
            .13em;
    }

    .hero-fallback-name {
        left:
            8%;

        font-size:
            clamp(
                28px,
                9vw,
                42px
            );

        white-space:
            normal;

        line-height:
            .95;
    }

    .scroll-indicator {
        right:
            6%;

        bottom:
            calc(
                24px +
                env(safe-area-inset-bottom)
            );

        font-size:
            8px;

        letter-spacing:
            .13em;
    }


    /* -----------------------------------------------------
       SELECTED WORKS
    ----------------------------------------------------- */

    .works {
        padding:
            72px
            6%
            100px;
    }

    .section-heading {
        gap:
            12px;

        padding-bottom:
            16px;

        font-size:
            8px;

        letter-spacing:
            .13em;
    }

    .section-heading span:last-child {
        text-align:
            right;
    }

    .project {
        display: grid;

        grid-template-columns:
            1fr;

        gap:
            36px;

        padding-top:
            42px;

        max-width:
            none;
    }

    .project-poster {
        width:
            min(
                72vw,
                300px
            );

        max-width:
            none;

        margin:
            0 auto;
    }

    .project-info {
        width:
            100%;
    }

    .project-number {
        font-size:
            8px;
    }

    .project-info h2 {
        margin-top:
            22px;

        font-size:
            clamp(
                54px,
                17vw,
                76px
            );

        line-height:
            .88;
    }

    .project-info p {
        margin-top:
            22px;

        font-size:
            9px;

        line-height:
            1.6;
    }

    .project-link {
        width:
            100%;

        max-width:
            none;

        min-height:
            48px;

        margin-top:
            38px;

        padding:
            0 0
            13px;

        font-size:
            9px;
    }


    /* -----------------------------------------------------
       HOME ABOUT
    ----------------------------------------------------- */

    .home-about {
        padding:
            75px
            6%
            90px;
    }

    .home-about .film-label {
        font-size:
            8px;
    }

    .home-about h2 {
        margin:
            25px 0;

        font-size:
            clamp(
                49px,
                15vw,
                70px
            );

        line-height:
            .93;
    }

    .home-about p {
        font-size:
            9px;

        line-height:
            1.8;
    }


    /* -----------------------------------------------------
       HOME CONTACT
    ----------------------------------------------------- */

    .home-footer {
        padding:
            75px
            6%
            calc(
                28px +
                env(safe-area-inset-bottom)
            );
    }

    .home-footer > span {
        font-size:
            8px;
    }

    .home-footer h2 {
        margin:
            25px 0;

        font-size:
            clamp(
                50px,
                15vw,
                72px
            );

        line-height:
            .93;
    }

    .home-footer p {
        font-size:
            9px;
    }

    .footer-bottom {
        margin-top:
            90px;

        padding-top:
            18px;

        align-items:
            flex-end;

        gap:
            20px;

        font-size:
            8px;

        line-height:
            1.45;
    }

    .footer-bottom span {
        max-width:
            50%;
    }

    .footer-bottom a {
        min-height:
            44px;

        display:
            flex;

        align-items:
            flex-end;

        text-align:
            right;
    }


    /* -----------------------------------------------------
       MARE NEVE TRANSITION
    ----------------------------------------------------- */

    .film-transition-typography {
        padding:
            8%;
    }

    .film-transition-typography h2 {
        margin-top:
            20px;

        font-size:
            clamp(
                72px,
                22vw,
                110px
            );

        line-height:
            .82;
    }

    .film-transition-eyebrow,
    .film-transition-footnote {
        font-size:
            7px;

        letter-spacing:
            .13em;
    }

}


/* =========================================================
   VERY SMALL PHONES
   iPhone SE / similar
========================================================= */

@media (max-width: 390px) {

    .navbar {
        padding-left:
            5%;

        padding-right:
            5%;
    }

    .navbar nav a {
        font-size:
            7px;

        letter-spacing:
            .085em;
    }

    .hero-content {
        top:
            135px;
    }

    .hero-subtitle {
        font-size:
            7px;
    }

    .project-info h2 {
        font-size:
            54px;
    }

    .section-heading {
        font-size:
            7px;
    }

}


/* =========================================================
   MOBILE LANDSCAPE
========================================================= */

@media
(max-height: 520px)
and
(orientation: landscape) {

    .navbar {
        padding-top:
            16px;

        grid-template-columns:
            auto 1fr;

        align-items:
            center;

        gap:
            30px;
    }

    .navbar nav {
        justify-content:
            flex-end;

        gap:
            20px;
    }

    .hero-content {
        top:
            70px;
    }

    .hero-name-slot {
        width:
            65vw;

        margin-left:
            0;
    }

    .hero-subtitle {
        margin-top:
            -7vw;
    }

    .scroll-indicator {
        bottom:
            18px;
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .intro-artwork {
        transform:
            none;
    }

}