* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    background: #000;
}

body {
    background: #e2d9cf;
    color: #242321;
    font-family: "elza", sans-serif;
    font-weight: 300;
    min-height: 100vh;
}

.site {
    position: relative;
    background-image: url("assets/bg.webp");
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
}


/* ==================================================
   HOME
================================================== */

.home-page {
    position: relative;
    width: 100%;
    height: 100vh;

    overflow: hidden;
}


/* ==================================================
   NAVIGATION
================================================== */

.navbar {
    position: fixed;
    top: clamp(28px, 4.7vw, 72px);
    left: clamp(28px, 7.1vw, 110px);
    right: clamp(28px, 7.1vw, 110px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 100;

    padding: 1% 3%;

background: #F5F0E7;
background: rgba(245, 240, 231, 0.35);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);

    border-radius: 2%;

    transition: opacity 0.3s ease;
}

.home-page.loaded .navbar,
.home-page.loaded .intro {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-page.loaded .scroll-indicator {
    opacity: 1;
}

.navbar.hidden {
    opacity: 0;
    pointer-events: none;
}

.logo {
    color: #302e2b;
    text-decoration: none;

    font-size: clamp(18px, 1.35vw, 22px);
    font-weight: 300;
    line-height: 1;

    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: clamp(28px, 4.1vw, 64px);
}

.nav-links a {
    color: #302e2b;
    text-decoration: none;

    font-size: clamp(16px, 1.25vw, 21px);
    font-weight: 300;
    line-height: 1;

    transition: opacity 0.25s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

html.intro-lock {
    overflow: hidden !important;
    scroll-behavior: auto;
}

body.intro-lock {
    overflow: hidden !important;
}

/* ==================================================
   GIRL PEEK ANIMATION
================================================== */

.girl-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}


/* =========================
   RIGHT GIRL
========================= */

.girl-right {
    position: absolute;

    width: 14vw;
    max-width: 380px;

    right: 0;
    top: 50%;

    transform: translate(100%, -50%);

    animation: girlRightPeek 1.5s ease-in-out 0s forwards;
}


/* =========================
   BOTTOM GIRL
========================= */

.girl-bottom {
    position: absolute;

    width: 17vw;
    max-width: 430px;

    left: 50%;
    bottom: 0;

    transform: translate(-50%, 100%);

    animation: girlBottomPeek 1.5s ease-in-out 0.9s forwards;
}


/* =========================
   TOP GIRL
========================= */

.girl-top {
    position: absolute;

    width: 20vw;
    max-width: 460px;

    /* intentionally left of centre */
    left: 20%;
    top: 0;

    transform: translate(-50%, -100%);

    animation: girlTopPeek 1.5s ease-in-out 1.8s forwards;
}

/* ==================================================
   RIGHT GIRL
================================================== */

@keyframes girlRightPeek {

    0% {
        opacity: 0;
        transform: translate(100%, -50%);
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 1;
        transform: translate(0%, -50%);
    }

    70% {
        opacity: 1;
        transform: translate(0%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(100%, -50%);
    }

}


/* ==================================================
   BOTTOM GIRL
================================================== */

@keyframes girlBottomPeek {

    0% {
        opacity: 0;
        transform: translate(-50%, 100%);
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 1;
        transform: translate(-50%, 0%);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, 0%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 100%);
    }

}


/* ==================================================
   TOP GIRL
================================================== */

@keyframes girlTopPeek {

    0% {
        opacity: 0;
        transform: translate(-50%, -100%);
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 1;
        transform: translate(-50%, 0%);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, 0%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -100%);
    }

}

.push-sequence {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 50;

    display: block;
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.push-desktop{
    display:block;
}

.push-tablet{
    display:none;
}

.push-final-frame{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:50;
    display:block;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.push-final-desktop{display:block;}
.push-final-tablet{display:none;}

/* During the animation */
.home-page.push-playing .push-sequence {
    opacity: 1;
    visibility: visible;
}

.home-page.push-finished .push-sequence {
    opacity: 0;
    visibility: hidden;
}

.home-page.push-finished .push-final-frame {
    opacity: 1;
    visibility: visible;
}

/* ==================================================
   MAIN GIRL
================================================== */

.main-girl-body {
    position: absolute;

    width: 22vw;
    max-width: 22vw;

    left: 33%;
    bottom:8%;

    transform: translateX(-50%);

    opacity: 0;

    z-index: 15;

    transition: opacity 0.8s ease;
}

.main-girl-arm {
    position: absolute;

    width: 22vw;
    max-width: 22vw;

    left: 33%;
    bottom: 8%;
 transform: translateX(-50%) scale(1.015);
    transform-origin: 76% 38%;

    opacity: 0;
    z-index: 16;

    animation: armWave 1.2s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.home-page.loaded .main-girl-arm {
    opacity: 1;
    animation-play-state: running;
}

@keyframes armWave {
    0% {
        transform: translateX(-50%) scale(1.015) rotate(-3deg);
    }

    100% {
        transform: translateX(-50%) scale(1.015) rotate(3deg);
    }
}

/* Show girl after opening animation */
.home-page.loaded .main-girl-body,
.home-page.loaded .main-girl-arm {
    opacity: 1;
}

/* ==================================================
   INTRO
================================================== */

.intro {
    position: absolute;

    top: clamp(145px, 21.5vh, 225px);
    left: 58%;

    width: min(33vw, 510px);

    z-index: 20;

    opacity: 0;
    transform: translateY(15px);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

.intro h1 {
    margin-bottom: clamp(12px, 1vw, 18px);

    font-size: clamp(30px, 2.2vw, 38px);
    font-weight: 500;
    line-height: 1.05;
}

.intro p {
    max-width: 480px;

    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: 300;
    line-height: 1.18;
}


/* ==================================================
   SCROLL INDICATOR
================================================== */

.scroll-indicator {
    position: absolute;

    right: clamp(28px, 7.1vw, 110px);
    bottom: clamp(28px, 4.7vw, 60px);

    display: flex;
    align-items: center;
    gap: 10px;

    z-index: 20;

    font-size: clamp(15px, 1.15vw, 19px);
    font-weight: 300;

    opacity: 0;

    transition: opacity 1s ease;
}

.scroll-arrow {
    display: inline-block;

    font-size: clamp(25px, 2vw, 32px);
    line-height: 0.7;
}


/* ==================================================
   HOMEPAGE LOADED STATE
================================================== */

.home-page .navbar {
    opacity: 0;
    transform: translateY(-10px);
}

.home-page.loaded .navbar,
.home-page.loaded .intro {
    opacity: 1;
    transform: translateY(0);
}

.home-page.loaded .scroll-indicator {
    opacity: 1;
}

/* ==================================================
   PROJECTS PAGE
================================================== */

.projects-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;
    color: #302e2b;
}


/* ==================================================
   PROJECTS NAVIGATION
================================================== */

.projects-navbar {
    opacity: 1;
    transform: translateY(0);
}


/* ==================================================
   SELECTED PROJECTS
================================================== */

.selected-projects {
    position: relative;

    min-height: 100vh;
    min-height: 100vh;

    padding:
        clamp(100px, 8vw, 125px)
        clamp(28px, 7.1vw, 110px)
        60px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
}

.section-label {
    position: absolute;
    top: clamp(100px, 9.5vw, 145px);
    left: clamp(45px, 9vw, 140px);
    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: 500;
    z-index: 20;
}


/* ==================================================
   HORIZONTAL CARD ACCORDION
================================================== */

.featured-project {
    position: relative;

    width: 960px;
    height: 500px;

    margin: 55px auto 0;

    display: flex;
    gap: 10px;

    overflow: hidden;
}


/* ==================================================
   PROJECT SLIDES

   Focused card = 400px
   Side cards = 130px
   Gap = 10px

   TOTAL WIDTH:

   400
   + 130 + 130 + 130 + 130
   + 10 + 10 + 10 + 10
   = 960px
================================================== */

.project-slide {
    position: relative;

    flex: 0 0 130px;

    width: 130px;
    height: 500px;

    display: block;

    overflow: hidden;

    background: #302e2b;
    color: #f5f0e7;

    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition:
        flex-basis 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==================================================
   PROJECT IMAGES
================================================== */

.project-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ==================================================
   DEFAULT FOCUS

   Card 3 starts at 400px.
================================================== */

.project-slide:nth-child(3) {
    flex-basis: 400px;
}

/* ==================================================
   AUTOMATIC FOCUS
================================================== */

.featured-project[data-focus="1"] .project-slide {
    flex-basis: 130px;
}

.featured-project[data-focus="1"] .project-slide:nth-child(1) {
    flex-basis: 400px;
}


.featured-project[data-focus="2"] .project-slide {
    flex-basis: 130px;
}

.featured-project[data-focus="2"] .project-slide:nth-child(2) {
    flex-basis: 400px;
}


.featured-project[data-focus="3"] .project-slide {
    flex-basis: 130px;
}

.featured-project[data-focus="3"] .project-slide:nth-child(3) {
    flex-basis: 400px;
}


.featured-project[data-focus="4"] .project-slide {
    flex-basis: 130px;
}

.featured-project[data-focus="4"] .project-slide:nth-child(4) {
    flex-basis: 400px;
}


.featured-project[data-focus="5"] .project-slide {
    flex-basis: 130px;
}

.featured-project[data-focus="5"] .project-slide:nth-child(5) {
    flex-basis: 400px;
}

/* ==================================================
   HOVERED CARD BECOMES LARGE
================================================== */

.featured-project:has(.project-slide:nth-child(1):hover)
.project-slide:nth-child(1),

.featured-project:has(.project-slide:nth-child(2):hover)
.project-slide:nth-child(2),

.featured-project:has(.project-slide:nth-child(3):hover)
.project-slide:nth-child(3),

.featured-project:has(.project-slide:nth-child(4):hover)
.project-slide:nth-child(4),

.featured-project:has(.project-slide:nth-child(5):hover)
.project-slide:nth-child(5) {
    flex-basis: 400px;
}


/* ==================================================
   ALL OTHER CARDS STAY SMALL
================================================== */

.featured-project:has(.project-slide:nth-child(1):hover)
.project-slide:not(:nth-child(1)),

.featured-project:has(.project-slide:nth-child(2):hover)
.project-slide:not(:nth-child(2)),

.featured-project:has(.project-slide:nth-child(3):hover)
.project-slide:not(:nth-child(3)),

.featured-project:has(.project-slide:nth-child(4):hover)
.project-slide:not(:nth-child(4)),

.featured-project:has(.project-slide:nth-child(5):hover)
.project-slide:not(:nth-child(5)) {
    flex-basis: 130px;
}


/* ==================================================
   PROJECT MODAL
================================================== */

.project-modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 9999;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    background: #f5f0e7;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* BACKGROUND TEXTURE */

.project-modal::before {
    content: "";
    position: absolute;
    inset: -10px;
    background-image: url("assets/bg.webp");
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    z-index: 0;
}


/* SLIGHT DARKENING */

.project-modal::after {
    content: "";
    position: absolute;
    inset: 0;
background: #242321;
    background: rgba(36, 35, 33, 0.08);

    z-index: 1;
}


/* OPEN STATE */

.project-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ==================================================
   PROJECT SHEET
================================================== */

.project-modal-card {
    position: relative;

    width: 642px;
    height: calc(100vh - 40px);
    margin-top: 40px;

    background: #fcf7f2;

    z-index: 2;

    border-radius: 2px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(36, 35, 33, 0.12);
}


/* ==================================================
   CLOSE BUTTON
================================================== */

.project-modal-close {
    position: absolute;

    top: 16px;
    right: 18px;

    width: 36px;
    height: 36px;

    border: none;
    background: transparent;

    color: #302e2b;

    font-family: "elza", sans-serif;
    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.project-modal-close:hover {
    transform: rotate(90deg);
    opacity: 0.6;
}


/* ==================================================
   SCROLLABLE CONTENT
================================================== */

.project-modal-content {
    position: relative;

    width: 100%;
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 55px 7% 80px;

    scrollbar-width: thin;
}


/* ==================================================
   INDIVIDUAL PROJECTS
================================================== */

.project-content {
    display: none;

    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}

.project-content.active {
    display: block;
}


/* ==================================================
   PROJECT TYPOGRAPHY
================================================== */

.project-content h1 {
    margin: 0 50px 25px 0;

    font-size: clamp(28px, 3vw, 48px);
    font-weight: 500;

    line-height: 1.05;
}

.project-intro {
    max-width: 650px;

    margin-bottom: 50px;

    font-size: 17px;
    font-weight: 300;

    line-height: 1.4;
}

.project-section {
    margin-bottom: 45px;
}

.project-section h2 {
    margin-bottom: 10px;

    font-size: 18px;
    font-weight: 500;

    line-height: 1.1;
}

.project-section p {
    max-width: 650px;

    font-size: 15px;
    font-weight: 300;

    line-height: 1.45;
}


/* ==================================================
   PROJECT IMAGES
================================================== */

.project-image {
    width: 100%;

    margin: 35px 0 55px;
}

.project-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

.project-cursor-label {
    position: fixed;

    left: 0;
    top: 0;

    background: #242321;
    color: #ffffff;

    font-family: "elza", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;

    padding: 6px 10px;
    border-radius: 18px;

    white-space: nowrap;

    pointer-events: none;
    z-index: 100;

    opacity: 0;
    visibility: hidden;

    transform: translate(10px, 10px);

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
}

.project-slide:hover .project-cursor-label {
    opacity: 1;
}

/* ==================================================
   HIDE PAGE SCROLL WHEN MODAL IS OPEN
================================================== */

body.project-modal-open {
    overflow: hidden;
}

/* =========================
   PROJECT CASE STUDY
   ========================= */

.project-content {
    display: none;
    max-width: 100%;
}

.project-content.active {
    display: block;
}

.project-header {
    margin-bottom: 30px;
}

.project-kicker {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 500;
}

.project-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: 0;
}

.project-meta {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.project-meta p {
    margin: 0;
}

.project-body {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 300;
}

.project-body p {
    margin: 0 0 14px;
    font-weight: 300;
}

.project-intro {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 300;
}

.project-note {
    font-size: 14px;
    line-height: 1.3;
    font-style: italic;
    font-weight: 300;
    margin-top: 18px !important;
}


/* SECTION */

.project-section {
    margin-top: 30px;
}

.project-section h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.project-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
}


/* DESIGN DIRECTION */

.design-direction {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.direction-label {
    margin-bottom: 10px !important;
    font-size: 14px !important;
}


/* COLOUR PALETTE */

.color-palette {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
}

.color-swatch {
    display: block;
    width: 100%;
    height: 30px;
    flex: 1;
}

/* =========================
   INTERFACE + KEY EXPERIENCES
   ========================= */

.interface-subtitle {
    margin: -5px 0 18px !important;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 300;
}

.interface-gif {
    width: 100%;
    display: block;
}

.project-video {
    display: block;
    width: 100%;
    height: auto;
    margin: 20px 0;
    object-fit: cover;
}

.project-closing {
    text-align: center;
    margin-top: 20px;
}

/* CLOSING NOTE */
.project-content .project-closing .project-closing-note {
    font-size: 12px !important;
    font-weight: 300 !important;
    text-align: center;
    max-width: 420px;
    margin: 20px auto 10px !important;
}

/* ==================================================
   PROJECT 2 — IMAGE HEAVY CASE STUDY
   ================================================== */

.project-2-intro {
    margin-bottom: 42px;
}


/* -------------------------
   RESEARCH BOOKLET
   ------------------------- */

.project-2-research {
    margin-top: 30px;
}

.research-layout {
    display: grid;
    grid-template-columns: 48% 1fr;
    gap: 14px;

    align-items: end;
}

.research-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.research-images img {
    display: block;
    width: 100%;
    height: auto;
}

.research-text {
    align-self: end;
    padding-bottom: 2px;
}

.research-text p {
    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 300;
}

.research-text p:last-child {
    margin-bottom: 0;
}


/* -------------------------
   VISUAL DIRECTION
   ------------------------- */

.project-2-visual-direction {
    margin-top: 38px;
}

.project-2-visual-direction .project-image {
    display: block;
    width: 100%;
    height: auto;

    margin: 10px 0 20px;
}


/* -------------------------
   THE GARMENTS
   FULL MODAL WIDTH
   ------------------------- */

.project-2-full-image {
    width: 100%;
    margin-top: 38px;
}

.project-2-full-image .project-image {
    display: block;

    width: calc(100% + 14%);
    max-width: none;

    margin-top: 10px;
    margin-left: -7%;
    margin-right: 0;
}


/* -------------------------
   FINAL COLLECTION
   ------------------------- */

.project-2-final {
    margin-top: 38px;
}

.project-2-final .project-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 10px 0 20px;
}


/* -------------------------
   CLOSING
   ------------------------- */

.project-2-closing {
    text-align: center;

    max-width: 400px;

    margin: 55px auto 10px;
}

.project-2-closing p {
   font-size: 12px !important;
    font-weight: 300 !important;
    text-align: center;
    max-width: 420px;
    margin: 20px auto 10px !important;
}

/* ==================================================
   PROJECT 3 — STUDIO SNATCHED
   ================================================== */

.project-3-intro {
    margin-bottom: 42px;
}

.project-3-intro p {
    margin-bottom: 14px;
}


/* -------------------------
   STARTING POINT
   ------------------------- */

.project-3-starting-point {
    margin-top: 34px;
}

.project-3-section-text {
    max-width: 470px;

    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 300;
}


/* -------------------------
   STARTING POINT IMAGE
   ------------------------- */

.project-3-starting-point .project-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 20px 0 0;
}

/* =========================
   FINDING THE STORY
   ========================= */

.project-3-story {
    margin-top: 42px;
}


/* TEXT + DIARY */

.project-3-story-intro {
    position: relative;
    min-height: 0px;
}

.project-3-story-intro .project-3-section-text {
    max-width: 75%;
}

.project-3-diary {
    position: absolute;

    width: 225px;
    height: auto;

    right: 2%;
    top: -5px;

    transform: rotate(2deg);
}

/* THREE STORYBOARDS */

.project-3-storyboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    align-items: start;
}

.project-3-storyboard-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.project-3-storyboard-grid img:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.project-3-storyboard-grid img:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.project-3-storyboard-grid img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* =========================
   PROJECT 3 — LATER SECTIONS
   ========================= */

.project-3-character {
    margin-top: 42px;
}

.project-3-character .project-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
}


/* FINDING THE MOVEMENT */

.project-3-movement {
    margin-top: 42px;
}

.project-3-movement .project-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
}


/* BRINGING IT TO LIFE */

.project-3-animation {
    margin-top: 42px;
}

.project-3-animation .project-3-section-text {
    margin-bottom: 18px;
}

.project-3-video {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    object-fit: contain;

    background: transparent;
}

/* =========================
   EXPRESSIONS
   ========================= */

.project-3-expressions {
    margin-top: 42px;
}

.project-3-expressions .project-3-gif {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
}


/* =========================
   INSIDE THE ANIMATION
   ========================= */

.project-3-inside-animation {
    margin-top: 42px;
}

.project-3-inside-animation .project-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
}

.project-3-image-caption {
    margin: 8px 0 0;

    text-align: center;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 300;
}


/* =========================
   FINAL ANIMATION
   ========================= */
.project-3-final-video-wrap {
    position: relative;
    width: 100%;
    margin-top: 18px;
}

.project-3-final-video {
    display: block;
    width: 100%;
    height: auto;
}

.project-3-sound-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;

    padding: 6px 10px;

    border: none;
    border-radius: 18px;

    background: #242321;
    color: #ffffff;

    font-family: "elza", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.project-3-sound-toggle:hover {
    opacity: 0.7;
}


/* =========================
   CLOSING
   ========================= */

.project-3-closing {
    max-width: 400px;

    margin: 55px auto 10px;

    text-align: center;
}

.project-3-closing p {
  font-size: 12px !important;
    font-weight: 300 !important;
    text-align: center;
    max-width: 420px;
    margin: 20px auto 10px !important;
}

/* ==================================================
   PROJECT 4 — DODOISM × DADAISM
================================================== */

.project-4-content {
    padding-bottom: 100px;
}


/* --------------------------------------------------
   INTRO
-------------------------------------------------- */

.project-4-intro {
    margin-top: 35px;
    max-width: 720px;
}

.project-4-intro p {
    margin: 0 0 24px;
}

.project-4-question {
    font-weight: 500;
}


/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */

.project-4-section {
    margin-top: 55px;
}

.project-4-section h2 {
    margin: 0 0 12px;

    font-family: "elza", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
}

.project-4-section > p {
    margin: 0;
}


/* --------------------------------------------------
   TWO WORLDS
-------------------------------------------------- */

.project-4-world {
    display: flex;
    align-items: flex-start;
    gap: 22px;

    margin-top: 38px;
}

.project-4-world img {
    display: block;

    width: 42%;
    height: auto;

    object-fit: contain;
}

.project-4-world-text {
    flex: 1;
    padding-top: 8px;
}

.project-4-world-text h3 {
    margin: 0 0 8px;

    font-family: "elza", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.project-4-world-text p {
    margin: 0;
}


/* --------------------------------------------------
   DODOISM
-------------------------------------------------- */

.project-4-dodoism {
    align-items: flex-start;
}


/* --------------------------------------------------
   DADAISM
-------------------------------------------------- */

.project-4-dadaism {
    margin-top: 18px;
    justify-content: flex-end;
}

.project-4-dadaism .project-4-world-text {
    max-width: 52%;
    padding-top: 28px;
}

.project-4-dadaism img {
    width: 42%;
}


/* --------------------------------------------------
   TAKEAWAY
-------------------------------------------------- */

.project-4-takeaway {
    margin: 42px auto 0 !important;

    max-width: 650px;

    text-align: center;

    font-style: italic;
    font-weight: 500;
}


/* --------------------------------------------------
   VISUAL LANGUAGE
-------------------------------------------------- */

.project-4-visual-language {
    margin-top: 62px;
    max-width: 700px;
}

/* ==================================================
   PROJECT 4 — VISUAL DEVELOPMENT
================================================== */

.project-4-development {
    margin-top: 55px;
}


/* --------------------------------------------------
   EACH SIDE
-------------------------------------------------- */

.project-4-side {
    margin-bottom: 55px;
}

.project-4-side > h2 {
    margin-bottom: 18px;
}


/* --------------------------------------------------
   INDIVIDUAL DEVELOPMENT BLOCKS
-------------------------------------------------- */

.project-4-development-block {
    margin-bottom: 32px;
}

.project-4-development-block h3 {
    margin: 0 0 8px;

    font-family: "elza", sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}


/* --------------------------------------------------
   IMAGES
-------------------------------------------------- */

.project-4-development-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}


/* --------------------------------------------------
   DADAISM
-------------------------------------------------- */

.project-4-dadaism-development {
    margin-top: 65px;
}

/* ==================================================
   PROJECT 4 — ON THE PAGE
================================================== */

.project-4-on-page {
    margin-top: 55px;
}


/* --------------------------------------------------
   KEYWORDS
-------------------------------------------------- */

.project-4-keywords {
    margin-bottom: 42px;
}

.project-4-keywords h3 {
    margin: 0 0 8px;

    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}


/* --------------------------------------------------
   ON THE PAGE INTRO
-------------------------------------------------- */

.project-4-page-intro {
    max-width: 650px;
    margin-bottom: 0px;
}

.project-4-page-intro h2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.project-4-page-intro p {
    margin: 0;
    font-size: 14px;
}

.project-4-page-sequence {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 42px;
}

.project-4-page-sequence img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.project-4-page-sequence img[src$=".gif"] {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -60px;
    margin-bottom: -60px;
}
/* ==================================================
   PROJECT 4 — CLOSING
================================================== */

.project-4-closing {
    margin-top: 70px;

    text-align: center;
}


/* --------------------------------------------------
   INTRO TEXT
-------------------------------------------------- */

.project-4-closing-intro {
    margin: 42px auto 0 !important;
    max-width: 650px;
    text-align: center;
    font-style: italic;
   font-weight: 500 !important;
}


/* --------------------------------------------------
   FINAL IMAGE
-------------------------------------------------- */

.project-4-closing-image {
    width: 100%;
    margin: 0 auto;
}

.project-4-closing-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* --------------------------------------------------
   FINAL LINE
-------------------------------------------------- */

.project-4-closing-line {
font-size: 12px !important;
    font-weight: 300 !important;
    text-align: center;
    max-width: 420px;
    margin: 40px auto 10px !important;
}

/* ==================================================
   PROJECT 5 — CREATIVE ERRORS 2026
================================================== */

.project-5-content {
    padding-bottom: 100px;
}


/* --------------------------------------------------
   INTRO
-------------------------------------------------- */

.project-5-intro {
    margin-top: 35px;
    max-width: 720px;
}

.project-5-intro p {
    margin: 0;
}


/* --------------------------------------------------
   CREATIVE ERRORS
-------------------------------------------------- */

.project-5-errors {
    margin-top: 42px;
}

.project-5-errors h2 {
    margin-bottom: 12px;
}

.project-5-error-intro {
    margin-bottom: 10px !important;

    font-weight: 500 !important;
}


/* --------------------------------------------------
   MAIN VISUAL
-------------------------------------------------- */

.project-5-full-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 22px 0 0;
}


/* --------------------------------------------------
   VISUAL LANGUAGE
-------------------------------------------------- */

.project-5-visual-language {
    margin-top: 48px;
    max-width: 720px;
}


/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */

.project-5-layout {
    margin-top: 42px;
}

.project-5-layout .project-5-full-image {
    margin-top: 10px;
}

.project-5-content .project-light-heading {
    color: #D94A4A !important;
    font-weight: 300 !important;
    text-transform: uppercase;
}

/* ==================================================
   PROJECT 5 — VISUAL SYSTEM
================================================== */

.project-5-visual-block {
    margin-top: 45px;
}


/* RED LIGHT LABELS */

.project-5-content .project-light-heading {
    color: #D94A4A !important;
    font-weight: 300 !important;

    font-size: 12px;
    line-height: 1;

    margin-bottom: 12px;
}


/* VISUAL ASSETS */

.project-5-visual-block .project-5-full-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}


/* ==================================================
   THE MONTHS
================================================== */

.project-5-months {
    margin-top: 55px;
}

.project-5-months h2 {
    margin-bottom: 10px;
}

.project-5-months p {
    max-width: 720px;
    margin: 0 0 22px;
}

.project-5-months-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}

/* ==================================================
   PROJECT 5 — FINAL GIFS
================================================== */

.project-5-final-gifs {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 28px;

    margin-top: 42px;
}

.project-5-final-gifs img {
    display: block;

    width: 100%;
    height: auto;
}


/* ==================================================
   PROJECT 5 — CLOSING
================================================== */

.project-5-closing {
    margin: 55px auto 20px;

    text-align: center;
}

.project-5-closing p {
font-size: 12px !important;
    font-weight: 300 !important;
    text-align: center;
    max-width: 420px;
    margin: 40px auto 10px !important;
}

/* ==================================================
   MORE PROJECTS
================================================== */

.more-projects {
    min-height: 100vh;

    padding:
        clamp(90px, 8vw, 130px)
        clamp(45px, 9vw, 140px)
        100px;

    display: grid;
    grid-template-columns:
        minmax(180px, 0.7fr)
        2fr;

    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.more-projects-intro {
    position: relative;
    top: 0;
    margin: 0;
}

.more-projects-intro h2 {
    margin-bottom: 8px;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 500;
    line-height: 1.05;
}

.more-projects-intro p {
    max-width: none;
    width: 130%;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
}


/* ==================================================
   PROJECT GRID
================================================== */

.project-grid {
    position: relative;
    width: 740px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ---------- ROW 1 ---------- */

.project-card-full-volume,
.project-card-fontaisa {
    height: 150px;
}

.project-card-full-volume {
    width: 365px;
}

.project-card-fontaisa {
    width: 365px;
}


/* ---------- ROW 1 CONTAINER ---------- */

.project-card-full-volume {
    margin-right: 375px;
}

.project-card-fontaisa {
    margin-left: 375px;
    margin-top: -160px;
}


/* ---------- ROW 2 ---------- */

.project-card-bollywood {
    width: 200px;
    height: 160px;

    margin-top: 0;
}

.project-card-usta {
    width: 200px;
    height: 160px;

    margin-left: 210px;
    margin-top: -170px;
}

.project-card-bodyshop {
    width: 320px;
    height: 160px;

    margin-left: 420px;
    margin-top: -170px;
}


/* ---------- ROW 3 ---------- */

.project-card-bankaari {
    width: 450px;
    height: 277px;

    margin-top: 0;
}

.project-card-side-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 280px;

    margin-left: 460px;
    margin-top: -287px;
}

.project-card-side-stack .project-card {
    width: 280px;
    height: 133.5px;
}


/* ==================================================
   PROJECT CARDS
================================================== */

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
    background: #302e2b;
}

.project-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.04);
}


/* ==================================================
   HOVER OVERLAY
================================================== */

.project-overlay {
    position: absolute;
    inset: 0;

    padding: 14px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    background: rgba(48, 46, 43, 0.72);
    color: #fff;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.project-overlay h3 {
    margin-bottom: 2px;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
}

.project-overlay p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
}

.project-overlay > span {
    font-size: 20px;
    line-height: 1;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.04);
}


/* ==================================================
   WIDE CARD
================================================== */

.project-card-wide {
    grid-column: span 2;

    aspect-ratio: 2.2 / 1;
}

/* ==================================================
   ABOUT PAGE
================================================== */

.about-page {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}


/* ==================================================
   ABOUT CONTENT
================================================== */

.about-content {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}


/* ==================================================
   ABOUT TEXT
================================================== */

.about-text {
    position: absolute;
    left: 15.2%;
    top: 22%;
    width: 33vw;
    margin: 0;
}


/* ==================================================
   ABOUT IMAGE
================================================== */

.about-image {
    position: absolute;

    left: 50.5%;
    top: 22%;

    width: 25vw;
    max-width: 430px;

    height: 32vw;
    max-height: 560px;

    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ==================================================
   VERTICAL HELLO
================================================== */

.about-hello {
    position: absolute;

    left: 77.8%;
    top: 22%;

    font-size: clamp(32px, 3vw, 50px);
    font-weight: 300;

    line-height: 1;

    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.about-text em {
    font-family: "elza", sans-serif;
    font-weight: 500;
    font-style: italic;
}

/* ==================================================
   SECOND PARAGRAPH
================================================== */

.about-text-2 {
    top: 38.5%;
}


/* ==================================================
   THIRD PARAGRAPH
================================================== */

.about-text-3 {
    top: 55%;
}


/* ==================================================
   CURRENTLY OBSESSED
================================================== */

.about-text-4 {
    top: 71.5%;

    width: 34vw;
}

/* ==================================================
   RESUME FOLDER
================================================== */

.about-resume-icon {
    position: absolute;
    right: 5%;
    bottom: 5%;

    width: 20%;
    height: 20%;

    display: block;
    z-index: 100;

    cursor: pointer;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.resume-folder {
    position: relative;

    width: 100%;
    height: 100%;

    animation: resumeFloat 3.5s ease-in-out infinite;
}

.resume-folder > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    z-index: 1;

    filter:
        drop-shadow(0 14px 18px rgba(50, 60, 100, 0.12));
}


/* ==================================================
   SHINE CANVAS
================================================== */

.resume-shine-canvas {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    z-index: 2;

    pointer-events: none;
}


/* ==================================================
   FLOAT
================================================== */

@keyframes resumeFloat {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }

    100% {
        transform: translateY(0);
    }

}


/* ==================================================
   HOVER
================================================== */

.about-resume-icon:hover {
    transform: scale(1.06);
}

.about-resume-icon:hover .resume-folder {
    animation-duration: 2.5s;
}

/* ==================================================
   ABOUT SCROLL REVEAL
================================================== */

.about-reveal {
    opacity: 0;
    transform: translateY(80px);

    transition:
        opacity 1s ease,
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==================================================
   STAGGER
================================================== */

.about-delay-1 {
    transition-delay: 0s;
}

.about-delay-2 {
    transition-delay: 0.2s;
}

.about-delay-3 {
    transition-delay: 0.4s;
}

.about-delay-4 {
    transition-delay: 0.6s;
}

.about-delay-5 {
    transition-delay: 0.8s;
}

.about-delay-6 {
    transition-delay: 1s;
}

.about-delay-7 {
    transition-delay: 1.2s;
}


/* ==================================================
   ACTIVE
================================================== */

.about-page.about-visible .about-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   PLAY
================================================== */

/* PLAY PAGE */
.play-page {
    position: relative;
    min-height: 100vh;
    background-image: url("assets/playpage/layout.png");
    background-size: 80% 80%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.play-content {
    position: relative;
    min-height: 100vh;
}


/* FOOD PHOTO STACK */
.food-stack {
    position: absolute;
    left: 11.5%;
    bottom: 14%;
    width: 160px;
    aspect-ratio: 3 / 4;
    perspective: 1400px;
    cursor: pointer;
    z-index: 5;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}


.food-stack-pages {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.food-page-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: bottom center;
    transform: rotateX(0deg);
    transition: transform 1.2s ease-in-out;
}

.food-page,
.food-flat-page {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
    box-shadow: none;
    filter: none;
    border-radius: 0;
}

.food-page {
    z-index: 2;
    backface-visibility: hidden;
}

.food-flat-page {
    z-index: 1;
    transform: rotateX(90deg);
    transform-origin: bottom center;
    backface-visibility: visible;
    pointer-events: none;
    opacity: 0.8;
}

.food-page-wrap:nth-child(1) { z-index: 25; }
.food-page-wrap:nth-child(2) { z-index: 24; }
.food-page-wrap:nth-child(3) { z-index: 23; }
.food-page-wrap:nth-child(4) { z-index: 22; }
.food-page-wrap:nth-child(5) { z-index: 21; }
.food-page-wrap:nth-child(6) { z-index: 20; }
.food-page-wrap:nth-child(7) { z-index: 19; }
.food-page-wrap:nth-child(8) { z-index: 18; }
.food-page-wrap:nth-child(9) { z-index: 17; }
.food-page-wrap:nth-child(10) { z-index: 16; }
.food-page-wrap:nth-child(11) { z-index: 15; }
.food-page-wrap:nth-child(12) { z-index: 14; }
.food-page-wrap:nth-child(13) { z-index: 13; }
.food-page-wrap:nth-child(14) { z-index: 12; }
.food-page-wrap:nth-child(15) { z-index: 11; }
.food-page-wrap:nth-child(16) { z-index: 10; }
.food-page-wrap:nth-child(17) { z-index: 9; }
.food-page-wrap:nth-child(18) { z-index: 8; }
.food-page-wrap:nth-child(19) { z-index: 7; }
.food-page-wrap:nth-child(20) { z-index: 6; }
.food-page-wrap:nth-child(21) { z-index: 5; }
.food-page-wrap:nth-child(22) { z-index: 4; }
.food-page-wrap:nth-child(23) { z-index: 3; }
.food-page-wrap:nth-child(24) { z-index: 2; }
.food-page-wrap:nth-child(25) { z-index: 1; }

.food-page-wrap.is-flipping {
    transform: rotateX(-180deg);
}


/* IDLE FAN */
.food-page-wrap:nth-child(1) {
    --fan-x: 0px;
    --fan-y: 0px;
}

.food-page-wrap:nth-child(2) {
    --fan-x: 2px;
    --fan-y: -3px;
}

.food-page-wrap:nth-child(3) {
    --fan-x: 4px;
    --fan-y: -6px;
}

.food-page-wrap:nth-child(4) {
    --fan-x: 6px;
    --fan-y: -9px;
}

.food-page-wrap:nth-child(n+5) {
    --fan-x: 8px;
    --fan-y: -12px;
}

.food-page-wrap {
    transform: translate(var(--fan-x, 0px), var(--fan-y, 0px));
}

/* FLIP — preserve the fan offset */
.food-page-wrap.is-flipping {
    transform: translate(var(--fan-x, 0px), var(--fan-y, 0px)) rotateX(-180deg);
}



/* PHOTO FAN */
.photo-fan {
    position: absolute;
    top: 8.5%;
    right: -50%;
    width: 1100px;
    height: 320px;
    z-index: 20;
    overflow: visible;
}

.photo-fan-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

/* CLOSED STACK */
.fan-card {
    position: absolute;
    top: 35px;
    left: 0;
    width: 210px;
    height: 140px;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    transform: translate(
        calc(var(--i) * 0.8px),
        calc(var(--i) * -0.6px)
    );
    transform-origin: center center;
transition: transform 180ms ease, width 180ms ease, height 180ms ease;
    z-index: calc(100 - var(--i));
    -webkit-tap-highlight-color: transparent;
}

.fan-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border: none;
    box-shadow: none;
}

/* OPEN FAN */
.photo-fan.is-open .fan-card {
    width: 145px;
    height: 190px;
    transform: translateX(calc(var(--i) * 12px));
    transition: transform 220ms ease;
    z-index: calc(100 - var(--i));
    will-change: transform;
}

.photo-fan.is-open .fan-card.is-selected {
    transform: translate(
        calc(var(--i) * 12px),
        200px
    );
}


/* VIDEO STACK */
.video-stack {
    position: absolute;
    top: 35%;
    left: 50%;
    width: 220px;
    height: 150px;
    perspective: 1200px;
    transform: translate(-50%, -50%);
    z-index: 30;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.video-stack-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* CLOSED STACK */
.video-card {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #242321;
    cursor: pointer;
    transform: translateZ(calc(var(--i) * 2px));
    transform-origin: center;
    backface-visibility: hidden;
    transition:
        transform 650ms ease,
        width 450ms ease,
        height 450ms ease,
        left 450ms ease,
        top 450ms ease;
}

.video-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* OPEN STATE */
.video-stack.is-open .video-stack-cards {
    transform: rotateY(180deg);
    transition: transform 700ms ease;
}

.video-stack.is-open .video-card {
    width: 160px;
    height: 210px;
    top: -30px;
    left: 30px;
    transform: translateX(calc((var(--i) - 1) * 105px)) rotateY(180deg) scale(0.78);
    transition:
        transform 650ms ease,
        width 450ms ease,
        height 450ms ease,
        left 450ms ease,
        top 450ms ease;
}

/* CENTRE VIDEO */
.video-stack.is-open .video-card.is-active {
    width: 220px;
    height: 290px;
    top: -70px;
    left: 0;
    transform: translateX(0) rotateY(180deg) scale(1);
    z-index: 10;
}

/* SIDE VIDEOS */
.video-stack.is-open .video-card[data-video="0"]:not(.is-active) {
    z-index: 1;
}

.video-stack.is-open .video-card[data-video="1"]:not(.is-active) {
    z-index: 2;
}

.video-stack.is-open .video-card[data-video="2"]:not(.is-active) {
    z-index: 3;
}


/* STICKER STACK */
.sticker-stack {
    position: absolute;
    top: 46%;
    right: 15%;
    width: 260px;
    height: 180px;
    perspective: 900px;
    z-index: 7;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sticker-pile {
    position: relative;
    width: 100%;
    height: 100%;
}

.peel-sticker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 145px;
    height: 115px;
    object-fit: contain;
    padding: 0;
    border: none;
    background: transparent;
    transform: translate(-50%, -50%)
        translate(var(--x), var(--y))
        rotate(var(--rotation));
    transform-origin: center;
filter:
    drop-shadow(1px 0 0 white)
    drop-shadow(-1px 0 0 white)
    drop-shadow(0 1px 0 white)
    drop-shadow(0 -1px 0 white)
    brightness(1.15)
    saturate(1.12);
    transition:
        transform 650ms cubic-bezier(.2,.8,.2,1),
        filter 350ms ease;
    z-index: calc(18 - var(--i));
    user-select: none;
    -webkit-user-drag: none;
}

.peel-sticker:nth-child(1)  { --x:-20px; --y:-12px; --rotation:-12deg; }
.peel-sticker:nth-child(2)  { --x:5px; --y:-22px; --rotation:8deg; }
.peel-sticker:nth-child(3)  { --x:24px; --y:-5px; --rotation:16deg; }
.peel-sticker:nth-child(4)  { --x:-28px; --y:0px; --rotation:-18deg; }
.peel-sticker:nth-child(5)  { --x:0px; --y:4px; --rotation:5deg; }
.peel-sticker:nth-child(6)  { --x:28px; --y:15px; --rotation:13deg; }
.peel-sticker:nth-child(7)  { --x:-8px; --y:15px; --rotation:-6deg; }
.peel-sticker:nth-child(8)  { --x:15px; --y:-12px; --rotation:-10deg; }
.peel-sticker:nth-child(9)  { --x:-24px; --y:18px; --rotation:9deg; }
.peel-sticker:nth-child(10) { --x:8px; --y:22px; --rotation:-14deg; }
.peel-sticker:nth-child(11) { --x:32px; --y:-15px; --rotation:6deg; }
.peel-sticker:nth-child(12) { --x:-5px; --y:-26px; --rotation:14deg; }
.peel-sticker:nth-child(13) { --x:-32px; --y:-15px; --rotation:-5deg; }
.peel-sticker:nth-child(14) { --x:20px; --y:4px; --rotation:-17deg; }
.peel-sticker:nth-child(15) { --x:-15px; --y:8px; --rotation:18deg; }
.peel-sticker:nth-child(16) { --x:3px; --y:-3px; --rotation:-8deg; }
.peel-sticker:nth-child(17) { --x:25px; --y:25px; --rotation:4deg; }
.peel-sticker:nth-child(18) { --x:-25px; --y:-25px; --rotation:11deg; }

.sticker-stack.is-peeling .peel-sticker {
    pointer-events: none;
}

.sticker-stack.is-peeling .peel-sticker.is-peeled {
    transform:
        translate(-50%, -50%)
        translate(var(--peel-x), var(--peel-y))
        rotate(var(--peel-rotation))
        scale(1.12);
filter:
    drop-shadow(1px 0 0 white)
    drop-shadow(-1px 0 0 white)
    drop-shadow(0 1px 0 white)
    drop-shadow(0 -1px 0 white)
    brightness(1.2)
    saturate(1.15);
    z-index: 30;
}

/* PREVENT HORIZONTAL SCROLLING */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

/* KEEP THE STICKER ANIMATION INSIDE THE VIEWPORT */
.sticker-stack.is-peeling {
    overflow: visible;
}

.sticker-stack.is-peeling .peel-sticker {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
}




/* ==================================================
   CONTACT
================================================== */

.contact-page {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.contact-content {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}


/* ==================================================
   NEXT CREATIVE ADVENTURE
================================================== */

.contact-adventure {
    position: absolute;
    left: 11%;
    bottom: 14%;
}

.contact-adventure p {
    margin: 0 0 1% 0;

    font-size: clamp(16px, 1.2vw, 21px);
    font-weight: 300;
}

.contact-adventure h2 {
    margin: 0;

    font-family: "elza", sans-serif;
    font-size: clamp(42px, 4.2vw, 70px);
    font-weight: 500;

    line-height: 1.12;
    letter-spacing: 0.01em;
}

.contact-looking {
    display: block;
    width: 15%;
    height: auto;
}


/* ==================================================
   LET'S CONNECT
================================================== */

.contact-connect {
    position: absolute;

    left: 58.5%;
    top: 27%;
}

.contact-connect h3 {
    margin: 0 0 20% 0;

    font-family: "elza", sans-serif;
    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 500;
    font-style: italic;
}


/* LINKS */

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: #242321;
    text-decoration: none;
    font-family: "elza", sans-serif;
    font-size: clamp(16px, 1.2vw, 21px);
    font-weight: 300;
}

.contact-links a span:first-child {
    border-bottom: 1px solid #242321;
    padding-bottom: 2px;
}

.contact-arrow {
    font-family: "elza", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-variant-emoji: text;
    color: inherit;
}

.contact-links a:hover .contact-arrow {
    transform: translate(4px, -4px);
}


/* ==================================================
   CONTACT RESUME FOLDER
================================================== */

.contact-resume-icon {
    position: absolute;
    right: 5%;
    bottom: 5%;

    width: 20%;
    height: 20%;

    display: block;
    z-index: 100;

    cursor: pointer;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.contact-resume-icon .resume-folder {
    position: relative;

    width: 100%;
    height: 100%;

    animation: resumeFloat 3.5s ease-in-out infinite;
}

.contact-resume-icon .resume-folder > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    z-index: 1;

    filter:
        drop-shadow(0 14px 18px rgba(50, 60, 100, 0.12));
}

.contact-resume-icon .resume-shine-canvas {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    z-index: 2;

    pointer-events: none;
}

.contact-resume-icon:hover {
    transform: scale(1.06);
}

.contact-resume-icon:hover .resume-folder {
    animation-duration: 2.5s;
}

/* ==================================================
   TABLET — 701px TO 1024px
================================================== */

/* ==================================================
   TABLET LANDSCAPE — 701px TO 1024px
================================================== */

@media (min-width: 701px) and (max-width: 1024px)
       and (orientation: landscape) {

    /* NAVIGATION */
    .navbar {
        left: 5vw;
        right: 5vw;
        padding: 12px 15px;
    }

    .nav-links {
        gap: clamp(18px, 2.5vw, 28px);
    }

    .logo {
        font-size: clamp(17px, 1.8vw, 20px);
    }

    .nav-links a {
        font-size: clamp(14px, 1.55vw, 17px);
    }

    /* HOME */
    .intro {
        left: 53%;
        top: 20vh;
        width: 42vw;
    }

    .intro h1 {
        font-size: clamp(28px, 3.2vw, 36px);
    }

    .intro p {
        font-size: clamp(16px, 1.8vw, 20px);
        line-height: 1.2;
    }

    .girl-right {
        width: 18vw;
    }

    .girl-bottom {
        width: 21vw;
    }

    .girl-top {
        width: 24vw;
        left: 24%;
    }

    .push-sequence {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
    }

    .push-desktop {
        display: none;
    }

    .push-tablet {
        display: block;
        transform: scale(0.8);
    }

    .push-final-desktop {
        display: none;
    }

    .push-final-tablet {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(0.8);
        transform-origin: center center;
    }

    .main-girl-body,
    .main-girl-arm {
        width: 28vw;
        left: 33%;
        bottom: 6%;
    }

    .scroll-indicator {
        right: 5vw;
        bottom: 30px;
    }

    /* SELECTED PROJECTS */
    .selected-projects {
        padding: 120px 5vw 60px;
    }

    .section-label {
        top: 100px;
        left: 5vw;
    }

    .featured-project {
        width: 100%;
        max-width: 960px;
        height: clamp(360px, 48vw, 500px);
        margin-top: 45px;
    }

    .featured-project .project-slide {
        flex: 1 1 0 !important;
        width: auto;
        min-width: 0;
        height: 100%;
    }

    .featured-project:not([data-focus]) .project-slide:nth-child(3),
    .featured-project[data-focus="1"] .project-slide:nth-child(1),
    .featured-project[data-focus="2"] .project-slide:nth-child(2),
    .featured-project[data-focus="3"] .project-slide:nth-child(3),
    .featured-project[data-focus="4"] .project-slide:nth-child(4),
    .featured-project[data-focus="5"] .project-slide:nth-child(5) {
        flex: 3.0769 1 0 !important;
    }

    /* PROJECT MODAL */
    .project-modal-card {
        width: min(642px, calc(100% - 48px));
        height: calc(100svh - 32px);
        margin-top: 32px;
    }

    .project-modal-content {
        padding: 55px 6% 65px;
    }

    .project-content h1 {
        font-size: clamp(28px, 3.5vw, 38px);
    }

    .project-header h1,
    .project-kicker {
        font-size: clamp(22px, 2.8vw, 24px);
    }

    /* PROJECT 2 */
    .research-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        gap: 12px;
    }

    .research-text p {
        font-size: 13px;
    }

    /* PROJECT 3 */
    .project-3-diary {
        width: clamp(140px, 19vw, 190px);
    }

    .project-3-story-intro .project-3-section-text {
        max-width: 68%;
    }

    .project-3-storyboard-grid {
        gap: 10px;
    }

    /* PROJECT 4 */
    .project-4-world {
        gap: 16px;
    }

    .project-4-world img,
    .project-4-dadaism img {
        width: 40%;
    }

    .project-4-dadaism .project-4-world-text {
        max-width: 55%;
    }

    .project-4-page-sequence {
        gap: 30px;
    }

    .project-4-page-sequence img[src$=".gif"] {
        margin-top: -30px;
        margin-bottom: -30px;
    }

    /* MORE PROJECTS */
    .more-projects {
        grid-template-columns: minmax(125px, 0.7fr) minmax(0, 2fr);
        gap: clamp(24px, 3.5vw, 36px);
        padding: 100px 5vw 80px;
        overflow: hidden;
    }

    .more-projects-intro {
        min-width: 0;
    }

    .more-projects-intro h2 {
        font-size: clamp(22px, 2.5vw, 28px);
    }

    .more-projects-intro p {
        width: 100%;
        font-size: 13px;
    }

    .project-grid {
        width: 740px;
        zoom: 0.80;
        transform: none;
        margin: 0;
    }

    /* ABOUT */
    .about-text {
        left: 8%;
        width: 40vw;
        font-size: clamp(14px, 1.5vw, 17px);
    }

    .about-text-4 {
        width: 40vw;
    }

    .about-image {
        width: 30vw;
        height: 40vw;
    }

    .about-resume-icon {
        width: 180px;
        height: 180px;
    }

    .about-hello {
        left: 84%;
        font-size: clamp(30px, 3.5vw, 40px);
    }

    /* CONTACT */
    .contact-resume-icon {
        width: 180px;
        height: 180px;
    }

    .contact-adventure p {
        font-size: clamp(18px, 1.5vw, 24px);
    }

    .contact-looking {
        width: 18%;
    }

    .contact-adventure h2 {
        font-size: clamp(38px, 4.5vw, 54px);
    }

    .contact-connect {
        left: 57%;
        top: 27%;
    }

    .contact-connect h3 {
        margin-bottom: 30px;
    }

    .contact-links {
        gap: 16px;
    }

    .contact-links a {
        font-size: clamp(15px, 1.6vw, 18px);
    }
}


/* ==================================================
   TABLET PORTRAIT — 701px TO 1024px
================================================== */

@media (min-width: 701px) and (max-width: 1024px)
       and (orientation: portrait) {

    /* NAVBAR */
    .navbar {
        left: 3vw;
        right: 3vw;
        padding: 14px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        flex: 1;
        display: flex;
        justify-content: space-evenly;
        gap: 0;
    }

    .logo {
        font-size: clamp(20px, 2.5vw, 24px);
        margin-right: 20px;
        white-space: nowrap;
    }

    .nav-links a {
        font-size: clamp(16px, 2vw, 20px);
        white-space: nowrap;
    }

    /* HOME */
    .home-page .intro {
        left: 40%;
        top: calc(var(--nav-bottom, 80px) + 28px);
        width: 84%;
        max-width: none;
        text-align: left;
    }

    .home-page .intro h1 {
        font-size: clamp(34px, 4.5vw, 46px);
        line-height: 1.05;
        margin-bottom: 16px;
        margin-top: 40px;
    }

    .home-page .intro p {
        font-size: clamp(18px, 2.3vw, 23px);
        line-height: 1.4;
        max-width: 60%;
    }

    .girl-right {
        width: 25vw;
    }

    .girl-bottom {
        width: 29vw;
    }

    .girl-top {
        width: 32vw;
        left: 24%;
    }

    .main-girl-body,
    .main-girl-arm {
        width: 40vw;
        left: 28%;
        bottom: 5%;
    }

    .scroll-indicator {
        right: 5vw;
        bottom: 40px;
        font-size: large;
    }

    /* SELECTED PROJECTS */
    .selected-projects {
        padding: 100px 5vw 50px;
    }

    .section-label {
        top: 110px;
        left: 5vw;
        font-size: x-large;
    }

    .featured-project {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 500px;
        height: 700px;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
        overflow: visible;
    }

    /* COLLAPSED CARDS */
    .featured-project .project-slide {
        flex: 0 0 65px !important;
        width: 100%;
        height: 65px;
        min-width: 0;
        min-height: 0;
        transition:
            flex-basis 0.65s cubic-bezier(0.16, 1, 0.3, 1),
            height 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* EXPANDED CARD */
    .featured-project:not([data-focus]) .project-slide:nth-child(3),
    .featured-project[data-focus="1"] .project-slide:nth-child(1),
    .featured-project[data-focus="2"] .project-slide:nth-child(2),
    .featured-project[data-focus="3"] .project-slide:nth-child(3),
    .featured-project[data-focus="4"] .project-slide:nth-child(4),
    .featured-project[data-focus="5"] .project-slide:nth-child(5) {
        flex: 0 0 400px !important;
        width: 100%;
        height: 400px;
    }

    /* IMAGES */
    .featured-project .project-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* PROJECT MODAL */
    .project-modal-card {
        width: calc(100% - 36px);
        height: calc(100svh - 24px);
        margin-top: 24px;
    }

    .project-modal-content {
        padding: 45px 5% 55px;
    }

    .project-content h1 {
        font-size: clamp(27px, 4vw, 36px);
    }

    .project-header h1,
    .project-kicker {
        font-size: clamp(21px, 3vw, 26px);
    }

    /* PROJECT 2 */
    .research-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .research-text p {
        font-size: 15px;
    }

    /* PROJECT 3 */
    .project-3-diary {
        width: clamp(150px, 25vw, 210px);
    }

    .project-3-story-intro .project-3-section-text {
        max-width: 100%;
    }

    .project-3-storyboard-grid {
        gap: 12px;
    }

    /* PROJECT 4 */
    .project-4-world {
        gap: 18px;
        flex-wrap: wrap;
    }

    .project-4-world img,
    .project-4-dadaism img {
        width: 45%;
    }

    .project-4-dadaism .project-4-world-text {
        max-width: 100%;
    }

    .project-4-page-sequence {
        gap: 20px;
    }

    .project-4-page-sequence img[src$=".gif"] {
        margin-top: -20px;
        margin-bottom: -20px;
    }

    /* MORE PROJECTS */
    .more-projects {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 80px 5vw 60px;
        overflow: hidden;
    }

    .more-projects-intro {
        min-width: 0;
    }

    .more-projects-intro h2 {
        font-size: x-large;
    }

    .more-projects-intro p {
        width: 65%;
        font-size: 20px;
    }

    .project-grid {
        width: 740px;
        zoom: 0.9;
        transform: none;
        margin: 0 auto;
    }

    .project-grid .project-overlay {
        opacity: 1;
        background: transparent;
        padding: 12px;
    }

    /* HIDE PROJECT TITLE AND DESCRIPTION */
    .project-grid .project-overlay h3,
    .project-grid .project-overlay p {
        display: none;
    }

    /* KEEP ONLY THE ARROW VISIBLE */
    .project-grid .project-overlay > span {
        display: block;
        margin-left: auto;
        font-size: 24px;
        animation: projectArrowPulse 1.4s ease-in-out infinite;
    }

    /* ABOUT */
    .about-text {
        left: 6%;
        width: 40vw;
        font-size: clamp(15px, 2vw, 19px);
    }

    .about-text-4 {
        width: 40vw;
    }

    .about-image {
        width: 36vw;
        height: 48vw;
        left: 52%;
    }

    .about-resume-icon {
        width: 200px;
        height: 200px;
    }

    .about-hello {
        left: 90%;
        font-size: clamp(28px, 4vw, 38px);
    }

    /* CONTACT */
    .contact-resume-icon {
        width: 200px;
        height: 200px;
    }

    .contact-adventure p {
        font-size: clamp(20px, 2.5vw, 25px);
    }

    .contact-looking {
        width: 30%;
    }

    .contact-adventure h2 {
        font-size: clamp(36px, 5.5vw, 52px);
    }

    .contact-connect {
        left: 52%;
        top: 30%;
    }

    .contact-connect h3 {
        margin-bottom: 26px;
        font-size: x-large;
    }

    .contact-links {
        gap: 17px;
    }

    .contact-links a {
        font-size: clamp(20px, 2.5vw, 24px);
    }
}


/* ==================================================
   GLOBAL ANIMATIONS
================================================== */

@keyframes projectArrowPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes contactArrowPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* ==================================================
   MOBILE — 381px TO 700px
================================================== */

@media (max-width: 700px) {

    /* NAVIGATION */

    .navbar {
    left: 3vw;
    right: 3vw;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    gap: 0;
}

    .logo {
        font-size: 17px;
    }

    .nav-links a {
        font-size: 13px;
    }


    /* HOME */

    .home-page {
        height: 100vh;
        height: 100svh;
    }

    .home-page .intro {
        top: calc(var(--nav-bottom, 70px) + 40px);
        left: 22px;
        right: 22px;
        width: auto;
        max-width: none;
        text-align: left;
    }

    .home-page .intro h1 {
        font-size: clamp(27px, 7vw, 32px);
        line-height: 1.05;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .home-page .intro p {
        max-width: 80%;
        font-size: clamp(15px, 4vw, 17px);
        line-height: 1.25;
    }

    .girl-container {
        left: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        transform: none;
    }

    .girl-right {
        width: auto;
        height: 40vh;
        max-width: none;
        right: 0;
        top: 58%;
    }

    .girl-bottom {
        width: auto;
        height: 15vh;
        left: 50%;
        bottom: 0;
    }

    .girl-top {
        width: auto;
        height: 19vh;
        max-width: 55vw;
        left: 25%;
        top: 0;
    }

    .main-girl-body,
    .main-girl-arm {
        width: auto;
        height: min(48svh, 420px);
        max-width: none;
        left: 31%;
        bottom: 10%;
    }

    .scroll-indicator {
        left: 60%;
        right: auto;
        bottom: 40px;
        gap: 8px;
        font-size: 13px;
    }

    .scroll-arrow {
        font-size: 24px;
    }


   
/* SELECTED PROJECTS */
.selected-projects {
    min-height: 100svh;
    padding: 80px 22px 60px;
    justify-content: center;
}

.section-label {
    top: 10%;
    left: 22px;
    font-size: 16px;
}

/* VERTICAL ACCORDION */
.featured-project {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    gap: 5px;
}

.featured-project .project-slide {
    flex: 0 0 42px !important;
    width: 100% !important;
    min-width: 0;
    height: 42px;
    min-height: 0;
}

.featured-project:not([data-focus]) .project-slide:nth-child(3),
.featured-project[data-focus="1"] .project-slide:nth-child(1),
.featured-project[data-focus="2"] .project-slide:nth-child(2),
.featured-project[data-focus="3"] .project-slide:nth-child(3),
.featured-project[data-focus="4"] .project-slide:nth-child(4),
.featured-project[data-focus="5"] .project-slide:nth-child(5) {
    flex: 0 0 calc((100vw - 44px) * 1.25) !important;
    width: 100% !important;
    height: calc((100vw - 44px) * 1.25);
    min-height: 0;
}

.featured-project .project-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


    /* PROJECT MODAL */

    .project-modal {
        align-items: stretch;
    }

    .project-modal-card {
        width: 100%;
        height: 100%;
        height: 100svh;
        margin: 0;
        border-radius: 0;
    }

    .project-modal-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 28px;
    }

    .project-modal-content {
        padding: 62px 6% 45px;
    }

    .project-content {
        max-width: 100%;
    }

    .project-content h1 {
        margin: 0 35px 20px 0;
        font-size: clamp(27px, 7vw, 36px);
    }

    .project-header {
        margin-bottom: 24px;
    }

    .project-header h1,
    .project-kicker {
        font-size: 22px;
    }

    .project-meta {
        font-size: 10px;
    }

    .project-body,
    .project-intro {
        font-size: 14px;
        line-height: 1.4;
    }

    .project-intro {
        margin-bottom: 30px;
    }

    .project-section {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .project-section h2 {
        font-size: 15px;
    }

    .project-section p {
        font-size: 14px;
        line-height: 1.4;
    }

    .project-image {
        margin: 18px 0 28px;
    }

    .project-2-full-image .project-image {
        width: calc(100% + 12%);
        margin-left: -6%;
    }


    /* PROJECT 2 */

    .research-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .research-images {
        gap: 8px;
    }

    .research-text {
        align-self: auto;
    }

    .research-text p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 14px;
    }

    .project-2-intro {
        margin-bottom: 30px;
    }

    .project-2-research,
    .project-2-visual-direction,
    .project-2-final {
        margin-top: 28px;
    }

    .project-2-closing {
        margin-top: 38px;
    }


    /* PROJECT 3 */

    .project-3-intro {
        margin-bottom: 30px;
    }

    .project-3-starting-point,
    .project-3-story,
    .project-3-character,
    .project-3-movement,
    .project-3-animation,
    .project-3-expressions,
    .project-3-inside-animation {
        margin-top: 30px;
    }

    .project-3-section-text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.4;
    }

    .project-3-story-intro {
        min-height: 0;
    }

    .project-3-story-intro .project-3-section-text {
        max-width: 100%;
    }

    .project-3-diary {
        position: relative;
        display: block;
        top: auto;
        right: auto;
        width: min(55%, 210px);
        margin: 12px auto 20px;
        transform: rotate(2deg);
    }

    .project-3-storyboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-3-storyboard-grid img:nth-child(1),
    .project-3-storyboard-grid img:nth-child(2),
    .project-3-storyboard-grid img:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .project-3-sound-toggle {
        right: 8px;
        bottom: 8px;
        font-size: 10px;
    }

    .project-3-closing {
        margin-top: 38px;
    }


    /* PROJECT 4 AND PROJECT 5 */

    .project-4-content,
    .project-5-content {
        padding-bottom: 55px;
    }

    .project-4-intro,
    .project-5-intro {
        margin-top: 20px;
    }

    .project-4-intro p {
        margin-bottom: 18px;
    }

    .project-4-section,
    .project-4-development,
    .project-4-on-page,
    .project-5-errors,
    .project-5-layout,
    .project-5-visual-block,
    .project-5-months {
        margin-top: 32px;
    }

    .project-4-world {
        flex-direction: column;
        gap: 14px;
        margin-top: 26px;
    }

    .project-4-world img,
    .project-4-dadaism img {
        width: 100%;
        max-width: 100%;
    }

    .project-4-world-text {
        width: 100%;
        padding-top: 0;
    }

    .project-4-world-text h3 {
        font-size: 14px;
    }

    .project-4-dadaism {
        margin-top: 28px;
    }

    .project-4-dadaism .project-4-world-text {
        max-width: 100%;
        padding-top: 0;
    }

    .project-4-takeaway,
    .project-4-closing-intro {
        margin-top: 30px !important;
    }

    .project-4-visual-language {
        margin-top: 36px;
    }

    .project-4-side {
        margin-bottom: 36px;
    }

    .project-4-development-block {
        margin-bottom: 24px;
    }

    .project-4-page-sequence {
        gap: 24px;
    }

    .project-4-page-sequence img[src$=".gif"] {
        width: 100%;
        margin: -10px 0;
    }

    .project-4-closing {
        margin-top: 42px;
    }

    .project-4-closing-line {
        margin-top: 28px !important;
    }


    /* PROJECT 5 */

    .project-5-errors h2 {
        margin-bottom: 10px;
    }

    .project-5-visual-language {
        margin-top: 34px;
    }

    .project-5-full-image {
        margin-top: 16px;
    }

    .project-5-final-gifs {
        gap: 20px;
        margin-top: 30px;
    }

    .project-5-closing {
        margin-top: 38px;
    }

    .project-5-closing p {
        margin-top: 28px !important;
    }


    /* MORE PROJECTS */

    .more-projects {
        display: flex;
        flex-direction: column;
        gap: 28px;
        min-height: auto;
        padding: 95px 22px 65px;
        overflow: hidden;
    }

    .more-projects-intro {
        width: 100%;
    }

    .more-projects-intro h2 {
        font-size: 26px;
    }

    .more-projects-intro p {
        width: 100%;
        max-width: 350px;
        font-size: 14px;
    }

.project-grid {
    width: 740px;
    zoom: 0.45;
    transform: none;
    transform-origin: top left;
    margin: 0 auto;
}

    .project-overlay {
        padding: 10px;
    }

    .project-overlay h3 {
        font-size: 13px;
    }

    .project-overlay p {
        font-size: 11px;
    }

    .project-overlay > span {
        font-size: 18px;
    }

.project-grid .project-overlay {
    opacity: 1;
    background: transparent;
    padding: 10px;
}

.project-grid .project-overlay h3,
.project-grid .project-overlay p {
    display: none;
}

.project-grid .project-overlay > span {
    display: block;
    margin-left: auto;
    font-size: 18px;
    animation: projectArrowPulse 1.4s ease-in-out infinite;
    transform-origin: center;
}

    /* ABOUT */

 .about-page {
    min-height: auto;
    overflow: hidden;
}

.about-content {
    min-height: 100vh;
}

    .about-text {
        left: 22px;
        right: 22px;
        width: auto;
        max-width: none;
        font-size: 15px;
        line-height: 1.4;
    }

    .about-text:not(.about-text-2):not(.about-text-3):not(.about-text-4) {
        top: 8%;
    }

    .about-image {
        width: 44vw;
        height: 56vw;
        left: 8%;
        top: 67%;
    }

    .about-hello {
        left: auto;
        right: 39%;
        top: 67%;
        font-size: 30px;
    }

    .about-text-2 {
        top: 23%;
    }

    .about-text-3 {
        top: 40%;
    }

    .about-text-4 {
        top: 57%;
        width: auto;
    }

    .about-resume-icon {
        right: 18px;
        top: 85%;
        width: 120px;
        height: 120px;
    }


    /* PLAY */

    .play-page,
    .play-content {
        min-height: 100svh;
    }


    /* CONTACT */

    .contact-page {
        min-height: 950px;
        overflow: hidden;
    }

    .contact-content {
        min-height: 950px;
    }

    .contact-adventure {
        left: 22px;
        right: 22px;
        top: 22%;
        bottom: auto;
        max-width: none;
    }

    .contact-adventure p {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .contact-adventure h2 {
        font-size: clamp(36px, 9vw, 54px);
    }

    .contact-looking {
        width: 200px;
        max-width: 40%;
    }

    .contact-connect {
        left: 50px;
        right: 22px;
        top: 55%;
    }

    .contact-connect h3 {
        margin-bottom: 24px;
        font-size: 19px;
    }

    .contact-links {
        gap: 16px;
    }

    .contact-links a {
        font-size: 16px;
    }

    .contact-resume-icon {
        right: 18px;
        top: 85%;
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   SMALL MOBILE — 380px AND BELOW
======================================== */
@media (max-width: 380px) {

/* NAVBAR */
.navbar {
    left: 3vw;
    right: 3vw;
    padding: 12px 12px;
}

.logo {
    font-size: 15px;
}

.nav-links {
    gap: 8px;
}

.nav-links a {
    font-size: 11px;
}

/* HOME */
.home-page .intro {
    left: 18px;
    right: 18px;
}

.home-page .intro h1 {
    font-size: clamp(25px, 7.5vw, 29px);
    margin-top: 16px;
    margin-bottom: 10px;
}

.home-page .intro p {
    max-width: 88%;
    font-size: 14px;
    line-height: 1.3;
}

.girl-right {
    height: 36vh;
}

.girl-bottom {
    height: 13vh;
}

.girl-top {
    height: 17vh;
    max-width: 60vw;
    left: 22%;
}

.main-girl-body,
.main-girl-arm {
    height: min(44svh, 360px);
    left: 28%;
    bottom: 9%;
}

.scroll-indicator {
    bottom: 25px;
    font-size: 12px;
}

.scroll-arrow {
    font-size: 21px;
}

/* SELECTED PROJECTS */
.selected-projects {
    padding: 70px 18px 45px;
}

.section-label {
    left: 18px;
    font-size: 14px;
}

.featured-project {
    gap: 5px;
    height: clamp(330px, 62svh, 390px);
}

.featured-project .project-slide {
    flex: 0 0 42px !important;
    height: 42px;
}

.featured-project:not([data-focus]) .project-slide:nth-child(3),
.featured-project[data-focus="1"] .project-slide:nth-child(1),
.featured-project[data-focus="2"] .project-slide:nth-child(2),
.featured-project[data-focus="3"] .project-slide:nth-child(3),
.featured-project[data-focus="4"] .project-slide:nth-child(4),
.featured-project[data-focus="5"] .project-slide:nth-child(5) {
    flex: 0 0 clamp(155px, 28svh, 180px) !important;
    height: clamp(155px, 28svh, 180px);
}

/* PROJECT MODALS */
.project-modal-card {
    height: 100svh;
}

.project-modal-content {
    padding: 58px 5% 35px;
}

.project-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 25px;
}

.project-content h1 {
    font-size: clamp(25px, 7.5vw, 30px);
    margin-right: 30px;
}

.project-header {
    margin-bottom: 20px;
}

.project-header h1,
.project-kicker {
    font-size: 20px;
}

.project-meta {
    font-size: 9px;
}

.project-body,
.project-intro,
.project-section p,
.research-text p,
.project-3-section-text {
    font-size: 13px;
    line-height: 1.4;
}

.project-intro {
    margin-bottom: 24px;
}

.project-section {
    margin-top: 24px;
    margin-bottom: 26px;
}

.project-section h2 {
    font-size: 14px;
}

.project-image {
    margin: 14px 0 22px;
}

/* PROJECT 2 */
.research-layout {
    gap: 14px;
}

.research-images {
    gap: 6px;
}

.project-2-intro {
    margin-bottom: 24px;
}

.project-2-research,
.project-2-visual-direction,
.project-2-final {
    margin-top: 24px;
}

/* PROJECT 3 */
.project-3-intro {
    margin-bottom: 24px;
}

.project-3-starting-point,
.project-3-story,
.project-3-character,
.project-3-movement,
.project-3-animation,
.project-3-expressions,
.project-3-inside-animation {
    margin-top: 24px;
}

.project-3-diary {
    width: min(60%, 190px);
}

.project-3-storyboard-grid {
    gap: 10px;
}

.project-3-closing {
    margin-top: 30px;
}

/* PROJECT 4 AND PROJECT 5 */
.project-4-content,
.project-5-content {
    padding-bottom: 40px;
}

.project-4-intro,
.project-5-intro {
    margin-top: 16px;
}

.project-4-section,
.project-4-development,
.project-4-on-page,
.project-5-errors,
.project-5-layout,
.project-5-visual-block,
.project-5-months {
    margin-top: 26px;
}

.project-4-world {
    gap: 12px;
    margin-top: 22px;
}

.project-4-world-text h3 {
    font-size: 13px;
}

.project-4-dadaism {
    margin-top: 24px;
}

.project-4-takeaway,
.project-4-closing-intro {
    margin-top: 25px !important;
}

.project-4-visual-language {
    margin-top: 30px;
}

.project-4-side {
    margin-bottom: 28px;
}

.project-4-development-block {
    margin-bottom: 20px;
}

.project-4-page-sequence {
    gap: 18px;
}

.project-4-closing {
    margin-top: 32px;
}

.project-5-visual-language {
    margin-top: 28px;
}

.project-5-final-gifs {
    gap: 16px;
    margin-top: 24px;
}

.project-5-closing {
    margin-top: 30px;
}

/* MORE PROJECTS */
.more-projects {
    gap: 22px;
    padding: 80px 18px 50px;
}

.more-projects-intro h2 {
    font-size: 24px;
}

.more-projects-intro p {
    font-size: 13px;
}

.project-grid {
    width: 740px;
    zoom: 0.45;
    transform: none;
    transform-origin: top left;
    margin: 0 auto;
}

.project-grid .project-overlay {
    padding: 8px;
}

.project-grid .project-overlay > span {
    font-size: 16px;
}

/* ABOUT */
.about-page {
    min-height: auto;
    overflow: hidden;
}

.about-content {
    min-height: 100vh;
}

.about-text {
    left: 18px;
    right: 18px;
    width: auto;
    font-size: 14px;
    line-height: 1.4;
}

.about-text:not(.about-text-2):not(.about-text-3):not(.about-text-4) {
    top: 8%;
}

.about-text-2 {
    top: 24%;
}

.about-text-3 {
    top: 41%;
}

.about-text-4 {
    top: 58%;
    width: auto;
}

.about-image {
    width: 48vw;
    height: 60vw;
    left: 7%;
    top: 72%;
}

.about-hello {
    right: 36%;
    top: 72%;
    font-size: 26px;
}

.about-resume-icon {
    right: 14px;
    top: 88%;
    width: 100px;
    height: 100px;
}

/* PLAY */
.play-page,
.play-content {
    min-height: 100svh;
}

/* CONTACT */
.contact-page,
.contact-content {
    min-height: 900px;
}

.contact-adventure {
    left: 18px;
    right: 18px;
    top: 35%;
}

.contact-adventure p {
    font-size: 14px;
}

.contact-adventure h2 {
    font-size: clamp(32px, 9vw, 42px);
}

.contact-looking {
    width: 170px;
    max-width: 42%;
}

.contact-connect {
    left: 30px;
    right: 18px;
    top: 65%;
}

.contact-connect h3 {
    margin-bottom: 20px;
    font-size: 17px;
}

.contact-links {
    gap: 14px;
}

.contact-links a {
    font-size: 14px;
}

.contact-resume-icon {
    right: 14px;
    top: 85%;
    width: 100px;
    height: 100px;
}

}


/* ANIMATE CONTACT ARROWS ONLY ON TOUCH DEVICES */

@media (hover: none) and (pointer: coarse) {
    .contact-links a .contact-arrow {
        display: inline-block;
        animation: contactArrowPulse 1.4s ease-in-out infinite;
        transform-origin: center;
    }
}