/*
============================================================
PROJECTS PAGE
============================================================

All styles specific to projects.html are kept in this file.

Shared website styles such as:

- .wrap
- .site-header
- .main-navigation
- .site-footer
- .menu-button

should remain in css/site.css.

The page is organised in the same order as the HTML:

1. Shared small elements
2. Introduction
3. Featured projects
4. Image layouts
5. Everyday work
6. Sign-off
7. Responsive rules
============================================================
*/


/* =========================================================
   1. SHARED SMALL ELEMENTS
   ========================================================= */

.eyebrow {
    margin: 0 0 1.4rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.55;
}


.project-number {
    margin: 0;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    opacity: 0.42;
}


.project-category {
    margin: 1.4rem 0 0.85rem;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    opacity: 0.58;
}



/* =========================================================
   2. PAGE INTRODUCTION
   ========================================================= */

.projects-introduction {
    padding:
        clamp(5rem, 11vw, 10rem)
        0
        clamp(5rem, 9vw, 8rem);
}


.projects-introduction-inner {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(320px, 1.1fr);

    gap: clamp(3rem, 9vw, 9rem);
    align-items: end;
}


.projects-introduction h1 {
    margin: 0;

    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
}


.projects-lead {
    max-width: 38rem;
    margin: 0;

    font-size: clamp(1.35rem, 2.6vw, 2.2rem);
    line-height: 1.38;
    letter-spacing: -0.025em;
}



/* =========================================================
   3. FEATURED PROJECTS
   ========================================================= */

.featured-project {
    padding:
        clamp(5rem, 9vw, 8rem)
        0;
}


.featured-project + .featured-project {
    border-top: 1px solid rgba(20, 30, 25, 0.12);
}


.project-section-tinted {
    background: #f2f3ef;
}


.project-section-dark {
    background: #17251e;
    color: #f4f5f1;
}


.project-details {
    display: grid;
    grid-template-columns:
        minmax(240px, 0.82fr)
        minmax(320px, 1.18fr);

    gap: clamp(3rem, 8vw, 8rem);

    padding-top: clamp(2.75rem, 6vw, 5rem);
}


.project-details-light {
    padding-top: 0;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}


.project-heading h2 {
    max-width: 10ch;
    margin: 0;

    font-size: clamp(2.7rem, 5.8vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}


.project-copy {
    max-width: 43rem;
}


.project-copy p {
    margin:
        0
        0
        clamp(1.3rem, 2.4vw, 1.9rem);

    font-size: clamp(1.03rem, 1.55vw, 1.25rem);
    line-height: 1.72;

    opacity: 0.76;
}


.project-copy .project-summary {
    margin-bottom: 0;

    font-weight: 650;

    opacity: 1;
}



/* =========================================================
   4. PROJECT IMAGE LAYOUTS
   ========================================================= */

.project-image {
    position: relative;

    min-width: 0;
    margin: 0;

    overflow: hidden;

    border-radius: clamp(0.9rem, 1.7vw, 1.5rem);

    background: rgba(120, 130, 125, 0.12);
}


.project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.project-image figcaption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;

    padding: 0.45rem 0.7rem;

    border-radius: 999px;

    background: rgba(15, 20, 17, 0.74);
    color: #ffffff;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}


.project-image-wide {
    aspect-ratio: 2.4 / 1;
}


.project-gallery {
    display: grid;

    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}


.project-gallery-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


.project-gallery-three .project-image {
    aspect-ratio: 4 / 5;
}


.project-gallery-feature {
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(0, 0.75fr);

    grid-template-rows: repeat(2, minmax(0, 1fr));
}


.project-gallery-feature .project-image {
    min-height: 0;
}


.project-gallery-feature .project-image-main {
    grid-row: 1 / 3;

    aspect-ratio: 1.2 / 1;
}


.project-gallery-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


.project-gallery-two .project-image {
    aspect-ratio: 1.15 / 1;
}



/* =========================================================
   5. EVERYDAY WORK
   ========================================================= */

.everyday-work {
    padding:
        clamp(5rem, 10vw, 9rem)
        0;

    background: #f2f3ef;
}


.everyday-heading {
    display: grid;
    grid-template-columns:
        minmax(250px, 0.9fr)
        minmax(320px, 1.1fr);

    gap:
        1rem
        clamp(3rem, 8vw, 8rem);

    margin-bottom: clamp(3rem, 7vw, 6rem);
}


.everyday-heading .eyebrow {
    grid-column: 1 / -1;
}


.everyday-heading h2 {
    max-width: 11ch;
    margin: 0;

    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}


.everyday-heading > p:last-child {
    max-width: 38rem;
    margin: 0;

    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.7;

    opacity: 0.72;
}


.everyday-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap:
        clamp(1.75rem, 3vw, 3rem)
        clamp(0.9rem, 1.8vw, 1.5rem);
}


.everyday-item {
    min-width: 0;
    margin: 0;
}


.everyday-item img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: clamp(0.75rem, 1.4vw, 1.15rem);

    background: rgba(120, 130, 125, 0.12);
}


.everyday-item figcaption {
    padding: 1rem 0.15rem 0;

    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
}



/* =========================================================
   6. PAGE SIGN-OFF
   ========================================================= */

.projects-signoff {
    padding:
        clamp(4.5rem, 9vw, 8rem)
        0;
}


.projects-signoff-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 3rem;
}


.projects-signoff p {
    margin: 0;

    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.055em;
}


.text-link {
    display: inline-flex;
    align-items: center;

    gap: 1rem;

    padding-bottom: 0.3rem;

    border-bottom: 1px solid currentColor;

    color: inherit;

    font-weight: 700;
    text-decoration: none;
}



/* =========================================================
   7. RESPONSIVE RULES
   ========================================================= */

@media (max-width: 850px) {

    .projects-introduction-inner,
    .project-details,
    .everyday-heading {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }


    .project-gallery-three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .project-gallery-three .project-image:first-child {
        grid-column: 1 / -1;

        aspect-ratio: 16 / 9;
    }


    .everyday-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .projects-signoff-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 600px) {

    .project-image-wide {
        aspect-ratio: 1.25 / 1;
    }


    .project-gallery-three,
    .project-gallery-two,
    .project-gallery-feature {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }


    .project-gallery-three .project-image:first-child,
    .project-gallery-feature .project-image-main {
        grid-column: auto;
        grid-row: auto;

        aspect-ratio: 4 / 3;
    }


    .project-gallery-three .project-image,
    .project-gallery-two .project-image,
    .project-gallery-feature .project-image {
        aspect-ratio: 4 / 3;
    }


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

}
