/* ---------- Case Studies page ---------- */
.pc-cs-page {
  padding: 40px 48px 120px;
}

/* Intro */
.pc-cs-head-hero {
  max-width: var(--container-max); margin: 0 auto 72px;
  padding-bottom: 28px; border-bottom: 1px dashed #000;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  row-gap: 28px; column-gap: 64px; align-items: end;
}
.pc-cs-head-hero .pc-rivet-sm {
  grid-column: 1 / -1;
  align-self: start;
}
.pc-cs-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 10vw, 172px);
  line-height: 0.86; letter-spacing: -0.035em;
  margin: 0;
  grid-column: 1;
}
.pc-cs-h1 em {
  font-style: italic; color: var(--pc-pink-deep, #C46FD4);
}
.pc-cs-lede {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 20px; line-height: 1.5; color: #111;
  max-width: 48ch; margin: 0 0 16px;
  grid-column: 2;
}

/* List */
.pc-cs-list {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; flex-direction: column; gap: 88px;
}

/* One case */
.pc-cs {
  padding-top: 40px;
  border-top: 1px dashed #000;
}
.pc-cs:first-child { border-top: 0; padding-top: 0; }

.pc-cs-head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 32px;
}
.pc-cs-rivet {
  display: inline-flex; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 500;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #111;
}
.pc-cs-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.92; letter-spacing: -0.028em;
  margin: 0; text-wrap: balance;
}
.pc-cs-title em {
  font-style: italic;
  color: var(--pc-pink-deep, #C46FD4);
}
.pc-cs-title-sep { color: #111; }

/* Body — hero image + thumbnails on the left; blurb + stats on the right.
   Performance callout, partners, and link row flow full-width BELOW, so the
   left column doesn't end in empty space while the right column keeps going. */
.pc-cs-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "hero text"
    "below below";
  column-gap: 48px;
  row-gap: 36px;
  align-items: start;
}
.pc-cs-hero-wrap { grid-area: hero; }
.pc-cs-text      { grid-area: text; }

/* Hero wrapper (hero image + optional carousel underneath) */
.pc-cs-hero-wrap {
  display: flex; flex-direction: column; gap: 14px;
}

/* Text column — blurb + stats live here */
.pc-cs-text {
  display: flex; flex-direction: column; gap: 28px;
  padding-top: 4px;
}
.pc-cs-blurb {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 20px; line-height: 1.55; color: #111;
  margin: 0;
  text-wrap: pretty;
}

/* Full-width rows beneath the hero+text */
.pc-cs-below {
  grid-area: below;
  display: flex; flex-direction: column; gap: 28px;
}
/* When perf + partners both exist, put them in a two-column row so the
   partners chips don't stack awkwardly narrow under a wide pink callout. */
.pc-cs-below-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .pc-cs-below-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pc-cs-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "text"
      "below";
  }
}

/* Main hero image */
.pc-cs-hero-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 4px;
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.25);
}
.pc-cs-hero-img img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  animation: pc-cs-fade .35s var(--ease-out, ease);
}
@keyframes pc-cs-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Thumbnail carousel */
.pc-cs-carousel {
  display: flex; gap: 10px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pc-cs-carousel-thumb {
  appearance: none; -webkit-appearance: none;
  background: #111; border: 0; padding: 0;
  flex: 0 0 128px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform .2s var(--ease-out, ease), box-shadow .2s var(--ease-out, ease), opacity .2s var(--ease-out, ease);
  opacity: 0.7;
}
.pc-cs-carousel-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.pc-cs-carousel-thumb:hover { opacity: 1; transform: translateY(-1px); }
.pc-cs-carousel-thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--pc-pink-deep, #C46FD4);
}
.pc-cs-hero-img--placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      #f4efe8 0 18px,
      #ebe4d8 18px 36px
    );
  color: #111;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 24px;
  box-shadow: none;
  border: 1px dashed #000;
}
.pc-cs-placeholder-label {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: #fff8; padding: 8px 12px; backdrop-filter: blur(4px);
}
.pc-rivet-sm--dim { color: #777; }

/* Stats */
.pc-cs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px dashed #000;
  border-left: 1px dashed #000;
}
.pc-cs-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px dashed #000;
  border-right: 1px dashed #000;
  min-height: 72px;
  justify-content: center;
}
.pc-cs-stat-l {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #666;
  margin: 0;
}
.pc-cs-stat-v {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.1; letter-spacing: -0.01em;
  margin: 0; color: #111;
}

/* Performance callout */
.pc-cs-perf {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px;
  background: var(--pc-pink, #ffc6e0);
  border-radius: 2px;
}
.pc-cs-perf-row {
  display: flex; gap: 44px; flex-wrap: wrap;
}
.pc-cs-perf-item {
  display: flex; flex-direction: column; gap: 4px;
}
.pc-cs-perf-n {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1; letter-spacing: -0.02em;
}
.pc-cs-perf-l {
  font-family: var(--font-display); font-weight: 500; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Partners */
.pc-cs-partners {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 18px;
  border-top: 1px dashed #000;
}
.pc-cs-meta-col {
  display: flex; flex-direction: column; gap: 18px;
}

.pc-cs-notes {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 18px;
  border-top: 1px dashed #000;
}
.pc-cs-note {
  display: flex; flex-direction: column; gap: 8px;
}
.pc-cs-note-body {
  font-family: var(--font-serif); font-weight: 300;
  font-size: 18px; line-height: 1.55; color: #111;
  margin: 0; max-width: 72ch; text-wrap: pretty;
}
.pc-cs-partners-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.pc-cs-partner {
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid #111;
  border-radius: 999px;
}

/* Link */
.pc-cs-link {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  border-bottom: 1px solid #111; padding-bottom: 2px;
  width: fit-content; color: #111; text-decoration: none;
}
.pc-cs-link--disabled {
  color: #888; border-bottom-color: #bbb; cursor: default;
}

/* NEEDS-INFO flag — obvious at a glance, never disguised */
.pc-needs-info {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  background: #111; color: #ffc400;
  padding: 3px 7px; border-radius: 2px;
  vertical-align: 2px;
}
