/* Case transition (alt-transition.js), from the live styles.css ("Case transition"): the
   turning picture, the case frame on its back, and the cover in the case color when
   coming back from a case. The frame uses the case page's own header and sheet styles
   (alt.css, alt-case.css); the sheet's shape is repeated here, since the home page does
   not load case-study.css. */
.case-zoom { position: fixed; z-index: 1000; pointer-events: none; border-radius: 24px; perspective: 1800px; }
.case-zoom__card { position: absolute; inset: 0; transform-style: preserve-3d; border-radius: inherit; } /* the faces take the animated corners (they were square from the first frame) */
.case-zoom__front, .case-zoom__back { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; overflow: hidden; }
.case-zoom__front { aspect-ratio: auto; }
.case-zoom__back { transform: rotateY(180deg); }
.case-zoom__page { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; transform-origin: 0 0; }
/* The case colors, as in the live styles.css (not loaded on the home page) */
.case-zoom__page.case-page--checkin { background: #abcbfe; }
.case-zoom__page.case-page--connect { background: #488fff; }
.case-zoom__page.case-page--construction { background: #33995c; }
.case-zoom .case { margin: 8px auto 0; border-radius: 32px; min-height: 100vh; }
/* Coming back from a case: the page starts covered in the case color (set in <head>) */
.case-returning::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: #488fff; }
.case-returning[data-returning="checkin"]::after { background: #abcbfe; }
.case-returning[data-returning="construction"]::after { background: #33995c; }
