.editorial-case {
  --red: #9E1B32;
  --wine: var(--red);
  background: var(--paper);
  color: var(--ink);
}
.editorial-case .case-header {
  width: 100%;
  padding: clamp(1rem, 2vw, 2rem) max(8.75%, calc((100% - 100rem) / 2));
  color: var(--paper);
  background: var(--ink);
}
.editorial-opening {
  --opening-photo-width: 50%;
  --opening-photo-height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(30rem, 78svh, 59rem);
  background: var(--paper);
}
.opening-photo {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  width: var(--opening-photo-width);
  height: var(--opening-photo-height);
  background: var(--ink);
}
.opening-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 44%;
}
.opening-copy {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  padding: clamp(2rem, 5.5vw, 7rem);
}
.editorial-opening .eyebrow { color: var(--wine); }
.editorial-opening h1 {
  margin: .35em 0 .25em;
  font: 900 clamp(2.3rem, 5vw, 6.5rem)/.96 var(--display);
  letter-spacing: -.07em;
}
.editorial-opening h1 span {
  font: italic 850 .72em/1.1 var(--sans);
  letter-spacing: -.055em;
}
.opening-deck { max-width: 36ch; font: clamp(1.2rem, 2.1vw, 2rem)/1.3 var(--sans); }
.version-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .opening-pending .opening-photo { width: 100%; height: 100%; }
  .opening-pending .opening-copy { opacity: 0; }
  .opening-reveal .opening-photo { animation: contract-photo 1.55s cubic-bezier(.76, 0, .24, 1) both; }
  .opening-reveal .opening-copy { animation: reveal-copy .48s .92s ease-out both; }
}
@keyframes contract-photo {
  0%, 25% { width: 100%; height: 100%; }
  100% { width: var(--opening-photo-width); height: var(--opening-photo-height); }
}
@keyframes reveal-copy {
  from { opacity: 0; transform: translateY(.9rem); }
  to { opacity: 1; transform: translateY(0); }
}
.editorial-banner {
  padding-block: clamp(1.75rem, 5.5vw, 6rem) clamp(1.25rem, 3vw, 3rem);
  background: var(--ink);
  color: var(--paper);
}
.banner-art {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: clamp(.6rem, 2.5vw, 2.75rem);
}
.banner-art img { display: block; width: 100%; height: auto; }
.banner-portrait { transform: translateY(5%); }
.banner-tour { transform: translateY(-5%); }
.editorial-banner figcaption { margin-top: clamp(.75rem, 2vw, 1.75rem); }
.editorial-case .case-jump { background: var(--paper); border-block: 1px solid var(--red); }
.editorial-case .case-jump a { color: var(--wine); }
.editorial-case .case-overview { grid-template-columns: 2fr 1fr; }
.editorial-case .case-overview dl, .editorial-case .case-overview dd { border-color: var(--red); }
.editorial-case .case-overview dt { color: var(--wine); }
.identity-heading { padding-block: clamp(2rem, 4vw, 4.5rem); }
.identity-heading p { margin-top: .8rem; max-width: 52ch; font: clamp(1rem, 1.6vw, 1.35rem)/1.5 var(--sans); }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.palette-grid li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(8rem, 17vw, 18rem);
  padding: clamp(.65rem, 2vw, 2rem);
  background: var(--swatch);
  color: var(--ink);
}
.palette-grid .swatch-dark { color: var(--paper); }
.palette-grid strong { line-height: 1.15; }
.palette-grid span { margin-top: .3rem; font: .875rem/1.2 var(--sans); }
.type-section { padding-bottom: clamp(2.5rem, 5vw, 5rem); color: var(--paper); background: var(--ink); }
.type-specimens { margin: 0; border-bottom: 1px solid var(--field); }
.type-specimens > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) minmax(0, 4fr);
  align-items: center;
  gap: .5rem 1.5rem;
  padding: clamp(.8rem, 2vw, 1.75rem) 0;
  border-top: 1px solid var(--field);
}
.type-specimens dt { color: var(--field); font-size: .875rem; }
.type-specimens dt strong { display: block; color: var(--paper); font-size: 1rem; }
.type-specimens dd { margin: 0; }
.type-specimens img { display: block; width: min(100%, 52rem); height: auto; }
.editorial-case .case-feature { background: var(--wine); color: var(--paper); }
.editorial-case .case-feature img { width: min(82.5%, 66rem); }
.editorial-case .case-feature figcaption { width: min(82.5%, 66rem); }
.editorial-case :is(.case-feature img, .case-gallery img, video) { border-radius: 0; }
.editorial-case .case-chapter-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.2rem clamp(1.2rem, 5vw, 5rem);
  max-width: none;
  padding-top: 1.25rem;
  border-top: 1px solid currentColor;
}
.editorial-case .case-chapter-intro p { margin-top: 0; }
.editorial-case .field-gallery { grid-template-columns: 1.18fr 1fr 1fr; }
.editorial-case .editorial-social { background: var(--ink); color: var(--paper); }
.editorial-case .editorial-social .case-gallery { row-gap: 2.5rem; }
.editorial-case .editorial-carousel .case-gallery {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(12rem, 26vw, 20rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: .4rem .4rem 1rem;
}
.editorial-case .editorial-carousel figure { scroll-snap-align: start; }
.editorial-case .motion-band { background: var(--wine); color: var(--paper); }
.editorial-case .motion-gallery { max-width: 44rem; margin-inline: auto; }
.editorial-case .document-link { color: var(--wine); }
.editorial-case .concept-archive { border-color: var(--red); }
.editorial-case .case-contact { background: var(--ink); color: var(--paper); }
.editorial-case .case-contact .button { background: var(--field); color: var(--ink); }
.editorial-case .case-contact .button:focus-visible { outline-color: var(--paper); }
.editorial-case .case-footer { color: var(--paper); background: var(--ink); }
@media (max-width: 42rem) {
  .editorial-opening {
    --opening-photo-width: 100%;
    --opening-photo-height: clamp(15rem, 58vw, 24rem);
    grid-template-columns: 1fr;
    padding-top: var(--opening-photo-height);
    min-height: 0;
  }
  .opening-copy { grid-column: 1; padding-inline: var(--gutter); }
  .editorial-opening h1 { font-size: clamp(2.15rem, 8.8vw, 3.7rem); }
  .banner-art { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .banner-identity { grid-row: 1; grid-column: 1 / -1; justify-self: center; max-width: 16rem; }
  .banner-portrait, .banner-tour { transform: none; }
  .editorial-case .case-overview, .editorial-case .case-chapter-intro { grid-template-columns: 1fr; }
  .editorial-case .field-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palette-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-specimens > div { grid-template-columns: 1fr; }
}
@media (max-width: 24rem) {
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-case .editorial-carousel .case-gallery { scroll-snap-type: none; }
}
