/* Motion is layered over the reference art and stays visually separate from data. */
.ref .motion-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 6px; }
.ref .motion-tools .ref-status { margin-block: 0; }
.ref .motion-toggle { flex: 0 0 auto; display: inline-flex; gap: .5em; align-items: center; }
.ref .motion-toggle::before { content: ''; width: .43em; height: .43em; border-radius: 50%; background: #68f0d7; }
.ref .motion-toggle[aria-pressed=false]::before { background: #91a1b5; }
.ref .motion-art { position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; }
.ref .motion-art img { display: block; }
.ref .motion-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ref .holo-stage img { filter: brightness(1.05) saturate(1.15); }
.ref .holo-stage::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #66fbff55 37%, #c3ffffaa 50%, #66fbff55 63%, transparent);
  height: 18%; transform: translateY(-102%); pointer-events: none;
  mix-blend-mode: screen;
}
.ref[data-motion=on] .holo-stage::after { animation: n360-holo-scan 4.8s linear infinite; }
@keyframes n360-holo-scan {
  0% { transform: translateY(-105%); opacity: 0; }
  12% { opacity: .8; }
  75% { opacity: .9; }
  92%,100% { transform: translateY(495%); opacity: 0; }
}
.ref .holo-stage::before {
  content: ''; position: absolute; z-index: 1; inset: auto 13% 8%; height: 7%;
  border-radius: 50%; box-shadow: 0 0 15px 3px #22c5ea80, inset 0 0 16px #2ce6f35a;
  pointer-events: none; opacity: .4;
}
.ref[data-motion=on] .holo-stage::before { animation: n360-holo-base 3.2s ease-in-out infinite alternate; }
@keyframes n360-holo-base { to { opacity: 1; transform: scale(1.13); } }
.ref .motion-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6em; padding-top: 8px; }
.ref .motion-caption output { color: #a9ecf6; }
.ref .motion-orbit, .ref .map-ping { position: absolute; inset: 0; pointer-events: none; }
.ref .map-ping i {
  position: absolute; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%;
  color: #70fff3; transform: translate(-50%,-50%); opacity: .7;
}
.ref .map-ping i:nth-child(1) { left: 25%; top: 51%; }
.ref .map-ping i:nth-child(2) { left: 50%; top: 43%; color: #ffd269; }
.ref .map-ping i:nth-child(3) { left: 76%; top: 57%; color: #ff8296; }
.ref[data-motion=on] .map-ping i { animation: n360-ping 2.8s cubic-bezier(.15,.55,.3,1) infinite; }
.ref[data-motion=on] .map-ping i:nth-child(2) { animation-delay: -.95s; }
.ref[data-motion=on] .map-ping i:nth-child(3) { animation-delay: -1.9s; }
@keyframes n360-ping { 0% { opacity: .95; transform: translate(-50%,-50%) scale(.8); } 82%,100% { opacity: 0; transform: translate(-50%,-50%) scale(5.2); } }
.ref .ref-planets { z-index: 1; }
.ref[data-motion=on] .ref-planets button[aria-pressed=true] { animation: n360-selected 2.9s ease-in-out infinite alternate; }
@keyframes n360-selected { to { box-shadow: 0 0 26px #59eaffc7, inset 0 0 12px #80f5fe45; } }
.ref .time-track { display: block; position: relative; height: 6px; background: #243f60; border-radius: 10px; margin-top: 8px; overflow: hidden; }
.ref .time-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#32699a,#4df5e0); transform-origin: left center; }
.ref[data-motion=on] .time-track i { transition: transform 180ms linear; }
.ref[data-motion=on] .ref-box { animation: n360-arrive .47s cubic-bezier(.2,.72,.28,1) both; }
.ref[data-motion=on] .ref-stack .ref-box:nth-child(2) { animation-delay: 80ms; }
.ref[data-motion=on] .ref-stack .ref-box:nth-child(3) { animation-delay: 130ms; }
@keyframes n360-arrive { from { opacity: .24; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ref[data-motion=on] .ref-kpi.motion-change strong { animation: n360-value .48s ease-out both; }
@keyframes n360-value { from { opacity: .47; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ref .holo-stage .motion-layer { z-index: 2; }
.ref .ref-cloud { position: relative; isolation: isolate; overflow: hidden; }
.ref .ref-cloud::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 44%; z-index: -1;
  background: radial-gradient(ellipse at 68% 48%, #ffe07273, transparent 57%); opacity: .3;
}
.ref[data-motion=on] .ref-cloud::after { animation: n360-weather 4s ease-in-out infinite alternate; }
@keyframes n360-weather { to { opacity: .8; transform: translateX(10%); } }
@media (prefers-reduced-motion: reduce) {
  .ref[data-motion=on] *, .ref[data-motion=on] *::before, .ref[data-motion=on] *::after { animation: none !important; transition-duration: 0s !important; }
}

.ref .motion-layer { margin: 0; border: 0; border-radius: 0; }
.ref .ref-focused canvas.motion-layer, .ref .ref-instrument:fullscreen canvas.motion-layer { height: 100%; }
