/* ========== Editorial Case Study Template ==========
   Isolated to .page-case-editorial / .case-study--editorial
   Do not use these classes on FedEx / Cisco / Chase / Globe pages.
=================================================== */

.page-case-editorial {
  --cs-black: #000000;
  --cs-ink: #1a1a18;
  --cs-muted: #6b6b66;
  --cs-line: rgba(26, 26, 24, 0.14);
  --cs-line-dark: rgba(245, 240, 232, 0.18);
  --cs-cream: #f5f0e8;
  --cs-ph: #e8e8e4;
  --cs-ph-text: #8a8a84;
  --cs-max: 1200px;
  --cs-gutter: clamp(1.25rem, 4vw, 5rem);
  --cs-section-y: clamp(4.5rem, 10vw, 8.5rem);
  --cs-gap: clamp(1.5rem, 3vw, 2.75rem);
  background: #fff;
  color: var(--cs-ink);
}

.page-case-study.page-work .case-study--editorial {
  padding-top: 0;
  background: #fff;
}

/* Nav — black chrome for editorial template */
.page-case-editorial .site-nav--bar,
.page-case-editorial .site-nav--bar.is-scrolled {
  background-color: var(--cs-black);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.page-case-editorial .nav-wordmark,
.page-case-editorial .nav-left.nav-wordmark,
.page-case-editorial .nav-inner--case-study .case-back,
.page-case-editorial .site-nav--bar .nav-connect-cta {
  color: #fff;
}

.page-case-editorial .site-nav--bar .nav-connect-cta {
  border-color: #fff;
}

.page-case-editorial .site-nav--bar .nav-connect-cta:hover {
  background-color: #fff;
  color: var(--cs-black);
}

.page-case-editorial .site-nav--bar .nav-toggle span {
  background-color: #fff;
}

.case-study--editorial .case-footer {
  padding-left: var(--cs-gutter);
  padding-right: var(--cs-gutter);
  background: #fff;
}

/* ---------- Shared ---------- */

.case-study--editorial .cs-container {
  width: min(100% - (var(--cs-gutter) * 2), var(--cs-max));
  margin-inline: auto;
}

.case-study--editorial .cs-band {
  padding: var(--cs-section-y) 0;
}

.case-study--editorial .cs-band--dark {
  background: var(--cs-black);
  color: var(--cs-cream);
}

.case-study--editorial .cs-band--light {
  background: #fff;
  color: var(--cs-ink);
}

.case-study--editorial .cs-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-orange);
}

.case-study--editorial .cs-band--dark .cs-eyebrow {
  color: var(--color-brand-orange);
}

.case-study--editorial .cs-h3 {
  margin: 0 0 1.25rem;
  font-family: var(--font-section);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-study--editorial .cs-h3--chapter {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.case-study--editorial .cs-h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-study--editorial .cs-body {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-family: var(--font-lora);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
}

.case-study--editorial .cs-body:last-child {
  margin-bottom: 0;
}

.case-study--editorial .cs-body--lead {
  max-width: 42rem;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
}

.case-study--editorial .cs-statement {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-section);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.case-study--editorial .cs-statement--sm {
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.05;
}

.case-study--editorial .cs-statement--full {
  max-width: none;
  width: 100%;
}

.case-study--editorial .cs-chapter-head--discovery,
.case-study--editorial .cs-chapter-head--impact {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.case-study--editorial .cs-chapter-head--discovery .cs-statement--full,
.case-study--editorial .cs-chapter-head--impact .cs-statement--full {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.case-study--editorial .cs-discovery-lead-media,
.case-study--editorial .cs-impact-lead-media,
.case-study--editorial .cs-learning-lead-media {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.case-study--editorial .cs-discovery-lead-media .cs-ph,
.case-study--editorial .cs-impact-lead-media .cs-ph,
.case-study--editorial .cs-learning-lead-media .cs-ph {
  width: 100%;
}

.case-study--editorial .cs-caption {
  margin: 0.75rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cs-muted);
}

.case-study--editorial .cs-band--dark .cs-caption {
  color: rgba(245, 240, 232, 0.55);
}

.case-study--editorial .cs-chapter-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- Placeholders ---------- */

.case-study--editorial .cs-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    var(--cs-ph);
  color: var(--cs-ph-text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}

.case-study--editorial .cs-band--dark .cs-ph {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
    #1c1c1c;
  color: rgba(245, 240, 232, 0.45);
}

.case-study--editorial .cs-ph img,
.case-study--editorial .case-image img,
.case-study--editorial .hero-image img,
.case-study--editorial .summary-image img,
.case-study--editorial .solution-image img,
.case-study--editorial .summary-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study--editorial .cs-ph--hero {
  aspect-ratio: 4 / 5;
  min-height: clamp(22rem, 58vh, 40rem);
}

.case-study--editorial .cs-ph--square {
  aspect-ratio: 1 / 1;
}

.case-study--editorial .cs-ph--wide {
  aspect-ratio: 16 / 10;
}

.case-study--editorial .cs-ph--contain {
  background: #111;
}

.case-study--editorial .cs-ph--contain img {
  object-fit: contain;
}

.case-study--editorial .cs-ph--tall {
  aspect-ratio: 3 / 4;
}

.case-study--editorial .cs-ph--ba {
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
}

.case-study--editorial .cs-ph--ba-shot {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.case-study--editorial .cs-ph--ba-shot img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

.case-study--editorial .cs-ba-lightbox {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.case-study--editorial .cs-ba-lightbox img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study--editorial .cs-ba-lightbox .case-lightbox-trigger__hint {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.case-study--editorial .cs-ba-lightbox:hover .case-lightbox-trigger__hint,
.case-study--editorial .cs-ba-lightbox:focus-visible .case-lightbox-trigger__hint {
  opacity: 1;
}

.case-study--editorial .cs-intervention-item .cs-ba-lightbox {
  height: auto;
}

.case-study--editorial .cs-intervention-item .cs-ba-lightbox img {
  height: auto;
  object-fit: contain;
}

.case-study--editorial .cs-intervention-item .cs-ph--inline.cs-ph--ba-shot {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  background: transparent;
}

.case-study--editorial .cs-solution-block .cs-ba-lightbox {
  height: 100%;
}

.case-study--editorial .cs-solution-block .cs-ba-lightbox img {
  height: 100%;
  object-fit: contain;
}

.case-study--editorial .cs-ph--inline {
  aspect-ratio: 16 / 10;
  min-height: 10rem;
}

.case-study--editorial .cs-ph--solution {
  aspect-ratio: 16 / 10;
  min-height: clamp(14rem, 32vw, 24rem);
}

.case-study--editorial .cs-ph--next {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: transparent;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.case-study--editorial .cs-ph--next img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- 01 Hero ---------- */

.case-study--editorial .cs-hero {
  padding: calc(var(--nav-height) + clamp(2.5rem, 6vw, 5rem)) var(--cs-gutter) clamp(3rem, 7vw, 6rem);
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.case-study--editorial .cs-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  width: min(100%, var(--cs-max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.case-study--editorial .cs-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-section);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cs-ink);
}

.case-study--editorial .cs-hero__subtitle {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-lora);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--cs-muted);
}

.case-study--editorial .cs-hero__media {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.case-study--editorial .cs-hero__media .cs-ph--hero {
  border-radius: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.case-study--editorial .cs-hero--fedex {
  background-color: #0c1220;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("images/FedEx_New/backgrround_hero_city.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.case-study--editorial .cs-hero--fedex .cs-hero__inner {
  align-items: center;
  min-height: clamp(22rem, 58vh, 40rem);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.case-study--editorial .cs-hero--fedex .cs-hero__title {
  color: #ffffff;
}

.case-study--editorial .cs-hero--fedex .cs-hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.case-study--editorial .cs-hero--fedex .cs-ph--hero {
  background: transparent;
  aspect-ratio: 946 / 701;
  min-height: 0;
  height: auto;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.case-study--editorial .cs-hero--fedex .cs-ph--hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-study--editorial .cs-hero--fedex .cs-hero__media {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.case-study--editorial .cs-hero--fedex .cs-hero__brand-logo {
  display: none;
}

/* ---------- 02 Executive Summary ---------- */

.case-study--editorial .cs-summary__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.case-study--editorial .cs-summary__figure {
  margin: 0;
}

.case-study--editorial .cs-summary .cs-ph--summary-video {
  aspect-ratio: 9 / 19.5;
  width: 100%;
  max-width: 18rem;
  margin-inline: auto;
  background: transparent;
  overflow: visible;
}

.case-study--editorial .cs-summary .summary-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.case-study--editorial .cs-summary__copy .cs-metrics--compact {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.case-study--editorial .cs-metrics {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.case-study--editorial .cs-metrics--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-study--editorial .cs-metric {
  margin: 0;
}

.case-study--editorial .cs-metric__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-section);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-study--editorial .cs-metric__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.58);
}

/* Empty 4th cell for mobile 2x2 only — hidden above mobile */
.case-study--editorial .cs-metrics--compact .cs-metric--placeholder {
  display: none;
}

/* ---------- 03 Problem / Solution ---------- */

.case-study--editorial .cs-split__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5.5rem);
}

.case-study--editorial .cs-split__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.case-study--editorial .cs-split__row--image-left .cs-split__figure {
  order: -1;
}

.case-study--editorial .cs-split__copy .cs-h3 {
  margin-top: 0;
}

.case-study--editorial .cs-achievements {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-study--editorial .cs-achievement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-top: 1.15rem;
  border-top: 1px solid var(--cs-line);
}

.case-study--editorial .cs-achievement__num {
  font-family: var(--font-section);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-brand-orange);
}

.case-study--editorial .cs-achievement__text {
  font-family: var(--font-barlow);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-study--editorial .cs-split__figure {
  margin: 0;
  width: 100%;
}

.case-study--editorial .cs-split__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study--editorial .cs-split__figure figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--cs-muted, var(--color-muted));
}

/* ---------- 04 Goals ---------- */

.case-study--editorial .cs-goals__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
}

.case-study--editorial .cs-goals__head .cs-h3 {
  margin-bottom: 1rem;
}

.case-study--editorial .cs-goals__head .cs-body {
  color: rgba(245, 240, 232, 0.78);
}

.case-study--editorial .cs-goals__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 0;
}

.case-study--editorial .cs-goal {
  padding-top: 1.25rem;
  border-top: 1px solid var(--cs-line-dark);
}

.case-study--editorial .cs-goal__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-section);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-brand-orange);
}

.case-study--editorial .cs-goal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cs-cream);
}

.case-study--editorial .cs-goal__body {
  margin: 0;
  font-family: var(--font-lora);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.72);
}

/* ---------- 05 Meta ---------- */

.case-study--editorial .cs-meta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.case-study--editorial .cs-meta__lead {
  margin: 0 0 1rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-study--editorial .cs-meta__lead--plain {
  margin: 0 0 0.85rem;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  color: var(--cs-muted);
}

.case-study--editorial .cs-meta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.case-study--editorial .cs-meta__list li {
  position: relative;
  padding-left: 1em;
  font-family: var(--font-lora);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--cs-muted);
}

.case-study--editorial .cs-meta__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cs-muted);
}

.case-study--editorial .cs-meta__note {
  margin: 0;
  font-family: var(--font-lora);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--cs-muted);
}

/* ---------- Process intro ---------- */

.case-study--editorial .cs-process {
  border-top: 1px solid var(--cs-line);
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
}

.case-study--editorial .cs-process__inner {
  max-width: 52rem;
}

.case-study--editorial .cs-process__chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

/* ---------- Chapter stepper ---------- */

.case-study--editorial .cs-stepper {
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  background: var(--cs-black);
  color: #fff;
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-study--editorial .cs-stepper-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

.case-study--editorial .cs-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 0;
}

.case-study--editorial .cs-stepper__item {
  position: relative;
  text-align: center;
}

.case-study--editorial .cs-stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: calc(50% + 1.15rem);
  width: calc(100% - 2.3rem);
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.case-study--editorial .cs-stepper__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
}

.case-study--editorial .cs-stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.case-study--editorial .cs-stepper__label {
  font-family: var(--font-sans);
  font-size: clamp(0.6875rem, 1.4vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.case-study--editorial .cs-stepper__link.is-active .cs-stepper__num,
.case-study--editorial .cs-stepper__link:hover .cs-stepper__num,
.case-study--editorial .cs-stepper__link:focus-visible .cs-stepper__num {
  background: #fff;
  color: var(--cs-black);
  border-color: #fff;
}

.case-study--editorial #cs-discovery,
.case-study--editorial #cs-intervention,
.case-study--editorial #cs-solution,
.case-study--editorial #cs-impact,
.case-study--editorial #cs-learning {
  scroll-margin-top: calc(var(--nav-height) + 5.5rem);
}

/* ---------- Compose / Discovery / Solution ---------- */

.case-study--editorial .cs-compose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.case-study--editorial .cs-compose--discovery-intro {
  align-items: start;
}

.case-study--editorial .cs-compose--discovery-intro .cs-compose__copy,
.case-study--editorial .cs-compose--discovery-intro .cs-compose__media {
  margin: 0;
  padding: 0;
  align-self: start;
}

.case-study--editorial .cs-compose--discovery-intro .cs-chapter-head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.case-study--editorial .cs-compose--discovery-intro .cs-body {
  margin-top: 0;
}

.case-study--editorial .cs-compose--discovery-intro .cs-ph {
  margin: 0;
}

.case-study--editorial .cs-compose__media {
  margin: 0;
}

.case-study--editorial .cs-compose--image-left .cs-compose__media {
  order: -1;
}

.case-study--editorial .cs-compose--stack {
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.case-study--editorial .cs-compose--stack .cs-compose__copy,
.case-study--editorial .cs-compose--stack .cs-compose__copy .cs-body {
  max-width: none;
  width: 100%;
}

.case-study--editorial .cs-compose--stack .cs-compose__media {
  order: 0;
  width: 100%;
}

.case-study--editorial .cs-ph--journey {
  aspect-ratio: 1920 / 768;
  max-height: none;
}

.case-study--editorial .cs-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
  margin: 0 0 clamp(3rem, 6vw, 5rem);
}

.case-study--editorial .cs-insight {
  padding-top: 1.25rem;
  border-top: 1px solid var(--cs-line);
}

.case-study--editorial .cs-insight__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-study--editorial .cs-insight__num {
  color: var(--color-brand-orange);
}

/* ---------- Intervention ---------- */

.case-study--editorial .cs-chapter-head--intervention {
  margin-bottom: 0;
}

.case-study--editorial .cs-intervention-topic {
  margin-top: 100px;
  margin-bottom: 0;
}

.case-study--editorial .cs-intervention-topic--lead {
  margin-top: 0;
}

.case-study--editorial .cs-intervention-topic + .cs-intervention-topic {
  margin-top: 100px;
}

.case-study--editorial .cs-intervention-topic:last-of-type {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.case-study--editorial .cs-intervention-topic > .cs-statement {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.case-study--editorial .cs-intervention-topic--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.case-study--editorial .cs-intervention-topic--visual-left {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.case-study--editorial .cs-intervention-topic--visual-left .cs-intervention-topic__visual {
  order: -1;
}

.case-study--editorial .cs-intervention-topic__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0;
}

.case-study--editorial .cs-intervention-topic__copy .cs-chapter-head--intervention {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.case-study--editorial .cs-intervention-topic__copy .cs-body {
  margin: 0;
}

.case-study--editorial .cs-intervention-topic__visual > .cs-statement {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Align Dashboards with Chapter 02 eyebrow baseline */
.case-study--editorial .cs-intervention-topic--lead .cs-intervention-topic__visual > .cs-statement {
  margin-top: 0;
  line-height: 1;
}

.case-study--editorial .cs-intervention-topic .cs-before-after {
  margin-bottom: 0;
}

.case-study--editorial .cs-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.case-study--editorial .cs-before-after--stack {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: none;
}

.case-study--editorial .cs-ba__label {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-orange);
}

.case-study--editorial .cs-interventions {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.case-study--editorial .cs-intervention-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(10rem, 0.7fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cs-line);
}

.case-study--editorial .cs-intervention-item:first-child {
  border-top: none;
  padding-top: 40px;
}

.case-study--editorial .cs-intervention-item__num {
  font-family: var(--font-section);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-brand-orange);
}

.case-study--editorial .cs-intervention-item__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Solution blocks ---------- */

.case-study--editorial .cs-solution-block {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.case-study--editorial .cs-solution-block:last-child {
  margin-bottom: 0;
}

.case-study--editorial .cs-solution-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-study--editorial .cs-solution-block__num {
  color: var(--color-brand-orange);
}

/* ---------- Impact ---------- */

.case-study--editorial .cs-metrics--impact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--cs-line-dark);
}

.case-study--editorial .cs-metrics--impact .cs-metric__value {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.case-study--editorial .cs-impact__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.case-study--editorial .cs-bullets {
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.15rem;
}

.case-study--editorial .cs-bullets li {
  margin: 0 0 0.55rem;
  font-family: var(--font-lora);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.case-study--editorial .cs-band--dark .cs-body {
  color: rgba(245, 240, 232, 0.82);
}

.case-study--editorial .cs-band--dark .cs-insight,
.case-study--editorial .cs-band--dark .cs-learning-item,
.case-study--editorial .cs-band--dark .cs-intervention-item {
  border-top-color: var(--cs-line-dark);
}

.case-study--editorial .cs-band--light .cs-metric__label {
  color: var(--cs-muted);
}

.case-study--editorial .cs-band--light .cs-metrics--impact {
  border-bottom-color: var(--cs-line);
}

.case-study--editorial .cs-band--light .cs-bullets li {
  color: var(--cs-muted);
}

.case-study--editorial .cs-band--dark .cs-bullets li {
  color: rgba(245, 240, 232, 0.78);
}

/* ---------- Learning ---------- */

.case-study--editorial .cs-learnings {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 48rem;
}

.case-study--editorial .cs-learning-item {
  padding-top: 1.35rem;
  border-top: 1px solid var(--cs-line);
}

.case-study--editorial .cs-learning-item__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-barlow);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-study--editorial .cs-learning-item__num {
  color: var(--color-brand-orange);
}

/* ---------- Next project ---------- */

.case-study--editorial .cs-next {
  padding: var(--cs-section-y) 0;
}

.case-study--editorial .cs-next__title-link {
  color: inherit;
  text-decoration: none;
}

.case-study--editorial .cs-next__title-link:hover,
.case-study--editorial .cs-next__title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.case-study--editorial .cs-next__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-section);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cs-ink);
}

.case-study--editorial .cs-next__desc {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-lora);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--cs-muted);
}

.case-study--editorial .cs-next__media {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.case-study--editorial .cs-next__media:hover .cs-ph--next,
.case-study--editorial .cs-next__media:focus-visible .cs-ph--next {
  transform: translateY(-4px);
}

.case-study--editorial .cs-next__media:focus-visible {
  outline: 2px solid var(--color-brand-orange, #ff6200);
  outline-offset: 4px;
}

.case-study--editorial .cs-ph--next {
  transition: transform 0.35s ease;
}

/* ---------- Reveal ---------- */

.case-study--editorial .cs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.case-study--editorial .cs-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .case-study--editorial .cs-goals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study--editorial .cs-metrics--impact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study--editorial .cs-intervention-item {
    grid-template-columns: auto 1fr;
  }

  .case-study--editorial .cs-intervention-item .cs-ph--inline {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .case-study--editorial .cs-hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-study--editorial .cs-hero--fedex .cs-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
    gap: clamp(1.5rem, 5vw, 2.25rem);
  }

  .case-study--editorial .cs-hero--fedex .cs-hero__copy {
    order: 1;
    text-align: center;
  }

  .case-study--editorial .cs-hero--fedex .cs-hero__brand-logo {
    display: block;
    width: clamp(5.5rem, 28vw, 7.5rem);
    height: auto;
    margin: 0 auto 0.85rem;
  }

  .case-study--editorial .cs-hero--fedex .cs-hero__subtitle {
    margin-inline: auto;
  }

  .case-study--editorial .cs-hero--fedex .cs-hero__media {
    order: 2;
  }

  .case-study--editorial .cs-hero__media {
    order: 2;
  }

  .case-study--editorial .cs-ph--hero {
    aspect-ratio: 16 / 11;
    min-height: 16rem;
  }

  .case-study--editorial .cs-hero--fedex .cs-ph--hero {
    aspect-ratio: 946 / 701;
    min-height: 0;
    width: 100%;
  }

  .case-study--editorial .cs-summary__grid,
  .case-study--editorial .cs-split__row,
  .case-study--editorial .cs-compose,
  .case-study--editorial .cs-before-after,
  .case-study--editorial .cs-intervention-topic--split,
  .case-study--editorial .cs-impact__columns,
  .case-study--editorial .cs-insights {
    grid-template-columns: 1fr;
  }

  /* Mobile: Mapping text (eyebrow/title/body) above before/after dashboards */
  .case-study--editorial .cs-intervention-topic--visual-left .cs-intervention-topic__visual {
    order: 0;
  }

  /* Mobile only: Solution image above title */
  .case-study--editorial .cs-split__row--solution .cs-split__figure {
    order: -1;
  }

  /* Solutions 02 / 04 / 06: text above image on mobile (DOM has media first) */
  .case-study--editorial .cs-solution-block.cs-compose--image-left .cs-compose__copy {
    order: -1;
  }

  .case-study--editorial .cs-compose--image-left .cs-compose__media {
    order: 0;
  }

  .case-study--editorial .cs-meta__grid {
    grid-template-columns: 1fr;
  }

  .case-study--editorial .cs-metrics--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study--editorial .cs-metrics--compact .cs-metric--placeholder {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .case-study--editorial .cs-stepper {
    position: sticky;
    top: var(--nav-height);
    z-index: 20;
    padding: clamp(2.5rem, 8vw, 4rem) 0;
  }

  .case-study--editorial .cs-stepper__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.75rem, 5vw, 2.75rem);
  }

  .case-study--editorial .cs-stepper__item {
    width: auto;
  }

  .case-study--editorial .cs-stepper__item:not(:last-child)::after {
    display: none;
  }

  .case-study--editorial .cs-stepper__link {
    gap: 0.85rem;
  }

  .case-study--editorial .cs-stepper__num {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
    font-weight: 700;
  }

  .case-study--editorial .cs-stepper__label {
    font-size: 0.9375rem;
  }

  /* Mobile stuck: compact horizontal sticky bar */
  .case-study--editorial .cs-stepper.is-stuck {
    padding: 0.7rem 0 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .case-study--editorial .cs-stepper.is-stuck .cs-stepper__list {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
  }

  .case-study--editorial .cs-stepper.is-stuck .cs-stepper__item {
    flex: 1 1 0;
    min-width: 0;
  }

  .case-study--editorial .cs-stepper.is-stuck .cs-stepper__item:not(:last-child)::after {
    display: block;
    top: 0.95rem;
    left: calc(50% + 1rem);
    width: calc(100% - 2rem);
  }

  .case-study--editorial .cs-stepper.is-stuck .cs-stepper__link {
    gap: 0.4rem;
    width: 100%;
  }

  .case-study--editorial .cs-stepper.is-stuck .cs-stepper__num {
    width: 2rem;
    height: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
  }

  .case-study--editorial .cs-stepper.is-stuck .cs-stepper__label {
    font-size: 0.625rem;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .case-study--editorial #cs-discovery,
  .case-study--editorial #cs-intervention,
  .case-study--editorial #cs-solution,
  .case-study--editorial #cs-impact,
  .case-study--editorial #cs-learning {
    scroll-margin-top: calc(var(--nav-height) + 4.75rem);
  }
}

@media (max-width: 640px) {
  .case-study--editorial .cs-goals__grid,
  .case-study--editorial .cs-metrics--impact {
    grid-template-columns: 1fr;
  }

  .case-study--editorial .cs-statement,
  .case-study--editorial .cs-statement--sm {
    max-width: none;
  }

  .case-study--editorial .cs-process__chapters {
    gap: 0.4rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study--editorial .cs-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .case-study--editorial .cs-ph--next,
  .case-study--editorial .cs-next__media {
    transition: none;
  }
}
