.case-trigger {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.case-trigger:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.case-open { overflow: hidden; }
.case-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080808;
  color: #fff;
  overscroll-behavior: contain;
  font: inherit;
}
.case-viewer::backdrop { background: #000; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 30vw, 520px); grid-template-rows: minmax(0, 1fr); height: 100%; }
.case-art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: auto; padding: 66px clamp(24px, 5vw, 90px); }
.case-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 132px); border-radius: 12px; }
.case-panel { display: grid; grid-template-rows: minmax(0, 1fr) auto; border-left: 1px solid #222; background: #111; }
.case-panel-copy { overflow: auto; padding: clamp(32px, 4vw, 72px) clamp(26px, 3vw, 54px) 28px; }
.case-viewer h2 { position: static; max-width: none; font: inherit; font-size: clamp(31px, 3.2vw, 56px); letter-spacing: -.05em; line-height: .98; }
.case-label { color: #aaa; font-size: 13px; margin-bottom: 20px; }
.case-summary, .case-text p { color: #bdbdbd; font-size: 15px; line-height: 1.55; }
.case-summary { margin-top: 20px; }
.case-text, .case-direction { border-top: 1px solid #292929; margin-top: 25px; padding-top: 22px; }
.case-panel h3 { font-size: 15px; margin-bottom: 7px; color: #fff; }
.case-text p + h3 { margin-top: 20px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 12px 0 0; list-style: none; }
.case-tags li { font-size: 12px; color: #ccc; padding: 7px 10px; background: #202020; border-radius: 999px; }
.case-navigation { display: flex; gap: 8px; padding: 16px clamp(26px, 3vw, 54px); border-top: 1px solid #292929; background: #111; }
.case-viewer button { font: inherit; color: #fff; border: 0; background: #242424; cursor: pointer; border-radius: 999px; }
.case-viewer button:is(:hover, :focus-visible) { background: #fff; color: #111; }
.case-navigation button { min-height: 44px; padding: 0 16px; }
.case-icon { width: 44px; height: 44px; font-size: 22px !important; }
.case-close { position: fixed; top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
@media (max-width: 760px) {
  .case-layout { display: block; height: auto; }
  .case-art { padding: 68px 14px 18px; min-height: 260px; }
  .case-image { max-height: 52dvh; }
  .case-panel { display: block; border: 0; border-top: 1px solid #222; }
  .case-panel-copy { overflow: visible; padding: 26px 20px 96px; }
  .case-navigation { position: fixed; inset: auto 0 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .case-viewer[open] .case-layout { animation: case-enter .28s cubic-bezier(.2,.7,.25,1); }
  @keyframes case-enter { from { opacity: 0; } to { opacity: 1; } }
}
