.ec-work-page {
    --ec-green: #0d3028;
    --ec-green-soft: #2f6f5f;
    --ec-lime: #e7ec3b;
    --ec-cream: #fbfcf6;
    --ec-line: #dfe8dc;
    --ec-muted: #5f6c67;
    --ec-white: #ffffff;
    color: var(--ec-green);
    font-family: inherit;
    margin: 0 auto;
    max-width: 1240px;
    padding: clamp(28px, 5vw, 72px) 20px;
}

.ec-work-page * {
    box-sizing: border-box;
}

.ec-work-hero {
    background: var(--ec-cream);
    border: 1px solid rgba(13, 48, 40, 0.08);
    border-radius: 0 0 56px 56px;
    margin: 0 0 clamp(28px, 5vw, 56px);
    padding: clamp(40px, 8vw, 92px) clamp(20px, 6vw, 72px);
    text-align: center;
}

.ec-work-kicker,
.ec-work-cta-kicker {
    color: var(--ec-green-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.ec-work-hero h1 {
    color: var(--ec-green);
    font-size: clamp(2.35rem, 5.6vw, 5.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 auto;
    max-width: 980px;
}

.ec-work-subheading {
    color: var(--ec-muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
    margin: 26px auto 0;
    max-width: 1020px;
}

.ec-work-filters {
    display: grid;
    gap: 18px;
    margin: 0 0 22px;
}

.ec-work-filter-row {
    align-items: start;
    border-bottom: 1px solid var(--ec-line);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(130px, 0.18fr) 1fr;
    padding-bottom: 18px;
}

.ec-work-filter-label {
    color: var(--ec-green);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    padding-top: 10px;
}

.ec-work-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ec-work-filter {
    appearance: none;
    background: var(--ec-white);
    border: 1px solid rgba(13, 48, 40, 0.22);
    border-radius: 999px;
    color: var(--ec-green);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    min-height: 42px;
    padding: 11px 16px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ec-work-filter:hover,
.ec-work-filter:focus-visible {
    border-color: var(--ec-green-soft);
    outline: none;
}

.ec-work-filter.is-active {
    background: var(--ec-lime);
    border-color: var(--ec-lime);
    color: var(--ec-green);
}

.ec-work-count {
    color: var(--ec-muted);
    font-size: 0.98rem;
    font-weight: 700;
    margin: 26px 0;
}

.ec-work-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ec-work-card {
    background: var(--ec-white);
    border: 1px solid var(--ec-line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(13, 48, 40, 0.08);
    min-width: 0;
    overflow: hidden;
}

.ec-work-card[hidden] {
    display: none;
}

.ec-work-schema-meta {
    display: none;
}

.ec-work-card-image {
    aspect-ratio: 4 / 3;
    background: #eef3ed;
    overflow: hidden;
}

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

.ec-work-image-placeholder {
    align-items: center;
    color: rgba(13, 48, 40, 0.62);
    display: flex;
    font-size: 0.92rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.ec-work-card-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.ec-work-card h2 {
    color: var(--ec-green);
    font-size: clamp(1.08rem, 1.35vw, 1.28rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
}

.ec-work-card p {
    color: var(--ec-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.ec-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ec-work-tags span {
    background: rgba(231, 236, 59, 0.38);
    border-radius: 999px;
    color: var(--ec-green);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 8px 10px;
}

.ec-work-empty,
.ec-work-no-results {
    background: var(--ec-cream);
    border: 1px dashed rgba(13, 48, 40, 0.24);
    border-radius: 8px;
    margin: 26px 0 0;
    padding: clamp(24px, 4vw, 40px);
    text-align: center;
}

.ec-work-empty[hidden],
.ec-work-no-results[hidden] {
    display: none;
}

.ec-work-empty h2,
.ec-work-no-results h2 {
    color: var(--ec-green);
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin: 0 0 10px;
}

.ec-work-empty p,
.ec-work-no-results p {
    color: var(--ec-muted);
    margin: 0 auto;
    max-width: 680px;
}

.ec-work-cta {
    align-items: center;
    background: var(--ec-green);
    border-radius: 8px;
    color: var(--ec-white);
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr auto;
    margin-top: clamp(42px, 7vw, 82px);
    padding: clamp(26px, 5vw, 46px);
}

.ec-work-cta h2 {
    color: var(--ec-white);
    font-size: clamp(1.45rem, 2.6vw, 2.6rem);
    line-height: 1.12;
    margin: 0;
    max-width: 780px;
}

.ec-work-cta-kicker {
    color: var(--ec-lime);
}

.ec-work-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.ec-work-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.94rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.1;
    min-height: 48px;
    padding: 14px 20px;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.ec-work-button:hover,
.ec-work-button:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.ec-work-button-primary {
    background: var(--ec-lime);
    color: var(--ec-green);
}

.ec-work-button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: var(--ec-white);
}

@media (max-width: 980px) {
    .ec-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ec-work-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .ec-work-page {
        padding: 24px 14px 48px;
    }

    .ec-work-hero {
        border-radius: 0 0 34px 34px;
        padding: 38px 18px;
    }

    .ec-work-filter-row {
        grid-template-columns: 1fr;
    }

    .ec-work-filter-label {
        padding-top: 0;
    }

    .ec-work-filter {
        min-height: 40px;
        padding: 10px 13px;
    }

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

    .ec-work-cta-actions,
    .ec-work-button {
        width: 100%;
    }
}
