.case-page .case-overview__narrative { margin-top: clamp(35px, 4vw, 60px); }
.case-page .case-story__copy { max-width: none; margin-left: 0; min-width: 0; }
.case-page .case-story__copy :is(h2, h3) .sentence-text__sentence { display: block; width: fit-content; max-width: 100%; }
.case-page .case-overview__narrative .case-story__copy h3,
.case-page .case-story__text-row .case-story__copy h2 {
  font-size: clamp(28px, 3vw, 45px);
  line-height: 1.2;
  letter-spacing: -.04em;
  font-weight: 500;
  margin: 0 0 24px;
}
.case-page .case-overview__narrative .case-story__copy p { margin: 0; }
.case-page .case-story__text-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.case-page .case-story__text-row > .case-story__copy:only-child { grid-column: 1 / -1; max-width: 720px; }
.case-page .case-story--summary { padding-block: clamp(34px, 5vw, 72px); }
.case-page .case-story__summary { max-width: min(100%, 680px); }
.case-page .case-story__summary .eyebrow { margin: 0 0 16px; color: var(--coral); }
.case-page .case-story__summary .type-body-large { margin: 0; }
.case-page .case-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(28px, 4vw, 56px);
}
.case-page .case-section-label h2 {
  margin: 0;
  text-align: center;
}
.case-page .case-key-moments-title {
  color: var(--ink);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-related {
  border-top: 1px solid #d7d7d7;
  padding-top: clamp(40px, 5vw, 75px);
  padding-bottom: clamp(70px, 9vw, 150px);
}
.case-related__heading { margin-bottom: clamp(30px, 4vw, 55px); }
.case-related__heading h2 {
  margin-top: 22px;
  font-size: clamp(36px, 4.7vw, 70px);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 500;
}
.case-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); }
.case-related__card { min-width: 0; }
.case-related__card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.case-related__image { position: relative; overflow: hidden; }
.case-related__image img { object-fit: contain; }
.case-related__caption { position: relative; padding: 24px 0 0; }
.case-related__caption .eyebrow { font-size: 10px; line-height: 1.6; }
.case-related__caption h3 { color: #e93f24; font-size: clamp(25px, 2.6vw, 39px); line-height: 1.2; font-weight: 500; letter-spacing: -.04em; margin-top: 12px; }
.case-related__arrow { display: inline-flex; width: .78em; height: .78em; margin-left: .35em; vertical-align: .02em; color: #e93f24; transition: transform .2s ease; }
.case-related__arrow .arrow { width: 100%; height: 100%; }
.case-related__card a:hover .case-related__arrow { transform: translate(3px, -3px); }
.case-related__card a:focus-visible { outline: 2px solid #e93f24; outline-offset: 8px; }

@media (max-width: 700px) {
  .case-page .case-overview__narrative { margin-top: 35px; }
  .case-page .case-story__text-row { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .case-page .case-story__text-row > .case-story__copy:only-child { grid-column: auto; }
  .case-related__grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .case-related__caption { padding-top: 20px; }
  .case-related__caption h3 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-related__arrow { transition: none; }
  .case-related__card a:hover .case-related__arrow { transform: none; }
}

/* Shared story slots keep copy and photography balanced across project pages. */
.case-page .case-story--editorial {
  --story-column-gap: clamp(24px, 3.2vw, 56px);
  /* Narrow desktop columns reserve more room for the same copy. */
  --story-copy-space: max(22rem, calc(44rem - 30cqw));
  padding-bottom: clamp(40px, 6vw, 88px);
}
.case-page .case-story--editorial .case-story__text-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--story-column-gap);
  align-items: stretch;
  container-type: inline-size;
}
.case-page .case-story--editorial .case-story__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 42px);
  margin: 0;
}
.case-page .case-story--editorial .case-story__text {
  flex: 1;
  min-width: 0;
  min-block-size: var(--story-copy-space);
}
.case-page .case-story--editorial .case-story__copy h2 {
  font-size: clamp(26px, 2.25vw, 38px);
  line-height: 1.2;
  margin: 0 0 22px;
  text-wrap: pretty;
  min-block-size: 2.4em;
}
.case-page .case-story--editorial .case-story__copy p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.8;
  margin: 0;
}
.case-page .case-story--editorial :is(.case-story__image, .case-story__feature, .case-story__detail, .case-story__panorama) { margin: 0; width: 100%; min-width: 0; }
.case-page .case-story--editorial :is(.case-story__image, .case-story__feature, .case-story__detail, .case-story__panorama) .case-media__image { aspect-ratio: auto !important; }
.case-page .case-story--editorial :is(.case-story__image, .case-story__feature, .case-story__detail, .case-story__panorama) img { position: relative !important; display: block; width: 100%; height: auto !important; object-fit: contain; }
/* Only the story's paired photos use fixed frames; full-width gallery images stay natural. */
.case-page .case-story--editorial .case-story__text-row :is(.case-story__image, .case-story__feature, .case-story__detail) { flex: none; }
.case-page .case-story--editorial .case-story__text-row :is(.case-story__image, .case-story__feature, .case-story__detail) .case-media__image {
  height: calc((100cqw - 2 * var(--story-column-gap)) * 3 / 16);
}
.case-page .case-story--editorial .case-story__text-row :is(.case-story__image, .case-story__feature, .case-story__detail) img {
  position: absolute !important;
  height: 100% !important;
  object-fit: cover;
}
.case-page .case-story--editorial .case-story__copy:nth-child(2) > .case-story__image { order: -1; }
.case-page .case-story--reverse .case-story__copy:nth-child(odd) > .case-story__image { order: -1; }
.case-page .case-story--reverse .case-story__copy:nth-child(2) > .case-story__image { order: 0; }
.case-page .case-story--panorama { gap: clamp(40px, 5vw, 76px); }
.case-page .case-story--feature .case-story__text-row {
  grid-template-areas: "feature feature first" "second detail third";
  row-gap: clamp(40px, 5vw, 76px);
}
.case-page .case-story--feature .case-story__feature { grid-area: feature; }
.case-page .case-story--feature .case-story__copy:nth-of-type(1) { grid-area: first; align-self: stretch; }
.case-page .case-story--feature .case-story__copy:nth-of-type(2) { grid-area: second; }
.case-page .case-story--feature .case-story__detail { grid-area: detail; }
.case-page .case-story--feature .case-story__copy:nth-of-type(3) { grid-area: third; }
.case-page .case-story--single .case-story__text-row > .case-story__copy:only-child {
  grid-column: 1 / -1;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.case-page .case-story--single .case-story__text {
  min-block-size: 0;
  max-inline-size: 48ch;
}
.case-page .case-story--single .case-story__copy h2 { min-block-size: 0; }
/* A single feature image keeps its natural proportions beside the copy. */
.case-page .case-story--editorial.case-story--single .case-story__text-row .case-story__image .case-media__image {
  height: auto;
  aspect-ratio: auto !important;
}
.case-page .case-story--editorial.case-story--single .case-story__text-row .case-story__image img {
  position: relative !important;
  height: auto !important;
  object-fit: contain;
}
.case-page .case-gallery-track:has(.case-story--editorial) .case-gallery { gap: clamp(24px, 3.2vw, 56px); }
.case-page .case-gallery-track .case-gallery--triptych { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 701px) {
  /* Alternating copy and photos start on the same two horizontal tracks. */
  .case-page .case-story--editorial:not(.case-story--feature):not(.case-story--single) .case-story__copy {
    display: grid;
    grid-template-rows: repeat(2, minmax(var(--story-copy-space), 1fr));
    align-items: start;
  }
  .case-page .case-story--editorial:not(.case-story--feature):not(.case-story--single) .case-story__text {
    align-self: stretch;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .case-page .case-story--editorial { --story-column-gap: 24px; }
  .case-page .case-story--editorial .case-story__copy h2 { font-size: 25px; }
}
@media (max-width: 700px) {
  .case-page .case-story--editorial .case-story__text-row { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .case-page .case-story--editorial .case-story__text { min-block-size: 0; }
  .case-page .case-story--editorial .case-story__text-row :is(.case-story__image, .case-story__feature, .case-story__detail) .case-media__image {
    height: auto;
    aspect-ratio: 16 / 9 !important;
  }
  .case-page .case-story--editorial .case-story__copy h2 { font-size: 30px; min-block-size: 0; }
  .case-page .case-story--editorial .case-story__copy p { font-size: 16px; line-height: 1.75; }
  .case-page .case-story--editorial .case-story__copy:nth-child(2) > .case-story__image,
  .case-page .case-story--reverse .case-story__copy:nth-child(odd) > .case-story__image { order: 0; }
  .case-page .case-story--single .case-story__text-row > .case-story__copy:only-child { grid-template-columns: minmax(0, 1fr); }
  .case-page .case-story--single .case-story__text { max-inline-size: none; }
  .case-page .case-story--feature .case-story__text-row { grid-template-areas: none; }
  .case-page .case-story--feature .case-story__text-row > :is(.case-story__copy, .case-story__feature, .case-story__detail) { grid-area: auto; }
  .case-page .case-gallery-track:has(.case-story--editorial) .case-gallery { grid-template-columns: minmax(0, 1fr); }
}
