/* ============================================================
   CASE STUDY PAGES — shared styles
   ============================================================ */

/* Hero */
.case-hero {
    padding-top: 160px;
    padding-bottom: 48px;
}

.case-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.6);
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.3s ease;
}

.case-back-link:hover {
    color: rgb(10, 10, 10);
}

.case-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 88px;
    font-weight: 300;
    letter-spacing: -1.76px;
    line-height: 88px;
    margin: 0 0 24px;
    max-width: 1000px;
}

.case-hero .case-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.55);
    margin: 0;
}

/* Section — label gutter + prose column */
.case-section {
    padding: 64px 0;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.case-section-inner {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.case-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.5);
    padding-top: 6px;
    margin: 0;
}

.case-section-body {
    max-width: 680px;
}

.case-section-body h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.72px;
    line-height: 42px;
    color: rgb(10, 10, 10);
    margin: 0 0 24px;
}

.case-section-body p {
    font-size: 16px;
    line-height: 26px;
    color: rgba(10, 10, 10, 0.85);
    margin: 0 0 16px;
}

.case-section-body p:last-child {
    margin-bottom: 0;
}

/* Pull quote inside a section */
.case-quote {
    margin: 28px 0;
    padding: 4px 0 4px 24px;
    border-left: 2px solid rgba(10, 10, 10, 0.25);
}

.case-quote p {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: -0.44px;
    color: rgb(10, 10, 10);
    margin: 0 0 12px;
}

.case-quote cite {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 13px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.6);
}

/* Before/after table */
.case-table-wrap {
    margin: 24px 0 0;
    overflow-x: auto;
}

.case-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 22px;
}

.case-table th,
.case-table td {
    text-align: left;
    padding: 16px 24px 16px 0;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
    color: rgba(10, 10, 10, 0.85);
    vertical-align: top;
}

.case-table th {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.5);
    padding-top: 0;
    padding-bottom: 12px;
    border-top: none;
    border-bottom: 1px solid rgba(10, 10, 10, 0.12);
}

.case-table tr:last-child td {
    border-bottom: 1px solid rgba(10, 10, 10, 0.12);
}

.case-table td:first-child,
.case-table th:first-child {
    font-weight: 500;
    color: rgb(10, 10, 10);
    width: 34%;
}

.case-table th:first-child {
    color: rgba(10, 10, 10, 0.5);
    font-weight: 500;
}

/* Outro / next CTA */
.case-outro {
    padding: 72px 0 120px;
}

.case-outro-inner {
    max-width: 720px;
}

.case-outro h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 44px;
    font-weight: 300;
    letter-spacing: -0.88px;
    line-height: 48px;
    margin: 0 0 20px;
}

.case-outro p {
    font-size: 16px;
    line-height: 26px;
    color: rgba(10, 10, 10, 0.85);
    margin: 0 0 32px;
}

/* Responsive */
@media (max-width: 1200px) {
    .case-hero h1 {
        font-size: 64px;
        letter-spacing: -1.28px;
        line-height: 66px;
    }
    .case-section-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .case-section-body h2 {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.64px;
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding-top: 120px;
        padding-bottom: 32px;
    }
    .case-back-link {
        margin-bottom: 32px;
    }
    .case-hero h1 {
        font-size: 42px;
        letter-spacing: -0.84px;
        line-height: 46px;
    }
    .case-section {
        padding: 48px 0;
    }
    .case-section-body h2 {
        font-size: 26px;
        line-height: 32px;
        letter-spacing: -0.52px;
    }
    .case-quote {
        margin: 24px 0;
        padding: 4px 0 4px 18px;
    }
    .case-quote p {
        font-size: 19px;
        line-height: 28px;
    }
    .case-outro {
        padding: 56px 0 80px;
    }
    .case-outro h2 {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: -0.6px;
    }
}
