/* Image treatments and interactive controls for Frame and Night Light. */
.study-pair, .study-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.study-split { gap: min(8vw, 110px); align-items: center; }
.study-split > div { max-width: 52ch; }
.ceramic-case .study-pair img { height: clamp(280px, 35vw, 500px); object-fit: contain; }
.ceramic-case .sketch-board {
  width: min(100%, 980px, 89svh);
  margin-inline: auto;
}
.variants { --stage-height: min(44svh, 460px); }
.variants figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--stage-height) auto;
  overflow: hidden;
}
.variants figure::before, .variants img { grid-area: 1 / 1; }
.variants figure::before { content: ""; background: var(--mat); }
/* Both silhouettes occupy 75% of the stage. Their source heights are
   1037/1080 px (V2) and 3006/3840 px (V5), with different canvas margins. */
.ceramic-case .variants figure img {
  width: auto;
  max-width: none;
  height: calc(var(--stage-height) * .7811);
  place-self: center;
}
.ceramic-case .variants img[src$="/frame-v5-orange.png"] { height: calc(var(--stage-height) * .9581); }
html:not([data-theme="dark"]) .variants img[src$="/frame-v2.png"] {
  -webkit-mask: url("/objects/frame-v2-outline.svg") center / contain no-repeat;
  mask: url("/objects/frame-v2-outline.svg") center / contain no-repeat;
}
html[data-theme="dark"] .variants figure::before { background: #000; }
.ceramic-case .material-stage img { height: clamp(340px, 40vw, 560px); object-fit: contain; background: var(--mat); }
.swatches, .toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches { margin-top: 22px; }
.swatches button, .toggle button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.swatches button::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; border-radius: 50%; background: var(--swatch); vertical-align: middle; box-shadow: 0 0 0 1px #8886; }
.swatches button[aria-pressed="true"], .toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ceramic-case .micro { margin-top: 10px; font-size: 13px; color: var(--study-muted); }
.production-board img, .assembly-board img, .technical-board img { max-height: min(65svh, 650px); object-fit: contain; }
.ceramic-case .scene img { max-height: min(65svh, 680px); object-fit: contain; }
.production-board img { background: #151515; }
.assembly-board img, .technical-board img { background: #fff; }
.suite-link { margin-top: 14px; }
.pattern-pair { isolation: isolate; }
.pattern-pair img { mix-blend-mode: multiply; padding: clamp(8px, 2vw, 24px); }
html[data-theme="dark"] .pattern-pair img { background: #eeeae1; mix-blend-mode: normal; }
.scene-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.scene-head h3 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 400; }
.scene-head .eyebrow { display: none; }
.night-finished figure { max-width: none; }
@media (max-width: 700px) {
  .study-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .study-split > div { grid-row: 1; }
  .study-pair { gap: 16px; }
  .variants { --stage-height: min(42svh, 52vw, 320px); }
  .ceramic-case .study-pair img { height: clamp(170px, 45vw, 300px); }
  .ceramic-case .material-stage img { height: clamp(300px, 80vw, 410px); }
}
@media (max-width: 420px) {
  .variants { grid-template-columns: 1fr; }
  .variants { --stage-height: min(40svh, 78vw, 320px); }
}
