:root {
    --gp-cs-bg: #f5f7f4;
    --gp-cs-surface: #ffffff;
    --gp-cs-text: #15221a;
    --gp-cs-muted: #66716a;
    --gp-cs-border: #dfe5df;
    --gp-cs-accent: #2f7d4a;
    --gp-cs-accent-dark: #1f5b35;
    --gp-cs-soft: #e7f2e9;
    --gp-cs-dark: #009847;
    --gp-cs-radius: 22px;
    --gp-cs-shadow: 0 22px 60px rgba(20, 45, 29, 0.10);
}

.gp-case-studies,
.gp-case-studies * {
    box-sizing: border-box;
}

.gp-case-studies {
    background: var(--gp-cs-bg);
    color: var(--gp-cs-text);
    font-family: inherit;
}

.gp-cs-container {
    width: min(1380px, calc(100% - 40px));
    margin-inline: auto;
}

.gp-cs-hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 50px;
    background:#009847;
    color: #fff;
}

.gp-cs-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -260px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}

.gp-cs-hero .gp-cs-container {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin-left: max(20px, calc((100vw - 1180px) / 2));
}

.gp-cs-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gp-cs-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.gp-cs-hero .gp-cs-eyebrow,
.gp-cs-cta .gp-cs-eyebrow {
    color: #a9ddb5;
}

.gp-cs-hero h1,
.gp-cs-single-hero h1 {
    color: #fff;
    margin: 0;
    font-size: clamp(42px, 6vw, 38px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.gp-cs-hero p {
    max-width: 700px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 20px;
    line-height: 1.7;
}

.gp-cs-archive-section,
.gp-cs-related-section,
.gp-cs-gallery-section {
    padding: 90px 0;
}

.gp-cs-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
}

.gp-cs-filter-button {
    padding: 11px 18px;
    border: 1px solid var(--gp-cs-border);
    border-radius: 999px;
    background: var(--gp-cs-surface);
    color: var(--gp-cs-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.gp-cs-filter-button:hover,
.gp-cs-filter-button.is-active {
    border-color: var(--gp-cs-accent);
    background: var(--gp-cs-accent);
    color: #fff;
}

.gp-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.gp-cs-card {
    overflow: hidden;
    border: 1px solid var(--gp-cs-border);
    border-radius: var(--gp-cs-radius);
    background: var(--gp-cs-surface);
    box-shadow: 0 8px 28px rgba(20,45,29,.05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gp-cs-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--gp-cs-shadow);
}

.gp-cs-card[hidden] {
    display: none;
}

.gp-cs-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe9e1;
}

.gp-cs-card-image img,
.gp-cs-single-featured img,
.gp-cs-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-cs-card-image > img {
    transition: transform .45s ease;
}

.gp-cs-card:hover .gp-cs-card-image > img {
    transform: scale(1.045);
}

.gp-cs-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.15), transparent),
        linear-gradient(135deg, #b9d7c0, #2f7d4a);
}

.gp-cs-client-logo {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 86px;
    height: 58px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.gp-cs-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gp-cs-card-body {
    padding: 26px;
}

.gp-cs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
    color: var(--gp-cs-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gp-cs-card-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.gp-cs-card-title a {
    color: inherit;
    text-decoration: none;
}

.gp-cs-card-body p {
    margin: 0 0 22px;
    color: var(--gp-cs-muted);
    line-height: 1.75;
}

.gp-cs-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gp-cs-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.gp-cs-text-link span {
    transition: transform .2s ease;
}

.gp-cs-text-link:hover span {
    transform: translateX(4px);
}

.gp-cs-empty,
.gp-cs-empty-filter {
    padding: 50px;
    border: 1px dashed var(--gp-cs-border);
    border-radius: var(--gp-cs-radius);
    background: #fff;
    text-align: center;
}

.gp-cs-pagination {
    margin-top: 50px;
}

.gp-cs-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.gp-cs-pagination a,
.gp-cs-pagination span {
    display: grid;
    min-width: 44px;
    height: 44px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--gp-cs-border);
    border-radius: 10px;
    background: #fff;
    color: var(--gp-cs-text);
    text-decoration: none;
}

.gp-cs-pagination .current {
    border-color: var(--gp-cs-accent);
    background: var(--gp-cs-accent);
    color: #fff;
}

/* Single */
.gp-cs-single-hero {
    padding: 90px 0 80px;
    background: var(--gp-cs-dark);
    color: #fff;
}

.gp-cs-single-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 70px;
    align-items: center;
}

.gp-cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 38px;
    color: rgba(255,255,255,.72);
    font-weight: 700;
    text-decoration: none;
}

.gp-cs-single-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: 64px;
    margin-bottom: 28px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 5px 12px rgba(0,0,0,.15));
}

.gp-cs-lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 19px;
    line-height: 1.75;
}

.gp-cs-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 45px;
    margin: 38px 0;
}

.gp-cs-project-meta div {
    display: grid;
    gap: 5px;
}

.gp-cs-project-meta span,
.gp-cs-sidebar-card > span {
    color: rgba(255,255,255,.52);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gp-cs-single-featured {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.gp-cs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 22px;
    border: 1px solid var(--gp-cs-accent);
    border-radius: 999px;
    background: var(--gp-cs-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: .25s ease;
}

.gp-cs-button:hover {
    border-color: var(--gp-cs-accent-dark);
    background: var(--gp-cs-accent-dark);
    transform: translateY(-2px);
}

.gp-cs-button-outline {
    border-color: rgba(255,255,255,.25);
    background: transparent;
}

.gp-cs-results-wrap {
    position: relative;
    z-index: 2;
    margin-top: -35px;
}

.gp-cs-results-intro {
    max-width: 760px;
    margin: 0 auto 25px;
    color: var(--gp-cs-muted);
    text-align: center;
    line-height: 1.7;
}

.gp-cs-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--gp-cs-border);
    border-radius: var(--gp-cs-radius);
    background: #fff;
    box-shadow: var(--gp-cs-shadow);
}

.gp-cs-result-card {
    min-height: 170px;
    padding: 35px 25px;
    border-right: 1px solid var(--gp-cs-border);
    text-align: center;
}

.gp-cs-result-card:last-child {
    border-right: 0;
}

.gp-cs-result-card strong {
    display: block;
    margin-bottom: 9px;
    color: var(--gp-cs-accent);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -.05em;
}

.gp-cs-result-card span {
    color: var(--gp-cs-muted);
    line-height: 1.5;
}

.gp-cs-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 70px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.gp-cs-content-section {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 25px;
    padding: 0 0 65px;
}

.gp-cs-content-section + .gp-cs-content-section {
    padding-top: 65px;
    border-top: 1px solid var(--gp-cs-border);
}

.gp-cs-section-number {
    color: var(--gp-cs-accent);
    font-size: 13px;
    font-weight: 900;
}

.gp-cs-content-section h2,
.gp-cs-section-heading h2,
.gp-cs-cta h2 {
    margin: 0 0 22px;
    font-size: clamp(32px, 4vw, 30px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.gp-cs-rich-text {
    color: #3f4b44;
    font-size: 15px;
    line-height: 1.85;
}

.gp-cs-rich-text > *:first-child {
    margin-top: 0;
}

.gp-cs-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.gp-cs-story-sidebar {
    align-self: start;
    position: sticky;
    top: 110px;
}

.gp-cs-sidebar-card {
    display: grid;
    gap: 7px;
    padding: 28px;
    border-radius: 18px;
    background: var(--gp-cs-dark);
    color: #fff;
}

.gp-cs-sidebar-card > span {
    margin-top: 20px;
}

.gp-cs-sidebar-card > span:first-child {
    margin-top: 0;
}

.gp-cs-sidebar-card strong {
    font-size: 17px;
    line-height: 1.5;
}

.gp-cs-testimonial-section {
    padding: 90px 0;
    background: var(--gp-cs-soft);
}

.gp-cs-testimonial-section blockquote {
    position: relative;
    max-width: 930px;
    margin: 0 auto;
    text-align: center;
}

.gp-cs-quote-mark {
    display: block;
    height: 55px;
    color: var(--gp-cs-accent);
    font-family: Georgia, serif;
    font-size: 100px;
    line-height: 1;
}

.gp-cs-testimonial-section blockquote p {
    margin: 15px 0 28px;
    font-size: clamp(27px, 4vw, 44px);
    line-height: 1.3;
    letter-spacing: -.03em;
}

.gp-cs-testimonial-section footer {
    display: grid;
    gap: 5px;
}

.gp-cs-testimonial-section footer span {
    color: var(--gp-cs-muted);
}

.gp-cs-section-heading {
    max-width: 740px;
    margin-bottom: 42px;
}

.gp-cs-heading-row {
    display: flex;
    max-width: none;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.gp-cs-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.gp-cs-gallery figure {
    overflow: hidden;
    min-height: 340px;
    margin: 0;
    border-radius: 20px;
}

.gp-cs-gallery figure:nth-child(3n + 1) {
    grid-column: 1 / -1;
    min-height: 520px;
}

.gp-cs-cta-section {
    padding: 30px 0 100px;
}

.gp-cs-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 60px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 10%, rgba(92, 182, 111, .28), transparent 28%),
        var(--gp-cs-dark);
    color: #fff;
}

.gp-cs-cta h2 {
    margin-bottom: 12px;
    color: #fff;
}

.gp-cs-cta p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 18px;
    line-height: 1.7;
}

.gp-cs-related-section {
    border-top: 1px solid var(--gp-cs-border);
}

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

    .gp-cs-single-hero-grid,
    .gp-cs-story-layout {
        grid-template-columns: 1fr;
    }

    .gp-cs-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-cs-result-card:nth-child(2) {
        border-right: 0;
    }

    .gp-cs-result-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--gp-cs-border);
    }

    .gp-cs-story-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .gp-cs-container {
        width: min(100% - 28px, 1180px);
    }

    .gp-cs-hero {
        padding: 85px 0 75px;
    }

    .gp-cs-hero .gp-cs-container {
        margin-inline: auto;
    }

    .gp-cs-hero h1,
    .gp-cs-single-hero h1 {
        font-size: 44px;
    }

    .gp-cs-hero p,
    .gp-cs-lead {
        font-size: 17px;
    }

    .gp-cs-archive-section,
    .gp-cs-related-section,
    .gp-cs-gallery-section {
        padding: 65px 0;
    }

    .gp-cs-grid,
    .gp-cs-results-grid,
    .gp-cs-gallery {
        grid-template-columns: 1fr;
    }

    .gp-cs-result-card {
        border-right: 0;
        border-bottom: 1px solid var(--gp-cs-border);
    }

    .gp-cs-result-card:last-child {
        border-bottom: 0;
    }

    .gp-cs-gallery figure,
    .gp-cs-gallery figure:nth-child(3n + 1) {
        grid-column: auto;
        min-height: 260px;
    }

    .gp-cs-single-hero {
        padding: 65px 0;
    }

    .gp-cs-single-hero-grid {
        gap: 45px;
    }

    .gp-cs-project-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gp-cs-story-layout {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .gp-cs-content-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gp-cs-content-section + .gp-cs-content-section {
        padding-top: 50px;
    }

    .gp-cs-rich-text {
        font-size: 17px;
    }

    .gp-cs-heading-row,
    .gp-cs-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .gp-cs-cta {
        padding: 38px 28px;
    }

    .gp-cs-cta .gp-cs-button {
        width: 100%;
    }
}
