/* Editorial case studies. All rules are opt-in; legacy archives retain their layout. */
.case-story--editorial {
  --case-paper: #f8fafb;
  --case-rule: var(--line, #d5e3ec);
  --case-blue: var(--mec-brand, #0a5e91);
  --case-ink: var(--mec-ink, #142f40);
  --case-muted: var(--mec-muted, #60727d);
  color: var(--case-ink);
  background: var(--case-paper);
  padding-bottom: clamp(40px, 6vw, 96px);
}

.case-story--editorial *,
.case-story--editorial *::before,
.case-story--editorial *::after { box-sizing: border-box; }

.case-story--editorial .wrap { min-width: 0; }

.case-story--editorial .page-intro {
  padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 60px);
}

.case-story--editorial .page-intro h1 {
  max-width: 19ch;
  margin-bottom: 24px;
  font-size: clamp(38px, 5.6vw, 80px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.case-story--editorial .page-intro .lede {
  max-width: 64ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.9;
}

.case-story--editorial .kicker {
  color: var(--case-blue);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

.case-story--editorial figure.case-hero {
  margin-block: 0 clamp(40px, 5vw, 80px);
}

.case-story--editorial .case-hero img,
.case-story--editorial .case-artwork img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 1px solid var(--case-rule);
  border-radius: 0;
}

.case-story--editorial figcaption {
  min-width: 0;
  color: var(--case-ink);
  overflow-wrap: anywhere;
}

.case-story--editorial .case-hero figcaption,
.case-story--editorial .case-film figcaption {
  max-width: 880px;
  padding-top: 22px;
}

.case-story--editorial figcaption strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.65;
}

.case-story--editorial figcaption small {
  display: block;
  margin-top: 6px;
  color: var(--case-blue);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.case-story--editorial figcaption p {
  max-width: 65ch;
  margin: 9px 0 0;
  color: var(--case-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.case-story--editorial .case-detail {
  gap: clamp(32px, 6vw, 100px);
  padding-block: 0 clamp(48px, 6vw, 88px);
}

.case-story--editorial .case-detail > * { min-width: 0; }
.case-story--editorial .case-detail p { max-width: 65ch; }
.case-story--editorial .case-detail h2 { line-height: 1.45; }

.case-story--editorial figure.case-film {
  margin-block: 0 clamp(56px, 7vw, 104px);
}

.case-story--editorial .case-film video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101b24;
  border: 1px solid var(--case-rule);
  border-radius: 12px;
}

.case-story--editorial .case-film video:focus-visible {
  outline: 3px solid var(--case-blue);
  outline-offset: 5px;
}

.case-story--editorial .case-film figcaption h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.5;
}

.case-story--editorial .case-media-section {
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 7vw, 104px);
  border-top: 1px solid var(--case-rule);
}

.case-story--editorial .case-gallery-heading {
  max-width: 860px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.case-story--editorial .case-gallery-heading .kicker { margin: 0 0 12px; }

.case-story--editorial .case-gallery-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-wrap: balance;
}

.case-story--editorial .case-gallery-heading > p:not(.kicker) {
  max-width: 65ch;
  margin: 18px 0 0;
  color: var(--case-muted);
  font-size: 16px;
  line-height: 1.9;
}

.case-story--editorial .case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(40px, 5vw, 72px) clamp(24px, 3.5vw, 52px);
}

.case-story--editorial figure.case-artwork {
  min-width: 0;
  margin: 0;
}

.case-story--editorial .case-artwork figcaption {
  position: relative;
  padding-top: 20px;
}

.case-story--editorial .case-artwork-index {
  display: block;
  margin-bottom: 8px;
  color: var(--case-blue);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  letter-spacing: .06em;
}

@media (min-width: 1180px) {
  .case-story--editorial .case-gallery-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
  }
}

@media (max-width: 700px) {
  .case-story--editorial { padding-bottom: 36px; }
  .case-story--editorial .page-intro { padding-block: 40px 30px; }
  .case-story--editorial .page-intro h1 { margin-bottom: 20px; }
  .case-story--editorial .kicker { font-size: 12px; letter-spacing: .035em; }
  .case-story--editorial .case-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-block: 0 44px;
  }
  .case-story--editorial figure.case-hero { margin-block: 0 36px; }
  .case-story--editorial .case-hero figcaption,
  .case-story--editorial .case-film figcaption { padding-top: 17px; }
  .case-story--editorial figure.case-film { margin-block: 0 48px; }
  .case-story--editorial .case-media-section { padding-block: 30px 44px; }
  .case-story--editorial .case-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .case-story--editorial .case-artwork figcaption { padding-top: 16px; }
  .case-story--editorial figcaption strong { font-size: 18px; }
  .case-story--editorial figcaption p { margin-top: 8px; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  .case-story--editorial { scroll-behavior: auto; }
}
