/* Decorative layers move independently of the showcase copy and controls. */
.motion-switch{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:6px;padding:0 2px;border:0;background:transparent;color:var(--muted);font-size:.875rem;text-align:left}
.motion-switch:hover:not(:disabled){color:var(--ink)}
.motion-switch:disabled{cursor:default}
.ambient-objects{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;--ambient-phase:0;--ambient-progress:0}
body:has(.ambient-objects){position:relative;isolation:isolate}
.ambient-object{position:absolute;display:block;width:var(--size);color:var(--sculpture);opacity:var(--opacity);transform:translate3d(calc(var(--ambient-phase) * var(--travel-x)),calc(var(--ambient-phase) * var(--travel-y)),0) rotate(calc(var(--angle) + var(--ambient-progress) * var(--travel-turn)));transition:transform .22s ease-out}
.ambient-object svg{display:block;width:100%;height:auto;animation:sculpture-float var(--period) ease-in-out var(--offset) infinite alternate paused}
.ambient-sphere{--size:clamp(128px,19vw,295px);--sculpture:#b2a7ff;--opacity:.24;--travel-x:24px;--travel-y:-74px;--angle:-12deg;--travel-turn:27deg;--period:14s;--offset:-5s;--float-x:12px;--float-y:26px;--float-turn:7deg;top:9%;right:-2.5%}
.ambient-cube{--size:clamp(115px,17vw,235px);--sculpture:#a79afb;--opacity:.22;--travel-x:33px;--travel-y:94px;--angle:14deg;--travel-turn:-32deg;--period:19s;--offset:-9s;--float-x:19px;--float-y:-24px;--float-turn:-12deg;top:46%;left:-4%}
.ambient-orbits{--size:clamp(133px,20vw,310px);--sculpture:#8fdbc2;--opacity:.2;--travel-x:-34px;--travel-y:-100px;--angle:9deg;--travel-turn:37deg;--period:23s;--offset:-7s;--float-x:-16px;--float-y:18px;--float-turn:14deg;right:-3.4%;bottom:1%}
html[data-motion="on"][data-motion-tab="visible"] .ambient-object svg{animation-play-state:running}
@keyframes sculpture-float{to{transform:translate3d(var(--float-x),var(--float-y),0) rotate(var(--float-turn))}}
@media(max-width:680px){
  .ambient-sphere{right:-14px;top:9%;--opacity:.2}
  .ambient-cube{left:-45px;top:48%;--opacity:.17}
  .ambient-orbits{right:-43px;bottom:1%;--opacity:.17}
}
.motion-symbol{display:inline-block;flex:none;width:11px;height:10px;border-inline:2px solid currentColor;margin-inline:2px}
html[data-motion="off"] .motion-symbol{width:0;height:0;border:0;border-left:8px solid currentColor;border-block:5px solid transparent}

.motion-scene{--field-x:0px;--field-y:0px;--media-x:0px;--media-y:0px}
.motion-media{position:relative;width:100%;min-width:0;z-index:1}
.motion-field{position:absolute;inset:-31px;pointer-events:none;overflow:hidden;z-index:0;opacity:.93}
.motion-aura,.motion-orbit{position:absolute;display:block;pointer-events:none}
.motion-aura{inset:-22%;background:radial-gradient(ellipse at 25% 72%,var(--glow),transparent 42%),radial-gradient(ellipse at 79% 19%,#e0ddff9c,transparent 38%);opacity:.55}
.motion-orbit{width:70%;aspect-ratio:1;right:-13%;top:-38%;border:1px solid #f1efff59;border-radius:33%;background:linear-gradient(140deg,#fff2,transparent 61%);transform:rotate(-20deg)}
.motion-orbit::after{content:"";position:absolute;inset:16px;border:1px solid #f9f7ff39;border-radius:inherit}

html[data-motion="on"] .motion-field{transform:translate3d(var(--field-x),var(--field-y),0);transition:transform .28s ease-out}
html[data-motion="on"] .motion-media{transform:translate3d(var(--media-x),var(--media-y),0);transition:transform .28s ease-out}
.motion-aura{animation:project-light-current 16s ease-in-out infinite alternate paused}
.motion-orbit{animation:project-orbit 22s ease-in-out infinite alternate paused}
html[data-motion="on"] .motion-scene[data-in-view="true"] :is(.motion-aura,.motion-orbit){animation-play-state:running}
html[data-motion="on"] .motion-scene:focus-within .motion-media{transform:none;transition:none}
@keyframes project-light-current{
  0%{transform:translate3d(-9%,-9%,0) scale(1);opacity:.52}
  55%{transform:translate3d(8%,3%,0) scale(1.08);opacity:.65}
  100%{transform:translate3d(0,12%,0) scale(1.12);opacity:.76}
}
@keyframes project-orbit{from{transform:translate3d(0,0,0) rotate(-20deg)}to{transform:translate3d(-9%,15%,0) rotate(2deg)}}
html[data-motion="on"] .motion-arrival:not(:focus-within){animation:section-arrival .63s cubic-bezier(.22,.72,.27,1) var(--arrival-delay,0ms) both}
@keyframes section-arrival{from{translate:0 14px;opacity:.75}to{translate:0 0;opacity:1}}

/* Manual pause also covers the existing transitions and in-page scrolling. */
html[data-motion="off"],html[data-motion="off"] *{scroll-behavior:auto!important;transition:none!important}
html[data-motion="off"] :is(.screen,.project-window,.project-plus),html[data-motion="off"] .project-art::before{transform:none!important}
html[data-motion="off"] :is(.project-window img,.capture-button img){scale:1!important}
html[data-motion="off"] :is(.stage.is-switching .screen,.stage.is-switching .caption>div,.project-card[open] .project-reveal,.story-step:target,dialog[open]){animation:none!important}
@media(prefers-reduced-motion:reduce){
  .motion-field,.motion-media{transform:none!important}
  .motion-aura,.motion-orbit,.motion-arrival,.ambient-object svg{animation:none!important}
}
