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

/* ---------- Case studies carousel (pinned, scroll-driven by category) ---------- */
.cs .svc-cases {
  border-top: 1px solid var(--cs-card-line);
  position: relative;
}
/* Tall track = the scroll distance to step through every category while pinned. */
.cs .svc-cases__track {
  position: relative;
  min-height: calc(100vh + (var(--svc-cases-n, 5) - 1) * 52vh);
}
.cs .svc-cases__pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.cs .svc-cases__inner {
  width: 100%;
  padding-top: clamp(32px, 5vh, 64px);
  padding-bottom: clamp(32px, 5vh, 64px);
}
.cs .svc-cases__head {
  margin-bottom: clamp(20px, 3vw, 36px);
}
.cs .svc-cases__title {
  margin: 8px 0 0;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
/* Row of category cards; the active one grows, the rest stay compact. */
.cs .svc-cases__cards {
  display: flex;
  gap: clamp(14px, 1.4vw, 22px);
  height: clamp(340px, 56vh, 560px);
}
.cs .svc-cases__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--cs-card-line);
  background: var(--cs-card-grad);
  text-decoration: none;
  color: var(--cs-fg);
  transition: flex-grow 0.55s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.cs .svc-cases__card.is-active {
  flex-grow: 1.8;
  border-color: var(--cs-card-line-hover);
}
.cs .svc-cases__card-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cs .svc-cases__card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs .svc-cases__card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Lower body: dark panel with a line of copy + a button. */
.cs .svc-cases__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(16px, 1.4vw, 24px);
}
.cs .svc-cases__card-count {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cs-muted);
}
.cs .svc-cases__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--cs-r-md);
  background: var(--cs-accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.cs .svc-cases__card-btn .cs-arrow {
  color: #fff;
}
.cs .svc-cases__card:hover .svc-cases__card-btn .cs-arrow {
  transform: translateX(4px);
}
/* Pagination segments under the cards (one per category). */
.cs .svc-cases__dots {
  display: flex;
  gap: 10px;
  width: 40%;
  margin-top: clamp(18px, 2vw, 28px);
}
.cs .svc-cases__dot {
  flex: 1 1 0;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--cs-card-line-hover);
  cursor: pointer;
  transition: background 0.3s var(--ease, ease);
}
.cs .svc-cases__dot.is-active {
  background: var(--cs-accent-grad);
}
/* No pin when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .cs .svc-cases__track {
    min-height: 0;
  }
  .cs .svc-cases__pin {
    position: static;
    min-height: 0;
  }
}

/* ============================ 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);
  }
  /* No pin on tablet/mobile: stack the category cards as a simple list. */
  .cs .svc-cases__track {
    min-height: 0;
  }
  .cs .svc-cases__pin {
    position: static;
    min-height: 0;
  }
  .cs .svc-cases__cards {
    flex-direction: column;
    height: auto;
  }
  .cs .svc-cases__card {
    flex: none;
    min-height: clamp(300px, 66vw, 360px);
  }
}
@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" (flat, no cursor stamp) ---------- */
.cs .svc-brief {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(48px, 7vw, 120px);
  padding-bottom: clamp(48px, 7vw, 120px);
}
.cs .svc-brief__title {
  margin: 0;
  font-family: "Poppins", var(--font-display, sans-serif);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-size: clamp(46px, 9.5vw, 140px);
  color: var(--cs-accent);
}
.cs .svc-brief__title span {
  display: block;
}
.cs .svc-brief__btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  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);
}
@media (max-width: 640px) {
  .cs .svc-brief__btn {
    align-self: stretch;
    justify-content: center;
  }
}
