.case-process-open, .case-process button {
  border: 1px solid #14234433;
  border-radius: 100px;
  color: #142344;
  background: #e7eef7;
  font: 600 13px Satoshi-Variable, Arial, sans-serif;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.case-process-open:hover, .case-process button:hover { background: white; }
.case-process-open:focus-visible, .case-process :focus-visible { outline: 2px solid #1641da; outline-offset: 3px; }
.case-process {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid #fff9;
  border-radius: 20px;
  color: #142344;
  background: #e7eef7;
  box-shadow: 0 24px 80px #07142c55;
  font-family: Satoshi-Variable, Arial, sans-serif;
}
.case-process::backdrop { background: #08142ec4; backdrop-filter: blur(12px); }
.case-process header, .case-process footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.case-process h2 { margin: 0; font-size: clamp(21px, 3vw, 30px); font-weight: 600; letter-spacing: -.035em; }
.case-process button.case-process__close { flex: none; width: 40px; padding: 0; font-size: 24px; line-height: 1; }
.case-process__art {
  position: relative;
  width: min(100%, max(160px, calc((100dvh - 190px) * var(--art-ratio))));
  aspect-ratio: var(--art-ratio);
  margin: 14px auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  background: #dbe5f0;
}
.case-process__compare { --art-ratio: .79957; --split: 50%; cursor: ew-resize; touch-action: none; user-select: none; }
.case-process__final, .case-process__base { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.case-process__base { background: #e7eef7; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
/* Register the embedded base to the subject's position in the finished layout. */
.case-process__base img { position: absolute; left: 22%; top: 12.07%; width: 60.73%; height: auto; }
.case-process__divider { position: absolute; inset: 0 auto 0 var(--split); display: block; width: 2px; margin-left: -1px; background: white; box-shadow: 0 0 6px #14234490; pointer-events: none; }
.case-process__divider::after {
  content: '‹ ›';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--case-border, #14234433);
  border-radius: 50%;
  background: var(--case-paper, #e7eef7);
  color: var(--case-brand, #1641da);
  font: 700 13px/1 Satoshi-Variable, Arial, sans-serif;
  box-shadow: 0 4px 14px #14234438;
  transition: transform .16s ease;
}
.case-process__compare.is-dragging .case-process__divider::after { transform: translate(-50%, -50%) scale(1.08); }
.case-process__divider[hidden] { display: none; }
.case-process__range { flex: 1; min-width: 40px; height: 30px; margin: 0; accent-color: #1641da; cursor: pointer; }
.case-process__labels { font-size: 13px; }
.case-process__explanation { max-width: 60ch; margin: 16px auto 0; font-size: .98rem; line-height: 1.56; text-wrap: pretty; }
.case-process:has(.case-process__explanation) .case-process__art {
  width: min(100%, max(160px, calc((100dvh - 260px) * var(--art-ratio))));
}
.case-process__layers { --art-ratio: .88889; background: #f9f6ee; }
.case-process__layers img { position: absolute; display: block; height: auto; max-width: none; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); transition: transform .8s cubic-bezier(.2,.72,.24,1); }
.case-process__layers.is-separated img { transform: translate(-50%, -50%) translate(var(--separate-x), var(--separate-y)) rotate(var(--angle, 0deg)) scale(var(--separate-scale, .88)); }
.case-process__rocks { left: -.60%; top: 81.05%; width: 201.08%; --separate-x: 0%; --separate-y: 24%; --separate-scale: 1; }
.case-process__cherry { left: 30.73%; top: 43.96%; width: 30.15%; --angle: -8.18deg; --separate-x: -27%; --separate-y: -3%; }
.case-process__melon { left: 71.43%; top: 53.76%; width: 28.01%; --angle: 7.73deg; --separate-x: 27%; --separate-y: -15%; }
html:has(.case-process[open]), html:has(.case-process[open]) body { overflow: hidden; }
.case-process { overscroll-behavior: contain; }
@media (max-width: 480px) {
  .case-process-open { min-height: 38px; font-size: 12px; }
  .case-process__labels { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .case-process__layers img { transition: none; } }
