/* The phone. Owner: lead. The photo has a transparent hole where the display is;
   .ph-screen sits UNDER the photo, so the bezel itself clips the UI and the corners always match.
   Never put a border-radius-clipped overlay on top of the photo. */
.ph{ position:relative; width:100%; isolation:isolate; }
.ph-frame{ position:relative; z-index:2; display:block; width:100%; height:auto; pointer-events:none; user-select:none; }
.ph-screen{
  position:absolute; z-index:1; overflow:hidden; container-type:size; container-name:screen;
  background:var(--abyss); color:var(--snow); line-height:1.25;
  border-radius:12% / 5.4%;            /* just inside the bezel; the photo does the real clipping */
}
/* glass: a fixed, very soft reflection above whatever the screen shows */
.ph-screen::after{ content:""; position:absolute; inset:0; z-index:50; pointer-events:none;
  background:linear-gradient(112deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 22%, rgba(255,255,255,0) 38%); }
/* ground shadow lives on its own layers (a drop-shadow filter on the photo would leak into the display hole) */
.ph::before, .ph::after{ content:""; position:absolute; z-index:0; pointer-events:none; }

/* back + front pair — assets/phone-pair.webp, 1344 x 1598 */
.ph--pair{ aspect-ratio:1344 / 1598; }
.ph--pair .ph-screen{ left:46.95%; top:3.5%; width:50.6%; height:94.18%; }
.ph--pair::before{ left:44.6%; top:1.9%; width:55.2%; height:97.4%; border-radius:16.5% / 8%;
  box-shadow:0 44px 60px -22px rgba(15,61,76,.42), 0 12px 18px -6px rgba(15,61,76,.20); }
.ph--pair::after{ left:.4%; top:.2%; width:54%; height:96.7%; border-radius:16.5% / 8%;
  box-shadow:0 40px 56px -24px rgba(15,61,76,.34), 0 10px 16px -6px rgba(15,61,76,.16); }

/* front only — assets/phone-front.webp, 747 x 1561 */
.ph--front{ aspect-ratio:747 / 1561; }
.ph--front .ph-screen{ left:4.55%; top:1.79%; width:90.9%; height:96.35%; }
.ph--front::before{ left:.6%; top:.3%; width:98.8%; height:99.4%; border-radius:16.5% / 8%;
  box-shadow:0 44px 60px -22px rgba(15,61,76,.42), 0 12px 18px -6px rgba(15,61,76,.20); }
.ph--front::after{ display:none; }

/* Screen coordinate system for everything inside .ph-screen:
   1cqw = 1% of display width. The display is 100cqw x 221cqw.
   Front camera (part of the photo, always visible): centre x 50cqw, y 9cqw, radius 3.7cqw — keep 41–59cqw clear in the 4–14cqw band.
   Corners are rounded ~13cqw: keep content at least 5cqw from every edge, 8cqw from corners. */
