/* ==========================================================================
   BISPL — CASE STUDIES PAGE
   --------------------------------------------------------------------------
   Namespace : .cs-*   (isolated — nothing here leaks into the site)
   Theme     : follows the site's html[data-theme="light|dark"] switcher.
               No html / body / :root rules are declared here.
   Structure : nine sections, each with its own composition —
               hero · featured · archive · journey · results ·
               shift · quote · approach · cta
   ========================================================================== */


/* ==========================================================
   1. DESIGN SYSTEM
========================================================== */

.cs {
  --cs-accent: var(--rs-theme-orange, #EA5F23);
  --cs-accent-soft: rgba(234, 95, 35, .1);
  --cs-ink: var(--rs-theme-blue, #263068);

  --cs-bg: var(--bbc-bg-body, #ffffff);
  --cs-surface: var(--bbc-bg-surface, #f6f7f9);
  --cs-raised: var(--bbc-bg-elevated, #ffffff);

  --cs-heading: var(--bbc-text-heading, #16181d);
  --cs-text: var(--bbc-text-body, #5f636b);
  --cs-muted: rgb(97, 97, 97);

  --cs-line: var(--bbc-border, rgba(12, 16, 22, .09));
  --cs-line-strong: var(--bbc-border-strong, #d9dce1);

  --cs-dark: #0d1319;
  --cs-on-dark: rgba(255, 255, 255, .62);

  --cs-shadow: 0 24px 60px -34px rgba(12, 18, 26, .3);
  --cs-shadow-lg: 0 46px 90px -44px rgba(12, 18, 26, .42);

  --cs-glass: rgba(255, 255, 255, .82);
  --cs-glass-line: rgba(255, 255, 255, .6);

  --cs-r: 4px;
  --cs-r-lg: 18px;
  --cs-ease: cubic-bezier(.16, .8, .2, 1);
  --cs-pad: clamp(64px, 7.5vw, 150px);
  --cs-shell: min(92%, 1500px);
}

html[data-theme="dark"] .cs {
  --cs-line: rgba(255, 255, 255, .1);
  --cs-line-strong: rgba(255, 255, 255, .2);
  --cs-dark: #080c11;
  --cs-shadow: 0 24px 60px -34px rgba(0, 0, 0, .85);
  --cs-shadow-lg: 0 46px 90px -44px rgba(0, 0, 0, .95);
  --cs-glass: rgba(28, 35, 46, .74);
  --cs-glass-line: rgba(255, 255, 255, .12);
  --cs-accent-soft: rgba(234, 95, 35, .16);
}

.cs *,
.cs *::before,
.cs *::after {
  box-sizing: border-box;
}

.cs {
  background: var(--cs-bg);
  color: var(--cs-text);
  transition: background .4s ease;
}

.cs-shell {
  width: var(--cs-shell);
  margin-inline: auto;
}


/* ---------- shared type ---------- */

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--cs-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.cs-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  flex: none;
  background: currentColor;
}

.cs-eyebrow.is-plain::before {
  display: none;
}

.cs-h2 {
  margin: 0;
  color: var(--cs-heading);
  font-size: clamp(30px, 4.1vw, 66px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
}

.cs-lead {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--cs-text);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
}

.cs-num {
  font-variant-numeric: tabular-nums;
}


/* ---------- shared button ---------- */

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 17px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--cs-accent);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .32s var(--cs-ease), box-shadow .32s var(--cs-ease), background .3s ease;
}

.cs-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  transition: transform .32s var(--cs-ease);
}

.cs-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(234, 95, 35, .6);
}

.cs-btn:hover svg {
  transform: translate(3px, -3px);
}

.cs-btn.is-ghost {
  background: transparent;
  border-color: var(--cs-line-strong);
  color: var(--cs-heading);
}

.cs-btn.is-ghost:hover {
  border-color: var(--cs-heading);
  color: var(--cs-heading);
  box-shadow: none;
}

.cs-btn.is-onDark {
  background: #fff;
  color: #11161c;
}

.cs-btn.is-onDark.is-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.cs-btn:focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 3px;
}


/* ---------- scroll reveal (added once, then left alone) ---------- */

.cs-rise {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .75s var(--cs-ease) var(--cs-d, 0ms),
    transform .75s var(--cs-ease) var(--cs-d, 0ms);
}

.cs-rise.is-in {
  opacity: 1;
  transform: none;
}


/* ==========================================================
   2. HERO — asymmetric split, collage right, floating chips
========================================================== */

.cs-hero {
  position: relative;
  padding: clamp(56px, 6vw, 110px) 0 clamp(60px, 6vw, 104px);
  overflow: hidden;
}


.cs-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}

.cs-hero h1 {
  margin: 0;
  color: var(--cs-heading);
  font-size: clamp(38px, 5.6vw, 92px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -3px;
}

.cs-hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 300;
  color: var(--cs-muted);
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* --- collage --- */

.cs-collage {
  position: relative;
  aspect-ratio: 1 / 1;
}

.cs-collage figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--cs-r-lg);
  background: var(--cs-dark);
  box-shadow: var(--cs-shadow-lg);
}

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

.cs-collage-a {
  inset: 0 26% 22% 0;
  z-index: 2;
}

.cs-collage-b {
  inset: 14% 0 30% 52%;
  z-index: 1;
}

.cs-collage-c {
  inset: auto 34% 0 8%;
  height: 30%;
  z-index: 3;
}

/* floating metric chips */
.cs-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border: 1px solid var(--cs-glass-line);
  border-radius: 14px;
  background: var(--cs-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--cs-shadow);
  animation: csFloat 7s ease-in-out infinite;
}

.cs-chip b {
  color: var(--cs-heading);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.6px;
}

.cs-chip span {
  color: var(--cs-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.cs-chip-1 {
  top: 6%;
  right: 2%;
}

.cs-chip-2 {
  bottom: 20%;
  left: -4%;
  animation-delay: -2.4s;
}

.cs-chip-3 {
  bottom: 2%;
  right: 12%;
  animation-delay: -4.6s;
}

@keyframes csFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* scroll cue */
.cs-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 4.5vw, 70px);
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}

.cs-scroll i {
  position: relative;
  width: 1px;
  height: 42px;
  background: var(--cs-line-strong);
  overflow: hidden;
}

.cs-scroll i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: var(--cs-accent);
  animation: csDrop 2.1s var(--cs-ease) infinite;
}

@keyframes csDrop {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(250%);
  }
}


/* ==========================================================
   3. FEATURED — full-bleed image, overlapping panel
========================================================== */

.cs-featured {
  position: relative;
  padding-bottom: var(--cs-pad);
}

.cs-featured-stage {
  position: relative;
  height: clamp(400px, 46vw, 660px);
  overflow: hidden;
  border-radius: var(--cs-r-lg);
  background: var(--cs-dark);
}

.cs-featured-stage img {
  width: 100%;
  height: 118%;
  display: block;
  object-fit: cover;
  /* nudged by the parallax pass */
  transform: translate3d(0, var(--cs-par, 0px), 0);
  will-change: transform;
}

.cs-featured-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 16, .5) 0%, rgba(6, 11, 16, .1) 40%, rgba(6, 11, 16, .82) 100%);
}

.cs-featured-tag {
  position: absolute;
  z-index: 3;
  top: clamp(20px, 2.4vw, 34px);
  left: clamp(20px, 2.4vw, 34px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 100px;
  background: rgba(10, 15, 21, .42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.cs-featured-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-accent);
  box-shadow: 0 0 0 5px rgba(234, 95, 35, .22);
}

/* the panel deliberately overlaps the image */
.cs-featured-panel {
  position: relative;
  z-index: 4;
  width: min(100%, 1080px);
  margin: clamp(-120px, -8vw, -70px) auto 0;
  padding: clamp(28px, 3.4vw, 56px);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-r-lg);
  background: var(--cs-raised);
  box-shadow: var(--cs-shadow-lg);
}

.cs-featured-panel h2 {
  margin: 14px 0 0;
  color: var(--cs-heading);
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.6px;
}

.cs-featured-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 44px);
  margin-top: clamp(24px, 2.6vw, 38px);
  padding-top: clamp(24px, 2.6vw, 34px);
  border-top: 1px solid var(--cs-line);
}

.cs-block h3 {
  margin: 0 0 10px;
  color: var(--cs-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.cs-block h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-inline-end: 9px;
  vertical-align: middle;
  background: var(--cs-accent);
}

.cs-block p {
  margin: 0;
  color: var(--cs-text);
  font-size: 15px;
  line-height: 1.8;
}

/* floating stats hanging off the panel */
.cs-featured-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  margin-top: clamp(24px, 2.6vw, 34px);
  justify-content: center;
}

.cs-stat-pill {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid var(--cs-line);
  border-radius: 100px;
  background: var(--cs-surface);
  transition: border-color .3s ease, transform .3s var(--cs-ease);
}

.cs-stat-pill:hover {
  border-color: var(--cs-accent);
  transform: translateY(-2px);
}

.cs-stat-pill b {
  color: var(--cs-accent);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0px;
}

.cs-stat-pill span {
  color: var(--cs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}


/* ==========================================================
   4. ARCHIVE — editorial rows, never the same twice
========================================================== */

.cs-archive {
  padding: var(--cs-pad) 0;
}

.cs-archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: clamp(24px, 4vw, 80px);
  margin-bottom: clamp(28px, 3vw, 44px);
}

/* --- filters --- */

.cs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(34px, 3.6vw, 58px);
  padding-bottom: clamp(24px, 2.6vw, 36px);
  border-bottom: 1px solid var(--cs-line);
}

.cs-filter {
  padding: 12px 21px;
  border: 1px solid var(--cs-line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--cs-heading);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--cs-ease);
}

.cs-filter:hover {
  border-color: var(--cs-accent);
  color: var(--cs-accent);
  transform: translateY(-1px);
}

.cs-filter.is-active {
  background: var(--cs-heading);
  border-color: var(--cs-heading);
  color: var(--cs-bg);
}

.cs-filter:focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 3px;
}

.cs-filter-tally {
  margin-inline-start: auto;
  align-self: center;
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* --- the rows --- */

.cs-rows {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* One case per row, so filtering is exact. The row only carries the
   category and the composition; the case itself is the grid. */
.cs-row[hidden] {
  display: none;
}

.cs-case {
  position: relative;
  display: grid;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  min-width: 0;
}

/* three compositions, rotated down the page so no two rows read alike */
.is-wide .cs-case {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.is-flip .cs-case {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.is-flip .cs-case-media {
  order: 2;
}

/* full-width image with the copy in a band beneath it */
.is-band .cs-case {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.is-band .cs-case-media {
  aspect-ratio: 21 / 9;
}

.is-band .cs-case-body {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 0;
  align-items: start;
}

.is-band .cs-case-foot {
  grid-column: 1 / -1;
}

.cs-case-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--cs-r-lg);
  background: var(--cs-dark);
  aspect-ratio: 16 / 11;
}



.cs-case-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.1s var(--cs-ease);
}

.cs-case-index {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.cs-case-cat {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 20px;
  padding: 9px 14px;
  border-radius: 100px;
  background: rgba(10, 15, 21, .55);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cs-case-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(6px, 1vw, 18px) 0;
}

.cs-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.cs-tag {
  padding: 6px 11px;
  border: 1px solid var(--cs-line);
  border-radius: 4px;
  color: var(--cs-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.cs-case-body h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0px;
}

.cs-case-body h3 a {
  color: var(--cs-heading);
  text-decoration: none;
  transition: color .3s ease;
}

.cs-case-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--cs-r-lg);
}

.cs-case:hover h3 a {
  color: var(--cs-accent);
}

.cs-case:hover .cs-case-media img {
  transform: scale(1.05);
}

/* challenge → solution → result */
.cs-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.cs-flow li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 30px;
  align-items: baseline;
}

.cs-flow dt,
.cs-flow b {
  color: var(--cs-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.9;
  text-transform: uppercase;
}

.cs-flow li:last-child b {
  color: var(--cs-accent);
}

.cs-flow span {
  color: var(--cs-text);
  font-size: 15px;
  line-height: 1.75;
}

.cs-case-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--cs-line);
}

.cs-case-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cs-case-metric b {
  color: var(--cs-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.6px;
}

.cs-case-metric span {
  color: var(--cs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cs-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
}

.cs-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  transition: transform .3s var(--cs-ease);
}

.cs-case:hover .cs-link {
  color: var(--cs-accent);
}

.cs-case:hover .cs-link svg {
  transform: translate(3px, -3px);
}

.cs-empty {
  padding: 40px 0;
  color: var(--cs-muted);
}

.cs-empty[hidden] {
  display: none;
}


/* ==========================================================
   5. JOURNEY — horizontal storytelling
========================================================== */

.cs-journey {
  padding: var(--cs-pad) 0;
  overflow: hidden;
}

.cs-journey-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 46px);
}

.cs-journey-nav {
  display: flex;
  gap: 9px;
}

.cs-round {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--cs-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--cs-heading);
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.cs-round svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cs-round:hover:not(:disabled) {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  color: #fff;
}

.cs-round:disabled {
  opacity: .32;
  cursor: default;
}

.cs-round:focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 3px;
}

.cs-track {
  display: flex;
  gap: clamp(16px, 1.6vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* let panels bleed to the right edge of the viewport */
  padding-inline-end: clamp(16px, 6vw, 120px);
}

.cs-track::-webkit-scrollbar {
  display: none;
}

.cs-panel {
  position: relative;
  flex: 0 0 clamp(280px, 34vw, 520px);
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--cs-r-lg);
  background: var(--cs-dark);
  aspect-ratio: 3 / 4;
}

.cs-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.1s var(--cs-ease);
}

.cs-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 17, .3) 0%, rgba(8, 12, 17, 0) 34%, rgba(8, 12, 17, .9) 100%);
}

.cs-panel:hover img {
  transform: scale(1.05);
}

.cs-panel-no {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 26px;
  color: rgba(255, 255, 255, .5);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}

.cs-panel-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: clamp(22px, 2vw, 32px);
  color: #fff;
}

.cs-panel-ind {
  display: block;
  margin-bottom: 10px;
  color: var(--cs-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.cs-panel-body h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.8px;
}

.cs-panel-body p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.7;
}

.cs-panel-metric {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.cs-panel-metric b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.8px;
}

.cs-panel-metric span {
  color: rgba(255, 255, 255, .55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cs-progress {
  position: relative;
  height: 2px;
  margin-top: clamp(22px, 2.2vw, 34px);
  background: var(--cs-line);
}

.cs-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: var(--cs-accent);
  transition: width .25s linear, transform .25s linear;
}


/* ==========================================================
   6. RESULTS — oversized dashboard numbers
========================================================== */

.cs-results {
  padding: var(--cs-pad) 0;
  background: var(--cs-dark);
  color: #fff;
}

.cs-results .cs-h2 {
  color: #fff;
}

.cs-results .cs-lead {
  color: var(--cs-on-dark);
}

.cs-results-head {
  max-width: 780px;
  margin-bottom: clamp(38px, 4vw, 70px);
}

/* asymmetric: one hero figure, the rest in a ledger beside it */
.cs-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 64px);
  align-items: start;
}

.cs-ledger-hero {
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--cs-r-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(234, 95, 35, .18), transparent 62%);
}

.cs-ledger-hero b {
  display: block;
  color: #fff;
  font-size: clamp(78px, 12vw, 190px);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -7px;
}

.cs-ledger-hero span {
  display: block;
  margin-top: 20px;
  color: var(--cs-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.cs-ledger-hero p {
  margin: 16px 0 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 1.8;
}

.cs-ledger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.cs-ledger-list>div {
  position: relative;
  padding: clamp(20px, 2.2vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  transition: background .35s ease;
}

.cs-ledger-list>div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--cs-accent);
  transition: width .45s var(--cs-ease);
}

.cs-ledger-list>div:hover {
  background: rgba(255, 255, 255, .03);
}

.cs-ledger-list>div:hover::before {
  width: calc(100% + 1px);
}

.cs-ledger-list b {
  display: block;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}

.cs-ledger-list span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


/* ==========================================================
   7. SHIFT — before / approach / after + drag compare
========================================================== */

.cs-shift {
  padding: var(--cs-pad) 0;
}

.cs-shift-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 3.4vw, 56px);
}

.cs-compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--cs-r-lg);
  background: var(--cs-dark);
  aspect-ratio: 21 / 9;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.cs-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* the "after" layer is clipped by the handle position */
.cs-compare-after {
  clip-path: inset(0 0 0 var(--cs-split, 50%));
}

.cs-compare-label {
  position: absolute;
  z-index: 3;
  bottom: clamp(16px, 2vw, 28px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  background: rgba(9, 14, 19, .5);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  pointer-events: none;
}

.cs-compare-label.is-before {
  left: clamp(16px, 2vw, 28px);
}

.cs-compare-label.is-after {
  right: clamp(16px, 2vw, 28px);
}

.cs-compare-handle {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--cs-split, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.cs-compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  background: #fff;
  color: #11161c;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5);
}

.cs-compare-grip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

/* keyboard-accessible slider sits invisibly over the image */
.cs-compare-range {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.cs-compare-range:focus-visible+.cs-compare-handle .cs-compare-grip {
  outline: 3px solid var(--cs-accent);
  outline-offset: 3px;
}

/* the three-step story under the slider */
.cs-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
  margin-top: clamp(28px, 3vw, 46px);
}

.cs-step {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--cs-line);
}

.cs-step.is-mid {
  border-top-color: var(--cs-accent);
}

.cs-step.is-end {
  border-top-color: var(--cs-heading);
}

.cs-step b {
  display: block;
  margin-bottom: 12px;
  color: var(--cs-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.cs-step h3 {
  margin: 0 0 10px;
  color: var(--cs-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0px;
}

.cs-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}


/* ==========================================================
   8. QUOTE — asymmetric, oversized mark
========================================================== */

.cs-quote {
  padding: var(--cs-pad) 0;
  background: var(--cs-surface);
}

.cs-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr) minmax(0, 290px);
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
}

.cs-quote-mark {
  color: var(--cs-accent);
  font-size: clamp(90px, 10vw, 190px);
  font-weight: 700;
  line-height: .68;
  opacity: .28;
  user-select: none;
}

.cs-quote blockquote {
  margin: 0;
  color: var(--cs-heading);
  font-size: clamp(21px, 2.5vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -1.2px;
}

.cs-quote-by {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--cs-line);
}

.cs-quote-by img {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cs-dark);
}

.cs-quote-by b {
  display: block;
  color: var(--cs-heading);
  font-size: 15px;
  font-weight: 700;
}

.cs-quote-by span {
  display: block;
  margin-top: 3px;
  color: var(--cs-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* the project this quote refers to */
.cs-quote-ref {
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-r-lg);
  background: var(--cs-raised);
}

.cs-quote-ref b {
  display: block;
  margin-bottom: 16px;
  color: var(--cs-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.cs-quote-ref dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.cs-quote-ref div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-quote-ref div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cs-quote-ref dt {
  color: var(--cs-muted);
  font-size: 11px;
  letter-spacing: .4px;
}

.cs-quote-ref dd {
  margin: 0;
  color: var(--cs-heading);
  font-size: 13px;
  font-weight: 600;
  text-align: end;
}


/* ==========================================================
   9. APPROACH — connected path, not cards
========================================================== */

.cs-approach {
  padding: var(--cs-pad) 0;
}

.cs-approach-head {
  max-width: 700px;
  margin-bottom: clamp(38px, 4vw, 68px);
}

.cs-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 28px);
  counter-reset: csStep;
}

/* the connecting line runs through the node row */
.cs-path::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cs-line);
}

.cs-path::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  width: var(--cs-path, 0%);
  height: 1px;
  background: var(--cs-accent);
  transition: width 1.4s var(--cs-ease);
}

.cs-node {
  position: relative;
  padding-top: 58px;
}

.cs-node::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--cs-line-strong);
  border-radius: 50%;
  background: var(--cs-bg);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.cs-node.is-in::before {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 6px var(--cs-accent-soft);
}

.cs-node b {
  position: absolute;
  top: 40px;
  left: 0;
  color: var(--cs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.cs-node h3 {
  margin: 0 0 9px;
  color: var(--cs-heading);
  font-size: clamp(17px, 1.5vw, 24px);
  font-weight: 700;
  letter-spacing: -.7px;
}

.cs-node p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}


/* ==========================================================
   10. CTA
========================================================== */

.cs-cta {
  padding: var(--cs-pad) 0;
}

.cs-cta-box {
  position: relative;
  padding: clamp(44px, 6vw, 110px) clamp(26px, 4vw, 80px);
  overflow: hidden;
  border-radius: var(--cs-r-lg);
  background: var(--cs-dark);
  text-align: center;
}

/* slow drifting glow, kept very subtle */
.cs-cta-box::before,
.cs-cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.cs-cta-box::before {
  width: 46%;
  aspect-ratio: 1;
  top: -18%;
  left: -8%;
  background: rgba(234, 95, 35, .3);
  animation: csDrift 15s ease-in-out infinite;
}

.cs-cta-box::after {
  width: 40%;
  aspect-ratio: 1;
  right: -6%;
  bottom: -22%;
  background: rgba(38, 48, 104, .5);
  animation: csDrift 19s ease-in-out infinite reverse;
}

@keyframes csDrift {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(6%, 8%, 0);
  }
}

.cs-cta-box>* {
  position: relative;
  z-index: 2;
}

.cs-cta-box h2 {
  margin: 0 auto;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 70px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2.2px;
}

.cs-cta-box p {
  margin: 22px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8;
}

.cs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}


/* ==========================================================
   11. RESPONSIVE
========================================================== */

@media (max-width: 1199px) {

  .cs-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .cs-collage {
    aspect-ratio: 16 / 11;
  }

  .cs-archive-head,
  .cs-ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .cs-quote-grid {
    grid-template-columns: minmax(0, 60px) minmax(0, 1fr);
  }

  .cs-quote-ref {
    grid-column: 1 / -1;
  }

  .cs-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .cs-path::before,
  .cs-path::after {
    display: none;
  }

  .cs-node {
    padding-top: 46px;
    border-top: 1px solid var(--cs-line);
  }

  .cs-node::before {
    top: -8px;
  }

  .cs-node b {
    top: 22px;
  }
}


@media (max-width: 991px) {

  .is-wide .cs-case,
  .is-flip .cs-case,
  .is-band .cs-case,
  .is-band .cs-case-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .is-flip .cs-case-media {
    order: 0;
  }

  .cs-case-media,
  .is-band .cs-case-media {
    aspect-ratio: 16 / 10;
  }

  .cs-featured-split,
  .cs-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-compare {
    aspect-ratio: 16 / 10;
  }

  .cs-ledger-hero b {
    font-size: clamp(70px, 16vw, 130px);
    letter-spacing: -4px;
  }
}


@media (max-width: 767px) {

  .cs-hero h1 {
    letter-spacing: -1.6px;
  }

  .cs-collage-a {
    inset: 0 30% 26% 0;
  }

  .cs-collage-c {
    inset: auto 40% 0 4%;
  }

  .cs-chip {
    padding: 11px 14px;
  }

  .cs-chip-2 {
    left: 0;
  }

  .cs-featured-panel {
    margin-top: -46px;
  }

  .cs-flow li {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .cs-ledger-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-quote-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cs-quote-mark {
    line-height: .5;
  }

  .cs-path {
    grid-template-columns: minmax(0, 1fr);
  }

  /* the horizontal journey becomes a vertical stack */
  .cs-track {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
    padding-inline-end: 0;
  }

  .cs-panel {
    flex: 1 1 auto;
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .cs-journey-nav,
  .cs-progress {
    display: none;
  }

  .cs-btn {
    padding: 16px 22px;
  }

  /* keep every tap target at or above the 44px minimum */
  .cs-filter {
    padding: 16px 20px;
  }

  .cs-cta-actions .cs-btn {
    flex: 1 1 220px;
    justify-content: center;
  }
}


@media (max-width: 479px) {

  .cs-collage {
    aspect-ratio: 4 / 5;
  }

  .cs-chip b {
    font-size: 16px;
  }

  .cs-case-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .cs-compare {
    aspect-ratio: 4 / 3;
  }
}


/* ---- 2K and up ---- */
@media (min-width: 2000px) {

  .cs {
    --cs-shell: min(88%, 1760px);
  }
}

/* ---- 4K ---- */
@media (min-width: 2800px) {

  .cs {
    --cs-shell: min(84%, 2320px);
    --cs-pad: 190px;
  }

  .cs-lead {
    font-size: 24px;
  }

  .cs-btn {
    font-size: 18px;
  }

  .cs-scroll {
    font-size: 19px;
  }

  .cs-featured-tag {
    font-size: 15px;
  }

  .cs-block p,
  .cs-flow span,
  .cs-step p,
  .cs-node p {
    font-size: 24px;
  }

  .cs-panel {
    flex-basis: 620px;
  }
  .cs-featured-panel {
    width: min(100%, 1480px);
}
.cs-block h3 {
    font-size: 26px;
}
.cs-stat-pill b {
    font-size: 24px;
}
.cs-stat-pill span {
    font-size: 15px;
}
.cs-filter {
    padding: 15px 27px;
    font-size: 19px;
}
.cs-filter-tally {  
    font-size: 18px;
}
.cs-tag {
    padding: 10px 18px;
    font-size: 16px;
}
.cs-case-body h3 {
    font-size: 40px;
}
.cs-flow li {
    grid-template-columns: 134px minmax(0, 1fr);
}
.cs-flow dt, .cs-flow b {
    font-size: 19px;
}
.cs-flow {
    margin: 18px 0;
}
.cs-case-metric b {
    font-size: 22px;
    letter-spacing: 1.4px;
}
.cs-case-metric span {
    font-size: 22px;
}
.cs-case-cat {
    padding: 12px 22px;
    font-size: 16px;
}

.cs-ledger-hero p {
    max-width: 59ch;
    font-size: 24px;
}
.cs-ledger-list span {
    font-size: 20px;
}
.cs-compare-label { 
    padding: 15px 20px;
    font-size: 18px;
}
.cs-step h3 {
   font-size: 35px;
}
.cs-step b {
    font-size: 18px;
}
}


/* ==========================================================
   12. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .cs-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cs-chip,
  .cs-cta-box::before,
  .cs-cta-box::after,
  .cs-scroll i::after {
    animation: none;
  }

  .cs-featured-stage img {
    transform: none;
  }

  .cs *,
  .cs *::before,
  .cs *::after {
    transition-duration: .01ms !important;
  }
}

@media (min-width:0px) and (max-width:475px) {
  .cs-btn {
    padding: 16px 15px;
  }

  .cs-btn {
    font-size: 9px;
  }

  .cs-featured-panel h2 {
    letter-spacing: 0;
  }

  .cs-featured-stats {
    gap: 15px;
  }
}