.motion-case { max-width:1130px; }
.motion-head { padding-block:37px 25px; }
.motion-head h1 { font-size:clamp(48px,7.2vw,88px); letter-spacing:-.07em; line-height:.96; margin:15px 0 14px; }
.motion-head .summary { max-width:64ch; font-size:clamp(15px,1.6vw,19px); }
.motion-demo { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr); border:1px solid #50534c; border-radius:9px; overflow:hidden; }
.motion-stage { display:grid; place-items:center; overflow:hidden; background:#e8e3d2; background-image:radial-gradient(ellipse at 50% 46%,#f1ecdc,#e8e3d2 57%,#d8d1bc); }
.motion-frame { position:relative; height:460px; max-width:100%; aspect-ratio:3/5; }
.motion-frame::before { content:""; position:absolute; inset:auto 6% 5.6%; height:1px; background:#a5a08a; }
.motion-frame > :is(img,video,div) { position:absolute; inset:0; width:100%; height:100%; }
.motion-frame > :is(img,video) { object-fit:contain; }
.motion-frame > [hidden] { display:none; }
#motion-spine { opacity:0; pointer-events:none; }
[data-engine="spine"] #motion-spine { opacity:1; }
.motion-controls { display:flex; flex-direction:column; justify-content:center; padding:clamp(22px,3.3vw,45px); background:#191f21; gap:15px; }
.motion-caption { color:var(--gold-light); font-size:14px; min-height:1.55em; }
.motion-controls fieldset { border:0; margin:0; padding:0; min-width:0; }
.motion-controls legend { padding:0; margin-bottom:8px; color:var(--muted); font-size:13px; }
.motion-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.motion-controls button { color:var(--type); border:1px solid #555c5a; background:#202629; border-radius:5px; min-height:48px; padding:7px 10px; line-height:1.25; font-size:14px; font-weight:650; }
.motion-controls button:hover:not(:disabled) { border-color:var(--gold); }
.motion-controls button[aria-pressed="true"] { color:#221911; background:var(--gold); border-color:var(--gold); }
.motion-controls button span { font-size:12px; margin-left:3px; font-weight:450; white-space:nowrap; }
#motion-toggle { align-self:start; min-height:44px; background:none; }
@media(max-width:730px) {
  .motion-head { padding-block:25px 17px; }
  .motion-demo { grid-template-columns:minmax(0,1fr); }
  .motion-frame { height:clamp(235px,40svh,345px); }
  .motion-controls { gap:10px; padding:14px; }
  .motion-actions { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .motion-actions button span { display:block; margin:3px 0 0; }
  .motion-caption { font-size:13px; }
}
