﻿.projects-hero.about-hero {
    position: relative;
    background-color: var(--teal-bright);
    background-image: url('/Frontend/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 0;
    overflow: hidden;
}

.projects-hero .about-hero__inner {
    position: relative;
    z-index: 1;
}

.projects-hero .about-hero__title {
    max-width: 640px;
}

.projects-hero .about-hero__desc {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--white-80);
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.projects-hero .about-hero__badge {
    margin-bottom: 0;
}

@media (min-width: 900px) {
    .projects-hero.about-hero {
        padding: 5rem 0;
    }
}

/* ── Filter chips — individual freestanding pills, not one bounded bar ── */
.projects-listing {
    padding: 3.5rem 0 4.5rem;
    background: #EEF8F9
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}

.projects-filter__btn {
    background: var(--white);
    border: 1px solid rgba(9,19,24,0.12);
    border-radius: 9999px;
    padding: 0.65rem 1.2rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--grey);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

    .projects-filter__btn:hover {
        border-color: rgba(0,151,178,0.4);
    }

    .projects-filter__btn.is-active {
        background: var(--teal);
        border-color: var(--teal);
        color: var(--white);
    }

/* ── Grid — reuses .project-card, with page-specific overrides for a
   real photo, mixed-case title, and the location row. ── */
.projects-listing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

    .projects-listing__grid .project-card__photo {
        position: relative;
    }

        .projects-listing__grid .project-card__photo img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .projects-listing__grid .project-card__title {
        font-family: 'Roboto', sans-serif;
        text-transform: none;
        font-size: clamp(1.25rem, 3vw, 1.35rem);
        letter-spacing: -1.1px;
        font-weight: 700;
    }

    .projects-listing__grid .project-card__desc {
        margin-bottom: 1rem;
    }

    .projects-listing__grid .event-card__location {
        margin-bottom: 1.1rem;
    }

.project-card__link--details {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.projects-listing__empty {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    color: var(--grey);
    padding: 2.5rem 0;
}

@media (min-width: 640px) {
    .projects-listing__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .projects-listing__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Scorecard promo — audited PDF download ─────────────────────
   A white card floating on the page background, holding a decorative
   teal "scorecard" mockup on one side and the download CTA on the
   other. The mockup itself (polaroids + tilted document) is a CSS/SVG
   approximation of the reference artwork, not a literal image. */
.scorecard-promo {
    padding: 3.5rem 0 4.5rem;
    background: #EAF6F8;
}

.scorecard-promo__card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(9,19,24,0.08);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.scorecard-promo__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    max-height: 430px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--teal-bright), var(--teal));
    overflow: hidden;
}

    .scorecard-promo__visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s var(--ease);
    }

    .scorecard-promo__visual:hover img {
        transform: scale(1.05);
    }

.scorecard-promo__squiggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(255,255,255,0.22);
    stroke-width: 3;
    stroke-linecap: round;
}

.scorecard-promo__polaroid {
    position: absolute;
    width: 64px;
    height: 64px;
    padding: 5px 5px 10px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(9,19,24,0.18);
}

    .scorecard-promo__polaroid img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: linear-gradient(155deg, #2b2f31, #17191a);
    }

.scorecard-promo__polaroid--1 {
    top: 6%;
    left: -8%;
    transform: rotate(-12deg);
}

.scorecard-promo__polaroid--2 {
    bottom: 14%;
    left: -10%;
    transform: rotate(8deg);
}

.scorecard-promo__polaroid--3 {
    bottom: 4%;
    right: -8%;
    transform: rotate(-7deg);
}

.scorecard-promo__doc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 62%;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(9,19,24,0.28);
    padding: 0.9rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scorecard-promo__doc-brand {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.scorecard-promo__doc-kicker {
    font-family: 'Roboto', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--grey);
}

.scorecard-promo__doc-label {
    font-family: 'Gotham', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.3rem;
}

.scorecard-promo__doc-banner {
    display: block;
    width: 100%;
    background: var(--red);
    color: var(--white);
    font-family: 'Gotham', 'Montserrat', Arial, sans-serif;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    padding: 0.25rem 0;
    margin-bottom: 0.6rem;
}

.scorecard-promo__doc-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

    .scorecard-promo__doc-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: linear-gradient(155deg, #2b2f31, #17191a);
    }

.scorecard-promo__doc-caption {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: 0.58rem;
    color: #3E4750;
}

    .scorecard-promo__doc-caption strong {
        font-style: normal;
        color: var(--navy);
    }

.scorecard-promo__eyebrow {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.6rem;
}

.scorecard-promo__title {
    font-family: 'Gotham', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3.4vw, 1.85rem);
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 1.1rem;
}

.scorecard-promo__desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--grey);
    max-width: 46ch;
    margin-bottom: 1.75rem;
}

@media (min-width: 900px) {
    .scorecard-promo__card {
        grid-template-columns: 380px 1fr;
        gap: 3.5rem;
        padding: 3rem;
    }


    .scorecard-promo__visual {
        max-width: 380px;
        margin: 0;
    }
}

.projects-listing__grid .project-card.is-hidden {
    display: none !important;
}

/* ── BlurHash placeholder for project photos ── */
.projects-listing__grid .project-card__photo {
    overflow: hidden;
    background: #dfe9ea; /* fallback while both blur + image are loading */
}

.projects-listing__grid .project-card__blur-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-listing__grid .project-card__photo img {
    opacity: 0;
    transition: opacity .35s ease;
}

    .projects-listing__grid .project-card__photo img.is-loaded {
        opacity: 1;
    }
