.brightloop-work-section {
    padding: 94px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.brightloop-work-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 34px;
}

.brightloop-work-header > div:first-child {
    max-width: 670px;
}

.brightloop-work-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #246bfe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.brightloop-work-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #246bfe;
}

.brightloop-work-header h2 {
    margin: 0;
    color: #071936;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.brightloop-work-header p {
    max-width: 610px;
    margin: 16px 0 0;
    color: #536985;
    font-size: 16px;
    line-height: 1.72;
}

.brightloop-work-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    min-width: 330px;
}

.brightloop-work-filters button {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(18, 44, 78, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #536985;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.brightloop-work-filters button:hover,
.brightloop-work-filters button.active {
    border-color: transparent;
    background: linear-gradient(100deg, #246bfe 0%, #16c2cf 74%, #d8b54c 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

.brightloop-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 18px;
}

.brightloop-work-stack {
    display: grid;
    gap: 18px;
}

.brightloop-project-card,
.brightloop-slim-project {
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.brightloop-project-card.is-hidden,
.brightloop-slim-project.is-hidden {
    display: none;
}

.brightloop-project-card a,
.brightloop-slim-project a {
    color: inherit;
}

.brightloop-project-card {
    overflow: hidden;
    border: 1px solid rgba(18, 44, 78, 0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(28, 72, 116, 0.1);
}

.brightloop-project-card a {
    position: relative;
    display: block;
    height: 100%;
}

.brightloop-project-card .project-image {
    overflow: hidden;
    background: #dbe9f4;
}

.brightloop-project-card .project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.brightloop-project-card:hover .project-image img {
    transform: scale(1.04);
}

.brightloop-project-card.featured .project-image {
    height: 410px;
}

.brightloop-project-card.medium .project-image {
    height: 176px;
}

.brightloop-project-card .project-content {
    padding: 22px;
}

.brightloop-project-card.featured .project-content {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    min-height: 166px;
}

.project-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #246bfe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.brightloop-project-card h3 {
    margin: 0;
    color: #071936;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.18;
}

.brightloop-project-card.featured h3 {
    font-size: 34px;
}

.brightloop-project-card p {
    margin: 10px 0 0;
    color: #536985;
    font-size: 15px;
    line-height: 1.62;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.brightloop-project-card.featured .project-meta {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-top: 0;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #246bfe;
    font-size: 12px;
    font-weight: 800;
}

.project-result {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #071936;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(28, 72, 116, 0.16);
}

.project-arrow {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(7, 25, 54, 0.86);
    color: #ffffff;
    font-size: 15px;
    transition: background 0.22s ease, transform 0.22s ease;
}

.brightloop-project-card:hover .project-arrow {
    background: #246bfe;
    transform: translate(2px, -2px);
}

.brightloop-work-slim {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.brightloop-slim-project a {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 14px;
    border: 1px solid rgba(18, 44, 78, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(28, 72, 116, 0.08);
}

.brightloop-slim-project img {
    width: 86px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
}

.brightloop-slim-project strong {
    display: block;
    color: #071936;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.32;
}

.brightloop-slim-project span {
    display: block;
    margin-top: 5px;
    color: #637894;
    font-size: 13px;
    font-weight: 700;
}

.brightloop-slim-project i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef6ff;
    color: #246bfe;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.brightloop-slim-project:hover i {
    background: #246bfe;
    color: #ffffff;
    transform: translateX(2px);
}

@media (max-width: 1199px) {
    .brightloop-work-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .brightloop-work-filters {
        justify-content: flex-start;
        min-width: 0;
    }

    .brightloop-work-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .brightloop-work-section {
        padding: 66px 0;
    }

    .brightloop-work-header h2 {
        font-size: 34px;
    }

    .brightloop-work-filters {
        gap: 7px;
    }

    .brightloop-work-filters button {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .brightloop-work-stack,
    .brightloop-work-slim {
        grid-template-columns: 1fr;
    }

    .brightloop-project-card.featured .project-image {
        height: 260px;
    }

    .brightloop-project-card.medium .project-image {
        height: 220px;
    }

    .brightloop-project-card.featured .project-content {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .brightloop-project-card.featured h3 {
        font-size: 27px;
    }

    .brightloop-project-card.featured .project-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .brightloop-slim-project a {
        grid-template-columns: 72px minmax(0, 1fr) 30px;
        gap: 11px;
        padding: 12px;
    }

    .brightloop-slim-project img {
        width: 72px;
        height: 66px;
    }

    .brightloop-slim-project strong {
        font-size: 14px;
    }

    .brightloop-slim-project i {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
