/* Private presentation layer. No player, audio, parameter or source changes. */
.product-stage {
  --case-depth: 34px;
  --case-radius: 14px;
  --studio-rx: 8deg;
  --studio-ry: -21deg;
  --studio-rz: -2.5deg;
  --studio-y: 0px;
  --studio-scale: 1;
  --light-x: 26%;
  --light-y: 12%;
  perspective: 1400px;
  perspective-origin: 46% 38%;
  animation: none;
  translate: none;
}
.product-stage .hero-plugin-preview,
.product-stage .hero-plugin-preview:hover,
.product-stage .hero-plugin-preview:focus-visible {
  transform: translate3d(0,var(--studio-y),0) rotateX(var(--studio-rx)) rotateY(var(--studio-ry)) rotateZ(var(--studio-rz)) scale(var(--studio-scale));
  transform-style: preserve-3d;
  border-radius: var(--case-radius);
  background: none;
  box-shadow: none;
  transition: none;
}
/* Supersede the old parallel plates with a closed, rounded chassis. */
.product-stage .hero-plugin-preview::before,
.product-stage .hero-plugin-preview::after { display: none; }
.studio-case { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.studio-case > span { position: absolute; backface-visibility: hidden; pointer-events: none; }
.studio-back {
  inset: 0;
  border-radius: var(--case-radius);
  transform: translateZ(calc(-1 * var(--case-depth)));
  background: linear-gradient(135deg,#5f536d,#1c1822 32%,#0b090f 74%,#302638);
  border: 1px solid #82768f77;
  box-shadow: 12px 22px 26px #0009,22px 42px 58px #0006;
}
.studio-bevel {
  inset: -2px;
  border-radius: calc(var(--case-radius) + 2px);
  transform: translateZ(-2px);
  background: linear-gradient(135deg,#d0c4de 0%,#786783 9%,#43394e 28%,#15111b 64%,#594762 100%);
  box-shadow: inset 0 1px 1px #fff7,inset 0 -1px 2px #000c;
}
.studio-side {
  background: linear-gradient(90deg,#6b5d78 0%,#292230 16%,#1e1827 68%,#46384f 100%);
  box-shadow: inset 0 0 0 1px #b4a0cb16;
}
.studio-side-left,.studio-side-right { width: var(--case-depth); top: var(--case-radius); bottom: var(--case-radius); }
.studio-side-left { right:100%; transform-origin:right center; transform:rotateY(-90deg); }
.studio-side-right { left:100%; transform-origin:left center; transform:rotateY(90deg); background:linear-gradient(90deg,#5c4d68,#231b2c 18%,#131018 72%,#33273d); }
.studio-side-top,.studio-side-bottom { height:var(--case-depth); left:var(--case-radius); right:var(--case-radius); }
.studio-side-top { bottom:100%; transform-origin:center bottom; transform:rotateX(90deg); background:linear-gradient(180deg,#2b2233,#6a5c77 85%,#b1a3c1); }
.studio-side-bottom { top:100%; transform-origin:center top; transform:rotateX(-90deg); background:linear-gradient(180deg,#302438,#0b090e 30%,#18121f); }
/* Tangent facets join the four straight side walls around each rounded corner. */
.studio-corner {
  width:calc(var(--case-radius) * .268);
  height:var(--case-depth);
  transform-origin:center top;
  transform:rotateZ(var(--corner-angle)) rotateX(-90deg);
  background:linear-gradient(180deg,var(--corner-light),#211a29 19%,#0f0c14 72%,#302537);
  backface-visibility:visible!important;
}
.product-stage .plugin-surface {
  transform:translateZ(0);
  border-radius:var(--case-radius);
  box-shadow:0 0 0 1px #e3d5f342,0 1px 2px #000b;
}
.product-stage .plugin-surface::after {
  background:radial-gradient(ellipse at var(--light-x) var(--light-y),#f5e7ff0e,transparent 48%),linear-gradient(135deg,#e4d5fa05,transparent 36%,#0000000d 100%);
  box-shadow:inset 0 1px 0 #f0e4ff44,inset 1px 0 0 #dbc9ef20,inset -1px -1px 1px #0009;
}
/* A stationary studio floor keeps the product suspended in a coherent light field. */
.product-stage::before { display:none; }
.product-stage::after { inset:-10% -14% -10%; background:radial-gradient(ellipse at 28% 18%,#c0a4ef20,transparent 60%); opacity:.8; filter:blur(30px); }
.product-stage:has(.hero-plugin-preview:hover)::after,.product-stage:focus-within::after { background:radial-gradient(ellipse at 28% 18%,#c0a4ef2b,transparent 60%); }
.studio-floor { position:absolute; left:4%; right:-3%; bottom:-24px; height:65px; z-index:-1; pointer-events:none; background:radial-gradient(ellipse,#000d 0%,#0009 28%,transparent 69%); filter:blur(13px); transform:translateX(var(--shadow-x,4px)) scaleX(var(--shadow-scale,1)) rotate(-4deg); opacity:var(--shadow-opacity,.85); }
.hero-art .art-product { translate:0 var(--wordmark-y,0px); }

/* Only these presentation groups move; live audio controls stay on a stable surface. */
html[data-studio-motion=ready] :is(.feature-layout,.offer-grid,.support-grid,.origin-layout) { animation:none; translate:none; opacity:1; }
html[data-studio-motion=ready] .studio-arrival > .studio-arrival-item {
  --item-progress:clamp(0,calc((var(--arrival-progress,1) - var(--arrival-delay,0)) * 1.5),1);
  translate:0 calc((1 - var(--item-progress)) * var(--arrival-distance,32px));
  opacity:calc(.66 + .34 * var(--item-progress));
}
html[data-studio-motion=ready] .studio-arrival:focus-within > .studio-arrival-item { translate:none; opacity:1; }
.feature-display { position:relative; perspective:1000px; background:radial-gradient(ellipse at 25% 0%,#8d6cba0d,transparent 58%),#1c1b1f; box-shadow:inset 0 1px 0 #e5d5ff09,0 14px 40px #0002; }
.feature-display::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(ellipse at var(--feature-light-x,25%) 0%,#d8c2fc0b,transparent 48%); }
.feature-display #feature-svg { transform:rotateX(var(--art-rx,3deg)) rotateY(var(--art-ry,-2deg)) translateZ(8px); transform-origin:50% 50%; filter:drop-shadow(0 8px 6px #0004); transition:transform .4s var(--ease); }
.feature-display.studio-mode-change::after { animation:studio-mode-light .7s ease-out both; }
@keyframes studio-mode-light { from{opacity:.25} 35%{opacity:1} to{opacity:.65} }

@media(max-width:1100px) { .product-stage { --studio-ry:-17deg; --case-depth:30px; } }
@media(max-width:800px) {
  .product-stage { --studio-rx:6deg; --studio-ry:-12deg; --studio-rz:-1.5deg; --case-depth:25px; perspective:1200px; }
  .studio-floor { bottom:-18px; height:45px; left:9%; right:2%; }
  html[data-studio-motion=ready] .studio-arrival { --arrival-distance:20px; }
}
@media(max-width:520px) {
  .product-stage { --case-depth:22px; --case-radius:12px; --studio-ry:-10deg; --studio-rx:5deg; --studio-rz:-1deg; }
  .studio-back { box-shadow:8px 13px 20px #0008,14px 23px 34px #0005; }
  .product-stage::after { filter:blur(20px); }
  .studio-floor { filter:blur(9px); height:35px; }
  .feature-display #feature-svg { transform:rotateX(2deg) translateZ(3px); }
}
/* Stable CSS fallback: no script, reduced motion or hidden document requires no loop. */
@media(prefers-reduced-motion:reduce) {
  .product-stage .hero-plugin-preview,
  .product-stage .hero-plugin-preview:hover,
  .product-stage .hero-plugin-preview:focus-visible { transform:rotateX(5deg) rotateY(-12deg) rotateZ(-1deg); transition:none; }
  .hero-art .art-product,html[data-studio-motion=ready] .studio-arrival > .studio-arrival-item { translate:none!important; opacity:1; }
  .feature-display #feature-svg { transform:none; transition:none; }
  .feature-display.studio-mode-change::after { animation:none; }
}
@media(forced-colors:active) {
  .studio-case,.studio-floor,.feature-display::after { display:none; }
  .product-stage .hero-plugin-preview { transform:none!important; }
  .feature-display #feature-svg { transform:none; filter:none; }
}
