:root {
    --paper: #f4f0e7;
    --ink: #252522;
    --muted: #747168;
    --line: #d7d1c4;
    --green: #667c65;
    --blue: #8094b3;
    --sand: #d6b98f;
    --coral: #d98d77;

    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;
    --mono: "DM Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden;
}

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

/* Background blobs */

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .17;
    z-index: -1;
    pointer-events: none;
}

.blob-a {
    width: 400px;
    height: 400px;
    background: #a4b68d;
    left: -160px;
    top: 18%;
}

.blob-b {
    width: 350px;
    height: 350px;
    background: #d59c87;
    right: -130px;
    top: 55%;
}

/* Navigation */

.nav {
    height: 82px;
    padding: 0 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f4f0e7dd;
    backdrop-filter: blur(15px);
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -.06em;
}

.logo span {
    color: var(--coral);
}

nav {
    display: flex;
    gap: 35px;
    font-size: 12px;
    color: #66635d;
}

.nav-btn {
    font: 10px var(--mono);
    border: 1px solid var(--ink);
    border-radius: 50px;
    padding: 11px 16px;
}

/* Hero */

.hero {
    min-height: calc(100vh - 82px);
    padding: 42px 6vw 50px;
    position: relative;
}

.hero-label,
.scroll {
    display: flex;
    justify-content: space-between;
    font: 9px var(--mono);
    color: var(--muted);
    letter-spacing: .1em;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 7vw;
    align-items: center;
    min-height: 75vh;
}

.kicker {
    font: 10px var(--mono);
    letter-spacing: .12em;
    color: var(--muted);
    margin: 0;
}

.hero h1 {
    font: 600 clamp(65px, 8.7vw, 140px) var(--sans);
    line-height: .83;
    letter-spacing: -.085em;
    margin: 30px 0;
}

.hero h1 em,
.section-head h2 em,
.process h2 em,
.contact h2 em {
    font-family: var(--serif);
    font-weight: 500;
}

.hero-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-top: 30px;
}

.btn {
    padding: 13px 18px;
    border-radius: 50px;
    font-size: 12px;
}

.btn-dark {
    background: var(--ink);
    color: var(--paper);
}

.plain-link {
    font: 10px var(--mono);
    border-bottom: 1px solid #888;
    padding-bottom: 7px;
}

/* Hero artwork */

.hero-art {
    position: relative;
}

.art-window {
    background: #fff;
    border: 1px solid #d3cec4;
    box-shadow: 20px 30px 70px #403a3020;
    transform: rotate(2deg);
}

.window-top {
    height: 35px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    color: #aaa;
    font: 8px var(--mono);
}

.window-top i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
}

.window-top span {
    margin: auto;
}

.art-content {
    height: 490px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    background: #c9d1c0;
}

.art-content small {
    font: 9px var(--mono);
}

.art-content strong {
    position: absolute;
    left: 8%;
    top: 36%;
    font: 600 clamp(55px, 6vw, 100px) var(--sans);
    line-height: .8;
    letter-spacing: -.08em;
}

.art-content em {
    font-family: var(--serif);
    font-weight: 500;
}

.orbit {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid #343b3055;
    border-radius: 50%;
    right: -100px;
    bottom: -90px;
    box-shadow:
        0 0 0 50px #343b3020,
        0 0 0 100px #343b3010;
}

.art-index {
    position: absolute;
    bottom: 25px;
    left: 28px;
    font: 9px var(--mono);
}

.floating-note {
    position: absolute;
    right: -35px;
    bottom: 45px;
    background: var(--coral);
    padding: 18px 20px;
    font: 700 12px var(--mono);
    line-height: 1.1;
    transform: rotate(-6deg);
    box-shadow: 8px 12px 0 #2221;
}

.scroll {
    margin-top: 15px;
}

.scroll span {
    font-size: 18px;
}

/* Work */

.work,
.services,
.process,
.contact {
    padding: 135px 6vw;
    border-top: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8vw;
    align-items: end;
    margin-bottom: 80px;
}

.section-head h2 {
    font: 600 clamp(60px, 7vw, 110px) var(--sans);
    line-height: .84;
    letter-spacing: -.08em;
    margin: 30px 0 0;
}

.section-head > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 350px;
    margin: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 25px;
}

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

.project-visual {
    height: 520px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease;
}

.project:hover .project-visual {
    transform: translateY(-7px);
}

.project-no {
    font: 9px var(--mono);
}

.project-visual strong {
    position: absolute;
    left: 7%;
    top: 42%;
    font: 600 clamp(60px, 8vw, 120px) var(--sans);
    line-height: .78;
    letter-spacing: -.08em;
}

.project-visual strong em {
    font-family: var(--serif);
    font-weight: 500;
}

.project-visual small {
    position: absolute;
    bottom: 25px;
    left: 28px;
    font: 9px var(--mono);
}

.mini-nav {
    display: flex;
    justify-content: space-between;
    font: 9px var(--mono);
}

.mini-nav span {
    opacity: .6;
}

.p-green {
    background: #b7c4ad;
}

.p-blue {
    background: #aebed2;
}

.p-sand {
    background: #d8c1a0;
}

.p-coral {
    background: #d88973;
}

.shape {
    position: absolute;
    width: 390px;
    height: 390px;
    border: 1px solid #28384b55;
    border-radius: 50%;
    right: -110px;
    top: 80px;
    box-shadow:
        0 0 0 55px #28384b12,
        0 0 0 110px #28384b08;
}

.mountain {
    position: absolute;
    bottom: -30px;
    right: -10px;
    width: 65%;
    height: 55%;
    background: linear-gradient(
        135deg,
        transparent 50%,
        #8d7658 50%
    );
    clip-path: polygon(
        0 100%,
        65% 0,
        100% 100%
    );
}

.giant {
    position: absolute;
    right: 5%;
    top: 0;
    font: 700 300px var(--sans);
    line-height: 1;
    color: #34231e12;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    padding: 18px 2px;
    border-bottom: 1px solid var(--line);
}

.project-meta span {
    font: 9px var(--mono);
    color: var(--muted);
}

.project-meta h3 {
    font-size: 20px;
    margin: 8px 0 0;
}

.project-meta b {
    font-size: 25px;
    font-weight: 400;
}

.more-work {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    font: 9px var(--mono);
    color: var(--muted);
}

.more-work a {
    color: var(--ink);
    border-bottom: 1px solid #aaa;
    padding-bottom: 7px;
}

/* Services */

.services {
    background: #e8e2d6;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #cfc7b8;
    margin-top: 70px;
}

.service {
    padding: 28px 25px 35px 0;
    border-bottom: 1px solid #cfc7b8;
}

.service:nth-child(odd) {
    border-right: 1px solid #cfc7b8;
    padding-right: 8vw;
}

.service:nth-child(even) {
    padding-left: 8vw;
}

.service span,
.timeline span {
    font: 9px var(--mono);
    color: var(--muted);
}

.service h3 {
    font-size: 28px;
    margin: 35px 0 12px;
    letter-spacing: -.04em;
}

.service p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 430px;
}

/* Process */

.process {
    background: #657760;
    color: #f4f0e7;
}

.process .kicker {
    color: #d6dfd0;
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    margin-top: 70px;
}

.process h2 {
    font: 600 clamp(65px, 8vw, 125px) var(--sans);
    line-height: .82;
    letter-spacing: -.08em;
    margin: 0;
}

.timeline {
    border-top: 1px solid #dbe3d755;
}

.timeline > div {
    display: grid;
    grid-template-columns: 45px 1fr;
    padding: 24px 0;
    border-bottom: 1px solid #dbe3d755;
}

.timeline span {
    color: #d6dfd0;
}

.timeline h3 {
    font-size: 19px;
    margin: 0 0 7px;
}

.timeline p {
    grid-column: 2;
    color: #d6dfd0;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    max-width: 430px;
}

/* Contact */

.contact {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact h2 {
    font: 600 clamp(65px, 9vw, 140px) var(--sans);
    line-height: .82;
    letter-spacing: -.085em;
    margin: 40px 0;
}

.contact > p:not(.kicker) {
    max-width: 500px;
    color: var(--muted);
    line-height: 1.6;
}

.contact-btn {
    align-self: flex-start;
    margin-top: 20px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 12px;
    font: 12px var(--mono);
}

.contact-btn span {
    margin-left: 35px;
    color: var(--coral);
}

.contact-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid #d98d7755;
    right: -100px;
    top: 20%;
    box-shadow:
        0 0 0 50px #d98d7720,
        0 0 0 100px #d98d7710;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 50px;
    margin-top: 100px;
    font: 9px var(--mono);
    color: var(--muted);
}

/* Modal */

.modal {
    position: fixed;
    inset: 0;
    background: #f4f0e7f5;
    backdrop-filter: blur(15px);
    z-index: 50;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal > button {
    position: absolute;
    right: 5vw;
    top: 25px;
    border: 0;
    background: none;
    font-size: 45px;
}

.modal-box {
    width: min(650px, 82vw);
    background: #fff;
    padding: 55px;
    box-shadow: 0 30px 100px #2222;
}

.modal-type {
    font: 9px var(--mono);
    color: var(--muted);
}

.modal h2 {
    font: 600 clamp(50px, 7vw, 90px) var(--sans);
    letter-spacing: -.08em;
    margin: 25px 0;
}

.modal p {
    color: var(--muted);
    line-height: 1.6;
}

.modal a {
    display: inline-block;
    margin-top: 25px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 8px;
    font: 10px var(--mono);
}

/* Responsive */

@media (max-width: 850px) {
    .nav {
        padding: 0 7vw;
    }

    .nav nav {
        display: none;
    }

    .hero {
        padding: 35px 7vw 50px;
    }

    .hero-content,
    .section-head,
    .process-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 70px;
    }

    .hero h1 {
        font-size: 19vw;
    }

    .hero-art {
        width: 94%;
        margin: auto;
    }

    .art-content {
        height: 380px;
    }

    .floating-note {
        right: -20px;
    }

    .work,
    .services,
    .process,
    .contact {
        padding: 100px 7vw;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

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

    .project-visual {
        height: 390px;
    }

    .project-visual strong {
        font-size: 18vw;
    }

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

    .service:nth-child(odd) {
        border-right: 0;
        padding-right: 0;
    }

    .service:nth-child(even) {
        padding-left: 0;
    }

    .more-work {
        flex-direction: column;
        gap: 25px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    footer {
        flex-direction: column;
        gap: 12px;
    }

    .modal-box {
        padding: 35px;
    }
}
