@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400&family=Inter:wght@400;500&display=swap');

:root {
    --bg: #0b0b0b;
    --surface: #111111;
    --text: #f1efe9;
    --muted: #858585;
    --line: #292929;
    --max: 1500px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;

    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.88)
        ),
        url("../images/website-background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -2;

    pointer-events: none;
}

img {
    max-width: 100%;
}

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


/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 32px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

nav a {
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 1;
}


/* GENERAL */

main {
    max-width: var(--max);
    margin: auto;
}

.hero,
.work,
.about,
.contact {
    background: rgba(11, 11, 11, 0.58);
}

footer {
    background: rgba(8, 8, 8, 0.82);
}

.eyebrow {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

em {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}


/* HERO */

.hero {
    min-height: 100vh;
    padding: 180px 6vw 100px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
}

.hero-text {
    animation: reveal 1.2s cubic-bezier(.16, 1, .3, 1) both;
}

.hero h1 {
    margin-top: 28px;
    font-size: clamp(70px, 11vw, 170px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.intro {
    max-width: 560px;
    margin-top: 48px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.button {
    display: inline-block;
    margin-top: 36px;
    padding: 13px 18px;
    border: 1px solid #444;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.button:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-3px);
}


/* WORK */

.work {
    padding: 150px 6vw;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8vw;
    margin-bottom: 100px;
}

.section-heading h2,
.gallery-intro h2 {
    font-size: clamp(55px, 8vw, 115px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
}


/* FEATURED */

.featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    align-items: end;
    gap: 7vw;
}

.artwork {
    overflow: hidden;
}

.artwork img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--surface);
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.artwork:hover img {
    transform: scale(1.025);
}

.artwork-large img {
    max-height: 85vh;
    object-fit: contain;
}

.artwork-small {
    margin-bottom: 8vw;
}

.artwork-small img {
    max-height: 65vh;
    object-fit: contain;
}

figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* GALLERY INTRO */

.gallery-intro {
    margin-top: 220px;
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8vw;
}


/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5vw;
    row-gap: 110px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item:nth-child(3n) {
    margin-top: 120px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--surface);
    transition:
        transform 1s cubic-bezier(.16, 1, .3, 1),
        opacity 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.gallery-item figcaption {
    display: block;
    padding-top: 14px;
}


/* ABOUT */

.about {
    padding: 180px 6vw;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8vw;
    border-top: 1px solid var(--line);
}

.about-content {
    max-width: 800px;
}

.portrait {
    width: min(520px, 100%);
    margin-bottom: 90px;
    overflow: hidden;
}

.portrait img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition:
        filter 0.7s ease,
        transform 1s cubic-bezier(.16, 1, .3, 1);
}

.portrait:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about h2 {
    font-size: clamp(50px, 7vw, 100px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.about p:not(.eyebrow) {
    max-width: 600px;
    margin-top: 45px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}


/* CONTACT */

.contact {
    min-height: 80vh;
    padding: 150px 6vw;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact h2 {
    max-width: 1000px;
    font-size: clamp(60px, 9vw, 140px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.065em;
}

.email {
    width: fit-content;
    padding-bottom: 8px;
    border-bottom: 1px solid #555;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease;
}

.email:hover {
    border-color: var(--text);
}


/* FOOTER */

footer {
    padding: 28px 6vw;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ANIMATION */

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* MOBILE */

@media (max-width: 700px) {

    header {
        padding: 22px 20px;
    }

    nav {
        gap: 14px;
    }

    .hero {
        min-height: 90vh;
        padding: 150px 20px 70px;
    }

    .hero h1 {
        font-size: clamp(58px, 18vw, 100px);
    }

    .intro {
        margin-top: 35px;
        font-size: 14px;
    }

    .work,
    .about,
    .contact {
        padding: 100px 20px;
    }

    .section-heading,
    .gallery-intro,
    .about {
        display: block;
    }

    .section-heading {
        margin-bottom: 60px;
    }

    .section-heading h2,
    .gallery-intro h2 {
        margin-top: 35px;
        font-size: 58px;
    }

    .featured-grid {
        display: block;
    }

    .artwork-small {
        width: 80%;
        margin: 90px 0 0 auto;
    }

    .gallery-intro {
        margin-top: 150px;
        margin-bottom: 60px;
    }

    .gallery {
        grid-template-columns: 1fr;
        row-gap: 80px;
    }

    .gallery-item:nth-child(3n) {
        margin-top: 0;
    }

    .gallery-item figcaption {
        font-size: 8px;
    }

    .portrait {
        margin-bottom: 60px;
    }

    .about h2 {
        margin-top: 35px;
        font-size: 58px;
    }

    .about p:not(.eyebrow) {
        margin-top: 35px;
        font-size: 15px;
    }

    .contact {
        min-height: 75vh;
    }

    .contact h2 {
        font-size: 65px;
    }

    footer {
        padding: 24px 20px;
    }
}
