.case-experience { --case-accent: #cf3102; }
body.case-experience main .case-meta div { border: 0 !important; border-top: 1px solid #d7cfc6 !important; border-radius: 0 !important; background: transparent !important; padding: 16px 0 !important; }
body.case-experience main h1, body.case-experience main h2, body.case-experience main p { letter-spacing: 0; }
.case-chapters { position: sticky; top: 76px; z-index: 35; display: flex; gap: 28px; overflow-x: auto; padding: 14px 24px; background: #fffefa; border-bottom: 1px solid #d7cfc6; scrollbar-width: thin; }
.case-chapters a { flex: 0 0 auto; font-size: 12px; color: #59534e; text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; }
.case-chapters a[aria-current] { color: var(--case-accent); border-color: var(--case-accent); }
.case-experience main h2[id] { scroll-margin-top: 170px; }
body.case-experience main .hero-media img,
body.case-experience main .hero-screen img,
body.case-experience main .screen-frame img,
body.case-experience main .image-frame img,
body.case-experience main .media-frame img { width: 100% !important; max-width: 100% !important; object-fit: contain !important; margin: 0 !important; transform: none !important; }
.gallery-source { position: relative; }
.gallery-open { position: absolute; right: 12px; bottom: 12px; z-index: 3; padding: 10px 16px; border: 1px solid #fffefa; background: #080807; color: #fffefa; border-radius: 4px; font: 600 12px var(--font-ui); cursor: pointer; }
.case-gallery { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; margin: 0; background: #080807; color: #fffefa; }
.case-gallery[open] { display: grid; grid-template-rows: 72px minmax(0,1fr) 88px; }
.case-gallery::backdrop { background: #080807; }
.case-gallery header, .case-gallery footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 24px; border-color: #45423e; }
.case-gallery header { border-bottom: 1px solid #45423e; }
.case-gallery footer { border-top: 1px solid #45423e; }
.case-gallery header div { display: flex; gap: 12px; }
.case-gallery button { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #59534e; border-radius: 4px; background: transparent; color: #fffefa; font-size: 24px; cursor: pointer; }
.case-gallery button:hover, .case-gallery button[aria-pressed="true"] { background: #cf3102; }
.case-gallery button:focus-visible, .gallery-open:focus-visible { outline: 3px solid #f4a044; outline-offset: 3px; }
.gallery-stage { overflow: auto; padding: 24px; touch-action: pan-y pinch-zoom; }
.is-zoomed .gallery-stage { touch-action: auto; }
.gallery-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.is-zoomed .gallery-stage img { width: 200%; height: auto; max-width: none; }
.gallery-caption { font-size: 13px; line-height: 1.5; text-align: center; max-width: 70ch; margin: 0; }
@media (max-width: 680px) {
  body.case-experience main .case-title, body.case-experience main .case-title span { font-size: 40px; line-height: 1.1 !important; }
  .case-chapters { top: 64px; gap: 20px; padding: 10px 20px; }
  .case-experience main h2[id] { scroll-margin-top: 135px; }
  .case-gallery header, .case-gallery footer { padding: 10px 16px; gap: 12px; }
  .case-gallery[open] { grid-template-rows: 64px minmax(0,1fr) 100px; }
  .gallery-stage { padding: 12px; }
  .gallery-caption { font-size: 11px; }
}
