/* =========================================================
   BRICKS & CLICKS
   PORTFOLIO PAGE
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --gold: #E5A11A;
    --gold-dark: #C9870D;

    --black: #0A0B0C;
    --ink: #111214;

    --white: #FFFFFF;
    --paper: #F7F7F5;

    --text: #55585B;
    --muted: #777;

    --line: #DEDEDE;

    --manrope: "Manrope", sans-serif;
    --dm: "DM Sans", sans-serif;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--paper);

    color: var(--ink);

    font-family: var(--dm);

    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   GLOBAL TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
    font-family: var(--manrope);
}

.eyebrow {

    display: inline-block;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    color: #6C6E70;
}

.eyebrow.gold {
    color: var(--gold);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    height: 96px;

    padding: 0 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(247,247,245,.97);

    border-bottom: 1px solid #e2e2e2;

    position: relative;

    z-index: 50;
}


/* LOGO */

.logo {
    width: 190px;
}

.logo-main {

    display: block;

    font-family: var(--manrope);

    font-size: 22px;

    line-height: 18px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo-sub {

    display: block;

    font-family: var(--manrope);

    font-size: 13px;

    font-weight: 800;

    color: var(--gold);

    letter-spacing: 1px;
}

.logo small {

    display: block;

    margin-top: 4px;

    font-size: 7px;

    color: #888;

    letter-spacing: 1.2px;
}


/* NAVIGATION */

.main-nav {

    display: flex;

    align-items: center;

    gap: 42px;
}

.main-nav a {

    position: relative;

    font-size: 10px;

    font-weight: 700;
}

.main-nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -10px;

    width: 0;

    height: 2px;

    background: var(--gold);

    transition: width .3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {

    width: 100%;
}


/* HEADER CTA */

.header-cta {

    padding: 17px 23px;

    background: var(--black);

    color: #fff;

    font-size: 10px;

    font-weight: 800;
}

.header-cta span {
    margin-left: 12px;
}


/* MOBILE MENU */

.menu-button {

    display: none;

    width: 30px;

    padding: 0;

    border: 0;

    background: transparent;
}

.menu-button span {

    display: block;

    height: 2px;

    width: 100%;

    margin: 5px 0;

    background: var(--black);
}


/* =========================================================
   PORTFOLIO HERO
========================================================= */

.portfolio-hero {

    min-height: 570px;

    padding: 100px 5vw 90px;

    display: grid;

    grid-template-columns: 18% 57% 25%;

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid var(--line);
}


/* GIANT BACKGROUND NUMBER */

.hero-bg-number {

    position: absolute;

    left: -5px;

    bottom: -90px;

    font-family: var(--manrope);

    font-size: clamp(300px, 35vw, 520px);

    font-weight: 800;

    line-height: .7;

    color: rgba(229,161,26,.075);

    pointer-events: none;
}


/* HERO CONTENT */

.portfolio-hero-content {

    position: relative;

    z-index: 2;
}

.portfolio-hero h1 {

    margin-top: 28px;

    font-size: clamp(72px, 8vw, 125px);

    line-height: .85;

    letter-spacing: -6px;
}

.portfolio-hero h1 span {

    color: var(--gold);
}

.portfolio-hero-content > p {

    max-width: 570px;

    margin-top: 40px;

    font-size: 16px;

    line-height: 1.75;

    color: var(--text);
}


/* HERO SIDE */

.hero-side {

    align-self: end;

    padding-left: 35px;

    margin-bottom: 8px;

    border-left: 1px solid var(--gold);
}

.hero-side > span {

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--gold);
}

.hero-side-line {

    width: 45px;

    height: 1px;

    margin-top: 18px;

    background: var(--gold);
}

.hero-side p {

    max-width: 240px;

    margin-top: 18px;

    font-size: 13px;

    line-height: 1.7;

    color: var(--text);
}


/* =========================================================
   PORTFOLIO CONTROLS
========================================================= */

.portfolio-controls {

    padding: 70px 5vw 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}


/* PROJECT COUNT */

.portfolio-count {

    display: flex;

    align-items: center;

    gap: 18px;
}

.portfolio-count span {

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #777;
}

.portfolio-count strong {

    color: var(--gold);

    font-family: var(--manrope);

    font-size: 20px;
}


/* FILTERS */

.portfolio-filters {

    display: flex;

    align-items: center;

    gap: 8px;
}

.filter {

    padding: 10px 15px;

    border: 1px solid transparent;

    background: transparent;

    color: #777;

    cursor: pointer;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

    transition: all .3s ease;
}

.filter:hover {

    color: var(--ink);
}

.filter.active {

    color: var(--ink);

    border-color: var(--gold);
}


/* =========================================================
   PORTFOLIO GRID
========================================================= */

.portfolio-grid {

    padding: 45px 5vw 130px;

    display: grid;

    grid-template-columns: repeat(12, 1fr);

    gap: 70px 20px;

    align-items: start;
}


/* =========================================================
   PORTFOLIO CARD
========================================================= */

.portfolio-card {

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.portfolio-card.hidden {

    opacity: 0;

    transform: translateY(20px);

    pointer-events: none;
}


/* GRID POSITIONS */

.portfolio-card:nth-child(1) {
    grid-column: span 7;
}

.portfolio-card:nth-child(2) {
    grid-column: span 5;

    margin-top: 100px;
}

.portfolio-card:nth-child(3) {
    grid-column: span 5;

    margin-top: 20px;
}

.portfolio-card:nth-child(4) {
    grid-column: span 7;

    margin-top: -80px;
}

.portfolio-card:nth-child(5) {
    grid-column: span 7;

    margin-top: 20px;
}

.portfolio-card:nth-child(6) {
    grid-column: span 5;

    margin-top: 120px;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {

    display: block;

    height: 560px;

    position: relative;

    overflow: hidden;

    background: #111;
}

.portfolio-card:nth-child(2) .project-image,
.portfolio-card:nth-child(3) .project-image,
.portfolio-card:nth-child(6) .project-image {

    height: 460px;
}

.portfolio-card:nth-child(4) .project-image,
.portfolio-card:nth-child(5) .project-image {

    height: 500px;
}


/* IMAGE */

.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 1s cubic-bezier(.2,.7,.2,1);
}

.portfolio-card:hover .project-image img {

    transform: scale(1.055);
}


/* IMAGE OVERLAY */

.project-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.15) 0%,
            rgba(0,0,0,.05) 40%,
            rgba(0,0,0,.7) 100%
        );

    opacity: .65;

    transition: opacity .5s ease;
}

.portfolio-card:hover .project-overlay {

    opacity: .85;
}


/* PROJECT NUMBER */

.project-number {

    position: absolute;

    top: 22px;

    left: 25px;

    font-family: var(--manrope);

    font-size: 70px;

    font-weight: 800;

    line-height: 1;

    color: rgba(255,255,255,.25);
}


/* VIEW */

.view-project {

    position: absolute;

    right: 25px;

    bottom: 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    color: #fff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;

    opacity: 0;

    transform: translateY(12px);

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.view-project b {

    width: 35px;

    height: 35px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 50%;

    font-size: 13px;

    font-weight: 400;
}

.portfolio-card:hover .view-project {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   PROJECT INFORMATION
========================================================= */

.project-info {

    padding-top: 22px;

    display: flex;

    justify-content: space-between;

    gap: 25px;

    border-bottom: 1px solid var(--line);

    padding-bottom: 22px;
}

.project-category {

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--gold);
}

.project-info h2 {

    margin-top: 8px;

    font-size: 23px;

    letter-spacing: -.8px;
}

.project-location {

    min-width: 130px;

    text-align: right;
}

.project-location span {

    display: block;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #aaa;
}

.project-location strong {

    display: block;

    margin-top: 6px;

    font-size: 9px;

    font-weight: 600;

    color: #666;
}


/* =========================================================
   PORTFOLIO STATEMENT
========================================================= */

.portfolio-statement {

    min-height: 550px;

    padding: 110px 5vw;

    position: relative;

    overflow: hidden;

    background: #fff;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


/* LARGE NUMBER */

.statement-number {

    position: absolute;

    right: -10px;

    bottom: -100px;

    font-family: var(--manrope);

    font-size: clamp(250px, 31vw, 480px);

    line-height: .7;

    font-weight: 800;

    color: rgba(229,161,26,.08);
}


/* STATEMENT */

.statement-content {

    position: relative;

    z-index: 2;

    max-width: 850px;
}

.statement-content h2 {

    margin-top: 28px;

    font-size: clamp(58px, 6.5vw, 100px);

    line-height: .88;

    letter-spacing: -5px;
}

.statement-content h2 span {

    color: var(--gold);
}

.statement-content p {

    max-width: 570px;

    margin-top: 40px;

    font-size: 15px;

    line-height: 1.8;

    color: var(--text);
}


/* =========================================================
   FEATURED PROJECT
========================================================= */

.featured-project {

    min-height: 650px;

    display: grid;

    grid-template-columns: 60% 40%;

    background: var(--black);
}


/* IMAGE */

.featured-image {

    min-height: 650px;

    position: relative;

    overflow: hidden;
}

.featured-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 1s ease;
}

.featured-project:hover .featured-image img {

    transform: scale(1.035);
}

.featured-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0),
            rgba(0,0,0,.5)
        );
}


/* CONTENT */

.featured-content {

    padding: 100px 7vw;

    display: flex;

    flex-direction: column;

    justify-content: center;

    color: #fff;
}

.featured-content h2 {

    margin-top: 28px;

    font-size: clamp(48px, 5vw, 75px);

    line-height: .9;

    letter-spacing: -4px;
}

.featured-content h2 span {

    color: var(--gold);
}

.featured-content .gold-line {

    width: 75px;

    height: 2px;

    margin: 35px 0;

    background: var(--gold);
}

.featured-content p {

    max-width: 410px;

    font-size: 13px;

    line-height: 1.8;

    color: #aaa;
}


/* FEATURED LINK */

.featured-link {

    width: max-content;

    margin-top: 38px;

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.featured-link span {

    width: 38px;

    height: 38px;

    border: 1px solid #555;

    border-radius: 50%;

    display: grid;

    place-items: center;

    transition: all .3s ease;
}

.featured-link:hover span {

    background: var(--gold);

    border-color: var(--gold);

    color: var(--black);
}


/* =========================================================
   CTA
========================================================= */

.portfolio-cta {

    min-height: 560px;

    padding: 110px 5vw;

    position: relative;

    overflow: hidden;

    background: var(--gold);
}

.cta-number {

    position: absolute;

    right: -20px;

    bottom: -100px;

    font-family: var(--manrope);

    font-size: 430px;

    font-weight: 800;

    line-height: .7;

    color: rgba(0,0,0,.08);
}

.portfolio-cta h2 {

    position: relative;

    z-index: 2;

    margin-top: 35px;

    max-width: 900px;

    font-size: clamp(60px, 7vw, 110px);

    line-height: .87;

    letter-spacing: -6px;
}

.portfolio-cta h2 span {

    color: #fff;
}


/* CTA BUTTON */

.cta-button {

    position: relative;

    z-index: 3;

    margin-top: 50px;

    padding: 18px 24px;

    display: inline-flex;

    align-items: center;

    gap: 25px;

    background: var(--black);

    color: #fff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}

.cta-button span {
    font-size: 15px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    min-height: 75px;

    padding: 0 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--black);

    color: #666;

    font-size: 8px;

    letter-spacing: .5px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 22px;
    }

    .portfolio-hero {

        grid-template-columns: 10% 65% 25%;
    }

    .portfolio-grid {

        gap: 55px 15px;
    }

    .project-image {

        height: 450px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .site-header {

        height: 76px;

        padding: 0 6vw;
    }

    .logo {
        width: 150px;
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 11px;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-button {
        display: block;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .portfolio-hero {

        min-height: auto;

        padding: 75px 7vw 80px;

        display: block;
    }

    .hero-bg-number {

        left: -20px;

        bottom: -35px;

        font-size: 240px;
    }

    .portfolio-hero h1 {

        margin-top: 22px;

        font-size: 58px;

        line-height: .88;

        letter-spacing: -3px;
    }

    .portfolio-hero-content > p {

        margin-top: 30px;

        font-size: 14px;
    }

    .hero-side {

        margin-top: 50px;

        padding-left: 18px;
    }


    /* -----------------------------------------------------
       CONTROLS
    ----------------------------------------------------- */

    .portfolio-controls {

        padding: 45px 7vw 20px;

        display: block;
    }

    .portfolio-filters {

        margin-top: 25px;

        display: flex;

        gap: 7px;

        overflow-x: auto;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .filter {

        flex: 0 0 auto;

        padding: 9px 12px;

        font-size: 7px;
    }


    /* -----------------------------------------------------
       GRID
    ----------------------------------------------------- */

    .portfolio-grid {

        padding: 30px 7vw 90px;

        display: block;
    }

    .portfolio-card,
    .portfolio-card:nth-child(n) {

        margin: 0 0 65px;
    }

    .project-image,
    .portfolio-card:nth-child(2) .project-image,
    .portfolio-card:nth-child(3) .project-image,
    .portfolio-card:nth-child(4) .project-image,
    .portfolio-card:nth-child(5) .project-image,
    .portfolio-card:nth-child(6) .project-image {

        height: 390px;
    }

    .project-number {

        font-size: 55px;

        top: 15px;

        left: 18px;
    }

    .view-project {

        opacity: 1;

        transform: none;

        right: 18px;

        bottom: 18px;
    }

    .project-info {

        display: block;

        padding-top: 17px;

        padding-bottom: 18px;
    }

    .project-info h2 {

        font-size: 20px;
    }

    .project-location {

        margin-top: 15px;

        text-align: left;
    }


    /* -----------------------------------------------------
       STATEMENT
    ----------------------------------------------------- */

    .portfolio-statement {

        min-height: 500px;

        padding: 80px 7vw;
    }

    .statement-content h2 {

        font-size: 53px;

        letter-spacing: -3px;
    }

    .statement-content p {

        margin-top: 30px;

        font-size: 13px;
    }

    .statement-number {

        font-size: 240px;

        bottom: -40px;
    }


    /* -----------------------------------------------------
       FEATURED PROJECT
    ----------------------------------------------------- */

    .featured-project {

        display: flex;

        flex-direction: column;
    }

    .featured-image {

        min-height: 400px;
    }

    .featured-content {

        padding: 75px 7vw;
    }

    .featured-content h2 {

        font-size: 49px;

        letter-spacing: -3px;
    }


    /* -----------------------------------------------------
       CTA
    ----------------------------------------------------- */

    .portfolio-cta {

        min-height: 500px;

        padding: 80px 7vw;
    }

    .portfolio-cta h2 {

        font-size: 57px;

        letter-spacing: -3px;
    }

    .cta-number {

        font-size: 260px;

        bottom: -50px;
    }


    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .site-footer {

        min-height: 90px;

        padding: 20px 7vw;

        display: block;
    }

    .site-footer div + div {

        margin-top: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .portfolio-hero h1 {
        font-size: 52px;
    }

    .statement-content h2 {
        font-size: 47px;
    }

    .featured-content h2 {
        font-size: 45px;
    }

    .portfolio-cta h2 {
        font-size: 50px;
    }

}