/* Media slots: a CSS/SVG placeholder underneath, the real file (when it exists) on top.
   <img onerror="this.remove()"> drops a missing file, so the placeholder shows instead. */

.shot { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-win); background: var(--bg-2); aspect-ratio: var(--ar, 8 / 5); }
.shot > svg, .shot > img, .shot > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot > img, .shot > video { object-fit: cover; }
.shot--card { border: 1px solid var(--hair); }

/* A Mac window around the mirrored picture. The app hides the title bar; a small bar floats at the top instead. */
.mac { --ar: 16 / 9; border-radius: 18px; background: #0b0c10; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: var(--window-shadow); }
.mac__bar {
  position: absolute; top: 3.2%; left: 50%; z-index: 2; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(26, 28, 36, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.85);
}
.mac__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--d); }
.mac__bar .ico { width: 13px; height: 13px; margin-left: 6px; }

.phone { position: relative; aspect-ratio: 420 / 880; filter: drop-shadow(0 28px 28px rgba(10, 20, 70, 0.35)); }
.phone > svg, .phone > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone > img { object-fit: cover; border-radius: 15% / 7.2%; }

/* Hero: the desktop window with the phone in front of it. Their entrance is in css/motion.css. */
.stage { position: relative; padding: 0 0 clamp(28px, 8%, 56px) clamp(28px, 9%, 84px); }
.stage .phone { position: absolute; left: 0; bottom: 0; width: clamp(92px, 23%, 180px); }
