/* =========================================
   URIART — PROJECT PAGE
========================================= */


/* =========================================
   VARIABLES
========================================= */

:root {

    --bg: #f2f2ef;
    --text: #111111;
    --line: rgba(17, 17, 17, .25);
    --accent: #111111;

    --transition:
        cubic-bezier(.76, 0, .24, 1);

}


body.dark {

    --bg: #111111;
    --text: #f2f2ef;
    --line: rgba(242, 242, 239, .25);
    --accent: #f2f2ef;

}


/* =========================================
   RESET
========================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    background: var(--bg);
    color: var(--text);

    font-family:
        "Inter",
        sans-serif;

    overflow-x: hidden;

    transition:
        background .4s ease,
        color .4s ease;

}

body.menu-open {

    overflow: hidden;

}

img {

    display: block;
    width: 100%;

}

a {

    color: inherit;
    text-decoration: none;

}

button {

    color: inherit;
    font: inherit;

}


/* =========================================
   CUSTOM CURSOR
========================================= */

.cursor {

    position: fixed;

    top: 0;
    left: 0;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--text);

    pointer-events: none;

    z-index: 9999;

    transform:
        translate(-50%, -50%);

    mix-blend-mode: difference;

    transition:
        width .3s var(--transition),
        height .3s var(--transition);

}

.cursor-text {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

    opacity: 0;

    color: #ffffff;

}

.cursor.active {

    width: 80px;
    height: 80px;

}

.cursor.active .cursor-text {

    opacity: 1;

}


/* =========================================
   HEADER
========================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding:
        24px 30px;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;

    z-index: 100;

    mix-blend-mode: difference;

    color: #ffffff;

}

.logo {

    font-size: 14px;

    font-weight: 700;

    letter-spacing: -.04em;

}

.header-center {

    text-align: center;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}

.header-right {

    display: flex;

    justify-content: flex-end;

    gap: 20px;

}

.theme-toggle,
.menu-button {

    background: transparent;
    border: 0;

    cursor: pointer;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}


/* =========================================
   FULLSCREEN MENU
========================================= */

.fullscreen-menu {

    position: fixed;

    inset: 0;

    background: var(--bg);

    z-index: 90;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 30px;

    transform:
        translateY(-100%);

    transition:
        transform .8s var(--transition);

}

.fullscreen-menu.open {

    transform:
        translateY(0);

}

.fullscreen-menu nav {

    display: flex;

    flex-direction: column;

}

.fullscreen-menu nav a {

    font-size:
        clamp(4rem, 11vw, 10rem);

    font-weight: 700;

    line-height: .82;

    letter-spacing: -.08em;

    border-bottom:
        1px solid var(--line);

    padding: 12px 0;

    transition:
        padding-left .4s var(--transition);

}

.fullscreen-menu nav a:hover {

    padding-left: 30px;

}

.menu-footer {

    position: absolute;

    bottom: 30px;

    left: 30px;
    right: 30px;

    display: flex;

    justify-content: space-between;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}


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

.project-hero {

    min-height: 100svh;

    padding:
        120px 30px 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-bottom:
        1px solid var(--line);

}

.project-meta {

    display: flex;

    justify-content: space-between;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}

.hero-title {

    margin-top: auto;

    margin-bottom: auto;

}

.hero-title h1 {

    font-size:
        clamp(5rem, 15vw, 17rem);

    font-weight: 700;

    line-height: .78;

    letter-spacing: -.09em;

}

.hero-title h1 span {

    font-family:
        "DM Mono",
        monospace;

}

.hero-bottom {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

}

.project-info-short {

    display: flex;

    flex-direction: column;

    gap: 6px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}

.scroll-indicator {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 12px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

}

.scroll-line {

    display: block;

    width: 1px;
    height: 50px;

    background: var(--text);

    animation:
        scrollLine 1.8s infinite;

}


@keyframes scrollLine {

    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }

}


/* =========================================
   PROJECT COVER
========================================= */

.project-cover {

    padding:
        30px;

}

.project-cover-image {

    width: 100%;
    height: 85vh;

    overflow: hidden;

}

.project-cover-image img {

    height: 100%;

    object-fit: cover;

    transition:
        transform 1.2s var(--transition);

}

.project-cover-image:hover img {

    transform: scale(1.03);

}


/* =========================================
   IMAGE CAPTION
========================================= */

.image-caption {

    display: flex;

    justify-content: space-between;

    margin-top: 10px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

}


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

.project-intro {

    display: grid;

    grid-template-columns:
        25% 75%;

    padding:
        180px 30px;

    border-bottom:
        1px solid var(--line);

}

.intro-label {

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}

.intro-content {

    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    gap: 80px;

}

.intro-content h2 {

    font-size:
        clamp(3.5rem, 7vw, 9rem);

    line-height: .82;

    letter-spacing: -.07em;

    font-weight: 600;

}

.intro-text {

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    gap: 24px;

    font-size: 15px;

    line-height: 1.6;

}


/* =========================================
   PROJECT DATA
========================================= */

.project-data {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-bottom:
        1px solid var(--line);

}

.data-item {

    min-height: 180px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-right:
        1px solid var(--line);

}

.data-item:last-child {

    border-right: 0;

}

.data-label {

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

}

.data-value {

    font-size: 14px;

}


/* =========================================
   LARGE IMAGE
========================================= */

.image-block {

    padding: 180px 30px;

}

.image-block img {

    width: 100%;

}

.image-block-large img {

    max-height: 100vh;

    object-fit: contain;

}


/* =========================================
   IMAGE GRID
========================================= */

.image-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 30px;

    padding:
        0 30px 180px;

}

.image-offset {

    padding-top: 180px;

}

.image-item img {

    width: 100%;

}


/* =========================================
   PROCESS
========================================= */

.project-process {

    display: grid;

    grid-template-columns:
        25% 75%;

    padding:
        180px 30px;

    background: var(--text);
    color: var(--bg);

}

.process-number {

    display: flex;

    flex-direction: column;

    gap: 8px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}

.process-content {

    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    gap: 80px;

}

.process-content h2 {

    font-size:
        clamp(3.5rem, 7vw, 9rem);

    font-weight: 600;

    line-height: .82;

    letter-spacing: -.07em;

}

.process-content h2 span {

    font-family:
        "DM Mono",
        monospace;

}

.process-text {

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    gap: 25px;

    font-size: 15px;

    line-height: 1.6;

}


/* =========================================
   FULL IMAGE
========================================= */

.full-image {

    width: 100%;

}

.full-image img {

    width: 100%;

    max-height: 100vh;

    object-fit: cover;

}


/* =========================================
   FINAL GALLERY
========================================= */

.final-gallery {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 30px;

    padding:
        180px 30px;

}

.gallery-large {

    grid-column:
        1 / -1;

}

.gallery-image img {

    width: 100%;

}


/* =========================================
   NEXT PROJECT
========================================= */

.next-project {

    min-height: 100svh;

    padding:
        30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-top:
        1px solid var(--line);

}

.next-meta {

    display: flex;

    justify-content: space-between;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

}

.next-link {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-top: auto;

}

.next-title {

    display: flex;

    flex-direction: column;

    font-size:
        clamp(5rem, 15vw, 17rem);

    font-weight: 700;

    line-height: .78;

    letter-spacing: -.09em;

}

.next-title span span {

    font-family:
        "DM Mono",
        monospace;

}

.next-arrow {

    font-size:
        clamp(3rem, 8vw, 9rem);

    transition:
        transform .5s var(--transition);

}

.next-link:hover .next-arrow {

    transform:
        translate(15px, 15px);

}


/* =========================================
   FOOTER
========================================= */

.footer {

    padding:
        25px 30px;

    display: flex;

    justify-content: space-between;

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

    border-top:
        1px solid var(--line);

}


/* =========================================
   REVEAL ANIMATION
========================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(40px);

    transition:
        opacity 1s ease,
        transform 1s var(--transition);

}

.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {


    .project-intro,
    .project-process {

        grid-template-columns:
            1fr;

        gap: 80px;

    }


    .intro-content,
    .process-content {

        grid-template-columns:
            1fr;

        gap: 60px;

    }


    .project-data {

        grid-template-columns:
            1fr 1fr;

    }


    .data-item:nth-child(2) {

        border-right: 0;

    }


    .data-item {

        border-bottom:
            1px solid var(--line);

    }


}


@media (max-width: 600px) {


    .header {

        padding:
            20px;

        grid-template-columns:
            1fr auto;

    }


    .header-center {

        display: none;

    }


    .header-right {

        gap: 15px;

    }


    .project-hero {

        padding:
            100px 20px 20px;

    }


    .hero-title h1 {

        font-size:
            clamp(4.5rem, 22vw, 8rem);

    }


    .project-cover {

        padding: 20px;

    }


    .project-cover-image {

        height: 65vh;

    }


    .project-intro {

        padding:
            100px 20px;

        gap: 50px;

    }


    .intro-content {

        gap: 50px;

    }


    .intro-content h2,
    .process-content h2 {

        font-size:
            clamp(3rem, 15vw, 6rem);

    }


    .project-data {

        grid-template-columns:
            1fr;

    }


    .data-item {

        min-height: 130px;

        border-right: 0;

    }


    .image-block {

        padding:
            100px 20px;

    }


    .image-grid {

        grid-template-columns:
            1fr;

        padding:
            0 20px 100px;

        gap: 70px;

    }


    .image-offset {

        padding-top: 0;

    }


    .project-process {

        padding:
            100px 20px;

        gap: 50px;

    }


    .final-gallery {

        grid-template-columns:
            1fr;

        padding:
            100px 20px;

        gap: 20px;

    }


    .gallery-large {

        grid-column: auto;

    }


    .next-project {

        padding: 20px;

    }


    .next-link {

        align-items: flex-end;

    }


    .next-title {

        font-size:
            clamp(4rem, 20vw, 7rem);

    }


    .footer {

        padding: 20px;

        flex-direction: column;

        gap: 15px;

    }


    .cursor {

        display: none;

    }

}