/* Original m-viz diagrams, scoped to the technology module. */
.m-viz[data-machine-visual] {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 150px;
  height: 150px;
  min-width: 0;
  margin: 22px 0 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(240, 232, 244, 0.1));
  background: #0b0912;
  pointer-events: none;
}

.m-viz[data-machine-visual].viz-rc svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.m-viz[data-machine-visual] .hand {
  fill: none;
  stroke: rgba(255, 194, 228, 0.5);
  stroke-width: 1.4;
}

.m-viz[data-machine-visual] .spiral {
  fill: none;
  stroke: #ef8fbb;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 9;
  filter: drop-shadow(0 0 5px rgba(239, 143, 187, 0.7));
  animation: technology-flow-rc 2.6s linear infinite;
}

.m-viz[data-machine-visual] .spiral.two {
  stroke: #d96fa0;
  opacity: 0.6;
  animation-duration: 3.4s;
}

.m-viz[data-machine-visual].viz-zs {
  background: linear-gradient(180deg, #0b0f12, #0a0c0e);
}

.m-viz[data-machine-visual] .grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(143, 227, 176, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 227, 176, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
}

.m-viz[data-machine-visual] .wave {
  position: absolute;
  left: 18%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(143, 227, 176, 0.8);
  transform: translate(-50%, -50%) scale(2);
  opacity: 0.6;
  animation: technology-sonar 2.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

.m-viz[data-machine-visual] .wave:nth-of-type(2) {
  transform: translate(-50%, -50%) scale(4.5);
  opacity: 0.4;
  animation-delay: -0.8s;
}

.m-viz[data-machine-visual] .wave:nth-of-type(3) {
  transform: translate(-50%, -50%) scale(7);
  opacity: 0.2;
  animation-delay: -1.6s;
}

.m-viz[data-machine-visual] .couple {
  position: absolute;
  left: 18%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdf3db;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px #8fe3b0;
  animation: technology-pulse 1.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

.m-viz[data-machine-visual] .dose {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 33%;
  max-width: 132px;
  height: 48px;
  fill: none;
  stroke: #c2efd2;
  stroke-width: 1.4;
}

.m-viz[data-machine-visual] .baseline {
  opacity: 0.2;
}

.m-viz[data-machine-visual] .trace {
  stroke-dasharray: 4 3;
  animation: technology-measure 2.6s linear infinite;
}

.m-viz[data-machine-visual] :is(.spiral, .wave, .couple, .trace) {
  animation-play-state: paused;
}

.m-viz[data-machine-visual][data-technology-active="true"] :is(.spiral, .wave, .couple, .trace) {
  animation-play-state: running;
}

.m-viz[data-machine-visual][data-technology-reduced="true"] :is(.spiral, .wave, .couple, .trace) {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .m-viz[data-machine-visual] :is(.spiral, .wave, .couple, .trace) {
    animation: none;
  }
}

@keyframes technology-flow-rc {
  to { stroke-dashoffset: -160; }
}

@keyframes technology-sonar {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

@keyframes technology-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes technology-measure {
  to { stroke-dashoffset: -28; }
}
