.elite-case {
  --bg: #3b657e;
  --title: #fff5df;
  --accent: #ffde91;
  --rule: rgb(255 245 223 / 42%);
}
.case-opening, .case-screens {
  padding-inline: max(6vw, calc((100vw - 1360px) / 2));
  display: grid;
  grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr);
  gap: clamp(34px,5.4vw,84px);
  align-items: center;
}
.case-opening { min-height: 88svh; padding-block: 92px 60px; }
.elite-case .case-opening h1 {
  margin: .34em 0 .23em;
  font: 500 clamp(66px,7.6vw,118px)/1.02 var(--face);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.case-lead { max-width: 37ch; margin: 0 0 24px; line-height: 1.55; }
.case-jump {
  display: inline-flex; align-items: center; gap: 18px;
  border: 2px solid currentColor; border-radius: 4px;
  padding: 7px 14px; font: 500 18px var(--face); text-transform: uppercase;
}
.case-jump:is(:hover,:focus-visible) { background: var(--title); color: var(--bg); }
.case-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 14px; }
.site-launch { display: grid; justify-items: start; gap: 4px; }
.case-site {
  display: inline-flex; align-items: center; gap: 12px; border: 1px solid currentColor; border-radius: 4px;
  padding: 8px 14px; font: 500 18px var(--face); text-transform: uppercase;
}
.case-site[aria-disabled] { border-style: dashed; color: #e8e6d7; cursor: default; }
#site-status { font-size: 12px; }
.case-preview { margin: 0; }
.case-preview > a, .case-preview img { display: block; width: 100%; height: auto; }
.case-preview > a { cursor: zoom-in; box-shadow: 0 10px 30px #16334140; }
.case-preview figcaption {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 12px; font-size: 13px;
}
.case-preview figcaption a { border-bottom: 1px solid var(--rule); }
.case-screens {
  --bg: #f3efe6; --title: #273e4a; --accent: #145e77; --rule: #344b574d;
  background: var(--bg) url(assets/grain.png);
  color: var(--title); align-items: start;
  padding-block: clamp(46px,6vw,88px);
}
.case-directory h2 { font: 500 clamp(42px,4.6vw,70px)/1.05 var(--face); letter-spacing: -.04em; margin: 0; }
.case-directory p { max-width: 40ch; margin: 18px 0 28px; }
.case-screens .series-title { font-family: var(--face); text-transform: uppercase; }
.case-screens .viewer { margin: 0; }
.case-screens .screen-note { max-width: 65ch; font-size: 15px; line-height: 1.55; margin: 14px 0 0; }
.case-screens .turn button { border-color: currentColor; }
.elite-case .da, .elite-case .motion-toggle { color: var(--title); }
.mineral-scene { display: none; }
#mineral .sheet { position: relative; }
.mineral-ready .mineral-scene { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.absorption-caption { opacity: 0; transition: opacity .42s ease; }
.absorption-caption.is-visible { opacity: 1; }
#clump-group { filter: drop-shadow(0 7px 6px #3b4b4b38); }
.mineral-replay {
  background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 4px;
  font: 500 16px var(--face); padding: 6px 12px; cursor: pointer;
}
.viewer .mineral-replay { justify-self: start; align-self: start; margin-top: 8px; }
.screen-dialog {
  --zoom-ratio: 1.6; --zoom-width: 78vw;
  width: min(var(--zoom-width),calc(76dvh * var(--zoom-ratio)));
  max-width: none; max-height: 94dvh; padding: 0; border: 0;
  background: #1e2428; color: #fff8e9; box-shadow: 0 12px 64px #0008;
}
.screen-dialog::backdrop { background: rgb(10 15 19 / 86%); }
html:has(.screen-dialog[open]) { overflow: hidden; }
.zoom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 0 14px; font: 500 17px var(--face); text-transform: uppercase; }
.zoom-close { width: 44px; height: 44px; border: 0; background: none; color: inherit; font: 28px/1 sans-serif; cursor: pointer; }
.zoom-media img, .zoom-media .mineral-scene { display: block; width: 100%; height: auto; }
.screen-dialog .mineral-replay { margin: 6px 12px; }
@media(max-width:760px) { .screen-dialog { --zoom-width: 92vw; } }
@media(prefers-reduced-motion:reduce) { .absorption-caption { transition:none; } }
@media (min-width:761px) {
  .elite-case.is-ready .artboard { height: min(60svh,630px); }
}
@media (max-width:760px) {
  .case-opening, .case-screens { display: block; padding-inline: 24px; }
  .case-opening { min-height: auto; padding-block: 72px 32px; }
  .elite-case .case-opening h1 { font-size: clamp(59px,16vw,88px); }
  .case-lead { font-size: 15px; }
  .case-preview { margin-top: 30px; }
  .case-screens { padding-block: 34px; }
  .case-directory h2 br { display: none; }
  .case-directory h2 br::after { content: ' '; }
  .case-directory p { font-size: 15px; margin-block: 14px 18px; }
  .case-screens .viewer { margin-top: 16px; }
  .case-screens .screen-note { order: 1; margin-top: 0; }
  .elite-case .da, .elite-case .motion-toggle { margin-top: 12px; }
}
