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

.projects-page {
    width: 100%;

    overflow: hidden;

    background: #ffffff;

    color: var(--color-charcoal);
}


/* =========================================================
   PAGE INTRO
========================================================= */

.projects-intro-section {
    padding: 62px 0 42px;

    background: #ffffff;
}


.projects-page-heading {
    max-width: 1000px;

    margin: 0 auto;

    text-align: center;
}


.projects-eyebrow {
    margin: 0 0 14px;

    color: #66666e;

    font-size: 14px;
    font-weight: 500;

    letter-spacing: 0.04em;
}


.projects-page-heading h1 {
    margin: 0;

    color: #111116;

    font-family: var(--font-heading);

    font-size: clamp(48px, 5vw, 78px);
    font-weight: 600;

    letter-spacing: -0.055em;
    line-height: 0.95;
}


.projects-page-heading h1 span {
    color: var(--color-indigo);
}


.projects-intro-text {
    max-width: 720px;

    margin: 20px auto 0;

    color: #55555e;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   FEATURED PROJECT
========================================================= */

.featured-project-section {
    padding: 0 0 65px;

    background: #ffffff;
}


.featured-project {
    width: 100%;
}


.featured-project-media {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    border-radius: 12px;

    aspect-ratio: 16 / 7;

    background: #111116;

    text-decoration: none;
}


/* Featured image */

.featured-project-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.75s cubic-bezier(.2, .7, .2, 1);
}


/* Overlay */

.featured-project-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(5, 5, 10, 0.05) 20%,
            rgba(5, 5, 10, 0.22) 55%,
            rgba(5, 5, 10, 0.78) 100%
        );

    transition: background 0.35s ease;
}


/* Featured text */

.featured-project-content {
    position: absolute;

    right: 34px;
    bottom: 32px;
    left: 34px;

    z-index: 2;

    color: #ffffff;
}


.featured-project-label {
    display: block;

    margin-bottom: 11px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.featured-project-content h2 {
    max-width: 900px;

    margin: 0;

    color: #ffffff;

    font-family: var(--font-heading);

    font-size: clamp(40px, 4.5vw, 68px);
    font-weight: 600;

    letter-spacing: -0.05em;
    line-height: 0.95;
}


.featured-project-content p {
    margin: 9px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
}


/* Featured hover */

@media (hover: hover) and (pointer: fine) {

    .featured-project-media:hover img {
        transform: scale(1.025);
    }

    .featured-project-media:hover
    .featured-project-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(5, 5, 10, 0.08) 20%,
                rgba(5, 5, 10, 0.30) 55%,
                rgba(5, 5, 10, 0.84) 100%
            );
    }

}


/* =========================================================
   PROJECT LISTING
========================================================= */

.projects-listing-section {
    padding: 62px 0 80px;

    background: #1d1c22;

    color: #ffffff;
}


/* Heading */

.projects-listing-heading {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 900px;
    margin: 0 auto 55px;

    text-align: center;
}

.projects-listing-heading .section-kicker {
    margin: 0 0 16px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.projects-listing-heading h2 {
    margin: 0;

    color: var(--color-white);

    font-family: var(--font-heading);
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 500;

    letter-spacing: -0.05em;
    line-height: 1;
}

.projects-listing-heading h2 span {
    color: var(--color-indigo);
}

.projects-listing-description {
    max-width: 720px;

    margin: 22px auto 0;

    color: rgba(255, 255, 255, 0.7);

    font-size: 16px;
    line-height: 1.6;

    text-align: center;
}


.projects-listing-heading > p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.70);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.projects-portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/*
    The reusable project-card component already
    contains all card styling and hover behaviour.
*/

.projects-portfolio-grid .project-card {
    min-width: 0;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.project-image-placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    background: #17171d;

    color: #ffffff;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.projects-empty-section {
    padding: 80px 0 100px;

    background: #ffffff;
}


.projects-empty {
    padding: 60px 20px;

    border-radius: 12px;

    background: #f3f1ec;

    text-align: center;
}


.projects-empty p {
    margin: 0;

    color: #66666e;

    font-size: 14px;
}


/* =========================================================
   LARGE TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 1199px) {

    .featured-project-media {
        aspect-ratio: 16 / 8;
    }


    .projects-portfolio-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


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

@media (max-width: 1200px) {

    .projects-portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 991px) {

    .projects-intro-section {
        padding: 55px 0 38px;
    }


    .featured-project-section {
        padding-bottom: 55px;
    }


    .featured-project-content {
        right: 26px;
        bottom: 25px;
        left: 26px;
    }


    .projects-listing-section {
        padding: 55px 0 65px;
    }


    .projects-listing-heading {
        grid-template-columns: 1fr;

        gap: 20px;
    }


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

}


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

@media (max-width: 767px) {

    /* Intro */

    .projects-intro-section {
        padding: 45px 0 32px;
    }


    .projects-page-heading {
        text-align: left;
    }


    .projects-page-heading h1 {
        font-size: clamp(42px, 12vw, 58px);
    }


    .projects-intro-text {
        max-width: 100%;

        margin: 16px 0 0;

        font-size: 13px;
    }


    /* Featured */

    .featured-project-section {
        padding-bottom: 45px;
    }


    .featured-project-media {
        border-radius: 10px;

        aspect-ratio: 4 / 3;
    }


    .featured-project-content {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }


    .featured-project-label {
        font-size: 9px;
    }


    .featured-project-content h2 {
        font-size: clamp(32px, 9vw, 44px);
    }


    .featured-project-content p {
        font-size: 12px;
    }


    /* Listing */

    .projects-listing-section {
        padding: 48px 0 55px;
    }


    .projects-listing-heading {
        margin-bottom: 27px;
    }


    .projects-listing-heading h2 {
        font-size: 38px;
    }


    .projects-listing-heading > p {
        font-size: 13px;
    }


    .projects-portfolio-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

}

@media (max-width: 575px) {

    .projects-listing-heading {
        margin-bottom: 35px;
    }

    .projects-listing-heading h2 {
        font-size: 44px;
    }

    .projects-listing-description {
        font-size: 14px;
    }

    .projects-portfolio-grid {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 480px) {

    .projects-page-heading h1 {
        font-size: 42px;
    }


    .featured-project-media {
        aspect-ratio: 1 / 1;
    }


    .featured-project-content h2 {
        font-size: 32px;
    }

}