/* ==========================================================================
   Device frames: Apple's official bezel art (assets/bezels, provenance there)
   with the screen in its opening. Shared by the PageTide sales page and the
   home page's featured band. Size a device with --ph (iPhone height) or --th
   (iPad height) on it or an ancestor.
   ========================================================================== */
/* ---------- devices: Apple's official bezel art, the screen in its opening ----------
   The art (assets/bezels, provenance there) sits on top; content sits in the
   opening, measured on the full-size art, and is clipped to the opening's
   corner. No shadow, reflection, recolouring or reshaping of the bezel. */
.dev { position: relative; z-index: 60; flex: none; }
.dev__bezel { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.dev__screen { position: absolute; z-index: 1; overflow: hidden; background: #000; container-type: size; }
.dev__shot, .dev__screen > .t-video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* iPhone 18 Pro Max: art 1470 x 3000, opening x75 y66 w1320 h2868 (440 x 956 pt) */
.dev--phone {
  --w: calc(var(--ph) * .49);
  width: var(--w);
  height: var(--ph);
}
.dev--phone .dev__screen {
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  border-radius: calc(var(--w) * .108);
}

/* iPad Pro 13-inch (M5): art 2300 x 3000, opening x118 y124 w2064 h2752 (1032 x 1376 pt) */
.dev--tab {
  --w: calc(var(--th) * .76667);
  width: var(--w);
  height: var(--th);
}
.dev--tab .dev__screen {
  left: 5.1304%;
  top: 4.1333%;
  width: 89.739%;
  height: 91.733%;
  border-radius: calc(var(--w) * .018);
}

.dev__port, .dev__land { position: absolute; container-type: size; }
.dev__port { inset: 0; }
.dev__land {
  left: 50%;
  top: 50%;
  width: 133.333%;
  height: 75%;
  translate: -50% -50%;
  rotate: 90deg;
  opacity: 0;
}

