/* =========================================================
   PROJECTS PAGE — extends style.css tokens
========================================================= */

/* ===== HERO ===== */
.proj-hero {
    background: var(--onyx);
    padding: 170px 0 70px;
    
}


.proj-hero-inner h1 {
    font-family: var(--primary);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    font-size: 74px;
}

.proj-hero-inner h1 .line2 {
    color: var(--terracotta);
    font-weight: 800;
}

.proj-hero-stats {
    margin-top: 28px;
    font-family: var(--tertiary);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(232, 236, 229, 0.55);
}


.proj-hero-stats .stat-dot {
    display: inline-block;
    margin: 0 var(--content-gap);
    color:var(--dark-terracotta);
}

/* ===== GRID SECTION ===== */
.proj-grid-section {
    background: var(--white);
    padding: var(--extra-large-section-padding);
}

.proj-grid-head {
    max-width: 620px;
    margin-bottom: 40px;
}

.proj-grid-head h2 {
    font-family: var(--secondary);
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--onyx);
    margin: var(--content-gap) 0;
}

.proj-grid-head h2 .fade {
    color: var(--terracotta);
}

.proj-grid-head p {
    font-size: 14px;
    color: rgba(32, 33, 31, 0.68);
}

.proj-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
}

.proj-card {
    display: flex;
    flex-direction: column;
    max-height: 550px;
    width: 100%;
    gap: 20px;
    position: relative;
}

.proj-photo {
    width: 100%;
    background: var(--cream);
    border: 1px dashed rgba(30, 33, 26, 0.25);
}
.proj-photo-add {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(32, 33, 31, 0.35);
    overflow: hidden;
}

.proj-photo-add img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Bottom dark gradient */
.proj-photo-add::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.20) 70%,
        rgba(0, 0, 0, 0.05) 100%
    );

    z-index: 1;
    pointer-events: none;
}

.proj-meta {
    position: absolute;
    left: 0;
    bottom: 50%;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 calc(var(--content-gap) *8);
}

.proj-meta h3 {
    font-family: var(--secondary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
}

.proj-tags {
    font-size: 15px;
    letter-spacing: 0.3px;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}
/* ===== CTA BAND ===== */
.proj-cta {
    background: color-mix(in srgb, var(--onyx) 85%, transparent);
    padding: 70px 0;
}

.proj-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.proj-cta-copy .eyebrow {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.proj-cta-copy h2 {
    font-family: var(--secondary);
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
}



/* =========================================================
   PROJECTS PAGE — RESPONSIVE CSS
   Tablet: 769px - 1024px
   Mobile: 0px - 768px
========================================================= */


/* =========================================================
   TABLET
   769px — 1024px
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

    /* =====================================================
       HERO
    ===================================================== */

    .proj-hero {
        padding: 140px 30px 60px;
        min-height: auto;
    }

    .proj-hero-inner {
        width: 100%;
        max-width: 100%;
    }

    .proj-hero-inner h1 {
        font-size: clamp(52px, 7vw, 68px);
        line-height: 1;
        text-align: center;
    }

    .proj-hero-inner h1 .line2 {
        font-size: inherit;
    }

    .proj-hero-stats {
        margin-top: 24px;
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }

    .proj-hero-stats .stat-dot {
        margin: 0 10px;
    }


    /* =====================================================
       GRID SECTION
    ===================================================== */

    .proj-grid-section {
        padding: 80px 30px;
    }

    .proj-grid-head {
        max-width: 650px;
        margin-bottom: 45px;
    }

    .proj-grid-head h2 {
        font-size: 24px;
        line-height: 1.1;
    }

    .proj-grid-head p {
        font-size: 14px;
    }


    /* =====================================================
       PROJECT GRID
    ===================================================== */

    .proj-grid {
        grid-template-rows: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }


    /* =====================================================
       PROJECT CARD
    ===================================================== */

    .proj-card {
        width: 100%;
        max-height: none;
        gap: 15px;
    }


    /* =====================================================
       PROJECT PHOTO
    ===================================================== */

    .proj-photo {
        width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .proj-photo-add {
        width: 100%;
        height: 100%;
    }

    .proj-photo-add img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* =====================================================
       PROJECT META
    ===================================================== */

    .proj-meta {
        left: 0;
        bottom: 50%;
        width: 100%;
        padding: 0 25px;

        gap: 20px;
        align-items: center;
    }

    .proj-meta h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    .proj-tags {
        font-size: 12px;
        line-height: 1.3;
        text-align: right;
    }


    /* =====================================================
       CTA
    ===================================================== */

    .proj-cta {
        padding: 60px 30px;
    }

    .proj-cta-wrap {
        gap: 30px;
    }

    .proj-cta-copy h2 {
        font-size: 34px;
        line-height: 1.1;
    }

}


/* =========================================================
   MOBILE
   0px — 768px
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       HERO
    ===================================================== */

    .proj-hero {
        padding: 120px 20px 50px;
        min-height: auto;
    }

    .proj-hero-inner {
        width: 100%;
    }

    .proj-hero-inner h1 {
        font-size: clamp(42px, 12vw, 58px);
        line-height: 0.95;
        letter-spacing: -1px;
         text-align: center;
    }

    .proj-hero-inner h1 .line2 {
        font-size: inherit;
    }

    .proj-hero-stats {
        margin-top: 22px;
        font-size: 11px;
        line-height: 1.8;
        letter-spacing: 0.7px;
        text-align: center;
    }

    .proj-hero-stats .stat-dot {
        margin: 0 7px;
    }


    /* =====================================================
       GRID SECTION
    ===================================================== */

    .proj-grid-section {
        padding: 60px 20px;
    }

    .proj-grid-head {
        width: 100%;
        max-width: none;
        margin-bottom: 35px;
    }

    .proj-grid-head h2 {
        font-size: 30px;
        line-height: 1.05;
        margin: 15px 0;
        text-align: center;
    }

    .proj-grid-head p {
        font-size: 12px;
        text-align: center;
    }


    /* =====================================================
       PROJECT GRID
    ===================================================== */

    .proj-grid {
        display: grid;

        /* One project per row */
        grid-template-columns: 1fr;
        grid-template-rows: none;

        gap: 35px;
    }


    /* =====================================================
       PROJECT CARD
    ===================================================== */

    .proj-card {
        width: 100%;
        max-height: none;
        gap: 15px;
    }


    /* =====================================================
       PROJECT PHOTO
    ===================================================== */

    .proj-photo {
        width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .proj-photo-add {
        width: 100%;
        height: 100%;
    }

    .proj-photo-add img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }


    /* =====================================================
       IMAGE OVERLAY
    ===================================================== */

    .proj-photo-add::before {
        height: 100%;

        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.45) 40%,
            rgba(0, 0, 0, 0.15) 75%,
            rgba(0, 0, 0, 0.05) 100%
        );
    }


    /* =====================================================
       PROJECT META
    ===================================================== */

    .proj-meta {
        left: 0;
        bottom: auto;
        top: 25px;

        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: flex-start;
        justify-content: flex-start;

        gap: 8px;

        padding: 0 20px;
    }

    .proj-meta h3 {
        font-size: 13px;
        line-height: 1.3;
        letter-spacing: 0.5px;
    }

    .proj-tags {
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0.5px;

        margin-bottom: 0;

        text-align: left;
    }


    /* =====================================================
       CTA BAND
    ===================================================== */

    .proj-cta {
        padding: 55px 20px;
    }

    .proj-cta-wrap {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content:center;

        gap: 25px;
    }

    .proj-cta-copy {
        width: 100%;
    }

    .proj-cta-copy .eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        text-align: center;
    }

    .proj-cta-copy h2 {
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.05;
        text-align: center;
    }

}

