.cases-page {
    margin: 0;
    min-height: 100vh;
    background: #f8fbf4;
    color: #1d2622;
    overflow-x: hidden;
}

.cases-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    padding: 16px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(248, 251, 244, 0.94);
    border-bottom: 1px solid rgba(29, 38, 34, 0.08);
    backdrop-filter: blur(14px);
}

.cases-brand {
    color: #25352f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.cases-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cases-nav a,
.cases-nav-button,
.case-back-link,
.cases-footer a,
.cases-footer-button {
    color: #315f47;
    font-weight: 700;
}

.cases-nav a:hover,
.cases-nav-button:hover,
.case-back-link:hover,
.cases-footer a:hover,
.cases-footer-button:hover {
    color: #6b923c;
}

.cases-nav-button,
.cases-footer-button {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.cases-hero {
    padding: 92px 0 58px;
    background:
        linear-gradient(180deg, #f8fbf4 0%, #eef5ea 100%);
    border-bottom: 1px solid rgba(29, 38, 34, 0.08);
}

.cases-hero-inner {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.cases-hero h1,
.case-article-hero h1 {
    margin: 14px 0 20px;
    color: #171d1a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 74px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.cases-hero p,
.case-article-hero p {
    margin: 0 auto;
    max-width: 760px;
    color: #52625c;
    font-size: 19px;
    line-height: 1.8;
}

.cases-list-section {
    padding: 46px 0 104px;
    background: #fffdf8;
}

.cases-tags-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.cases-tag-filter {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(49, 95, 71, 0.16);
    color: #4f625d;
    font-size: 14px;
    font-weight: 700;
}

.cases-tag-filter.is-active {
    background: #171d1a;
    border-color: #171d1a;
    color: #fff;
}

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

.case-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(29, 38, 34, 0.10);
    box-shadow: 0 18px 38px rgba(29, 38, 34, 0.08);
}

.case-card-media {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef5ea 0%, #f7efe5 100%);
    color: #315f47;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 700;
}

.case-card-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--case-cover-x, 50%) var(--case-cover-y, 50%);
    transition: transform 0.35s ease;
}

.case-card:hover .case-card-cover {
    transform: scale(1.035);
}

.case-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 22px;
}

.case-card-meta,
.case-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
    gap: 8px;
    color: #6b746f;
    font-size: 14px;
    font-weight: 700;
}

.case-card-meta span + span::before,
.case-article-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #a3ada7;
}

.case-card h2 {
    margin: 12px 0 12px;
    color: #171d1a;
    font-size: 23px;
    line-height: 1.25;
}

.case-card p {
    margin: 0 0 18px;
    color: #52625c;
    font-size: 16px;
    line-height: 1.75;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.case-tags span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(107, 146, 60, 0.12);
    color: #315f47;
    font-size: 13px;
    font-weight: 700;
}

.case-card-link,
.case-cta-link {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 8px;
    background: #171d1a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.case-card-link:hover,
.case-cta-link:hover {
    background: #6b923c;
}

.cases-empty {
    padding: 34px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(29, 38, 34, 0.10);
    color: #52625c;
    font-size: 18px;
    text-align: center;
}

.case-article {
    background: #fffdf8;
}

.case-article-hero {
    padding: 54px 0 86px;
    background:
        linear-gradient(180deg, #f8fbf4 0%, #eef5ea 100%);
    border-bottom: 1px solid rgba(29, 38, 34, 0.08);
}

.case-article-hero-inner {
    max-width: 920px;
    text-align: center;
}

.case-back-link {
    display: inline-flex;
    margin-bottom: 34px;
}

.case-article-kicker {
    margin-bottom: 12px;
    color: #6b923c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.case-article-meta {
    justify-content: center;
    margin-bottom: 8px;
}

.case-tags-large {
    justify-content: center;
    margin-top: 24px;
}

.case-article-cover-wrap {
    max-width: 940px;
    margin: 32px auto 0;
}

.case-article-cover {
    display: block;
    width: 100%;
    height: clamp(320px, 54vw, 560px);
    border-radius: 8px;
    object-fit: cover;
    object-position: var(--case-cover-x, 50%) var(--case-cover-y, 50%);
    box-shadow: 0 24px 54px rgba(29, 38, 34, 0.14);
}

.case-article-cover-wrap figcaption {
    margin-top: 10px;
    color: #6b746f;
    font-size: 13px;
    text-align: right;
}

.case-story-section {
    padding: 72px 0 110px;
}

.case-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: start;
}

.case-article-content {
    display: grid;
    gap: 18px;
}

.case-interview-block {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 22px;
    padding: 30px 0;
    border-top: 1px solid rgba(29, 38, 34, 0.12);
}

.case-interview-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.case-interview-index {
    color: #c66a3c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.case-interview-copy h2,
.case-cta-card h2 {
    margin: 0 0 14px;
    color: #171d1a;
    font-size: 27px;
    line-height: 1.25;
}

.case-story-text {
    color: #3f4f49;
    font-size: 18px;
    line-height: 1.85;
    white-space: pre-line;
}

.case-article-aside {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 16px;
}

.case-aside-panel,
.case-cta-card {
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(29, 38, 34, 0.10);
    box-shadow: 0 18px 38px rgba(29, 38, 34, 0.08);
}

.case-route-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 20px;
    color: #3f4f49;
    font-size: 15px;
    line-height: 1.55;
}

.case-route-list li::marker {
    color: #c66a3c;
    font-weight: 800;
}

.case-cta-card {
    background:
        linear-gradient(135deg, rgba(107, 146, 60, 0.10), rgba(198, 106, 60, 0.10)),
        #ffffff;
}

.case-cta-card p {
    margin: 0;
    color: #52625c;
    font-size: 16px;
    line-height: 1.75;
}

.cases-footer {
    padding: 24px 0;
    background: #171d1a;
    color: rgba(255, 255, 255, 0.78);
}

.cases-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cases-footer a {
    color: #fff;
}

.cases-footer-button {
    color: #fff;
}

@media (max-width: 980px) {
    .cases-grid,
    .case-story-layout {
        grid-template-columns: 1fr;
    }

    .case-article-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .cases-site-header,
    .cases-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cases-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px;
    }

    .cases-hero {
        padding: 58px 0 38px;
    }

    .case-article-hero {
        padding: 36px 0 62px;
    }

    .cases-hero-inner,
    .case-article-hero-inner {
        width: min(350px, 100%);
        max-width: 350px;
        margin-left: 0;
        margin-right: auto;
    }

    .cases-hero h1,
    .case-article-hero h1 {
        font-size: clamp(28px, 7.4vw, 31px);
        line-height: 1.08;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .cases-hero p,
    .case-article-hero p {
        font-size: 17px;
        line-height: 1.7;
    }

    .case-article-meta,
    .case-tags-large {
        justify-content: center;
    }

    .case-article-cover-wrap {
        margin-top: 24px;
    }

    .case-story-section {
        padding: 52px 0 72px;
    }

    .case-interview-block {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }

    .case-interview-copy h2,
    .case-cta-card h2 {
        font-size: 23px;
    }

    .case-story-text {
        font-size: 17px;
        line-height: 1.75;
    }

    .case-card-body,
    .case-aside-panel,
    .case-cta-card {
        padding: 22px 18px;
    }
}
