.case-header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.case-hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: end; gap: clamp(20px, 5vw, 70px); padding-block: clamp(34px, 7vw, 104px); }
.case-intro h1 { margin-top: 13px; font-size: clamp(50px, 7.5vw, 112px); letter-spacing: -.08em; line-height: .92; text-wrap: balance; overflow-wrap: break-word; }
.case-intro > p:not(.eyebrow) { max-width: 47ch; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.8vw, 23px); line-height: 1.5; }
.case-jumps { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; }
.case-jumps .text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.case-cover { aspect-ratio: 4 / 3; background: var(--soft-bg); border: 1px solid var(--line); }
.case-cover img { height: 100%; object-fit: cover; }
.case-copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(25px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 24px; }
.case-copy h2 { font-size: clamp(24px, 3.5vw, 39px); letter-spacing: -.06em; line-height: 1.05; }
.case-copy p { margin-top: 9px; max-width: 68ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.case-source { grid-column: 1 / -1; justify-self: start; }
.case-block { padding-top: clamp(45px, 7vw, 94px); }
.case-block h2, .case-contact h2 { font-size: clamp(34px, 5.6vw, 68px); line-height: 1; letter-spacing: -.07em; }
.case-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 16px; }
.case-video { max-width: 920px; min-width: 0; }
.case-video video { display: block; width: 100%; height: auto; max-height: min(72svh, 590px); object-fit: contain; background: var(--deep-bg); }
.case-video figcaption, .case-image figcaption { padding-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.case-motion-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 24px; }
.case-motion-toggle { text-decoration: underline; text-underline-offset: 5px; }
.case-motion-chapter { padding-block: clamp(24px, 4.5vw, 54px); border-top: 1px solid var(--line); }
.case-motion-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: clamp(16px, 4vw, 60px); align-items: center; }
.case-motion-chapter:nth-of-type(even) .case-motion-lead { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.case-motion-chapter:nth-of-type(even) .case-motion-lead > figure { order: -1; }
.case-motion-copy h3 { font-size: clamp(28px, 4.6vw, 59px); line-height: .97; letter-spacing: -.065em; text-wrap: balance; }
.case-motion-copy p { max-width: 38ch; margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.53; }
.case-motion .case-video { max-width: none; }
.case-motion .case-video video { aspect-ratio: 16 / 9; max-height: none; object-fit: contain; }
.case-motion-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 14px; margin-top: 17px; }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px 12px; margin-top: 16px; }
.case-image a { display: block; aspect-ratio: 4 / 3; background: var(--soft-bg); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.case-image img { height: 100%; object-fit: cover; }
.case-image .portrait img { object-fit: contain; }
.case-contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 17px; margin: clamp(42px, 8vw, 100px) 0 35px; padding: clamp(18px, 4vw, 44px); border: 1px solid var(--line); background: var(--soft-bg); }
.case-contact h2 { font-size: clamp(30px, 4.8vw, 58px); }
body:has(.case-lightbox[open]) { overflow: hidden; }
.case-lightbox { width: max-content; max-width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 0; border: 0; overflow: hidden; background: var(--deep-bg); color: var(--fg); }
.case-lightbox::backdrop { background: #050706eb; }
.case-lightbox > img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 20px); object-fit: contain; }
.case-lightbox button { position: absolute; width: 44px; height: 44px; border-color: #ffffff65; border-radius: 50%; background: #080c10e8; line-height: 1; }
.case-lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.case-lightbox [data-close-photo] { top: 8px; right: 8px; }
.case-lightbox [data-photo-prev], .case-lightbox [data-photo-next] { top: 50%; transform: translateY(-50%); }
.case-lightbox [data-photo-prev] { left: 8px; }
.case-lightbox [data-photo-next] { right: 8px; }
.case-lightbox [data-photo-position] {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #080c10e8;
  color: var(--fg);
  font: 500 12px/1 var(--mono);
}
@media (max-width: 720px) {
  .case-hero { grid-template-columns: 1fr; padding-block: 35px; }
  .case-cover { aspect-ratio: 16 / 9; }
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-motion-lead, .case-motion-chapter:nth-of-type(even) .case-motion-lead { grid-template-columns: minmax(0, 1fr); }
  .case-motion-chapter:nth-of-type(even) .case-motion-lead > figure { order: 0; }
}
@media (max-width: 380px) { .case-gallery { gap: 14px 7px; } }
