/* preset: plates-25d — layered screenshot plate (CSS 3D) + dolly. Tokens only; edges are SOLID
   token offsets (no blur, no glow). Depth, perspective and padding in cqw: the same picture at any
   stage width. The figure keeps a 3cqw mat around the plate so lift + tilt + dolly (≈ 1.10 at the
   nearest corner) stays inside it, and the figure itself sits inside the safe zone. */
.preset-plates-25d .col-text { flex-basis: 30cqw; }
.preset-plates-25d .body { max-width: 30cqw; }
.p25 { --p25-mat: 3cqw; position: relative; flex: 1 1 0; min-width: 0; margin-left: auto;
  max-width: min(58cqw, calc((var(--safe-h) - 2 * var(--p25-mat)) * var(--p25-ratio) + 2 * var(--p25-mat))); }
.p25-solo .p25 { margin-inline: auto; max-width: min(80cqw, calc((var(--safe-h) - 2 * var(--p25-mat)) * var(--p25-ratio) + 2 * var(--p25-mat))); }
.p25-fig { margin: 0; padding: var(--p25-mat); display: grid; gap: 1cqw; }
.p25-stage { position: relative; aspect-ratio: var(--p25-ratio); perspective: 90cqw; perspective-origin: 50% 50%; }
.p25-plate { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%;
  transform: scale(var(--p25-dolly, 1))
             rotateX(calc(var(--p25-lift, 0) * var(--p25-tx, 0) * 1deg))
             rotateY(calc(var(--p25-lift, 0) * var(--p25-ty, 0) * 1deg)); }
.p25-base { position: absolute; inset: 0; overflow: hidden; border-radius: 0.6cqw; background: var(--card);
  box-shadow: 0 0.3cqw 0 0 var(--rule); }
.p25-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; display: block; }
.p25-hole { position: absolute; background: var(--recess); border-radius: 0.4cqw; }
.p25-layer { position: absolute; overflow: visible; border-radius: 0.4cqw; background: var(--card);
  transform: translateZ(calc(var(--p25-lift, 0) * var(--p25-z, 1) * 1cqw));
  box-shadow: 0 calc(var(--p25-lift, 0) * 0.35cqw) 0 0 var(--rule); }
.p25-layer > :not(.p25-chip) { border-radius: inherit; } /* the layer no longer clips (its chip sits outside it); its image keeps the radius */
/* the callout chip sits ABOVE its layer rect, never on the UI it names (R1-c-05) */
.p25-chip { position: absolute; left: 0; top: auto; bottom: 100%; margin-bottom: 0.4cqw; padding: 0.3cqw 0.8cqw; border-radius: 99em;
  background: var(--accent); color: var(--brand-color-primary-foreground); font-family: var(--face-mono);
  font-size: var(--fs-eyebrow); line-height: 1.2; white-space: nowrap; }
/* v4.1 (R1 M1): above is taken by another layer -> below the layer; both taken -> inside its bottom-right corner */
.p25-chip--below { bottom: auto; top: 100%; margin-bottom: 0; margin-top: 0.4cqw; }
.p25-chip--inside { left: auto; right: 0.6cqw; bottom: 0.6cqw; margin-bottom: 0; }
.p25-cap { font-size: var(--fs-label); color: var(--muted); }
