.projects-page {
    background: #f6f8fb;
    color: #172033;
}

.projects-hero {
    padding: 170px 0 90px;
    background: linear-gradient(135deg, #071426 0%, #102c49 55%, #b62b32 140%);
    color: #fff;
}

.projects-hero .eyebrow {
    color: #ffb2ae;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.projects-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: .95;
    margin: 0 0 1.25rem;
}

.projects-hero p:not(.eyebrow) {
    max-width: 650px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #dce7f4;
    margin-bottom: 2rem;
}

.projects-main {
    padding-top: 54px;
    padding-bottom: 90px;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 52px;
}

.project-filter {
    border: 1px solid #d7dfe9;
    background: #fff;
    color: #263449;
    border-radius: 999px;
    padding: .7rem 1.1rem;
    cursor: pointer;
    font: inherit;
    transition: .2s ease;
}

.project-filter:hover,
.project-filter.active {
    border-color: #c33239;
    background: #c33239;
    color: #fff;
}

.project-category {
    margin-bottom: 68px;
    scroll-margin-top: 100px;
}

.project-category.is-hidden {
    display: none;
}

.project-category .section-header {
    margin-bottom: 22px;
}

.project-category h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 .35rem;
}

.project-category .section-header p {
    color: #64748b;
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.project-card {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(12, 30, 52, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(12, 30, 52, .16);
}

.project-card a {
    display: block;
    aspect-ratio: 4 / 3;
    background: #e8edf3;
}

.project-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-card figcaption {
    padding: 13px 15px 16px;
    color: #45556c;
    font-size: .86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 125px 0 64px;
    }

    .projects-main {
        padding-top: 34px;
        padding-bottom: 55px;
    }

    .project-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-right: -20px;
        padding-right: 20px;
    }

    .project-filter {
        flex: 0 0 auto;
        font-size: .88rem;
    }

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

    .project-card {
        border-radius: 11px;
    }

    .project-card figcaption {
        padding: 9px 10px 11px;
        font-size: .72rem;
    }
}
