/* ============================================================
   Services page — layer on top of the cs-* base (case-studies.css).
   Scoped under .cs so it inherits the same tokens and reset.
   ============================================================ */

.cs .svc-hero {
  padding-bottom: clamp(8px, 2vw, 20px);
}

/* Shared section heads (eyebrow comes from .cs-partners__eyebrow) */
.cs .svc-arms__title,
.cs .svc-perform__title,
.cs .svc-approach__title,
.cs .svc-play__title,
.cs .svc-work__title,
.cs .svc-copy__title,
.cs .svc-stats__title {
  margin: 10px 0 0;
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cs-fg);
}

/* ---------- Showreel ---------- */
.cs .svc-reel {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.cs .svc-reel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--cs-r-lg);
  overflow: hidden;
  border: 1px solid var(--cs-card-line);
  background: #000;
  box-shadow: var(--cs-lift);
}
.cs .svc-reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs .svc-reel__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.1) 0%, rgba(9, 9, 11, 0.5) 100%);
  transition: opacity 0.25s var(--ease, ease);
}
.cs .svc-reel__play.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.cs .svc-reel__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding-left: 6px;
  border-radius: 50%;
  font-size: 26px;
  background: var(--cs-accent-grad);
  box-shadow: 0 10px 30px rgba(250, 108, 0, 0.4);
}
.cs .svc-reel__play-label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ---------- What we do (arms) ---------- */
.cs .svc-arms {
  border-top: 1px solid var(--cs-card-line);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cs .svc-arms__head {
  margin-bottom: 32px;
  max-width: 760px;
}
.cs .svc-arms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs .svc-arm {
  background: var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  box-shadow: var(--cs-edge);
  padding: 28px 26px;
  transition: border-color 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}
.cs .svc-arm:hover {
  border-color: var(--cs-card-line-hover);
  box-shadow: var(--cs-lift);
}
.cs .svc-arm__num {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.cs .svc-arm__title {
  margin: 14px 0 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--cs-fg);
}
.cs .svc-arm__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cs-muted);
}

/* ---------- Why us (perform) ---------- */
.cs .svc-perform {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cs .svc-perform__head {
  margin-bottom: 32px;
  max-width: 760px;
}
.cs .svc-perform__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--cs-card-line);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  overflow: hidden;
}
.cs .svc-prop {
  background: #0b0b0e;
  padding: 28px 28px;
}
.cs .svc-prop__icon {
  display: inline-flex;
  width: clamp(34px, 2.6vw, 42px);
  height: clamp(34px, 2.6vw, 42px);
  margin-bottom: 16px;
}
.cs .svc-prop__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cs .svc-prop__title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--cs-fg);
}
.cs .svc-prop__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cs-muted);
}

/* ---------- Approach (steps) ---------- */
.cs .svc-approach {
  border-top: 1px solid var(--cs-card-line);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cs .svc-approach__head {
  max-width: 720px;
  margin-bottom: 36px;
}
.cs .svc-approach__lede {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--cs-muted);
}
.cs .svc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: none;
}
.cs .svc-step {
  border-top: 2px solid var(--cs-card-line-hover);
  padding-top: 18px;
}
.cs .svc-step__num {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.cs .svc-step__title {
  margin: 10px 0 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--cs-fg);
}
.cs .svc-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cs-muted);
}

/* ---------- PLAY insights ---------- */
.cs .svc-play {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cs .svc-play__title {
  margin-top: 10px;
}
.cs .svc-play__lede {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cs-muted);
}
/* Dark card holding the headline stat + the insight list. */
.cs .svc-play__card {
  background: var(--cs-card-grad);
  border: 1px solid var(--cs-card-line);
  border-radius: var(--cs-r-lg);
  padding: clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cs .svc-play__stat-value {
  display: block;
  font-weight: 900;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cs-fg);
}
.cs .svc-play__stat-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cs-muted);
  max-width: 14ch;
}
.cs .svc-play__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs .svc-play__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--cs-fg-2, #ebebeb);
}
.cs .svc-play__tick {
  font-weight: 900;
  flex: none;
}

/* ---------- Our work (formats) ---------- */
.cs .svc-work {
  border-top: 1px solid var(--cs-card-line);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cs .svc-work__head {
  margin-bottom: 28px;
  max-width: 720px;
}
.cs .svc-work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  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 .svc-fmt {
  background: #0b0b0e;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  min-height: 104px;
  transition: background 0.2s var(--ease, ease);
}
.cs .svc-fmt:hover {
  background: #121216;
}
.cs .svc-fmt__num {
  font-weight: 900;
  font-size: 12px;
  color: var(--cs-accent);
}
.cs .svc-fmt__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--cs-fg);
}

/* ---------- Copywriting ---------- */
.cs .svc-copy {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cs .svc-copy__head {
  margin-bottom: 24px;
  max-width: 720px;
}
.cs .svc-copy__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cs .svc-copy__pill {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--cs-card-line-hover);
  background: var(--cs-card-grad);
  font-size: 15px;
  font-weight: 500;
  color: var(--cs-fg-2, #ebebeb);
}

/* ---------- Proof stats ---------- */
.cs .svc-stats {
  border-top: 1px solid var(--cs-card-line);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.cs .svc-stats__head {
  margin-bottom: 32px;
  max-width: 720px;
}
.cs .svc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.cs .svc-stat__v {
  display: block;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.cs .svc-stat__l {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--cs-muted);
}
.cs .svc-stats__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--cs-fg);
  text-decoration: none;
}
.cs .svc-stats__cta:hover .cs-arrow {
  transform: translateX(4px);
}

/* ---------- Services diagram: per-item example media (image or video) ---------- */
/* Desktop: under the description inside the animated display card (grid col 2,
   row 3). Same class for <img> and <video> — object-fit works on both. */
.cs .services-balance__display-media {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  display: block;
  /* Bigger + wider; natural aspect (no crop) whatever the media's format. */
  width: clamp(340px, 44vw, 680px);
  max-width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.75);
}
/* Mobile stacked list: under the text, aligned with the title column. */
.cs .services-diagram__list-media {
  grid-column: 2;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Approach wheel (reuse of the Platform wheel) ---------- */
/* Scoped to .cs so ONLY the Services wheel shrinks (Platform's is untouched):
   a touch smaller than Platform so the ring + point labels fit the desktop
   viewport instead of overflowing. */
.cs .craftsman-wheel__ring,
.cs .craftsman-wheel__points {
  width: min(520px, 48vh, 86%);
}
/* The two bottom points (Launch / Reporting) carry long descriptions, so their
   centred labels collide. Cap their width and splay them outward — the left one
   to the left, the right one to the right — so they clear the centre. */
.cs .craftsman-wheel__point[data-side="bottom"] .craftsman-wheel__label {
  max-width: min(28vw, 230px);
}
.cs .craftsman-wheel__point[data-side="bottom"][data-half="left"] .craftsman-wheel__label {
  transform: translateX(-74%);
}
.cs .craftsman-wheel__point[data-side="bottom"][data-half="right"] .craftsman-wheel__label {
  transform: translateX(-26%);
}
/* Centre the title over its description on the side points too (Orchestrate,
   Optimization), so every title is centred like the top/bottom ones. */
.cs .craftsman-wheel__point[data-side="right"] .craftsman-wheel__label,
.cs .craftsman-wheel__point[data-side="left"] .craftsman-wheel__label {
  text-align: center;
}
/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .cs .svc-arms__grid {
    grid-template-columns: 1fr;
  }
  .cs .svc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs .svc-work__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cs .svc-play {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cs .svc-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cs .svc-perform__grid {
    grid-template-columns: 1fr;
  }
  .cs .svc-steps {
    grid-template-columns: 1fr;
  }
  .cs .svc-work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs .svc-play__card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Bottom CTA: "Send a brief" (sober, centered) ---------- */
.cs .svc-brief {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 3.5vw, 40px);
  padding-top: clamp(72px, 9vw, 140px);
  padding-bottom: clamp(72px, 9vw, 140px);
}
.cs .svc-brief__title {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 4.6vw, 64px);
  color: var(--cs-fg);
}
.cs .svc-brief__title span {
  display: block;
}
.cs .svc-brief__title span + span {
  color: var(--cs-muted-2);
}
.cs .svc-brief__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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 .svc-brief__btn .cs-arrow {
  color: #fff;
}
.cs .svc-brief__btn:hover {
  transform: translateY(-2px);
}
.cs .svc-brief__btn:hover .cs-arrow {
  transform: translateX(4px);
}

/* ---------- Creative services: sticky card deck (#svc-deck) ---------- */
.cs .svc-deck {
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: clamp(56px, 7vw, 110px);
}
.cs .svc-deck__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.cs .svc-deck__title {
  margin: 10px 0 0;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cs-fg);
}
.cs .svc-deck__title .cs-grad {
  display: block;
}
.cs .svc-deck__lede {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cs-muted-2);
  max-width: 520px;
}
.cs .svc-deck__stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}
.cs .svc-deck__card {
  position: sticky;
  top: calc(76px + var(--deck-i) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: clamp(360px, 52vh, 520px);
  border-radius: var(--cs-r-lg);
  border: 1px solid var(--cs-card-line);
  background: var(--cs-card-grad);
  overflow: hidden;
  box-shadow: var(--cs-lift);
  transform-origin: center top;
  will-change: transform, filter;
}
/* Scroll-driven push-back while the next card covers this one (--cov from
   services.js; stays 0 without JS or under reduced motion). */
.cs .has-fx .svc-deck__card {
  transform: scale(calc(1 - 0.05 * var(--cov, 0)));
  filter: brightness(calc(1 - 0.32 * var(--cov, 0))) saturate(calc(1 - 0.3 * var(--cov, 0)));
}
/* Gradient hairline drawing in across the card top as it arrives (--arr). */
.cs .svc-deck__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: var(--cs-accent-grad);
  transform: scaleX(var(--arr, 1));
  transform-origin: left;
  pointer-events: none;
}
.cs .svc-deck__card:nth-child(even)::before {
  transform-origin: right;
}
/* Alternate the artwork side card by card */
.cs .svc-deck__card:nth-child(even) {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.cs .svc-deck__card:nth-child(even) .svc-deck__body {
  order: 2;
}
.cs .svc-deck__card:nth-child(even) .svc-deck__visual {
  order: 1;
}
.cs .svc-deck__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3.5vw, 48px);
}
.cs .svc-deck__num {
  margin-bottom: auto;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  background: var(--cs-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.16;
  transition: opacity 0.6s var(--ease, ease);
}
/* The number lights up once the card settles into place */
.cs .svc-deck__card.is-set .svc-deck__num {
  opacity: 1;
}
.cs .svc-deck__card-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--cs-fg);
}
.cs .svc-deck__desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cs-muted-2);
  max-width: 440px;
}
.cs .svc-deck__visual {
  position: relative;
  min-height: 240px;
}
.cs .svc-deck__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Parallax settle: the artwork starts slightly zoomed/offset and eases into
   place as the card reaches its pin position. Copy drifts up with it. */
.cs .has-fx .svc-deck__media {
  transform: translateY(calc((1 - var(--arr, 1)) * -4%)) scale(calc(1.14 - 0.14 * var(--arr, 1)));
  will-change: transform;
}
.cs .has-fx .svc-deck__card-title,
.cs .has-fx .svc-deck__desc {
  opacity: calc(0.15 + 0.85 * var(--arr, 1));
  transform: translateY(calc((1 - var(--arr, 1)) * 18px));
}
/* Soft fade from the card body into the artwork */
.cs .svc-deck__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.55), transparent 38%);
  pointer-events: none;
}
.cs .svc-deck__card:nth-child(even) .svc-deck__visual::after {
  background: linear-gradient(270deg, rgba(9, 9, 11, 0.55), transparent 38%);
}
@media (max-width: 860px) {
  .cs .svc-deck__card,
  .cs .svc-deck__card:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cs .svc-deck__card:nth-child(even) .svc-deck__body {
    order: 1;
  }
  .cs .svc-deck__card:nth-child(even) .svc-deck__visual {
    order: 2;
  }
  .cs .svc-deck__visual {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  /* Stacked layout: the body sits ABOVE the artwork, so the fade must come
     from the top edge — the desktop side gradients read as a misplaced black
     smear on a 16/9 image (client feedback, Jul 10). */
  .cs .svc-deck__visual::after,
  .cs .svc-deck__card:nth-child(even) .svc-deck__visual::after {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.55), transparent 38%);
  }
  .cs .svc-deck__num {
    font-size: clamp(36px, 10vw, 56px);
  }
}
