

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

.project-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 90px) 0 82px;
    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(143, 189, 47, .10),
            transparent 25%
        ),
        var(--ink);
    color: var(--white);
}

.project-hero::before {
    content: "";
    position: absolute;
    right: -140px;
    top: -90px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(143, 189, 47, .12);
    border-radius: 50%;
    pointer-events: none;
}

.project-hero::after {
    content: "PROJECT";
    position: absolute;
    right: -30px;
    bottom: -42px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .035);
    font-family: var(--font-display);
    font-size: 16vw;
    font-weight: 900;
    line-height: .75;
    letter-spacing: -.06em;
    pointer-events: none;
}

.project-hero__grid {
    position: relative;
    z-index: 2;
    display: block;
}

.project-hero__copy {
    width: min(1060px, 100%);
}

.project-hero__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 28px;
}

.back-link,
.project-hero .back-link {
    display: inline-block;
    color: var(--green);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-hero .eyebrow {
    color: var(--blue);
    font-size: 12px;
}

.project-hero h1 {
    max-width: 1050px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(58px, 6.5vw, 100px);
    font-weight: 700;
    line-height: .84;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.project-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.project-hero__bottom p {
    width: min(620px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.7;
}

.project-hero__count {
    flex: 0 0 auto;
    color: var(--green);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}


/* =========================
   PROJECT OVERVIEW
========================= */

.project-overview {
    padding: 75px 0 82px;
}

.project-overview__grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 5vw;
    align-items: start;
}

.project-overview .display-lead {
    max-width: 850px;
    margin: 0;
    font-size: 29px;
    line-height: 1.12;
    letter-spacing: 0;
}


/* =========================
   PROJECT GALLERY SECTION
========================= */

.project-gallery {
    position: relative;
}

.project-gallery--compact {
    position: relative;
    padding: 70px 0 90px;
    background: #f5f8f9;
    overflow: hidden;
}

.project-gallery--compact::before {
    content: "WORK";
    position: absolute;
    right: -20px;
    top: 8px;
    color: rgba(11, 39, 52, .025);
    font-family: var(--font-display);
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.06em;
    pointer-events: none;
}


/* =========================
   GALLERY HEADING
========================= */

.project-gallery__head-new {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: end;
    gap: 45px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.project-gallery__head-new .eyebrow {
    font-size: 12px;
}

.project-gallery__head-new h2 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 4.5vw, 58px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.project-gallery__head-new h2 em {
    display: inline-block;
    margin-left: 7px;
    color: var(--green);
    font-family: var(--font-script);
    font-size: .82em;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.project-gallery__head-side {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.project-gallery__head-side > span {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-gallery__head-side p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   COMPACT MASONRY
   NO LARGE EMPTY SPACES
========================================================= */

.project-gallery__masonry {
    position: relative;
    z-index: 2;
    column-count: 3;
    column-gap: 15px;
}

.project-gallery__masonry-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 15px;
    vertical-align: top;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}


/* =========================
   IMAGE WRAPPER
========================= */

.project-gallery__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #dce5e8;
    border: 2px solid var(--green-dark);
    padding: 10px;
}

.project-gallery__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(11, 39, 52, .06);
    pointer-events: none;
}

.project-gallery__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    transition: transform .65s var(--ease);
}

.project-gallery__masonry-item:hover
.project-gallery__media img {
    transform: scale(1.018);
}


/* =========================
   IMAGE NUMBER
========================= */

.project-gallery__image-no {
    position: absolute;
    z-index: 3;
    left: 10px;
    bottom: 10px;

    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    background: var(--ink);
    color: var(--white);

    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;

    transition:
        background .25s,
        color .25s;
}

.project-gallery__masonry-item:hover
.project-gallery__image-no {
    background: var(--green);
    color: var(--ink);
}


/* =========================
   NEXT PROJECT CTA
========================= */

.next-project {
    padding: 30px 0;
    background: var(--green);
}

.next-project .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.next-project span {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.next-project a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.next-project i {
    font-style: normal;
    font-weight: 400;
    transition: transform .3s var(--ease);
}

.next-project a:hover i {
    transform: translate(4px, -4px);
}


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

@media (max-width: 980px) {

    .project-hero {
        padding:
            calc(var(--header-h) + 70px)
            0
            70px;
    }

    .project-hero h1 {
        font-size: 68px;
    }

    .project-overview {
        padding: 65px 0;
    }

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

    .project-gallery--compact {
        padding: 65px 0 75px;
    }

    .project-gallery__head-new {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-gallery__head-side {
        padding: 14px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .project-gallery__masonry {
        column-gap: 10px;
    }

    .project-gallery__masonry-item {
        margin-bottom: 10px;
    }
}


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

@media (max-width: 720px) {

    .project-hero {
        padding:
            calc(var(--header-h) + 45px)
            0
            55px;
    }

    .project-hero__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 22px;
    }

    .project-hero h1 {
        font-size: 50px;
        line-height: .88;
    }

    .project-hero__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 28px;
        padding-top: 16px;
    }

    .project-overview {
        padding: 55px 0;
    }

    .project-overview__grid {
        grid-template-columns: 1fr;
    }

    .project-overview .display-lead {
        font-size: 23px;
        line-height: 1.18;
    }

    .project-gallery--compact {
        padding: 55px 0 60px;
    }

    .project-gallery__head-new {
        margin-bottom: 18px;
    }

    .project-gallery__head-new h2 {
        font-size: 40px;
    }

    .project-gallery__masonry {
        column-count: 1;
        column-gap: 0;
    }

    .project-gallery__masonry-item {
        margin-bottom: 9px;
    }

    .next-project .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .next-project a {
        font-size: 27px;
    }
}


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

@media (max-width: 480px) {



    .project-gallery__masonry-item {
        margin-bottom: 8px;
    }
}
