/* Transform-only ambient movement. The original page remains the static fallback. */
.motion-enhanced .hero .scene-picture img,
.motion-enhanced .experiment .scene-picture img,
.motion-enhanced .closing-world .scene-picture img {
  animation: cinematic-drift 22s ease-in-out infinite alternate;
  transform-origin: 70% 50%;
}
.motion-enhanced .experiment .scene-picture img { animation-duration: 27s; animation-delay: -8s; }
.motion-enhanced .closing-world .scene-picture img { animation-duration: 30s; animation-delay: -12s; transform-origin: 30% 50%; }
.motion-enhanced .light-wash { opacity: .38; animation-duration: 10s; }
.motion-enhanced .evening-light { animation-duration: 6s; }
.motion-enhanced .door-image>img,
.motion-enhanced .offer-image>img,
.motion-enhanced .questions-art>img { animation: portrait-drift 16s ease-in-out infinite alternate; }
.motion-enhanced .room-door:nth-child(2) img,.motion-enhanced .offer:nth-child(2) img { animation-delay: -5s; }
.motion-enhanced .room-door:nth-child(3) img,.motion-enhanced .offer:nth-child(3) img { animation-delay: -10s; }
.motion-enhanced .story-orbit { animation-duration: 3.8s; }
.motion-enhanced .door-symbol { animation: emblem-float 6s ease-in-out infinite; }
.motion-enhanced .room-door:nth-child(2) .door-symbol { animation-delay: -2s; }
.motion-enhanced .room-door:nth-child(3) .door-symbol { animation-delay: -4s; }

.scene-atmosphere { position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden; }
.scene-atmosphere i { position:absolute;left:var(--mote-left);top:var(--mote-top);width:3px;height:3px;border-radius:50%;background:#fff3ce;box-shadow:0 0 7px #e9c08b66;opacity:0;animation: dust-drift var(--mote-duration) ease-in-out var(--mote-delay) infinite; }
.scene-atmosphere i:nth-child(3n) { width:5px;height:5px; }
.hero .scene-atmosphere { opacity:.65; }
.closing-world .scene-atmosphere { inset:0 0 38%; }

/* A bronze armillary turns in the open space to the right of the heading. */
.kinetic-orbit { position:absolute;right:8%;top:100px;width:clamp(240px,24vw,370px);aspect-ratio:1;z-index:1;pointer-events:none;perspective:900px; }
.orbit-gimbal { width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(var(--orbit-look-x,0deg)) rotateY(var(--orbit-look-y,0deg));transition:transform 1.2s var(--ease); }
.orbit-spindle { width:100%;height:100%;transform-style:preserve-3d;animation:armillary-turn 18s linear infinite; }
.orbit-ring { position:absolute;inset:8%;border:2px solid #e2bc86;border-radius:50%;box-shadow:inset 0 0 1px #fff5,0 0 1px #fff8;transform-style:preserve-3d; }
.orbit-ring-1 { transform:rotateX(68deg); }
.orbit-ring-2 { transform:rotateY(68deg) rotateZ(35deg);border-color:#b9814e; }
.orbit-ring-3 { transform:rotateY(-42deg) rotateX(24deg);border-color:#f0d1a6; }
.orbit-ring i { position:absolute;top:-5px;left:calc(50% - 5px);width:9px;height:9px;border-radius:50%;background:#edc893;box-shadow:0 0 10px #e1b57b66; }
.orbit-core { position:absolute;inset:0;display:grid;place-items:center;color:#f5dbb6;font:86px Editorial,serif;transform:rotateY(-20deg);animation:core-breathe 5s ease-in-out infinite; }

/* A travelling highlight suggests connection; only a click advances the example. */
.motion-enhanced .flow-node { overflow:hidden;isolation:isolate; }
.motion-enhanced .flow-node::after { content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid #f2c98a;pointer-events:none;opacity:0;box-shadow:inset 0 0 35px #f7d5a11c;animation: node-signal 6.6s ease-in-out infinite; }
.motion-enhanced .flow-node[data-step="1"]::after { animation-delay:2.2s; }
.motion-enhanced .flow-node[data-step="2"]::after { animation-delay:4.4s; }
.motion-enhanced .flow-connector::after { content:'';position:absolute;left:0;top:-2px;width:5px;height:5px;background:#ffe0ab;border-radius:50%;box-shadow:0 0 9px #f1ba6b99;animation:signal-travel 3.3s cubic-bezier(.4,0,.2,1) infinite; }
.motion-enhanced .flow-connector:nth-of-type(2)::after { animation-delay:1.1s; }
.motion-enhanced .flow-node.is-complete::after { animation:none;opacity:.75; }
.motion-enhanced .flow-node.is-complete .node-icon { animation:step-resolve .7s var(--ease) both; }
.motion-enhanced .experiment-controls button { position:relative; }
.motion-enhanced .experiment-controls button::after { content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#ecc79c;transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease); }
.motion-enhanced .experiment-controls button[aria-selected=true]::after { transform:scaleX(1); }
.motion-enhanced .network-scene::after { content:'';position:absolute;inset:-30%;z-index:0;pointer-events:none;background:linear-gradient(105deg,transparent 38%,#fff8de18 48%,#fff8de32 50%,#fff8de18 52%,transparent 62%);animation:colonnade-light 14s ease-in-out infinite alternate; }
.motion-enhanced .brand-doors { z-index:1; }
.motion-enhanced .brand-door-copy { transition:transform .8s var(--ease),background .5s; }
.motion-enhanced .brand-door[href]:focus-visible .brand-door-copy { transform:translateY(-12px); }
.motion-enhanced .footer-wordmark>b { animation-duration:24s; }
.motion-enhanced .form-symbol { animation-duration:22s; }

@keyframes cinematic-drift { from { scale:1;translate:-.3% .2%; } to { scale:1.045;translate:.5% -.5%; } }
@keyframes portrait-drift { from { scale:1;translate:0 .5%; } to { scale:1.055;translate:0 -.5%; } }
@keyframes emblem-float { 0%,100% { translate:-50% -50%;rotate:-5deg; } 50% { translate:-50% calc(-50% - 13px);rotate:6deg; } }
@keyframes dust-drift { 0% { opacity:0;transform:translate3d(0,30px,0); } 25%,65% { opacity:.65; } 100% { opacity:0;transform:translate3d(42px,-95px,0); } }
@keyframes armillary-turn { from { transform:rotateX(-14deg) rotateY(0deg) rotateZ(-20deg); } to { transform:rotateX(-14deg) rotateY(360deg) rotateZ(-20deg); } }
@keyframes core-breathe { 0%,100% { scale:.8;opacity:.65; } 50% { scale:1;opacity:1; } }
@keyframes node-signal { 0%,6% { opacity:0; } 14%,28% { opacity:.85; } 40%,100% { opacity:0; } }
@keyframes signal-travel { 0% { translate:0 0;opacity:0; } 20% { opacity:1; } 80% { opacity:1; } 100% { translate:48px 0;opacity:0; } }
@keyframes step-resolve { 0% { transform:translateY(10px) rotate(0deg) scale(.85); } 65% { transform:translateY(-3px) rotate(-12deg) scale(1.16); } 100% { transform:translateY(0) rotate(-10deg) scale(1.1); } }
@keyframes colonnade-light { from { transform:translateX(-18%);opacity:.3; } to { transform:translateX(18%);opacity:.9; } }

@media(max-width:1150px) {
  .kinetic-orbit { right:5%;top:130px;width:25vw; }
  @keyframes signal-travel { 0% { translate:0 0;opacity:0; } 20%,80% { opacity:1; } 100% { translate:28px 0;opacity:0; } }
}
@media(max-width:760px) {
  .kinetic-orbit { right:12px;top:10px;width:80px;opacity:.85; }
  .orbit-core { font-size:25px; }
  .orbit-ring { border-width:1px; }
  .scene-atmosphere i:nth-child(n+5) { display:none; }
  .motion-enhanced .scene-picture img { animation:mobile-drift 25s ease-in-out infinite alternate; }
  .motion-enhanced .door-image>img,.motion-enhanced .offer-image>img,.motion-enhanced .questions-art>img { animation-duration:24s; }
  .motion-enhanced .network-scene::after { display:none; }
  .motion-enhanced .flow-connector::after { top:0;left:-2px; }
  @keyframes signal-travel { 0% { translate:0 0;opacity:0; } 20%,80% { opacity:1; } 100% { translate:0 16px;opacity:0; } }
  @keyframes mobile-drift { from { scale:1; } to { scale:1.025; } }
}

/* Preserve pause, hidden-tab and reduced-motion behavior for every new layer. */
.motion-sleep,.motion-sleep *,.motion-sleep::before,.motion-sleep::after,.motion-sleep *::before,.motion-sleep *::after,
html[data-page-hidden] *,html[data-page-hidden] *::before,html[data-page-hidden] *::after { animation-play-state:paused!important; }
html[data-motion=paused] .orbit-gimbal { transition:none; }
html[data-motion=paused] .flow-node.is-complete .node-icon { animation:none;transform:rotate(-10deg) scale(1.1); }
@media(prefers-reduced-motion:reduce) {
  .motion-enhanced .scene-picture img,.motion-enhanced .door-image>img,.motion-enhanced .offer-image>img,.motion-enhanced .questions-art>img { scale:1;translate:0 0; }
  .scene-atmosphere,.flow-node::after,.flow-connector::after,.network-scene::after { display:none!important; }
  .orbit-gimbal { transform:none;transition:none; }
  .orbit-spindle { transform:rotateX(-14deg) rotateY(25deg) rotateZ(-20deg); }
}
