/* case-study.css — PAGE styles. Every selector is scoped under .cs
   so nothing leaks into (or is overridden by) the host project's header/footer. */
.cs {
  display: block;
}
.cs section {
  position: relative;
}
.cs .eyebrow {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--grey);
  text-transform: uppercase;
  line-height: 1.33;
}
.cs .sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.cs .sec-head h2,
.cs .side-title h2 {
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(40px, 3.75vw, 72px);
  line-height: 1.36;
}
.cs .sec-head p,
.cs .side-title p {
  font-weight: 500;
  color: var(--muted);
  font-size: clamp(18px, 1.25vw, 24px);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cs .pad {
  padding: var(--pad-y) var(--pad-x);
}
.cs .wrap {
  max-width: 1680px;
  margin: 0 auto;
}

/* ---- Case header ---- */
.cs .case-head {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: clamp(56px, 5.7vw, 110px) var(--pad-x) clamp(40px, 3.3vw, 64px);
}
.cs .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  border-radius: 999px;
  padding: 10px 22px;
}
.cs .pill i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.cs .pill span {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--ink);
}
.cs .case-head h1 {
  font-weight: 800;
  font-size: clamp(56px, 7.3vw, 140px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.cs .lede {
  font-weight: 500;
  font-size: clamp(20px, 1.56vw, 30px);
  line-height: 1.27;
  color: var(--muted);
  max-width: 1000px;
}
.cs .meta {
  width: 100%;
  max-width: 1400px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 16px;
}
.cs .meta div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.cs .meta dt {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--grey);
  text-transform: uppercase;
}
.cs .meta dd {
  font-weight: 700;
  font-size: clamp(22px, 1.46vw, 28px);
  line-height: 1.36;
  color: var(--dark);
}

/* ---- Image slots (swap the placeholder for <img>) ---- */
.cs .slot {
  position: relative;
  overflow: hidden;
  background: var(--sand-2);
  border: 1px solid #d3c8ae;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}
.cs .slot b {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--grey);
}
.cs .slot span {
  font-weight: 500;
  font-size: 20px;
  color: var(--grey);
}
.cs .slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs .cover {
  background: var(--cream);
  padding: 0 var(--pad-x) clamp(48px, 5vw, 96px);
}
.cs .cover .slot {
  max-width: 1680px;
  margin: 0 auto;
  aspect-ratio: 1680 / 640;
  border-radius: 24px;
}

/* ---- Overview / Takeaways (two-column) ---- */
.cs .split {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(32px, 4.2vw, 80px);
  align-items: start;
}
.cs .side-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs .overview-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs .overview-text p {
  font-weight: 500;
  font-size: clamp(20px, 1.56vw, 30px);
  line-height: 1.33;
  color: var(--muted);
}

/* ---- Challenge / Solution ---- */
.cs .duo {
  background: var(--lavender);
}
.cs .duo .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cs .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 2.3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs .panel h3 {
  font-weight: 700;
  font-size: clamp(28px, 2.1vw, 40px);
  line-height: 1.1;
  color: var(--dark);
}
.cs .panel p {
  font-weight: 500;
  font-size: clamp(19px, 1.25vw, 24px);
  line-height: 1.25;
  color: var(--grey);
}
.cs .label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--grey);
  text-transform: uppercase;
}

/* ---- Process ---- */
.cs .process {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.cs .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
}
.cs .step {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.cs .step:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -28px rgba(14, 47, 44, .45);
}
.cs .num {
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
}
.cs .step h3 {
  font-weight: 700;
  font-size: clamp(28px, 2.1vw, 36px);
  line-height: 1.1;
  color: var(--dark);
}
.cs .step p {
  font-weight: 500;
  font-size: clamp(19px, 1.15vw, 22px);
  line-height: 1.27;
  color: var(--grey);
}

/* ---- Results (matches homepage Stats) ---- */
.cs .results {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.cs .stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px clamp(40px, 6.25vw, 120px);
}
.cs .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.cs .stat b {
  font-weight: 800;
  font-size: clamp(56px, 5vw, 96px);
  line-height: 1.35;
  color: var(--dark);
}
.cs .stat span {
  font-weight: 500;
  font-size: 22px;
  color: var(--grey);
}
.cs .results-note {
  font-weight: 500;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.3;
  color: var(--muted);
  text-align: center;
  max-width: 960px;
  margin: -32px auto 0;
}

/* ---- Gallery ---- */
.cs .gallery {
  background: var(--lavender);
}
.cs .gallery .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cs .gallery .slot {
  aspect-ratio: 828 / 520;
  border-radius: 16px;
}

/* ---- Takeaways ---- */
.cs .takeaways {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs .takeaways li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--sand);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 24px 28px;
  font-weight: 500;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: 1.23;
  color: var(--dark);
}
.cs .takeaways li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  background: #e4e4e7;
  border: 1px solid var(--grey);
}

/* ---- Next case study ---- */
.cs .next {
  background: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cs .next .eyebrow {
  font-size: clamp(20px, 1.46vw, 28px);
  letter-spacing: .04em;
}
.cs .next h2 {
  font-weight: 800;
  font-size: clamp(48px, 6.25vw, 120px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.cs .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .cs .split {
    grid-template-columns: 1fr;
  }
  .cs .meta {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }
  .cs .duo .wrap,
  .cs .gallery .wrap {
    grid-template-columns: 1fr;
  }
  .cs .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cs .steps {
    grid-template-columns: 1fr;
  }
  .cs .meta {
    grid-template-columns: 1fr;
    padding: 24px 8px;
  }
  .cs .cover .slot {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .cs .takeaways li {
    padding: 18px 20px;
  }
  .cs .pill span {
    font-size: 17px;
  }
}
