/* Case studies — listing + case study template */

/* ----- Listing: hero aside ----- */
.cs-covers { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: cover; }
.cs-covers li { counter-increment: cover; display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #E0DCDD; color: var(--ink); font-weight: 500; }
.cs-covers li:last-child { border-bottom: 0; }
.cs-covers li::before { content: counter(cover, decimal-leading-zero); flex: 0 0 28px; font-size: 15px; font-weight: 600; color: var(--burgundy); }

/* ----- Listing: filter + grid ----- */
.cs-filter { margin-top: 40px; justify-content: space-between; }
.cs-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; }
.cs-grid { margin-top: 24px; }
.cs-grid .case .picked-tag { margin-bottom: 2px; }
.cs-empty { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cs-empty[hidden] { display: none; }
.cs-empty p { max-width: 620px; color: var(--body); }
.cs-empty strong { display: block; color: var(--ink); font-size: 19px; letter-spacing: -0.01em; margin-bottom: 4px; }

/* ----- Case study: hero ----- */
.cs-hero .h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.06; }
.cs-hero .page-hero-split { align-items: stretch; }
.cs-facts { background: var(--light); border-radius: var(--radius); padding: 24px 28px; align-self: flex-end; }
.cs-facts dl { margin: 12px 0 0; }
.cs-facts .row { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid #E0DCDD; }
.cs-facts .row:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-facts dt { flex: 0 0 96px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cs-facts dd { flex: 1 1 180px; min-width: 0; margin: 0; color: var(--ink); font-weight: 500; }
.cs-facts dd a { color: var(--burgundy); }

/* ----- Case study: overview media ----- */
.cs-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }
.cs-media figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ----- Case study: needs list (challenge) ----- */
.cs-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cs-needs.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .cs-needs.cols-2 { grid-template-columns: 1fr; } }
.cs-needs li { background: var(--light); border-radius: var(--radius); padding: 20px 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); border-top: 3px solid var(--burgundy); }

/* ----- Case study: approach steps ----- */
.cs-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; counter-reset: step; }
.cs-steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cs-steps.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cs-steps.cols-3 { grid-template-columns: 1fr; } }
.cs-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cs-steps li::before { content: counter(step, decimal-leading-zero); font-size: 22px; line-height: 1; font-weight: 600; color: var(--burgundy); }
.cs-steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.cs-steps p { color: var(--body); }
.cs-support { margin-top: 20px; color: var(--body); max-width: 760px; }

/* ----- Case study: outcome ----- */
.cs-outcome .stats { margin-top: 48px; }
.section-white .stat { background: var(--light); border-color: transparent; }
.cs-why { margin-top: 12px; }
.cs-why p { max-width: 900px; font-size: 18px; }

/* Pull quote */
.cs-quote { margin: 56px 0 0; padding: 0 0 0 28px; border-left: 3px solid var(--burgundy); max-width: 980px; }
.cs-quote blockquote { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.cs-quote figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }
.cs-placeholder { color: var(--muted); }

/* ----- Case study: technologies ----- */
.cs-tech { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cs-tech li > a, .cs-tech li > span { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; height: 100%; padding: 18px 22px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.cs-tech a:hover { border-color: var(--burgundy); }
.cs-tech a:hover .n { color: var(--burgundy); }
.cs-tech .n { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.cs-tech .r { font-size: 14px; color: var(--muted); }

.cs-fit { margin-top: 56px; }
.cs-fit .cap-num { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
