/* Official iPhone Duo frames, the same ones the Duo screenshot studio uses
   (Marketing/AppStore/Screenshots/device bezel/iPhone Duo). Markup:
     folded (outer display): <div class="duo"><img src="assets/images/screens/duo/restaurants.webp" alt="…"></div>
     open (inner display, landscape): <div class="duo duo--open"><img src="assets/images/screens/duo/journey-atlas.webp" alt="…"></div>
   Star White is the default; add duo--night for Night Sky.
   Like iphone.css, the .duo box is the body (folded 1523 × 2130 inside the 1574 × 2194 frame, open 2977 × 2131
   inside 3093 × 2247), with its corner radius, so a box-shadow hugs the edge; the frame image overhangs it a little.
   The displays are 1398 × 2034 (outer) and 2853 × 2007 (inner), so captures from
   Marketing/AppStore/Screenshots/source_screenshots/duo fit exactly. Run node marketing/scripts/import-duo-screens.mjs
   after new captures. The container rules have zero specificity, so a page can still place and size the device.
   --duo-screen is the display's inset, for page layers that must line up with the screen. */
:where(.duo) { --duo-screen: 2.254% 3.152% 2.254% 5.056%; position: relative; aspect-ratio: 1523 / 2130; border-radius: 3.94% 15.76% 15.76% 3.94% / 2.817% 11.27% 11.27% 2.817%; }
:where(.duo--open) { --duo-screen: 2.909% 2.083% 2.909% 2.083%; aspect-ratio: 2977 / 2131; border-radius: 10.08% / 14.08%; }
.duo > img, .duo > video, .duo > .duo-screen { position: absolute; left: 5.056%; top: 2.254%; width: 91.79%; height: 95.49%; margin: 0; border-radius: 1.717% 12.45% 12.45% 1.717% / 1.18% 8.555% 8.555% 1.18%; object-fit: cover; overflow: hidden; }
.duo--open > img, .duo--open > video, .duo--open > .duo-screen { left: 2.083%; top: 2.909%; width: 95.83%; height: 94.18%; border-radius: 5.608% / 7.972%; }
:where(.duo > img, .duo > video, .duo > .duo-screen) { background: #000; }
.duo::after { content: ""; position: absolute; inset: -1.502% -2.626% -1.502% -0.7223%; z-index: 3; pointer-events: none; background: url(../images/iphone-duo/star-white-folded.webp) 0 0 / 100% 100% no-repeat; }
.duo--night::after { background-image: url(../images/iphone-duo/night-sky-folded.webp); }
.duo--open::after { inset: -2.722% -1.948%; background-image: url(../images/iphone-duo/star-white-open.webp); }
.duo--open.duo--night::after { background-image: url(../images/iphone-duo/night-sky-open.webp); }
