/* Motion uses the existing artwork and signal geometry. It never animates the audio controls. */
.demo-stage {
  scroll-margin-top: 6.5rem;
}
.demo-shell {
  border: 1px solid #bf8a5866;
  border-radius: 12px;
  background: #080b0e;
  overflow: hidden;
  box-shadow:
    0 20px 90px #0008,
    0 0 45px #c7752920;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(110deg, #29201a, #10141a 65%);
  border-bottom: 1px solid #efb68333;
}
.demo-toolbar strong {
  font-size: 1rem;
  font-weight: 500;
}
.demo-toolbar p {
  font-size: 0.875rem;
  color: #b0a69f;
  margin-top: 0.3rem;
}
.demo-tools {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}
.demo-tools .button {
  min-height: 42px;
}
.demo-direct {
  font-size: 0.8125rem;
  color: var(--copper);
}
#pulsar-demo {
  display: block;
  width: 100%;
  height: 870px;
  border: 0;
  background: #0b0d10;
}
.demo-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  font: 0.75rem/1.65 var(--mono);
  color: #a8a3a2;
}
.demo-loading {
  padding: 1rem;
  font: 0.8125rem var(--mono);
  color: var(--copper);
}
.image-note a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-shell:fullscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.demo-shell:fullscreen #pulsar-demo {
  flex: 1;
  height: auto;
  min-height: 0;
}
.demo-shell:fullscreen .demo-toolbar {
  flex-shrink: 0;
}
.demo-shell:fullscreen .demo-bottom {
  display: none;
}
.motion-toggle {
  border: 1px solid #efb68340;
  border-radius: 4px;
  background: #141216;
  color: #cdb59f;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
}
.motion-toggle:hover {
  border-color: var(--copper);
}
.motion-toggle:disabled {
  color: var(--muted);
  cursor: default;
}
.motion-on .hero-art {
  transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0)
    scale(1.06);
  will-change: transform;
  animation: core-breathe 9s ease-in-out infinite alternate;
}
.motion-on .hero-copy {
  animation: hero-arrival 1.1s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}
.motion-on .hero h1 {
  animation: title-radiance 8s ease-in-out infinite alternate;
}
.motion-on .site-header:after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #efb6839c,
    #bd83fb6b,
    transparent
  );
  transform-origin: left;
  animation: header-signal 12s ease-in-out infinite;
  pointer-events: none;
}
.motion-on .signal-strip.motion-visible span {
  animation: signal-pass 6.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
.motion-on .motion-visible .pulse-bars i {
  animation: bar-pulse 2.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.13s);
  transform-origin: center;
}
.motion-on .motion-visible .entropy-meter i {
  animation: entropy-rise 4.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.12s);
  transform-origin: bottom;
}
.motion-on .motion-visible .burst-sequence li {
  animation: burst-travel 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1s);
}
.motion-on .control-card,
.motion-on .system-card {
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    translate 0.35s;
}
.motion-on .control-card:hover,
.motion-on .system-card:hover {
  translate: 0 -4px;
  border-color: #d5a67755;
  box-shadow: 0 16px 45px #0004;
}
.motion-on .reveal-armed {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--reveal-delay, 0s),
    transform 0.85s cubic-bezier(0.2, 0.65, 0.2, 1) var(--reveal-delay, 0s);
}
.motion-on .reveal-armed.is-revealed,
.motion-on .reveal-armed:focus-within {
  opacity: 1;
  transform: none;
}
.page-hidden *,
.page-hidden *:after,
.page-hidden *:before {
  animation-play-state: paused !important;
}
@keyframes core-breathe {
  from {
    filter: brightness(0.95) saturate(0.96);
  }
  to {
    filter: brightness(1.2) saturate(1.12);
  }
}
@keyframes title-radiance {
  from {
    text-shadow: 0 0 45px #df8c5620;
  }
  to {
    text-shadow:
      0 0 70px #efb68355,
      0 0 4px #f5d4b31a;
  }
}
@keyframes hero-arrival {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes header-signal {
  0%,
  100% {
    opacity: 0.25;
    scale: 0.45 1;
  }
  50% {
    opacity: 0.9;
    scale: 1 1;
  }
}
@keyframes signal-pass {
  0%,
  24%,
  100% {
    opacity: 0.55;
    filter: none;
  }
  10% {
    opacity: 1;
    filter: drop-shadow(0 0 8px currentColor);
  }
}
@keyframes bar-pulse {
  from {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes entropy-rise {
  from {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  to {
    transform: scaleY(1);
    opacity: 0.95;
  }
}
@keyframes burst-travel {
  0%,
  15%,
  100% {
    box-shadow: none;
    filter: brightness(0.9);
  }
  5% {
    box-shadow:
      inset 0 0 22px #ffffff12,
      0 0 20px #efb68316;
    filter: brightness(1.5);
  }
}
@media (max-width: 1100px) {
  .header-inner nav {
    gap: 1rem;
  }
  .demo-toolbar {
    align-items: flex-start;
  }
  .demo-tools {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
  }
}
@media (max-width: 760px) {
  .demo-toolbar {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .demo-tools {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  #pulsar-demo {
    height: 760px;
  }
  .demo-bottom {
    flex-direction: column;
    gap: 0.3rem;
  }
  .stage-caption {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .demo-shell {
    border-radius: 8px;
  }
  .motion-on .hero-art {
    will-change: auto;
  }
  .motion-on .reveal-armed {
    transition-delay: 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .hero-art,
  .hero-copy,
  .reveal {
    transform: none !important;
    opacity: 1 !important;
  }
}
