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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffa9;
    color: #30312e;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}

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


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

:root {
    --background: #ffffa9;
    --black: #30312e;
    --gray: #0c00fe;
    --border: #30312e;
}


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

.header {
    width: 100%;

    padding: 25px 35px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    position: absolute;
    top: 0;
    left: 0;

    z-index: 10;
}



.logo {
    display: block;
}

.logo img {
    width: 140px;
    height: auto;
    display: block;
}
.header nav {
    display: flex;
    gap: 30px;

    font-size: 13px;
}

.header nav a {
    transition: opacity 0.25s ease;
}

.header nav a:hover {
    opacity: 0.45;
}


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

.hero {
    min-height: 100vh;

    padding: 150px 35px 60px;

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

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


/* BIG NAME */

.hero-name {
    display: flex;
    align-items: center;
}

.hero-name h1 {
    font-size: clamp(100px, 17vw, 260px);

    font-weight: 400;

    letter-spacing: -0.09em;
    line-height: 0.72;

    margin-left: -10px;
}


/* HERO INFO */

.hero-info {
    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding-bottom: 20px;

    font-size: 15px;

    line-height: 1.1;
}

.intro {
    font-size: clamp(87px, 33vw, 60px);
    letter-spacing: 0em;
    line-height: 1;
    margin-bottom: 10px;
}

.location {
    color: var(--gray);

    margin-bottom: 40px;
}

.email {
    text-decoration: underline;

    text-underline-offset: 4px;
}


/* ========================================
   CLIENTS
======================================== */

.clients {
    min-height: 70vh;

    padding: 100px 35px;

    display: grid;

    grid-template-columns: 1fr 2fr;

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

.section-label {
    font-size: 14px;

    text-transform: uppercase;

    line-height: 1;
}

.client-list {
    display: flex;

    flex-wrap: wrap;

    align-content: flex-start;

    gap: 8px 25px;
}

.client-list span {
    font-size: clamp(35px, 5vw, 80px);

    letter-spacing: -0.06em;

    line-height: 0.95;
}


/* ========================================
   WORK
======================================== */

.work {
    padding: 120px 35px;
}

.work-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 100px;
}

.small-title {
    text-transform: uppercase;

    font-size: 12px;

    margin-bottom: 20px;
}

.work-header h2 {
    font-size: clamp(40px, 5vw, 75px);

    font-weight: 400;

    letter-spacing: -0.06em;

    line-height: 0.9;
}

.scroll-text {
    font-size: 12px;

    text-align: right;

    color: var(--gray);
}


/* ========================================
   PROJECT GRID
======================================== */

.projects {
    display: grid;

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

    gap: 90px 25px;
}

.project {
    display: block;
}

.project-large {
    grid-column: span 2;
}

.project-image {
    width: 100%;

    height: 549px;

    overflow: hidden;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: transform 0.5s ease;
}

.project-large .project-image {
    height: 750px;
}

.project:hover .project-image {
    transform: scale(0.985);
}

.project-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;

    background: transparent;

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

    transition: transform 0.5s ease;
}

.project-large .project-image {
    height: 750px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   PROJECT INFO
======================================== */

.project-info {
    display: flex;

    justify-content: space-between;

    padding-top: 15px;

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

    margin-top: 10px;
}

.project-info h3 {
    font-size: 15px;

    font-weight: 500;
}

.project-info p {
    font-size: 12px;

    color: var(--gray);
}


/* ========================================
   MORE WORK
======================================== */

.more-work {
    padding: 100px 35px 150px;

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

.more-title {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 60px;
}

.more-title > span {
    text-transform: uppercase;

    font-size: 12px;
}

.more-title h2 {
    font-size: clamp(50px, 7vw, 100px);

    font-weight: 400;

    letter-spacing: -0.08em;

    line-height: 0.85;
}


/* MINI GRID */

.mini-grid {
    display: grid;

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

    gap: 15px;
}

.mini-card {
    height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    transition: transform 0.4s ease;
}

.mini-card:hover {
    transform: rotate(-2deg) scale(0.97);
}

.card-1 {
    background: #ff6642;
}

.card-2 {
    background: #c9ff00;
}

.card-3 {
    background: #7259ff;
}

.card-4 {
    background: #ffca00;
}

.card-5 {
    background: #38b89b;
}

.card-6 {
    background: #ff8bd0;
}


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

.contact {
    min-height: 90vh;

    padding: 120px 35px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

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

.contact h2 {
    font-size: clamp(70px, 10vw, 160px);

    font-weight: 400;

    letter-spacing: -0.09em;

    line-height: 0.78;
}

.contact h2 em {
    font-style: normal;

    text-decoration: underline;

    text-decoration-thickness: 3px;

    text-underline-offset: 8px;
}

.contact-right {
    display: flex;

    flex-direction: column;

    gap: 50px;
}

.contact-email {
    font-size: clamp(25px, 3vw, 50px);

    letter-spacing: -0.06em;

    text-decoration: underline;

    text-underline-offset: 7px;
}

.socials {
    display: flex;

    gap: 25px;

    font-size: 14px;
}

.socials a {
    border-bottom: 1px solid var(--border);

    padding-bottom: 3px;
}


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

footer {
    border-top: 1px solid var(--border);

    padding: 25px 35px;

    display: flex;

    justify-content: space-between;

    font-size: 11px;

    text-transform: uppercase;
}


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

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        padding-top: 130px;
    }

    .hero-info {
        padding-top: 80px;
    }

    .clients {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .project-large {
        grid-column: span 1;
    }

    .project-image,
    .project-large .project-image {
        height: 500px;
    }

    .contact {
        grid-template-columns: 1fr;

        gap: 100px;
    }
}


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

@media (max-width: 600px) {

    .header {
        padding: 20px;
    }

    .header nav {
        gap: 15px;
    }

    .hero {
        padding: 120px 20px 50px;
    }

    .hero-name h1 {
        font-size: 28vw;

        line-height: 0.72;
    }

    .intro {
        font-size: 35px;
    }

    .clients,
    .work,
    .more-work,
    .contact {
        padding-left: 20px;
        padding-right: 20px;
    }

    .client-list span {
        font-size: 42px;
    }

    .work {
        padding-top: 80px;
    }

    .work-header {
        display: block;

        margin-bottom: 60px;
    }

    .scroll-text {
        text-align: left;

        margin-top: 30px;
    }

    .projects {
        gap: 60px 0;
    }

    .project-image,
    .project-large .project-image {
        height: 400px;
    }

    .mini-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mini-card {
        height: 200px;
    }

    .contact {
        min-height: 80vh;

        padding-top: 80px;
        padding-bottom: 80px;
    }

    .contact h2 {
        font-size: 20vw;
    }

    .contact-email {
        font-size: 28px;
        word-break: break-word;
    }

    footer {
        padding: 20px;

        flex-direction: column;

        gap: 12px;
    }
}