/* =========================================
   ATELIER 27
   BRUTALIST ARCHITECTURE STUDIO
   ========================================= */

:root {
    --black: #111111;
    --white: #f3f3ef;
    --grey: #8a8a84;
    --light-grey: #d8d8d2;
    --line: rgba(17, 17, 17, 0.18);

    --sans: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;
}


/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: var(--sans);
    font-weight: 400;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================
   CUSTOM CURSOR
   ========================================= */

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;

    background: var(--black);

    border-radius: 50%;

    pointer-events: none;

    z-index: 9999;

    transform: translate(-50%, -50%);

    mix-blend-mode: difference;
}


/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    padding: 28px 4vw;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    z-index: 50;

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.logo {
    justify-self: start;

    font-family: var(--sans);

    font-size: 18px;

    font-weight: 700;

    letter-spacing: -1px;
}

.logo span {
    font-family: var(--mono);

    font-size: 9px;

    font-weight: 400;

    margin-left: 4px;

    color: var(--grey);
}

.nav-links {
    display: flex;

    gap: 35px;
}

.nav-links a {
    position: relative;

    transition:
        opacity 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: var(--black);

    transition:
        width 0.35s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-index {
    justify-self: end;

    color: var(--grey);
}


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;

    min-height: 100vh;

    padding: 130px 4vw 45px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    border-bottom: 1px solid var(--line);
}


/* GRID */

.hero-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            to right,
            transparent 24.9%,
            var(--line) 25%,
            transparent 25.1%,
            transparent 49.9%,
            var(--line) 50%,
            transparent 50.1%,
            transparent 74.9%,
            var(--line) 75%,
            transparent 75.1%
        );

    pointer-events: none;

    opacity: 0.55;
}


/* HERO TOP */

.hero-top {
    position: relative;

    display: flex;

    justify-content: space-between;

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 1px;

    z-index: 2;
}


/* HERO TITLE */

.hero-title {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: flex-end;

    gap: 2vw;
}

.hero-title p {
    font-family: var(--mono);

    font-size: clamp(18px, 2vw, 30px);

    writing-mode: vertical-rl;

    transform: rotate(180deg);

    margin-bottom: 25px;

    letter-spacing: 4px;
}

.hero-title h1 {
    font-size: clamp(180px, 38vw, 580px);

    line-height: 0.68;

    font-weight: 700;

    letter-spacing: -0.09em;
}


/* HERO BOTTOM */

.hero-bottom {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: end;

    font-family: var(--mono);

    font-size: 9px;

    line-height: 1.7;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.hero-bottom .scroll-label {
    justify-self: center;

    animation:
        scrollPulse 2s ease-in-out infinite;
}

.hero-bottom > span:last-child {
    justify-self: end;

    color: var(--grey);
}


@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================
   INTRO
   ========================================= */

.intro {
    position: relative;

    min-height: 100vh;

    padding: 160px 8vw;

    display: grid;

    grid-template-columns: 1fr 4fr;

    border-bottom: 1px solid var(--line);
}

.section-number {
    font-family: var(--mono);

    font-size: 10px;

    color: var(--grey);

    letter-spacing: 1px;
}

.intro-content {
    max-width: 1000px;
}

.small-label {
    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 2px;

    color: var(--grey);

    margin-bottom: 70px;
}

.intro-content h2 {
    font-size: clamp(75px, 12vw, 190px);

    line-height: 0.82;

    letter-spacing: -0.07em;

    font-weight: 500;
}

.intro-content h2 span {
    margin-left: 14vw;
}

.intro-text {
    max-width: 470px;

    margin-top: 110px;

    margin-left: 28vw;

    display: grid;

    gap: 30px;

    font-size: 13px;

    line-height: 1.8;
}

.intro-text strong {
    font-weight: 600;
}


/* =========================================
   PROJECTS
   ========================================= */

.projects {
    padding: 150px 5vw 200px;
}

.projects-header {
    display: grid;

    grid-template-columns: 1fr 3fr;

    align-items: end;

    margin-bottom: 130px;
}

.projects-header .small-label {
    margin-top: 20px;

    margin-bottom: 0;
}

.projects-header h2 {
    font-size: clamp(80px, 13vw, 200px);

    line-height: 0.75;

    letter-spacing: -0.08em;

    font-weight: 500;
}


/* PROJECT */

.project {
    position: relative;

    margin-bottom: 180px;
}

.project-image {
    position: relative;

    overflow: hidden;

    background-size: cover;

    background-position: center;

    transition:
        transform 0.8s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.project:hover .project-image {
    transform: scale(0.98);
}


/* IMAGE 01 */

.project-one {
    width: 68%;

    margin-left: 8%;
}

.image-one {
    height: 720px;

    background-image:
        url(
            "https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=90"
        );
}


/* IMAGE 02 */

.project-two {
    width: 45%;

    margin-left: 48%;

    margin-top: 100px;
}

.image-two {
    height: 600px;

    background-image:
        url(
            "https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=90"
        );
}


/* IMAGE 03 */

.project-three {
    width: 62%;

    margin-left: 15%;

    margin-top: 80px;
}

.image-three {
    height: 700px;

    background-image:
        url(
            "https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1800&q=90"
        );
}


/* PROJECT INFO */

.project-info {
    position: absolute;

    left: 102%;

    bottom: 0;

    width: 230px;
}

.project-two .project-info {
    left: auto;

    right: 102%;

    text-align: right;
}

.project-info span,
.project-info p {
    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1px;

    color: var(--grey);

    text-transform: uppercase;
}

.project-info h3 {
    margin: 12px 0;

    font-size: 24px;

    letter-spacing: -1px;

    font-weight: 500;
}


/* =========================================
   STATEMENT
   ========================================= */

.statement {
    position: relative;

    min-height: 90vh;

    padding: 100px 5vw;

    display: flex;

    flex-direction: column;

    justify-content: center;

    overflow: hidden;

    background: var(--black);

    color: var(--white);
}

.statement-line {
    width: 100%;

    height: 1px;

    background: rgba(
        243,
        243,
        239,
        0.25
    );

    margin-bottom: 80px;
}

.statement > p {
    font-family: var(--mono);

    font-size: 10px;

    letter-spacing: 4px;

    color: #999;
}

.statement h2 {
    font-size: clamp(
        85px,
        16vw,
        250px
    );

    line-height: 0.75;

    letter-spacing: -0.09em;

    font-weight: 500;

    margin-top: 25px;
}

.statement-meta {
    margin-top: 100px;

    display: flex;

    justify-content: space-between;

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 2px;

    color: #888;
}


/* =========================================
   CONTACT
   ========================================= */

.contact {
    min-height: 100vh;

    padding: 130px 8vw;

    display: grid;

    grid-template-columns: 1fr 4fr;

    border-bottom: 1px solid var(--line);
}

.contact-content {
    max-width: 1000px;
}

.contact-content .small-label {
    margin-bottom: 80px;
}

.contact-content h2 {
    font-size: clamp(
        75px,
        13vw,
        200px
    );

    line-height: 0.77;

    letter-spacing: -0.08em;

    font-weight: 500;
}

.contact-content h2 span {
    margin-left: 12vw;
}

.contact-link {
    display: inline-flex;

    align-items: center;

    gap: 20px;

    margin-top: 100px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--black);

    font-family: var(--mono);

    font-size: 10px;

    letter-spacing: 1px;

    transition:
        gap 0.4s ease;
}

.contact-link:hover {
    gap: 35px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    padding: 70px 5vw 30px;

    background: var(--white);
}

.footer-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;
}

.footer-logo {
    font-size: clamp(
        55px,
        10vw,
        150px
    );

    line-height: 0.8;

    letter-spacing: -0.08em;

    font-weight: 700;
}

.footer-location {
    font-family: var(--mono);

    font-size: 9px;

    color: var(--grey);

    letter-spacing: 2px;
}

.footer-bottom {
    margin-top: 100px;

    padding-top: 18px;

    border-top: 1px solid var(--line);

    display: flex;

    justify-content: space-between;

    font-family: var(--mono);

    font-size: 8px;

    color: var(--grey);

    letter-spacing: 1px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 22px 6vw;

        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .nav-index {
        font-size: 8px;
    }


    .hero {
        min-height: 760px;

        padding: 110px 6vw 35px;
    }

    .hero-title {
        gap: 5vw;
    }

    .hero-title p {
        font-size: 13px;

        margin-bottom: 20px;
    }

    .hero-title h1 {
        font-size: 55vw;
    }

    .hero-bottom {
        grid-template-columns: 1fr auto;
    }

    .hero-bottom .scroll-label {
        display: none;
    }


    .intro {
        min-height: auto;

        padding: 120px 7vw;

        display: block;
    }

    .intro-content {
        margin-top: 70px;
    }

    .small-label {
        margin-bottom: 50px;
    }

    .intro-content h2 {
        font-size: 18vw;
    }

    .intro-content h2 span {
        margin-left: 12vw;
    }

    .intro-text {
        margin: 70px 0 0 15vw;

        font-size: 12px;
    }


    .projects {
        padding: 100px 6vw;
    }

    .projects-header {
        display: block;

        margin-bottom: 90px;
    }

    .projects-header h2 {
        margin-top: 60px;

        font-size: 19vw;
    }

    .project,
    .project-one,
    .project-two,
    .project-three {
        width: 100%;

        margin: 0 0 100px 0;
    }

    .project-image,
    .image-one,
    .image-two,
    .image-three {
        height: 500px;
    }

    .project-info,
    .project-two .project-info {
        position: static;

        width: auto;

        margin-top: 20px;

        text-align: left;
    }

    .project-info h3 {
        font-size: 25px;
    }


    .statement {
        min-height: 70vh;

        padding: 80px 6vw;
    }

    .statement h2 {
        font-size: 22vw;
    }

    .statement-meta {
        margin-top: 70px;

        flex-direction: column;

        gap: 15px;
    }


    .contact {
        min-height: 80vh;

        padding: 100px 7vw;

        display: block;
    }

    .contact-content {
        margin-top: 80px;
    }

    .contact-content h2 {
        font-size: 20vw;
    }

    .contact-content h2 span {
        margin-left: 10vw;
    }

    .contact-link {
        margin-top: 80px;
    }


    footer {
        padding: 60px 6vw 25px;
    }

    .footer-top {
        display: block;
    }

    .footer-location {
        margin-top: 30px;
    }

    .footer-bottom {
        margin-top: 70px;

        flex-direction: column;

        gap: 15px;
    }


    .cursor {
        display: none;
    }
}
/* =========================================
   ATELIER 27 — MOTION SYSTEM
   ========================================= */

/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* PROJECT STAGGER */

.project:nth-child(2) {
    transition-delay: 0.05s;
}

.project:nth-child(3) {
    transition-delay: 0.15s;
}

.project:nth-child(4) {
    transition-delay: 0.25s;
}


/* HERO ENTRANCE */

.hero-top {
    animation:
        heroFade 1s ease 0.2s both;
}

.hero-title {
    animation:
        heroTitle 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero-bottom {
    animation:
        heroFade 1s ease 0.7s both;
}


@keyframes heroFade {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes heroTitle {

    from {
        opacity: 0;
        transform:
            translateY(100px)
            scale(0.92);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* HERO NUMBER MOVEMENT */

.hero-title h1 {
    transition:
        letter-spacing 0.8s ease;
}

.hero:hover .hero-title h1 {
    letter-spacing: -0.06em;
}


/* PROJECT IMAGE OVERLAY */

.project-image::after {
    content: "VIEW PROJECT  ↗";

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        scale(0.75);

    padding: 14px 18px;

    border: 1px solid rgba(
        243,
        243,
        239,
        0.9
    );

    background: rgba(
        17,
        17,
        17,
        0.65
    );

    color: var(--white);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 2px;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.project:hover .project-image::after {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* PROJECT TITLE MOTION */

.project-info h3 {
    transition:
        transform 0.4s ease,
        letter-spacing 0.4s ease;
}

.project:hover .project-info h3 {
    transform: translateX(8px);

    letter-spacing: 0;
}


/* STATEMENT MOTION */

.statement h2 {
    transition:
        transform 1s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.statement:hover h2 {
    transform:
        translateX(25px);
}


/* CONTACT TEXT MOTION */

.contact-content h2 {
    transition:
        letter-spacing 0.8s ease;
}

.contact:hover .contact-content h2 {
    letter-spacing: -0.055em;
}


/* MOBILE */

@media (max-width: 700px) {

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .project-image::after {
        display: none;
    }

    .hero-title h1 {
        transition: none;
    }

    .hero:hover .hero-title h1 {
        letter-spacing: -0.09em;
    }

    .statement:hover h2 {
        transform: none;
    }

}