.kimera-gallery {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(30px, 4.2vw, 56px);
  margin-top: 10px;
}

.kimera-case-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px clamp(14px, 2vw, 24px);
}

.case-hero .kimera-case-nav { margin-top: 22px; }

.kimera-case-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  color: var(--action);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.kimera-case-nav a:hover, .kimera-case-nav a:focus-visible { text-decoration-color: currentColor; }

.kimera-evidence .case-section-label,
.kimera-store-header .eyebrow {
  color: var(--muted);
  font: 600 0.82rem/1.45 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.kimera-evidence h2 { letter-spacing: -0.048em; }

.kimera-store {
  min-width: 0;
  padding-top: clamp(20px, 2.7vw, 34px);
  border-top: 1px solid var(--rule);
}

.kimera-store-header {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  column-gap: clamp(20px, 4vw, 58px);
  row-gap: 6px;
  align-items: end;
  margin-bottom: 18px;
}

.kimera-store-header .eyebrow { grid-column: 1; }
.kimera-store-header h3 {
  grid-column: 1;
  font-size: clamp(1.55rem, 3.1vw, 2.6rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.kimera-store-header h3 a:hover { color: var(--action); }
.kimera-store-header h3 a span { color: var(--action); font-size: 0.48em; vertical-align: 0.18em; }

.kimera-store-header > p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 55ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.kimera-gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
}

.kimera-gallery-pair:where(:has(.kimera-shot-desktop):has(.kimera-shot-mobile)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.33fr);
}

.kimera-gallery-pair.kimera-gallery-multi {
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
}

.kimera-gallery-pair + .kimera-gallery-pair { margin-top: clamp(17px, 2.5vw, 32px); }
.kimera-gallery-pair > :only-child { grid-column: 1 / -1; }
.kimera-shot { min-width: 0; }
.kimera-shot-mobile { width: min(100%, 19rem); }

.kimera-shot a {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface);
}

.kimera-shot a:hover { border-color: var(--action); }
.kimera-shot a::after {
  content: "Enlarge ↗" / "";
  display: block;
  padding: 7px 11px;
  border-top: 1px solid var(--rule);
  color: var(--action);
  font-size: 0.77rem;
  font-weight: 700;
  text-align: right;
}

.has-shot-viewer .kimera-shot a::after { content: "Enlarge +" / ""; }
.kimera-shot a:hover::after { text-decoration: underline; text-underline-offset: 3px; }
.kimera-shot img { width: 100%; height: auto; border-radius: 4px 4px 0 0; }
.kimera-shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.kimera-shot figcaption strong { color: var(--ink); }

.kimera-store-more {
  margin-top: clamp(16px, 2.2vw, 27px);
  border-top: 1px solid var(--rule);
}

.kimera-store-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  color: var(--action);
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.kimera-store-more > summary::-webkit-details-marker { display: none; }
.kimera-store-more > summary::after {
  content: "+" / "";
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1.25;
}

.kimera-store-more[open] > summary::after { content: "−" / ""; }
.kimera-store-more > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.kimera-store-more > .kimera-gallery-pair { margin-top: 15px; }

.kimera-surface-list, .kimera-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
  padding: 0;
}

.kimera-surface-list { grid-template-columns: minmax(0, 1fr); list-style: decimal-leading-zero inside; }
.kimera-surface-list li, .kimera-metrics > div {
  min-width: 0;
  padding: clamp(13px, 2.2vw, 25px);
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--surface);
}

.kimera-surface-list li::marker {
  color: var(--action);
  font: 650 0.73rem/1.4 var(--sans);
}

.kimera-surface-list li > strong {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.kimera-surface-list li > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.kimera-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--soft);
  border-color: var(--rule);
}
.kimera-metrics dt { font-size: 0.83rem; line-height: 1.35; }
.kimera-metrics dd {
  margin-top: auto;
  color: var(--action);
  font-size: clamp(1.36rem, 2.7vw, 2.35rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.kimera-source { grid-column: 1 / -1; color: var(--muted); font-size: 0.83rem; line-height: 1.55; }
.kimera-source a, a.kimera-source {
  color: var(--action);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

html:has(.shot-viewer[open]) { overflow: hidden; scrollbar-gutter: stable; }

.shot-viewer {
  display: none;
  position: fixed;
  inset: 0;
  width: min(70rem, calc(100% - 28px));
  height: min(52rem, calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}

.shot-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.shot-viewer::backdrop { background: var(--viewer-backdrop); }

.shot-viewer-header, .shot-viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(12px, 2vw, 24px);
}

.shot-viewer-header h2 { font-size: clamp(1rem, 2.3vw, 1.24rem); line-height: 1.3; letter-spacing: -0.025em; }

.shot-viewer-stage {
  min-height: 0;
  overflow: hidden;
  padding: clamp(7px, 1.8vw, 22px);
  background: var(--viewer-stage);
}

.shot-viewer-stage img { width: 100%; height: 100%; object-fit: contain; }
.shot-viewer-caption { max-width: 78ch; color: var(--muted); font-size: 0.87rem; line-height: 1.45; }
.shot-viewer-original { color: var(--action); font-size: 0.81rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.shot-viewer-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.shot-viewer-controls span { min-width: 3.25ch; text-align: center; color: var(--muted); font-size: 0.83rem; font-variant-numeric: tabular-nums; }

.shot-viewer button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  color: var(--action);
  font: 700 1rem/1 var(--sans);
  cursor: pointer;
}

.shot-viewer-controls button[aria-disabled="true"] { color: var(--muted); background: var(--paper); opacity: 0.65; cursor: default; }
.shot-viewer-controls button:not([aria-disabled="true"]):hover { border-color: var(--action); }
.shot-viewer .shot-viewer-close { display: inline-flex; flex: 0 0 auto; gap: 7px; padding-inline: 12px; background: var(--button-bg); color: var(--button-ink); border-color: var(--button-bg); font-size: 0.86rem; }
.shot-viewer .shot-viewer-close:hover { background: var(--button-hover); border-color: var(--button-hover); }
.shot-viewer .shot-viewer-close span { font-size: 1.25rem; }

@media (max-width: 700px) {
  .kimera-store-header { grid-template-columns: minmax(0, 1fr); }
  .kimera-store-header > p:not(.eyebrow) { grid-column: 1; grid-row: auto; }
  .kimera-gallery-pair,
  .kimera-gallery-pair.kimera-gallery-multi {
    grid-template-columns: minmax(0, 1fr);
  }
  .kimera-shot-mobile { justify-self: center; }
  .kimera-metrics { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .shot-viewer { width: calc(100% - 14px); height: calc(100dvh - 14px); }
  .shot-viewer-header, .shot-viewer-footer { padding: 9px 11px; }
  .shot-viewer-footer { align-items: start; flex-direction: column; gap: 5px; }
  .shot-viewer-controls { align-self: end; }
}
