﻿/* Nevsity walkthrough motion — visual enhancements only */

#studio-tour .au4-chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

#studio-tour.nv-motion-visible .au4-chart-line {
  animation: nv-draw-chart 1.65s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes nv-draw-chart {
  to { stroke-dashoffset: 0; }
}

#studio-tour .au4-chart-area {
  opacity: 0;
}

#studio-tour.nv-motion-visible .au4-chart-area {
  animation: nv-reveal-area 1.3s ease .35s forwards;
}

@keyframes nv-reveal-area {
  from { opacity: 0; }
  to { opacity: .75; }
}

#studio-tour .au4-bar i {
  transform: scaleX(0);
  transform-origin: left center;
}

#studio-tour.nv-motion-visible .au4-bar i {
  animation: nv-grow-bar 1.1s cubic-bezier(.22,1,.36,1) forwards;
}

#studio-tour .au4-bar:nth-child(2) i {
  animation-delay: .15s;
}

#studio-tour .au4-bar:nth-child(3) i {
  animation-delay: .28s;
}

#studio-tour .au4-bar:nth-child(4) i {
  animation-delay: .41s;
}

@keyframes nv-grow-bar {
  to { transform: scaleX(1); }
}

#studio-tour .au4-demo-metrics > div {
  opacity: 0;
  transform: translateY(12px);
}

#studio-tour.nv-motion-visible .au4-demo-metrics > div {
  animation: nv-metric-enter .8s cubic-bezier(.22,1,.36,1) forwards;
}

#studio-tour .au4-demo-metrics > div:nth-child(2) {
  animation-delay: .12s;
}

#studio-tour .au4-demo-metrics > div:nth-child(3) {
  animation-delay: .24s;
}

@keyframes nv-metric-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#studio-tour .au4-demo-shell {
  transition: transform .65s cubic-bezier(.22,1,.36,1);
}

@media (hover: hover) and (pointer: fine) {
  #studio-tour .au4-demo-shell:hover {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #studio-tour .au4-chart-line {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  #studio-tour .au4-chart-area,
  #studio-tour .au4-demo-metrics > div {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  #studio-tour .au4-bar i {
    transform: none !important;
    animation: none !important;
  }

  #studio-tour .au4-demo-shell {
    transition: none !important;
  }
}
