/**
 * Case Studies (phase-2) — scoped under .cs
 * Faithful port of the Figma "1 · Case Studies — Landing".
 * Brand orange/pink reuse the site variables (--accent-*) for consistency;
 * the dark neutrals are page-local tokens taken from the Figma.
 */

.cs {
  /* Local tokens from the Figma */
  --cs-card: #121215;
  /* Card surfaces: faint top-light gradient + 1px inner highlight instead of flat fills */
  --cs-card-grad: linear-gradient(180deg, #17171b 0%, #101013 100%);
  --cs-edge: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --cs-card-line: rgba(255, 255, 255, 0.07);
  --cs-card-line-hover: rgba(255, 255, 255, 0.16);
  --cs-line-soft: rgba(255, 255, 255, 0.05);
  /* Radius scale: 8 (chips) / 12 (tiles) / 20 (cards) */
  --cs-r-sm: 8px;
  --cs-r-md: 12px;
  --cs-r-lg: 20px;
  /* Hover lift: depth + a whisper of brand glow */
  --cs-lift: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(250, 108, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --cs-pill: #1c1c21;
  --cs-mark: #1f1f24;
  --cs-fg: #fafafa;
  --cs-fg-2: #ebebeb;
  --cs-muted: #8c8c91;
  --cs-muted-2: #99999e;
  --cs-dim: #737375;
  --cs-grey: #393939;
  --cs-grey-fg: #99999e;
  --cs-grey-fg-2: #949499;
  --cs-blue: linear-gradient(137deg, #0a73e5 14%, #052e80 86%);
  --cs-blue-2: linear-gradient(153deg, #0a73e5 14%, #052e80 86%);
  --cs-purple: linear-gradient(132deg, #6626d9 14%, #b81ab2 50%, #e30a80 86%);
  --cs-purple-2: linear-gradient(142deg, #6626d9 14%, #e30a80 86%);

  /* Brand accents — pulled from the site root, with Figma values as fallback */
  --cs-accent: var(--accent, #fa6c00);
  --cs-accent-grad: var(--accent-gradient, linear-gradient(90deg, #fa6c00, #eb5173));

  /* Ambient warmth, same recipe as the home's radial glows, kept very low */
  background:
    radial-gradient(46% 30% at 84% 2%, rgba(250, 108, 0, 0.07) 0%, transparent 65%),
    radial-gradient(40% 26% at 4% 30%, rgba(235, 81, 115, 0.05) 0%, transparent 65%),
    radial-gradient(46% 26% at 90% 72%, rgba(250, 108, 0, 0.04) 0%, transparent 65%),
    var(--bg, #09090b);
  color: var(--cs-fg);
  font-family: var(--font-sans);
}

/* Scroll reveal: elements get .cs-reveal from JS, so no-JS stays fully visible */
@media (prefers-reduced-motion: no-preference) {
  .cs .cs-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s var(--ease-out-quart, ease-out), transform 0.65s var(--ease-out-quart, ease-out);
    transition-delay: var(--cs-reveal-delay, 0s);
  }
  .cs .cs-reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Centred content column: matches the Figma's 80px gutters at 1440px */
.cs-wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.cs-grad {
  background: var(--cs-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-arrow {
  display: inline-block;
  color: var(--cs-accent);
  transition: transform 0.25s var(--ease, ease);
}

/* The arrow nudges right when its card or link is hovered */
.cs-card:hover .cs-arrow,
.cs-vcard:hover .cs-arrow,
.cs-featured:hover .cs-arrow,
.cs-partner:hover .cs-arrow,
.cs-seeall:hover .cs-arrow {
  transform: translateX(4px);
}

/* Link-styled CTAs keep their text colour and lose the underline */
.cs-seeall,
.cs-card__more,
.cs-featured__more,
.cs-vcard__more,
.cs-partner__more {
  text-decoration: none;
  color: var(--cs-fg);
  cursor: pointer;
}

/* Whole case-study card is clickable: the "Read more" link stretches over it */
.cs-card,
.cs-vcard {
  position: relative;
}

.cs-card__more::after,
.cs-vcard__more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ───────────────────────── Hero / header ───────────────────────── */

.cs-hero {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.cs-hero__eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--cs-fg);
  max-width: 1240px;
}

.cs-hero__lede {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--cs-muted-2);
  max-width: 680px;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-top: 14px;
}

.cs-meta__item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cs-meta__num {
  font-weight: 900;
  font-size: 20px;
  color: var(--cs-accent);
}

.cs-meta__label {
  font-weight: 400;
  font-size: 14px;
  color: var(--cs-muted);
}

/* ───────────────────────── Sector blocks ───────────────────────── */

.cs-sector {
  padding-top: 8px;
  padding-bottom: clamp(64px, 8vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-sector--last {
  padding-bottom: clamp(88px, 9vw, 128px);
}

.cs-sector__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cs-sector__left {
  display: flex;
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.cs-sector__lw {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.cs-sector__name {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.26px;
  line-height: 1;
  color: var(--cs-accent);
}

.cs-sector__tag {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: var(--cs-muted);
}

.cs-seeall {
  flex-shrink: 0;
  font-weight: 500;
  font-size: 15px;
  color: var(--cs-fg);
  white-space: nowrap;
}

.cs-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* ───────────────────────── Case card ───────────────────────── */

.cs-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  min-height: 290px;
  background: var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  box-shadow: var(--cs-edge);
  overflow: hidden;
  transition: transform 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}

.cs-card--featured {
  border-width: 1.5px;
  border-color: var(--cs-accent);
}

.cs-card:hover {
  transform: translateY(-3px);
  border-color: var(--cs-card-line-hover);
  box-shadow: var(--cs-lift);
}

.cs-card--featured:hover {
  border-color: var(--cs-accent);
}

.cs-card__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 22px 26px 26px;
}

.cs-card__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-card__logo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--cs-r-sm);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.26px;
  color: var(--cs-fg);
}

/* Brand logo inside the chip, normalised to white */
.cs-card__logo-chip {
  display: block;
  height: 16px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Full-colour chip artwork (PNG), shown as supplied */
.cs-card__logo-chip--color {
  filter: none;
  opacity: 1;
}

.cs-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.26;
  color: var(--cs-fg-2);
}

.cs-card__stats {
  display: flex;
  gap: 22px;
}

.cs-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-stat__v {
  font-weight: 900;
  font-size: 21px;
  color: var(--cs-fg);
  white-space: nowrap;
}

.cs-stat__l {
  font-weight: 400;
  font-size: 11px;
  line-height: 1.3;
  color: var(--cs-dim);
}

.cs-card__more {
  font-weight: 500;
  font-size: 14px;
  color: var(--cs-fg);
  white-space: nowrap;
}

.cs-card__visual {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.45s var(--ease, ease);
}

.cs-card:hover .cs-card__visual {
  transform: scale(1.04);
}

.cs-card__visual--blue {
  background: var(--cs-blue);
}

.cs-card__visual--grey {
  background: var(--cs-grey);
}

/* Campaign still fills the visual half edge to edge */
.cs-card__visual--photo {
  padding: 0;
  background: var(--cs-grey);
}

.cs-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-card__brand {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.24px;
  text-align: center;
  color: #fff;
}

.cs-card__visual--grey .cs-card__brand {
  color: var(--cs-grey-fg);
}

/* Real brand logo on the card visual, normalised to white */
.cs-card__logo-img {
  max-width: 72%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.cs-card__visual--grey .cs-card__logo-img {
  opacity: 0.7;
}

/* ───────────────────────── Partner integrations ───────────────────────── */

.cs-partners {
  border-top: 1px solid var(--cs-card-line);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cs-partners__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-partners__eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-partners__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.92px;
  line-height: 1.05;
  color: var(--cs-fg);
}

.cs-partners__lede {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--cs-muted);
  max-width: 720px;
}

/* Logo wall: one bordered container, cells split by hairlines (1px gaps
   over the line colour). Quiet by default, each cell lights up on hover. */
.cs-pwall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--cs-card-line);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  overflow: hidden;
}

.cs-pwall__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 128px;
  padding: 16px;
  background: #0b0b0e;
  text-decoration: none;
  transition: background 0.25s var(--ease, ease);
}

.cs-pwall__cell:hover {
  background: #121216;
}

.cs-pwall__img {
  max-width: 128px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease, ease);
}

.cs-pwall__cell:hover .cs-pwall__img {
  opacity: 1;
}

/* Closing cell: the one real link of the wall */
.cs-pwall__cell--cta {
  gap: 8px;
}

.cs-pwall__plus {
  font-weight: 900;
  font-size: 20px;
  background: var(--cs-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-pwall__cta-label {
  font-weight: 500;
  font-size: 13px;
  color: var(--cs-fg);
  white-space: nowrap;
}

.cs-pwall__cell--cta:hover .cs-arrow {
  transform: translateX(4px);
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 1024px) {
  .cs-pwall {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 9 logos fill 3 rows exactly; the CTA takes a full-width closing row */
  .cs-pwall__cell--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  /* 2 cols: the 9th logo and the CTA each take a full row, no orphan slot */
  .cs-pwall__cell:nth-last-child(2),
  .cs-pwall__cell--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cs-row {
    flex-direction: column;
  }
  .cs-card {
    height: auto;
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .cs-pwall {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-card {
    flex-direction: column;
  }
  .cs-card__visual {
    order: -1;
    min-height: 132px;
  }
  .cs-sector__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ═════════════════ Page 2 — Case Studies "See All" ═════════════════ */

/* Hero variant: two-line title, slightly tighter */
.cs-hero--all .cs-hero__title {
  letter-spacing: -0.03em;
  line-height: 0.94;
}

/* Filter pills */
.cs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 40px;
}

.cs-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--cs-card-line);
  background: #131316;
  color: #9e9ea3;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--ease, ease), color 0.2s var(--ease, ease), background 0.2s var(--ease, ease);
}

.cs-pill:hover {
  color: var(--cs-fg);
  border-color: var(--border-strong, rgba(255, 255, 255, 0.12));
}

.cs-pill--active {
  background: var(--cs-accent);
  border-color: transparent;
  color: #0d0d0d;
  font-weight: 700;
}

.cs-pill--active:hover {
  color: #0d0d0d;
}

/* Case index */
.cs-index {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: clamp(56px, 7vw, 88px);
}

/* Featured (T-Mobile) card */
.cs-featured {
  display: flex;
  align-items: stretch;
  height: 460px;
  background: var(--cs-card-grad);
  border: 1.5px solid var(--cs-accent);
  border-radius: var(--cs-r-lg);
  box-shadow: var(--cs-edge);
  overflow: hidden;
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}

.cs-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--cs-lift);
}

.cs-featured__content {
  flex: 0 0 640px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 40px 40px 44px;
}

.cs-featured__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-featured__row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cs-featured__num {
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
}

.cs-featured__tag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-featured__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.76px;
  color: #f2f2f2;
}

.cs-featured__stats {
  display: flex;
  gap: 32px;
}

.cs-featured__stats .cs-stat__v {
  font-size: 28px;
}

.cs-featured__stats .cs-stat__l {
  font-size: 12px;
}

.cs-featured__more {
  font-weight: 500;
  font-size: 15px;
  color: var(--cs-fg);
  white-space: nowrap;
}

.cs-featured__visual {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--cs-purple);
}

.cs-featured__brand {
  font-weight: 900;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.92px;
  color: #fff;
  text-align: center;
}

/* Masonry: three columns, cards assigned round-robin (matches the Figma) */
.cs-masonry {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cs-mcol {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Vertical card (visual on top, body below).
   Fixed height keeps every entry consistent; the visual flexes to absorb
   differences in title length so cards stay equal height without truncation. */
.cs-vcard {
  display: flex;
  flex-direction: column;
  height: 420px;
  background: var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  box-shadow: var(--cs-edge);
  overflow: hidden;
  transition: transform 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}

.cs-vcard:hover {
  transform: translateY(-3px);
  border-color: var(--cs-card-line-hover);
  box-shadow: var(--cs-lift);
}

.cs-vcard__visual {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.45s var(--ease, ease);
}

.cs-vcard:hover .cs-vcard__visual {
  transform: scale(1.04);
}

.cs-vcard__visual--blue {
  background: var(--cs-blue-2);
}

.cs-vcard__visual--purple {
  background: var(--cs-purple-2);
}

.cs-vcard__visual--grey {
  background: var(--cs-grey);
}

.cs-vcard__brand {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.6px;
  color: #fff;
  text-align: center;
}

.cs-vcard__visual--grey .cs-vcard__brand {
  color: var(--cs-grey-fg-2);
}

.cs-vcard__body {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
}

.cs-vcard__row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cs-vcard__cat {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-vcard__title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.24;
  color: #f0f0f0;
  /* Safety bound: only an unusually long headline (6+ lines) is clamped, so the
     "Read more" link is never pushed out of the fixed-height card. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.cs-vcard__stats {
  display: flex;
  gap: 22px;
}

.cs-vcard__stats .cs-stat__v {
  font-size: 20px;
}

.cs-vcard__stats .cs-stat__l {
  font-size: 11px;
}

.cs-vcard__more {
  font-weight: 500;
  font-size: 13px;
  color: var(--cs-fg);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .cs-masonry {
    flex-direction: column;
  }
  .cs-mcol {
    width: 100%;
  }
  /* Single column: let stacked cards size to content with a uniform image height. */
  .cs-vcard {
    height: auto;
  }
  .cs-vcard__visual {
    flex: 0 0 auto;
    height: 200px;
  }
  .cs-featured {
    flex-direction: column;
    height: auto;
  }
  .cs-featured__content {
    flex: 1 1 auto;
    max-width: none;
    gap: 24px;
  }
  .cs-featured__visual {
    order: -1;
    min-height: 200px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cs-featured__stats {
    flex-wrap: wrap;
    gap: 18px;
  }
}

/* ═════════════════ Page 3 — Case Study Detail (T-Mobile) ═════════════════ */

/* Hero */
.cs-dhero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.cs-dhero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cs-fg);
}

.cs-dhero__sub {
  margin: 0;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cs-fg);
  max-width: 860px;
}

/* Full-bleed image blocks (hero image, campaign reel) */
.cs-dband {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.cs-dband--hero {
  height: clamp(340px, 44vw, 640px);
  background: var(--cs-purple);
}

.cs-dband--reel {
  height: clamp(320px, 42vw, 600px);
  background: linear-gradient(135deg, #16131d 0%, #211526 58%, #2c1626 100%);
}

.cs-dband__label {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.cs-dband--hero .cs-dband__label {
  font-size: clamp(32px, 4vw, 46px);
}

.cs-dband--reel .cs-dband__label {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cs-muted-2);
}

/* Meta bar */
.cs-metabar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--cs-line-soft);
  padding-top: 40px;
  padding-bottom: 40px;
}

.cs-metacol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-metacol__label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-metacol__val {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cs-fg);
}

/* Intro lead paragraph */
.cs-intro {
  padding-top: 8px;
  padding-bottom: clamp(36px, 5vw, 56px);
}

.cs-intro__text {
  margin: 0;
  font-weight: 500;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.5;
  color: #d4d4d8;
  max-width: 880px;
}

/* Three-column prose (Challenge / Strategy / Solution) */
.cs-cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.cs-col__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 18px;
  color: var(--cs-accent);
}

.cs-col__text {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cs-muted);
}

/* Image pair */
.cs-imgpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.cs-imgblock {
  height: clamp(280px, 31vw, 440px);
  border-radius: var(--cs-r-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

.cs-imgblock--purple {
  background: var(--cs-purple-2);
}

.cs-imgblock--grey {
  background: var(--cs-grey);
}

.cs-imgblock__label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.cs-imgblock--grey .cs-imgblock__label {
  color: var(--cs-grey-fg-2);
}

/* Big section heading + lead (The Creative / The Results) */
.cs-bighead {
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: 8px;
}

.cs-bighead__title {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  color: var(--cs-fg);
}

.cs-bighead__text {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cs-muted);
  max-width: 820px;
}

/* Creative gallery: six posters */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding-top: 28px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.cs-ad {
  position: relative;
  aspect-ratio: 200 / 300;
  border-radius: var(--cs-r-md);
  border: 1px solid var(--cs-card-line);
  background: linear-gradient(165deg, #1b1b22 0%, #101014 100%);
  box-shadow: var(--cs-edge);
  overflow: hidden;
}

.cs-ad__num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-weight: 900;
  font-size: 15px;
  color: var(--cs-muted-2);
}

/* Pull quote */
.cs-quote {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.cs-quote__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.5;
  font-weight: 700;
}

.cs-quote__text {
  margin: 0;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--cs-fg);
  max-width: 1120px;
}

.cs-quote__by {
  font-weight: 500;
  font-size: 15px;
  color: var(--cs-muted);
}

/* Result stats */
.cs-rstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 8px;
  padding-bottom: clamp(48px, 6vw, 72px);
}

.cs-rstat__v {
  display: block;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cs-rstat__l {
  display: block;
  margin-top: 10px;
  font-weight: 400;
  font-size: 16px;
  color: var(--cs-muted);
}

/* Next up */
.cs-nextup {
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.cs-nextup__eyebrow {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-nextup__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CTA banner */
.cs-cta {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.cs-cta__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(250, 108, 0, 0.08) 0%, transparent 60%),
    var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  box-shadow: var(--cs-edge);
  padding: 44px 48px;
}

.cs-cta__title {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  color: var(--cs-fg);
}

.cs-cta__lede {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  color: var(--cs-muted);
  max-width: 780px;
}

.cs-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: var(--cs-r-md);
  background: var(--cs-accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s var(--ease, ease);
}

.cs-cta__btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 980px) {
  .cs-metabar {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .cs-cols3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cs-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .cs-rstats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .cs-nextup__row {
    grid-template-columns: 1fr;
  }
  .cs-cta__banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cs-imgpair {
    grid-template-columns: 1fr;
  }
  .cs-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-metabar {
    grid-template-columns: 1fr;
  }
}

/* ═════════════════ Page 4 — Partner Integration ═════════════════ */

/* Hero (centred) */
.cs-uhero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.cs-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-lockup__logo {
  height: 20px;
  width: auto;
}

.cs-lockup__x {
  font-weight: 400;
  font-size: 22px;
  color: var(--cs-muted-2);
}

.cs-lockup__partner {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.22px;
  color: var(--cs-fg);
}

.cs-uhero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cs-fg);
  max-width: 960px;
}

.cs-uhero__lede {
  margin: 0;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.52;
  color: var(--cs-muted-2);
  max-width: 720px;
}

.cs-ucta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 17px 30px;
  border-radius: var(--cs-r-md);
  background: var(--cs-accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: filter 0.2s var(--ease, ease);
}

.cs-ucta:hover {
  filter: brightness(1.08);
}

/* Trusted by */
.cs-trusted {
  border-top: 1px solid var(--cs-line-soft);
  border-bottom: 1px solid var(--cs-line-soft);
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cs-trusted__label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.cs-trusted__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.cs-trusted__logo {
  font-weight: 900;
  font-size: 18px;
  color: #9e9ea3;
  opacity: 0.7;
}

/* Explore ads */
.cs-explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-top: clamp(56px, 7vw, 80px);
  padding-bottom: clamp(56px, 7vw, 80px);
}

.cs-explore__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.84px;
  color: var(--cs-fg);
  text-align: center;
}

.cs-phones {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding-inline: clamp(20px, 5vw, 80px);
  padding-block: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

/* Explore section reuses the home .phone-card mockup + live playables */
.cs-phones .phone-card {
  scroll-snap-align: start;
}

.cs-phones .phone-card:hover iframe.phone-card__media {
  pointer-events: auto;
}

/* Trusted-by logos */
.cs-trusted__logo-img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.cs-phone {
  flex: 0 0 168px;
  height: 340px;
  border-radius: 18px;
  border: 1px solid #2e2e33;
  background: #333336;
  display: flex;
  justify-content: center;
  padding-top: 16px;
  scroll-snap-align: start;
}

.cs-phone--blue {
  background: linear-gradient(116deg, #0a73e5 14%, #052e80 86%);
  border-color: transparent;
}

.cs-phone--purple {
  background: linear-gradient(108deg, #6626d9 14%, #e30a80 86%);
  border-color: transparent;
}

.cs-phone--orange {
  background: linear-gradient(110deg, #f2591a 14%, #cc1a33 86%);
  border-color: transparent;
}

.cs-phone__label {
  font-weight: 700;
  font-size: 13px;
  color: #b2b2b8;
}

.cs-phone--blue .cs-phone__label,
.cs-phone--purple .cs-phone__label,
.cs-phone--orange .cs-phone__label {
  color: #fff;
}

/* Why choose us */
.cs-why {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(56px, 7vw, 80px);
}

.cs-why__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.cs-why__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.84px;
  color: var(--cs-fg);
}

.cs-why__sub {
  margin: 0;
  font-weight: 400;
  font-size: 17px;
  color: var(--cs-muted);
}

.cs-steps {
  display: flex;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.cs-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  box-shadow: var(--cs-edge);
}

.cs-step__h {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cs-step__num {
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}

.cs-step__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--cs-fg);
}

.cs-step__rule {
  height: 1px;
  width: 100%;
  background: var(--cs-card-line);
}

.cs-step__b {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cs-step__arrow {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--cs-accent);
  line-height: 1.5;
}

.cs-step__text {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #b2b2b8;
}

@media (max-width: 860px) {
  .cs-steps {
    flex-direction: column;
  }
}


/* ============================================================
   CMS-fed case studies (cmp_case_study CPT)
   ============================================================ */

/* Card visual showing the case study's hero image. */
.cs-vcard__visual--img {
  padding: 0;
  overflow: hidden;
  background: var(--cs-grey);
}

.cs-vcard__visual--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Client logo fallback inside a colored visual block. */
.cs-vcard__logo {
  max-width: 70%;
  max-height: 64px;
  object-fit: contain;
}

/* Hero band rendering the imported hero image edge-to-edge. */
.cs-dband--img {
  padding: 0;
  overflow: hidden;
}

.cs-dband--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail hero image: contained to the content column (not full-bleed), rounded. */
.cs-dhero__media {
  padding-bottom: clamp(28px, 4vw, 56px);
}

.cs-dhero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cs-r-lg);
}

/* Imported content image (challenge / solution / results). */
.cs-imgblock--photo {
  padding: 0;
  overflow: hidden;
}

.cs-imgblock--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Imported rich HTML (Framer export: p, strong, em, ul, h6). */
.cs-rich {
  text-align: left;
}

.cs-rich p {
  margin: 0 0 14px;
}

.cs-rich p:last-child {
  margin-bottom: 0;
}

.cs-rich ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.cs-rich li {
  margin-bottom: 6px;
}

.cs-rich h6 {
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 18px 0 8px;
}
