/* ============================================================
   CASE STUDY SPOTLIGHT — carousel
   Reference-matched layout: a results statement + attribution on
   the left, a browser-framed client screenshot with green metric
   tiles on the right, a navy "Read full case study" button, and
   dots to switch between cases. Light section; brand-agnostic
   (works in both palettes), with Invesp overrides in the brand file.
   ============================================================ */
.case-studies { background: hsl(220 24% 98%); }

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 920px) {
  .cs-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Left: statement ---------- */
.cs-left { min-height: 1px; }
.cs-brand {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: hsl(222 47% 12%);
  margin: 0 0 18px;
}
.cs-brand-logo { height: 38px; width: auto; max-width: 240px; object-fit: contain; margin-bottom: 18px; display: block; }
.cs-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: hsl(263 60% 94%);
  color: hsl(263 52% 46%);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.cs-statement {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -.012em;
  color: hsl(222 30% 18%);
  text-wrap: pretty;
  max-width: 30ch;
}
.cs-statement b, .cs-statement strong { font-weight: 800; color: hsl(222 47% 12%); }
.cs-statement.is-quote { font-style: normal; }
.cs-statement.is-quote::before { content: '\201C'; }
.cs-statement.is-quote::after { content: '\201D'; }

.cs-author { display: flex; align-items: center; gap: 14px; }
.cs-author-avatar {
  width: 52px; height: 52px;
  border-radius: 999px;
  object-fit: cover;
  background: hsl(220 20% 90%);
  flex: 0 0 auto;
}
.cs-author-name {
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.01em;
  color: hsl(222 47% 12%);
}
.cs-author-role { font-size: 15px; color: hsl(220 9% 42%); margin-top: 2px; }

/* ---------- Right: framed screenshot + metric tiles ---------- */
.cs-right { position: relative; }
.cs-collage {
  position: relative;
  border-radius: 16px;
}
.cs-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 hsl(220 16% 90%), 0 30px 60px -34px rgb(15 23 42 / .4);
  border: 1px solid hsl(220 16% 90%);
}
.cs-shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: hsl(220 20% 97%);
  border-bottom: 1px solid hsl(220 16% 91%);
}
.cs-shot-dot { width: 9px; height: 9px; border-radius: 999px; background: hsl(220 12% 80%); }
.cs-shot-img {
  display: block;
  width: 100%;
  height: clamp(280px, 30vw, 380px);
  object-fit: cover;
  object-position: top center;
}

/* Green metric tiles, overlapping the screenshot like the reference */
.cs-tile {
  position: absolute;
  z-index: 2;
  background: hsl(156 52% 56%);
  color: hsl(222 47% 13%);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 18px 36px -20px hsl(156 60% 24% / .65);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 116px;
}
.cs-tile-icon {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: hsl(222 47% 13%);
  color: hsl(156 52% 60%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.cs-tile-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-tile-label { font-size: 13px; font-weight: 600; margin-top: 6px; color: hsl(222 40% 22%); }
.cs-tile-tl { top: -22px; left: -22px; }
.cs-tile-br { right: -22px; bottom: 64px; }
@media (max-width: 560px) {
  .cs-tile-tl { top: -18px; left: -10px; }
  .cs-tile-br { right: -10px; bottom: 72px; }
  .cs-tile { padding: 14px 16px; min-width: 96px; }
  .cs-tile-num { font-size: 22px; }
}

/* Navy CTA button under the screenshot */
.cs-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 18px 24px;
  border-radius: 12px;
  background: hsl(231 52% 27%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.cs-cta:hover { background: hsl(231 54% 21%); transform: translateY(-1px); }
.cs-cta svg { transition: transform .18s ease; }
.cs-cta:hover svg { transform: translateX(3px); }

/* ---------- Dots ---------- */
.cs-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 44px;
}
.cs-dot {
  width: 28px; height: 6px;
  border-radius: 999px;
  border: none;
  background: hsl(220 13% 84%);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.cs-dot:hover { background: hsl(220 13% 72%); }
.cs-dot.is-active { background: hsl(231 52% 34%); width: 40px; }

/* Cross-fade on case switch */
.cs-fade { animation: cs-fade-in .42s cubic-bezier(.22,.61,.36,1); }
@keyframes cs-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
