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


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

:root {

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

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

}


body.dark {

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

}


/* =========================================
   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;

}


/* =========================================
   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 {

    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;

}


/* =========================================
   PROJECT 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;

}


/* =========================================
   IMAGE BLOCK
========================================= */

.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 {

    transition:
        transform .3s ease;

    will-change:
        transform;

}


.image-item img {

    width: 100%;

}


/* =========================================
   PROJECT VIDEO
========================================= */

.project-video {

    padding:
        0 30px 180px;

}


.video-header {

    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

}


.video-wrapper {

    position: relative;

    width: 100%;

    height: 80vh;

    overflow: hidden;

    background: #000;

}


.project-video-element {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    cursor: pointer;

}


/* =========================================
   VIDEO LOADING
========================================= */

.video-loading {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, .35);

    color: #ffffff;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

    letter-spacing: .05em;

    pointer-events: none;

    opacity: 1;

    transition:
        opacity .6s ease;

}


.video-loading.hidden {

    opacity: 0;

}


/* =========================================
   VIDEO BUTTONS
========================================= */

.video-sound,
.video-play {

    position: absolute;

    bottom: 25px;

    padding:
        10px 14px;

    border:
        1px solid rgba(255, 255, 255, .5);

    background:
        rgba(0, 0, 0, .25);

    color: #ffffff;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    font-family:
        "DM Mono",
        monospace;

    font-size: 8px;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;

}


.video-sound {

    right: 25px;

}


.video-play {

    left: 25px;

}


.video-sound:hover,
.video-play:hover {

    background:
        rgba(255, 255, 255, .15);

    transform:
        translateY(-3px);

}


/* =========================================
   PROJECT 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 {

    transition:
        transform .3s ease;

    will-change:
        transform;

}


.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;

    transition:
        transform .3s ease;

}


.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);

}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(40px);

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

}


.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================
   RESPONSIVE — TABLET
========================================= */

@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;

    }

}


/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 600px) {


    .cursor {

        display: none;

    }


    .header {

        padding: 20px;

        grid-template-columns:
            1fr auto;

    }


    .header-center {

        display: none;

    }


    .header-right {

        gap: 15px;

    }


    .fullscreen-menu {

        padding: 20px;

    }


    .fullscreen-menu nav a {

        font-size:
            clamp(3.5rem, 16vw, 6rem);

    }


    .menu-footer {

        left: 20px;
        right: 20px;
        bottom: 20px;

        font-size: 8px;

    }


    .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;

        padding: 20px;

        border-right: 0;

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

    }


    .image-block {

        padding:
            100px 20px;

    }


    .image-grid {

        grid-template-columns:
            1fr;

        padding:
            0 20px 100px;

        gap: 70px;

    }


    .image-offset {

        padding-top: 0;

    }


    /* VIDEO */

    .project-video {

        padding:
            0 20px 100px;

    }


    .video-wrapper {

        height: 60vh;

    }


    .video-sound,
    .video-play {

        bottom: 15px;

    }


    .video-sound {

        right: 15px;

    }


    .video-play {

        left: 15px;

    }


    /* PROCESS */

    .project-process {

        padding:
            100px 20px;

        gap: 50px;

    }


    /* GALLERY */

    .final-gallery {

        grid-template-columns:
            1fr;

        padding:
            100px 20px;

        gap: 20px;

    }


    .gallery-large {

        grid-column: auto;

    }


    /* NEXT PROJECT */

    .next-project {

        padding: 20px;

    }


    .next-title {

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

    }


    /* FOOTER */

    .footer {

        padding: 20px;

        flex-direction: column;

        gap: 15px;

    }

}