/* One compact opening rhythm for portfolio pages. Type and media layouts stay local. */
body[data-cup-case-heading] {
  --cup-title-top: clamp(80px, 10svh, 120px);
  --cup-title-gap: clamp(36px, 5svh, 64px);
}
body[data-cup-case-heading] :is(.case-intro, .cgi-heading, .art-intro) {
  min-height: 0 !important;
  height: auto !important;
  padding-top: var(--cup-title-top) !important;
  padding-bottom: var(--cup-title-gap) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
body[data-cup-case-heading] .case-intro + * { margin-top: 0 !important; }
body[data-cup-case-heading] .art-intro + .project-credits {
  margin-top: 0;
  margin-bottom: var(--cup-title-gap);
}
body[data-cup-case-heading] .site-case-summary { margin-bottom: 0; }
body[data-cup-case-heading] .case-intro + .case-description {
  margin-bottom: var(--cup-title-gap);
}
body[data-cup-case-heading] .film-page { padding-top: 0; }
body[data-cup-case-heading] .film-heading {
  padding-top: var(--cup-title-top);
  padding-bottom: var(--cup-title-gap);
  margin-top: 0;
  margin-bottom: 0;
}
body[data-cup-case-heading] .brown-opening {
  padding-top: var(--cup-title-top);
  row-gap: var(--cup-title-gap);
}
body[data-cup-case-heading] .category-page { padding-top: var(--cup-title-top); }
body[data-cup-case-heading] .category-heading { margin-bottom: var(--cup-title-gap); }
@media (max-width: 760px) {
  body[data-cup-case-heading] {
    --cup-title-top: 76px;
    --cup-title-gap: 32px;
  }
}
