/* Keep the narrative beside the visuals while each section passes through view. */
.case-body .case-top {
  position:sticky;top:20px;z-index:30;
  transition:transform .24s ease,opacity .24s ease;
}
.case-top.is-hidden {transform:translateY(calc(-100% - 32px));opacity:0;pointer-events:none}
.case-top:focus-within {transform:none;opacity:1;pointer-events:auto}
.case-top .back {box-shadow:0 4px 24px #2929190d}
.case-top .eyebrow {padding:8px 12px;border-radius:20px;background:#f7f7eeee}
.case-copy {align-self:start}
.case-row {scroll-margin-top:96px}
.case-to-top {
  position:fixed;bottom:24px;right:24px;z-index:30;
  display:grid;place-items:center;width:48px;height:48px;
  border:1px solid #29291914;border-radius:50%;background:#fff;color:#292919;
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .2s,transform .2s,visibility .2s;
}
.case-to-top.is-visible {opacity:1;visibility:visible;transform:none}
.case-to-top:focus-visible {outline:2px solid #292919;outline-offset:3px}
@media(min-width:1001px) {
  .case-copy {position:sticky;top:96px}
  /* Very tall text must remain readable in short windows. */
  .case-copy.is-tall {position:static}
}
@media(max-width:1000px) {
  .case-body .case-top {top:12px}
  .case-to-top {width:42px;height:42px;right:16px;bottom:16px}
}
@media(prefers-reduced-motion:no-preference) {
  html:has(.case-body) {scroll-behavior:smooth}
}
