/* ==========================================================================
   case-study.css — Case study pages (loaded after site.css)
   ========================================================================== */

.case-study { max-width: 1040px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) 2.5rem clamp(3rem, 6vw, 5rem); }

.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
    font-size: 0.85rem; color: var(--muted); margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover { color: var(--ink); gap: 0.7rem; }
.back-link span { transition: transform 0.2s ease; }
.back-link:hover span { transform: translateX(-3px); }

/* Header: lead with the project statement, facts underneath */
.cs-header { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.cs-header__client { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.cs-header__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 3.9rem); line-height: 1.07; letter-spacing: -0.02em; max-width: 18ch; }
.cs-header__lead { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--text); max-width: 52ch; margin-top: 1.5rem; }

.cs-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.cs-facts > div { display: flex; flex-direction: column; gap: 0.35rem; }
.cs-facts dt { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cs-facts dd { font-size: 0.95rem; color: var(--ink); }
.cs-facts a { border-bottom: 1px solid var(--line); transition: border-color 0.2s ease; }
.cs-facts a:hover { border-color: var(--ink); }

/* Zoomable images */
.cs-zoom { display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--line); background: var(--bg-deep); cursor: zoom-in; transition: opacity 0.2s ease; }
.cs-zoom:hover { opacity: 0.94; }
.cs-zoom img, .cs-zoom picture { display: block; width: 100%; height: auto; }

.cs-hero { margin: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 7vw, 4.5rem); }

/* Sections — single editorial column, strong serif headings, no template numerals */
.cs-section { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.cs-section__body { max-width: 62ch; }
.cs-section__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.1rem; }
.cs-section__body p { font-size: 1.15rem; line-height: 1.7; color: var(--text); margin-bottom: 1rem; }
.cs-section__body p:last-child { margin-bottom: 0; }

.cs-list { list-style: none; display: grid; gap: 0.9rem; }
.cs-list li { position: relative; padding-left: 1.6rem; font-size: 1.12rem; line-height: 1.55; color: var(--text); }
.cs-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 1px; background: var(--ink); }

/* Interleaved figures span the full column */
.cs-body > .cs-figure { margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
.cs-figure figcaption { font-size: 0.9rem; line-height: 1.5; color: var(--muted); margin-top: 0.85rem; max-width: 64ch; }

/* Outcome — quiet highlight */
.cs-section--outcome { background: var(--bg-deep); padding: clamp(2rem, 4vw, 3rem); }
.cs-section--outcome .cs-section__body { max-width: 48ch; }
.cs-section--outcome .cs-section__body h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.cs-section--outcome .cs-section__body p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--ink); }

.cs-section--reflection .cs-section__body p { color: var(--text); }

/* Prev / next */
.cs-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.cs-page { display: flex; flex-direction: column; gap: 0.3rem; min-height: 44px; justify-content: center; }
.cs-page--next { text-align: right; }
.cs-page--all { align-self: center; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cs-page--all:hover { color: var(--ink); }
.cs-page__label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cs-page__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: var(--ink); transition: color 0.2s ease; }
.cs-page--prev:hover .cs-page__title, .cs-page--next:hover .cs-page__title { color: var(--text); }

@media (max-width: 680px) {
    .case-study { padding-left: 1.5rem; padding-right: 1.5rem; }
    .cs-pagination { grid-template-columns: 1fr; text-align: left; gap: 1.25rem; }
    .cs-page--next { text-align: left; }
    .cs-page--all { order: 3; }
}
