/* /playground/: a wall of pictures and live screens, no words. Column masonry on the site grid.
   Radius: tiles are ~370px wide, so --r-md (system.css). */
.pg{padding-top:8px}
.pg-grid{columns:3;column-gap:16px}
@media (max-width:1000px){.pg-grid{columns:2}}
@media (max-width:600px){.pg-grid{columns:1}}
.pg-tile{break-inside:avoid;margin:0 0 16px;position:relative;overflow:hidden;border-radius:var(--r-md);background:var(--surface-2);
  box-shadow:inset 0 0 0 1px var(--line);transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0));
  transition:transform .5s cubic-bezier(.22,1,.36,1),box-shadow .4s;will-change:transform}
.pg-tile::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--line);pointer-events:none}
.pg-tile img{display:block;width:100%;height:auto}
.pg-tilt{cursor:default}
.pg-tilt.is-on{transition:transform .12s linear,box-shadow .4s;--ty:-3px;box-shadow:0 24px 50px -24px rgba(0,0,0,.6)}
body.light .pg-tilt.is-on{box-shadow:0 24px 50px -28px rgba(8,9,10,.35)}
/* a light glare that follows the pointer */
.pg-tilt::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(400px circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.14),transparent 45%)}
.pg-tilt.is-on::before{opacity:1}

/* two phone screens on a soft panel; they part when pointed at */
.pg-phones{display:flex;justify-content:center;align-items:center;gap:0;padding:36px 20px;aspect-ratio:4/5;
  background:radial-gradient(120% 90% at 50% 0%,rgba(0,153,255,.16),transparent 60%),var(--surface-2)}
.pg-phones img{width:42%;height:auto;border-radius:var(--r-md);box-shadow:0 20px 40px -18px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.06);
  transition:transform .6s cubic-bezier(.22,1,.36,1)}
.pg-phones img:first-child{transform:translateX(10%) rotate(-4deg)}
.pg-phones img:last-child{transform:translateX(-10%) rotate(4deg) translateY(6%)}
.pg-phones:hover img:first-child{transform:translateX(-2%) rotate(-7deg)}
.pg-phones:hover img:last-child{transform:translateX(2%) rotate(7deg) translateY(4%)}

/* live screens: no browser bar, no words, just the screen */
.pg-mock{background:#fff}
.pg-screen{position:relative;overflow:hidden;overscroll-behavior:auto}
.pg-screen [data-mock]{display:block;width:100%;touch-action:pan-y}
.pg-phone{display:flex;justify-content:center;align-items:flex-start;aspect-ratio:4/5;padding:32px 0 0;background:radial-gradient(120% 90% at 50% 0%,rgba(0,153,255,.16),transparent 60%),var(--surface-2)}
.pg-phone .pg-screen{width:62%;border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:0 0 0 6px #1d1d1f,0 20px 40px -18px rgba(0,0,0,.55);margin-top:6px}

/* arrival: tiles rise in, in order, once */
@media (prefers-reduced-motion:no-preference){
  .pg-tile{animation:pg-in .8s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i,0) * 45ms)}
  @keyframes pg-in{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
}
@media (prefers-reduced-motion:reduce){.pg-tile,.pg-phones img{transition:none;transform:none !important}}
