/* Physical brand materials share the existing Studio scroll-expansion stage. */
.reference-studio .brand-studio-motion[data-brand-sequence]{display:block;background:#151517;isolation:isolate;container-type:size}
.reference-studio [data-brand-sequence]::before{content:none}
/* A square canvas follows the longer stage edge throughout the scroll expansion.
   Measured source bounds give every material the same centered logo footprint. */
.reference-studio .studio-brand-frame{position:absolute;inset:auto;left:50%;top:50%;display:block;width:100cqmax;height:100cqmax;max-width:none;max-height:none;object-fit:cover;object-position:50% 50%;transform:translate(-50%,-50%) scale(var(--brand-scale-x,1),var(--brand-scale-y,1)) translate(var(--brand-offset-x,0%),var(--brand-offset-y,0%));opacity:0;transition:opacity var(--brand-transition,110ms) cubic-bezier(.2,.6,.3,1);pointer-events:none;user-select:none;filter:none}
.reference-studio .studio-brand-frame.is-current{opacity:1}
.reference-studio .studio-brand-controls{position:absolute;left:8px;bottom:8px;z-index:3;display:flex;align-items:center;gap:0;color:#fff;mix-blend-mode:difference}
.reference-studio .studio-brand-controls button{display:grid;place-items:center;width:36px;height:36px;border:0;background:transparent;color:inherit;font:18px/1 'DM Sans',sans-serif;cursor:pointer}
.reference-studio .studio-brand-controls [data-brand-counter]{min-width:49px;text-align:center;font:8px/1.4 'DM Sans',sans-serif;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.reference-studio .studio-brand-controls button:hover{opacity:.7}
.reference-studio .studio-brand-controls button:focus-visible{outline:1px solid currentColor;outline-offset:-3px}
.reference-studio #videoLayer:has([data-brand-sequence]) .studio-video-toggle{width:36px;height:36px;right:8px;bottom:8px;border:0;background:transparent;mix-blend-mode:difference;color:#fff;font-size:14px;z-index:3}
.reference-studio .studio-video-toggle[hidden]{display:none}
@media(max-width:768px){.reference-studio .studio-brand-controls button{width:44px;height:44px}.reference-studio #videoLayer:has([data-brand-sequence]) .studio-video-toggle{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.reference-studio .studio-brand-frame{transition:none}}
