/* =====================================================================
   2026 case studies index (/case-studies). Builds on home-2026.css (tokens, buttons, eyebrow, reveal, CTA).
   Everything is scoped to main.cs26.
   ===================================================================== */

/* ---------- hero ---------- */
.cs26 .cs-hero { position: relative; overflow: hidden; padding: calc(68px + 14px + clamp(40px,5vw,72px)) 0 clamp(28px,4vw,44px); }
.cs26 .cs-hero > .wrap { position: relative; z-index: 1; }
.cs26 .cs-hero-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 24px 64px; align-items: end; }
.cs26 .cs-hero h1 { font-size: clamp(2.4rem,5.2vw,4.25rem); line-height: 1.04; max-width: 15ch; }
.cs26 .cs-hero .lede { max-width: 42ch; }
@media (max-width: 1080px) { .cs26 .cs-hero { padding-top: calc(64px + 10px + clamp(32px,5vw,56px)); } }
@media (max-width: 900px) { .cs26 .cs-hero-grid { grid-template-columns: 1fr; } }

/* ---------- filters ---------- */
.cs26 .cs-list { padding-top: clamp(12px,2vw,20px); }
.cs26 .cs-filters { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 8px; background: var(--neutral-100); border: 1px solid var(--neutral-300); border-radius: 16px; }
@media (max-width: 1000px) { .cs26 .cs-filters { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) { .cs26 .cs-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .cs26 .cs-select:first-child { grid-column: 1 / -1; } }
.cs26 .cs-select { position: relative; display: block; min-width: 0; margin: 0; border-radius: 10px; background: var(--paper); border: 1px solid var(--neutral-300); transition: border-color .2s, background-color .2s; cursor: pointer; }
.cs26 .cs-select:hover { border-color: color-mix(in srgb, var(--neutral-300) 50%, var(--neutral-500)); }
.cs26 .cs-select:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.cs26 .cs-select.on { background: var(--green-tint); border-color: rgba(25,199,152,.45); }
.cs26 .cs-select-label { position: absolute; left: 13px; top: 8px; font-size: .6875rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--neutral-500); pointer-events: none; }
.cs26 .cs-select select { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 58px; margin: 0; padding: 22px 36px 6px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--neutral-900); font: 500 .9375rem/1.2 var(--font); letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; outline: none; }
.cs26 .cs-select select option { color: #07070F; background: #F7F5EC; }
.cs26 .cs-chev { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--neutral-500); pointer-events: none; }

.cs26 .cs-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin: 18px 0 22px; }
.cs26 .cs-status p { margin: 0; font-size: .9375rem; color: var(--neutral-500); }
.cs26 .cs-status p b { font-weight: 600; color: var(--neutral-900); font-variant-numeric: tabular-nums; }
.cs26 .cs-clear { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--neutral-300); border-radius: 10px; background: transparent; color: var(--neutral-900); font: 500 .875rem/1 var(--font); cursor: pointer; transition: background-color .2s; }
.cs26 .cs-clear svg { width: 14px; height: 14px; }
.cs26 .cs-clear:hover { background: var(--neutral-200); }
.cs26 .cs-clear[hidden] { display: none; }

/* ---------- grid ---------- */
.cs26 .cs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,2vw,24px); transition: opacity .2s; }
.cs26 .cs-grid.fading { opacity: 0; }
@media (max-width: 1000px) { .cs26 .cs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .cs26 .cs-grid { grid-template-columns: 1fr; } }
.cs26 .cs-item { margin: 0; padding: 0; display: flex; }
.cs26 .cs-item[hidden] { display: none; }
.cs26 .cs-item.pop { animation: cs-pop .5s var(--ease-out) both; animation-delay: var(--pd,0s); }
@keyframes cs-pop { from { opacity: 0; transform: translateY(12px); } }

.cs26 .cs-card { display: flex; flex-direction: column; width: 100%; background: var(--paper); border: 1px solid var(--neutral-300); border-radius: var(--radius-card); overflow: hidden; color: inherit; text-decoration: none; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.cs26 .cs-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(7,7,15,.09); border-color: color-mix(in srgb, var(--neutral-300) 60%, var(--neutral-500)); color: inherit; }
.cs26 .cs-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
body.dark-theme .cs26 .cs-card:hover { box-shadow: 0 22px 44px rgba(0,0,0,.45); }

/* thumbnails are 456 x 204 (the newer ones carry their headline), so the frame keeps that shape */
.cs26 .cs-media { position: relative; display: block; aspect-ratio: 456 / 204; margin: 8px 8px 0; border-radius: 10px; overflow: hidden; background: var(--neutral-200); }
.cs26 .cs-thumb { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.cs26 .cs-card:hover .cs-thumb { transform: scale(1.035); }
.cs26 .cs-logo { position: absolute; left: 50%; top: 50%; max-width: 58%; max-height: 42%; width: auto; height: auto; object-fit: contain; transform: translate(-50%,-50%); filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); }

.cs26 .cs-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.cs26 .cs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cs26 .cs-tag { padding: 3px 8px; border-radius: 6px; background: var(--green-tint); color: var(--neutral-900); font-size: .75rem; font-weight: 500; letter-spacing: -.01em; }
.cs26 .cs-name { margin-top: 12px; font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.03em; color: var(--neutral-900); }
.cs26 .cs-intro { margin-top: 6px; font-size: .9375rem; line-height: 1.55; color: var(--neutral-700); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cs26 .cs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.cs26 .cs-industry { min-width: 0; font-size: .8125rem; color: var(--neutral-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs26 .cs-read { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--neutral-900); }
.cs26 .cs-read svg { width: 16px; height: 16px; color: var(--green); transition: transform .35s var(--ease-spring); }
.cs26 .cs-card:hover .cs-read svg { transform: translateX(3px); }

/* ---------- empty state + pagination ---------- */
.cs26 .cs-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--neutral-300); border-radius: var(--radius-card); }
.cs26 .cs-empty[hidden] { display: none; }
.cs26 .cs-empty p { max-width: 44ch; margin: 0 auto 16px; color: var(--neutral-700); }
.cs26 .cs-empty b { color: var(--neutral-900); font-weight: 600; }

.cs26 .cs-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: clamp(32px,4vw,48px); }
.cs26 .cs-pages:empty { display: none; }
.cs26 .cs-page { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--neutral-300); border-radius: 12px; background: transparent; color: var(--neutral-900); font: 500 .9375rem/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.cs26 .cs-page svg { width: 18px; height: 18px; }
.cs26 .cs-page:hover:not(:disabled) { background: var(--neutral-200); }
.cs26 .cs-page[aria-current="page"] { background: var(--neutral-900); border-color: var(--neutral-900); color: var(--neutral-100); cursor: default; }
.cs26 .cs-page:disabled:not([aria-current]) { opacity: .35; cursor: default; }
.cs26 .cs-page:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cs26 .cs-gap { padding: 0 4px; color: var(--neutral-500); }

@media (prefers-reduced-motion: reduce) {
  .cs26 .cs-item.pop { animation: none; }
  .cs26 .cs-grid { transition: none; }
}
