
:root{
  --ph-ratio:480/880;
  --ph-h:min(62vh,560px);
  --ph-rim:2px;
  --ph-rim-dark:#141518;
  --ph-rim-light:#8c9097;
  --ph-bezel:5px;
  --ph-r:20px;
  --ph-r-in:calc(var(--ph-r) - var(--ph-rim) - var(--ph-bezel));
  --ph-black:#030304;
  --ph-cam:7px;
  --ph-cam-top:9px;
  --ph-key:2px;
  --ph-key-c:#6e7278;
  --ph-shadow:0 30px 60px -28px rgba(0,0,0,0.75),0 10px 20px -12px rgba(0,0,0,0.6);
}
.pd-phone{position:relative;box-sizing:border-box;height:var(--ph-h);width:auto;aspect-ratio:auto;
  padding:var(--ph-bezel);border:var(--ph-rim) solid var(--ph-rim-light);border-radius:var(--ph-r);background:var(--ph-black);
  box-shadow:0 0 0 1px var(--ph-rim-dark),var(--ph-shadow);transform:none;overflow:visible}
.pd-phone video,.pd-phone img{display:block;height:100%;width:auto;aspect-ratio:var(--ph-ratio);object-fit:contain;border-radius:var(--ph-r-in);background:var(--ph-black)}
.pd-phone::before{content:"";position:absolute;z-index:2;top:calc(var(--ph-bezel) + var(--ph-cam-top));left:50%;transform:translateX(-50%);
  width:var(--ph-cam);height:var(--ph-cam);border-radius:50%;background:#000;box-shadow:0 0 0 1px rgba(255,255,255,0.06)}
.pd-phone::after{content:"";position:absolute;pointer-events:none;top:0;bottom:0;left:0;right:calc(-1 * var(--ph-rim) - var(--ph-key) - 1px);
  background:linear-gradient(var(--ph-key-c),var(--ph-key-c)) right 0 top 17%/var(--ph-key) 13% no-repeat,
             linear-gradient(var(--ph-key-c),var(--ph-key-c)) right 0 top 35%/var(--ph-key) 6.5% no-repeat}
