:root {
    --work-accent: #66b77d;
    --work-accent-strong: #79cf91;
    --work-bg: #07183f;
    --work-surface: #0b2155;
    --work-surface-strong: #102a72;
    --work-border: rgba(181, 194, 214, 0.2);
    --work-text: #fcfcfc;
    --work-muted: #b5c2d6;
}

.home-customer-work,
.our-work-page {
    background:
        radial-gradient(circle at 6% 12%, rgba(102, 183, 125, 0.14), transparent 30%),
        linear-gradient(180deg, #07183f 0%, #061638 100%);
    color: var(--work-text);
}

.customer-work-heading {
    align-items: end;
    gap: 32px;
}

.customer-work-heading > p {
    max-width: 520px;
    color: var(--work-muted);
}

.customer-work-heading strong {
    color: var(--work-accent-strong);
}

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

.customer-work-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--work-border);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(16, 42, 114, 0.96), rgba(7, 24, 63, 0.98));
    box-shadow: 0 18px 44px rgba(2, 11, 31, 0.24);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.customer-work-card:hover,
.customer-work-card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(102, 183, 125, 0.72);
    box-shadow: 0 24px 58px rgba(2, 11, 31, 0.36);
}

.customer-work-card > a {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
}

.customer-work-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #04102c;
}

.customer-work-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(4, 16, 44, 0.5));
    pointer-events: none;
}

.customer-work-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 300ms ease;
}

.customer-work-card:hover .customer-work-media img,
.customer-work-card:focus-within .customer-work-media img {
    transform: scale(1.025);
}

.customer-work-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 22px;
}

.customer-work-category,
.customer-work-method {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--work-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.customer-work-category {
    margin-bottom: 10px;
}

.customer-work-card h3 {
    margin: 0;
    color: var(--work-text);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.28;
}

.customer-work-card p {
    margin: 11px 0 0;
    color: var(--work-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.customer-work-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #d8e3f3;
    font-size: 0.86rem;
    font-weight: 700;
}

.customer-work-link i {
    color: var(--work-accent-strong);
    font-size: 1rem;
}

.customer-work-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.customer-work-actions .button-secondary {
    border: 1px solid rgba(102, 183, 125, 0.55);
    background: transparent;
    color: var(--work-text);
}

.our-work-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(86px, 11vw, 150px) 0 clamp(64px, 8vw, 108px);
    background:
        linear-gradient(100deg, rgba(4, 16, 44, 0.98) 0%, rgba(7, 24, 63, 0.9) 58%, rgba(16, 42, 114, 0.78) 100%),
        url("../images/our-work/neon-vibes-jersey.webp") center 48% / cover no-repeat;
    color: var(--work-text);
}

.our-work-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 183, 125, 0.72), transparent);
}

.our-work-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.our-work-hero .eyebrow {
    color: var(--work-accent-strong);
}

.our-work-hero h1 {
    max-width: 760px;
    margin: 13px 0 18px;
    color: var(--work-text);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.our-work-hero p {
    max-width: 690px;
    margin: 0;
    color: #d4ddec;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}

.our-work-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.our-work-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 38px;
}

.our-work-intro h2 {
    margin-top: 8px;
}

.our-work-intro p {
    color: var(--work-muted);
}

.our-work-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.our-work-proof div {
    padding: 18px;
    border: 1px solid var(--work-border);
    border-radius: 14px;
    background: rgba(16, 42, 114, 0.55);
}

.our-work-proof strong,
.our-work-proof span {
    display: block;
}

.our-work-proof strong {
    color: var(--work-text);
    font-size: 1.45rem;
}

.our-work-proof span {
    margin-top: 3px;
    color: var(--work-muted);
    font-size: 0.82rem;
}

.customer-work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.customer-work-filter {
    appearance: none;
    border: 1px solid var(--work-border);
    border-radius: 999px;
    background: rgba(16, 42, 114, 0.48);
    color: var(--work-text);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 17px;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.customer-work-filter:hover,
.customer-work-filter:focus-visible,
.customer-work-filter[aria-pressed="true"] {
    border-color: var(--work-accent);
    background: var(--work-accent);
    color: #04102c;
    outline: none;
}

.customer-work-grid--portfolio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-work-grid--portfolio .customer-work-card[hidden] {
    display: none;
}

.customer-work-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.customer-work-method {
    padding: 8px 10px;
    border: 1px solid rgba(102, 183, 125, 0.32);
    background: rgba(102, 183, 125, 0.08);
    font-size: 0.64rem;
}

.our-work-cta {
    border-top: 1px solid rgba(102, 183, 125, 0.3);
    border-bottom: 1px solid rgba(102, 183, 125, 0.3);
    background: linear-gradient(115deg, #0b2155, #102a72);
}

.our-work-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.our-work-cta h2 {
    margin: 6px 0 8px;
    color: var(--work-text);
}

.our-work-cta p {
    margin: 0;
    color: var(--work-muted);
}

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

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

@media (max-width: 680px) {
    .customer-work-heading,
    .our-work-cta__inner {
        display: block;
    }

    .customer-work-grid,
    .customer-work-grid--portfolio {
        grid-template-columns: 1fr;
    }

    .customer-work-grid--featured .customer-work-card:nth-child(n+5) {
        display: none;
    }

    .customer-work-actions,
    .our-work-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-work-actions .button,
    .our-work-hero__actions .button,
    .our-work-cta .button {
        justify-content: center;
        text-align: center;
    }

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

    .our-work-cta .customer-work-actions {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-work-card,
    .customer-work-media img,
    .customer-work-filter {
        transition: none;
    }
}
