/* ========================================
   PORTFOLIO PAGE
========================================= */


/* ========================================
   PORTFOLIO BANNER
========================================= */

/* Mobile - 0rem+ */

@media (min-width: 0rem) {

    .portfolio-banner {
        position: relative;

        display: flex;
        align-items: flex-end;

        min-height: 17rem;

        overflow: hidden;

        color: #fff;
        background: var(--forest);
    }

    .portfolio-banner__image,
    .portfolio-banner__overlay {
        position: absolute;
        inset: 0;
    }

    .portfolio-banner__image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 55%;
    }

    .portfolio-banner__overlay {
        background:
            linear-gradient(
                to bottom,
                rgba(5, 20, 15, .92) 0%,
                rgba(5, 20, 15, .74) 20%,
                rgba(5, 20, 15, .44) 52%,
                rgba(5, 20, 15, .6) 100%
            );
    }

    .portfolio-banner__inner {
        position: relative;
        z-index: 2;

        width: 100%;

        padding:
            6.5rem
            1.5rem
            2.5rem;
    }

    .portfolio-banner .eyebrow {
        color: #fff;
        opacity: 1;

        font-weight: 600;

        text-shadow:
            0 1px 8px rgba(0, 0, 0, .35);
    }

    .portfolio-banner h1 {
        margin: 0;

        color: #fff;

        font-family: var(--serif);
        font-size: clamp(2.8rem, 11vw, 3.8rem);
        font-weight: 400;
        line-height: 1;

        text-shadow:
            0 2px 12px rgba(0, 0, 0, .2);
    }

    .portfolio-page .nav__logo .nav__logo-green {
        display: none;
    }

    .portfolio-page .nav__logo .nav__logo-white {
        display: block;
    }

}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .portfolio-banner {
        min-height: 20rem;
    }

    .portfolio-banner__inner {
        padding:
            8rem
            4rem
            3rem;
    }

    .portfolio-banner h1 {
        font-size: clamp(3.6rem, 6vw, 4.8rem);
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .portfolio-banner {
        min-height: 22rem;
    }

    .portfolio-banner__inner {
        width: min(90%, var(--max-width));

        margin: 0 auto;

        padding:
            8rem
            0
            3.5rem;
    }

    .portfolio-banner h1 {
        font-size: clamp(4rem, 4vw, 5rem);
    }

}


/* ========================================
   PORTFOLIO INTRO
========================================= */

/* Mobile - 0rem+ */

@media (min-width: 0rem) {

    .portfolio-intro {
        padding:
            5rem
            1.5rem;

        background: var(--cream);
    }

    .portfolio-intro__inner {
        display: grid;
        gap: 2.5rem;

        max-width: var(--max-width);

        margin: 0 auto;
    }

    .portfolio-intro__heading h2 {
        max-width: 40rem;

        margin: 0;

        color: var(--forest);

        font-family: var(--serif);
        font-size: clamp(2.6rem, 10vw, 4rem);
        font-weight: 400;
        line-height: 1;
    }

    .portfolio-intro__copy {
        max-width: 34rem;
    }

    .portfolio-intro__copy p {
        margin:
            0
            0
            1.2rem;

        color: #52605a;

        line-height: 1.75;
    }

    .portfolio-intro__copy p:last-child {
        margin-bottom: 0;
    }

}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .portfolio-intro {
        padding:
            6rem
            4rem;
    }

    .portfolio-intro__inner {
        grid-template-columns: 1.15fr .85fr;
        gap: 5rem;

        align-items: end;
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .portfolio-intro {
        padding:
            8rem
            5%;
    }

    .portfolio-intro__inner {
        gap: clamp(6rem, 10vw, 11rem);
    }

    .portfolio-intro__heading h2 {
        font-size: clamp(3.2rem, 4vw, 4.8rem);
    }

}


/* ========================================
   PORTFOLIO PROJECTS
========================================= */

/* Mobile - 0rem+ */

@media (min-width: 0rem) {

    .portfolio-projects {
        padding:
            1rem
            1.5rem
            6rem;

        background: var(--cream);
    }

    .portfolio-projects__inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: var(--max-width);
        margin: 0 auto;
    }

    .portfolio-project {
        margin: 0;
    }

    .portfolio-project__link {
        display: block;

        color: inherit;

        text-decoration: none;
    }

    .portfolio-project__image {
        position: relative;

        overflow: hidden;

        aspect-ratio: 1.15 / 1;

        background: #d8d7cf;
    }

    .portfolio-project:nth-child(1)
    .portfolio-project__image {
        border-radius:
            12% 3% 10% 3% /
            9% 4% 12% 5%;
    }

    .portfolio-project:nth-child(2)
    .portfolio-project__image {
        border-radius:
            3% 12% 3% 10% /
            4% 10% 5% 12%;
    }

    .portfolio-project:nth-child(3)
    .portfolio-project__image {
        border-radius:
            4% 4% 14% 3% /
            5% 5% 12% 4%;
    }

    .portfolio-project:nth-child(4)
    .portfolio-project__image {
        border-radius:
            12% 3% 4% 12% /
            10% 4% 5% 10%;
    }

    .portfolio-project__image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;

        transform: scale(1.01);

        transition:
            transform .8s ease;
    }

    .portfolio-project__info {
        position: relative;

        display: grid;
        grid-template-columns: auto 1fr auto;
        gap:
            .8rem
            1rem;

        align-items: end;

        padding-top: 1.25rem;
    }

    .portfolio-project__number {
        grid-column: 1;
        align-self: start;
        padding-top: .25rem;
        color: #849088;
        font-family: var(--sans);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: .1em;
    }

    .portfolio-project__title {
        grid-column: 2;
    }

    .portfolio-project__title h2 {
        margin: 0;

        color: var(--forest);

        font-family: var(--serif);
        font-size: clamp(1.9rem, 8vw, 2.8rem);
        font-weight: 400;
        line-height: 1;
    }

    .portfolio-project__title p {
        margin:
            .45rem
            0
            0;

        color: #6a756f;

        font-family: var(--sans);
        font-size: .72rem;
        letter-spacing: .08em;

        text-transform: uppercase;
    }

    .portfolio-project__type {
        display: none;
    }

    .portfolio-project__arrow {
        grid-column: 3;

        color: var(--forest);

        font-size: 1.5rem;

        transition:
            transform .3s ease;
    }

}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {
    .portfolio-projects {
        padding:
            1rem
            4rem
            7rem;
    }
    .portfolio-projects__inner {
        gap: 4.5rem;
    }
    .portfolio-project__image {
        aspect-ratio: 1.7 / 1;
    }
    .portfolio-project__image {
        aspect-ratio: 1.7 / 1;
    }

    .portfolio-project__info {
        grid-template-columns:
            3rem
            1fr
            auto
            2rem;

        gap: 1.5rem;

        padding-top: 1.5rem;
    }

    .portfolio-project__type {
        display: block;

        color: #6a756f;

        font-family: var(--sans);
        font-size: .68rem;
        font-weight: 600;
        letter-spacing: .11em;

        text-transform: uppercase;
    }
    .portfolio-project__arrow {
        grid-column: 4;
    }
    .portfolio-project__number {
        font-size: 1.15rem;
    }

}


/* Desktop - 64rem+ */
@media (min-width: 64rem) {
    .portfolio-projects {
        padding:
            1rem
            5%
            9rem;
    }
    .portfolio-projects__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap:
            5rem
            3rem;
    }
    .portfolio-project {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .portfolio-project__image {
        aspect-ratio: 1.35 / 1;
    }
    .portfolio-project__title h2 {
        font-size: clamp(2rem, 2.3vw, 2.8rem);
    }
    .portfolio-project__link:hover
    .portfolio-project__image img {
        transform: scale(1.035);
    }
    .portfolio-project__link:hover
    .portfolio-project__arrow {
        transform:
            translate(.2rem, -.2rem);
    }
    .portfolio-project__number {
        font-size: 1.35rem;
    }

}


/* ========================================
   PORTFOLIO STATEMENT
========================================= */

/* Mobile - 0rem+ */

@media (min-width: 0rem) {

    .portfolio-statement {
        padding:
            6rem
            1.5rem;

        background: var(--cream-light);
    }

    .portfolio-statement__inner {
        max-width: 52rem;

        margin: 0 auto;

        text-align: center;
    }

    .portfolio-statement__quote {
        margin:
            0
            auto
            2rem;

        color: var(--forest);

        font-family: var(--serif);
        font-size: clamp(2.5rem, 10vw, 4rem);
        font-weight: 400;
        line-height: 1.05;
    }

}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .portfolio-statement {
        padding:
            8rem
            4rem;
    }

    .portfolio-statement__quote {
        font-size: clamp(3.2rem, 6vw, 4.5rem);
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .portfolio-statement {
        padding:
            10rem
            5%;
    }

    .portfolio-statement__inner {
        max-width: 65rem;
    }

    .portfolio-statement__quote {
        font-size: clamp(3.8rem, 4.5vw, 5.5rem);
    }

}


/* ========================================
   PORTFOLIO CTA
========================================= */

/* Mobile - 0rem+ */

@media (min-width: 0rem) {

    .portfolio-cta {
        padding:
            6rem
            1.5rem;

        color: var(--forest);
        background: var(--cream);

        text-align: center;
    }

    .portfolio-cta__inner {
        max-width: 48rem;

        margin: 0 auto;
    }

    .portfolio-cta .eyebrow {
        color: var(--forest);

        opacity: .75;
    }

    .portfolio-cta h2 {
        margin: 0;
        color: var(--forest);
        font-family: var(--serif);
        font-size: clamp(2.8rem, 11vw, 4.5rem);
        font-weight: 400;
        line-height: 1;
    }

    .portfolio-cta p:not(.eyebrow) {
        max-width: 33rem;

        margin:
            1.5rem
            auto
            2rem;

        color: #52605a;

        line-height: 1.7;
    }

    .portfolio-cta .button {
        white-space: nowrap;
    }

}


/* Tablet - 48rem+ */

@media (min-width: 48rem) {

    .portfolio-cta {
        padding:
            8rem
            4rem;
    }

    .portfolio-cta h2 {
        font-size: clamp(3.5rem, 6vw, 5rem);
    }

}


/* Desktop - 64rem+ */

@media (min-width: 64rem) {

    .portfolio-cta {
        padding:
            10rem
            5%;
    }

    .portfolio-cta h2 {
        font-size: clamp(4rem, 4.5vw, 5.5rem);
    }

}