.projects-hero {
    background: var(--page);
    padding: 1.15rem 1rem 1.75rem;
    width: var(--wrap);
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.projects-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.projects-lead {
    color: #64748b;
    margin: 0.75rem auto 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: normal;
}

.projects-lead::before {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--blue);
    margin: 12px auto 14px;
}

.projects-highlights {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    list-style: none;
    margin: 1.85rem 0 0;
    padding: 0;
}

.projects-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1.85rem;
    min-width: 10.5rem;
}

.projects-highlight + .projects-highlight {
    border-inline-start: 1px solid #e2e8f0;
}

.projects-highlight i {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.projects-highlight span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--navy-text, #0f172a);
    text-align: center;
    line-height: 1.35;
}

.project-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.project-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: var(--paper);
    color: var(--navy-text, #0f172a);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.project-filter-chip.is-active,
.project-filter-chip:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #eff6ff;
}

.projects-listing {
    padding: 0 0 3.5rem;
}

.projects-listing .insight-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

@media (max-width: 700px) {
    .projects-hero h1 {
        font-size: 1.85rem;
    }

    .projects-highlight {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.35rem 0.45rem;
        gap: 0.4rem;
    }

    .projects-highlight i {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.95rem;
    }

    .projects-highlight span {
        font-size: 0.68rem;
        letter-spacing: 0.02em;
    }
}

[data-theme="dark"] .project-filter-chip {
    background: var(--paper);
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .project-filter-chip.is-active,
[data-theme="dark"] .project-filter-chip:hover {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .projects-highlight + .projects-highlight {
    border-color: #334155;
}

[data-theme="dark"] .projects-highlight i {
    background: rgba(59, 130, 246, 0.15);
    color: #7dd3fc;
}

[data-theme="dark"] .projects-highlight span {
    color: #e2e8f0;
}
