/**
 * 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: aliased onto the sitewide card tokens (styles-original.css
     :root) so every page shares one card recipe; Figma values as fallback. */
  --cs-card-grad: var(--card-grad, linear-gradient(180deg, #17171b 0%, #101013 100%));
  --cs-edge: var(--card-edge, inset 0 1px 0 rgba(255, 255, 255, 0.05));
  --cs-card-line: var(--card-line, rgba(255, 255, 255, 0.07));
  --cs-card-line-hover: var(--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: var(--card-r, 20px);
  /* Hover lift: depth + a whisper of brand glow */
  --cs-lift: var(--card-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;
  /* Aliased onto the sitewide tokens (styles-original.css :root) so one swap
     updates every page; Figma values kept as fallback. */
  --cs-fg: var(--fg, #fafafa);
  --cs-fg-2: var(--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(48px, 5vw, 72px);
}

/* Standalone "See all case studies" CTA closing the sector previews */
.cs-allcta {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(88px, 9vw, 128px);
}

.cs-allcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--cs-r-md);
  background: var(--cs-accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease, ease);
}

.cs-allcta__btn:hover {
  transform: translateY(-2px);
}

.cs-allcta__btn .cs-arrow {
  color: #fff;
}

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

.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;
}

/* Platform → networks flow: the PLAY editor framed above the wall, an
   accent arrow connecting the two ("build once → export everywhere"). */
.cs-pflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.cs-pflow__platform {
  position: relative;
  margin: 0;
  width: 100%;
  /* Crops the ~6% black letterbox baked into each side of workspace.png:
     content is 1406×1000 of the 1600×1000 file. */
  aspect-ratio: 703 / 500;
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  overflow: hidden;
  background: var(--cs-card-grad);
  box-shadow: var(--cs-lift);
}

.cs-pflow__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-pflow__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--cs-card-line-hover);
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-fg);
}

.cs-pflow__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 0 4px;
}

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

.cs-pflow__arrow-svg {
  display: block;
}

/* 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;
}

/* Clickable partner cells (fed by the Partners CPT, each linking to its
   own page — client feedback, Jul 10). */
.cs-pwall__cell--link {
  cursor: pointer;
}
.cs-pwall__cell--link:hover .cs-pwall__img {
  opacity: 1;
}
.cs-pwall__name {
  color: var(--cs-fg-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Single partner page (single-cmp_partner.php) ---------- */
.cs .ptn-single__logo {
  display: block;
  margin: 0 auto 18px;
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
}
/* Collab lockup (client, Jul 28): partner logo X CRAFTSMAN+ on one row. */
.cs .ptn-single__lockup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 22px);
  justify-content: center;
  margin-bottom: 18px;
}
.cs .ptn-single__lockup .ptn-single__logo {
  margin: 0;
}
/* X + CRAFTSMAN+ stay glued so a narrow-screen wrap breaks BEFORE the X. */
.cs .ptn-single__lockup-tail {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 22px);
}
.cs .ptn-single__lockup-x {
  color: var(--cs-fg-2);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.cs .ptn-single__lockup-cmp {
  display: block;
  height: 26px;
  width: auto;
}
@media (max-width: 480px) {
  .cs .ptn-single__lockup .ptn-single__logo {
    max-height: 34px;
    max-width: 140px;
  }
  .cs .ptn-single__lockup-cmp {
    height: 20px;
  }
  .cs .ptn-single__lockup-x {
    font-size: 16px;
  }
}
.cs .ptn-single__body {
  color: var(--cs-fg-2);
  font-size: 17px;
  line-height: 1.65;
  margin-top: clamp(24px, 3vw, 48px);
  max-width: 800px;
  padding-bottom: clamp(48px, 6vw, 96px);
}
.cs .ptn-single__body h2,
.cs .ptn-single__body h3 {
  color: var(--cs-fg);
  font-weight: 900;
  line-height: 1.15;
  margin: 1.6em 0 0.6em;
}
.cs .ptn-single__body a {
  color: var(--cs-accent);
}
.cs .ptn-single__body img {
  border-radius: var(--cs-r-md);
  height: auto;
  max-width: 100%;
}

.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).
   Image system reworked on client feedback (Jul 10): every visual renders at
   the SAME height (fixed 16/10 ratio — the old fixed-height card let the
   visual flex to absorb title length, so the crop varied card by card and
   sliced logos). The body absorbs text variance instead: title clamped, the
   "Read more" pinned to the bottom, cards slightly taller when needed and
   equalised per row by the grid. */
.cs-vcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-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;
  /* Uniform image height across every card (16/10 of the column width). */
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  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;
  /* The body (not the image) absorbs title/stats length differences. */
  flex: 1 1 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;
  /* Long headlines wrap on three lines max — the visual keeps its fixed
     ratio whatever the title does (client feedback, Jul 10). */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  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;
  /* Pinned to the card bottom whatever the body holds. */
  margin-top: auto;
}

@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;
}
/* Case study detail pages: blog-like centred column (client, Jul 28 — "tout
   est sur la gauche, ça fait bizarre"). Same principle as .article__inner:
   one narrower column centred in the page, text still left-aligned inside;
   type scale untouched. Scoped to the single-page body class so the
   T-Mobile hero and the listing pages, which share these cs-* classes,
   keep their wide layout. 960px, not the blog's 740: cs type runs a size
   bigger. */
body.single-cmp_case_study .cs-dhero,
body.single-cmp_case_study .cs-rstats,
body.single-cmp_case_study .cs-intro,
body.single-cmp_case_study .cs-bighead,
body.single-cmp_case_study .cs-imgpair,
body.single-cmp_case_study .cs-quote {
  max-width: 960px;
}

/* ---------- Side notes (client, Jul 28) ---------- */
/* Editor "post-it" notes in the right margin, beside the content. From
   1280px up .cs-notes is an absolutely positioned rail (out of flow, so the
   content layout is byte-for-byte unchanged) running from the target section
   down to the end of the content; js/case-studies.js sets --rail-top and
   --rail-height. The inner block is sticky, so the notes ride the scroll
   inside that span and stop with the content. Under 1280px (and with JS off)
   they fall back to a plain stack where the template renders them, after the
   content. */
body.single-cmp_case_study .cs {
  position: relative;
}
.cs-notes {
  margin-inline: auto;
  max-width: 960px;
  padding-inline: clamp(20px, 5vw, 80px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.cs-notes__inner {
  display: grid;
  gap: 12px;
}
.cs-note {
  background: var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-sm);
  box-shadow: var(--cs-edge);
  padding: 14px 16px;
}
.cs-note__text {
  color: var(--cs-muted-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
/* 1280px is where the gutter is genuinely wide enough for a readable note
   (>= 176px). Below it, the stacked fallback above applies. */
@media (min-width: 1280px) {
  .cs-notes {
    /* Anchored 24px past the TEXT edge, not the column box: the column is
       960px centred and its inner padding repeats the .cs-wrap clamp, so
       text ends at 50% + 480px - padding. Width then eats the remaining
       gutter, capped, keeping 24px clear of the viewport edge. */
    height: var(--rail-height, auto);
    left: calc(50% + 480px - clamp(20px, 5vw, 80px) + 24px);
    margin: 0;
    max-width: none;
    padding: 0;
    position: absolute;
    top: var(--rail-top, 0px);
    width: min(260px, calc(50vw - 528px + clamp(20px, 5vw, 80px)));
  }
  .cs-notes__inner {
    /* Clears the fixed nav (76px) with a little air. */
    position: sticky;
    top: 96px;
  }
}

.cs-dhero__title {
  margin: 0;
  font-weight: 900;
  /* Client, Jul 28: the detail titles (long, all-caps sentences) rendered up
     to 112px — way past the rest of the site. Aligned on the standard hero
     scale (.cs-hero__title): same clamp, leading, tracking and measure. */
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--cs-fg);
  max-width: 1240px;
}

.cs-dhero__sub {
  margin: 0;
  font-weight: 900;
  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);
}
/* A lone image on its own row (image below the text, standalone image
   layout): shown AS IS — natural size and ratio, no fixed-height crop, no
   stretch — just centred on the line and capped to the row width (client,
   Jul 28, settled after three passes). */
.cs-imgpair .cs-imgblock:only-child {
  grid-column: 1 / -1;
  height: auto;
  justify-self: center;
  max-width: 100%;
  padding: 0;
}
.cs-imgpair .cs-imgblock:only-child img {
  height: auto;
  max-width: 100%;
  width: auto;
}

.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;
}
/* Split variant (client, Jul 28, structure settled after one iteration):
   TITLE full width on top, then text beside image below — text left /
   image right, or the mirror. Editors pick the side per rich_block in
   wp-admin; the legacy Challenge/Solution/Results alternate automatically.
   Stacks back to title / text / image under 860px. */
.cs-bighead--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  gap: clamp(16px, 2vw, 24px) clamp(24px, 4vw, 48px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 56px);
}
.cs-bighead--split .cs-bighead__title {
  grid-column: 1 / -1;
  margin: 0;
}
.cs-bighead--split .cs-bighead__text {
  grid-row: 2;
  grid-column: 1;
}
.cs-bighead--split .cs-bighead__media {
  grid-row: 2;
  grid-column: 2;
  min-width: 0;
  /* Natural ratio in the split (client, Jul 28: "images écrabouillées") —
     the base .cs-imgblock fixed height + cover crop squeezed wide shots
     into a near-square. */
  height: auto;
}
.cs-bighead--split .cs-bighead__media img {
  height: auto;
}
.cs-bighead--img-left {
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
}
.cs-bighead--img-left .cs-bighead__text {
  grid-column: 2;
}
.cs-bighead--img-left .cs-bighead__media {
  grid-column: 1;
}
@media (max-width: 860px) {
  .cs-bighead--split,
  .cs-bighead--img-left {
    grid-template-columns: 1fr;
  }
  .cs-bighead--split .cs-bighead__text,
  .cs-bighead--img-left .cs-bighead__text,
  .cs-bighead--split .cs-bighead__media,
  .cs-bighead--img-left .cs-bighead__media {
    grid-column: 1;
    grid-row: auto;
  }
}

/* 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: 900;
  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: clamp(40px, 5vw, 64px);
  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-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 24px -12px rgba(250, 108, 0, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: filter 0.2s var(--ease, ease), transform 0.2s var(--ease, ease);
}

.cs-ucta:hover {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-1px);
}

/* 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;
  /* Source artworks carry a centred square safe zone: centre-crop keeps the
     baked-in client logos intact (hard rule). */
  object-position: center;
}

/* 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;
}

/* Standalone content image (flexible "Image" section): full width, rounded,
   natural aspect ratio, with an optional caption. Mirrors the hero image. */
.cs-figure {
  margin: 0;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.cs-figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cs-r-lg);
}
.cs-figure__caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--cs-muted);
  text-align: center;
}

/* 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: 900;
  letter-spacing: 0.04em;
  margin: 18px 0 8px;
}
