/* Mechanical motion is drawn in the illustration's native coordinate space. */
.machine-scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
}

.machine-scene .machine-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  transform: none;
  animation: none;
}

.machine-scene .machine-canvas > .machine-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  animation: none !important;
}

.machine-scene .machine-mechanics {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

.machine-rotor {
  transform-origin: 0 0;
  animation: machine-rotor-turn var(--rotor-duration, 3.4s) linear infinite;
  animation-delay: var(--rotor-delay, 0s);
}

.machine-rotor-reverse { animation-direction: reverse; }
.machine-fan-blade { opacity: .89; }
.machine-blade-edge {
  stroke: #a7b2ae;
  stroke-width: .8;
  stroke-linecap: round;
  opacity: .5;
}
.machine-blade-tip {
  stroke: #5addff;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: .8;
}

.machine-coolant-channel,
.machine-coolant-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.machine-coolant-channel {
  stroke: #9ff3d4;
  stroke-width: 2;
  opacity: .16;
}
.machine-coolant-flow {
  stroke: #c9ffe6;
  stroke-width: 4.5;
  stroke-dasharray: 13 83;
  opacity: .86;
  animation: machine-coolant-travel var(--flow-duration, 3.5s) linear infinite;
  animation-delay: var(--flow-delay, 0s);
}

@keyframes machine-rotor-turn { to { transform: rotate(360deg); } }
@keyframes machine-coolant-travel { to { stroke-dashoffset: -192; } }

html.document-hidden .machine-scene .machine-rotor,
html.document-hidden .machine-scene .machine-coolant-flow,
html.motion-paused .machine-scene .machine-rotor,
html.motion-paused .machine-scene .machine-coolant-flow,
.machine-scene.motion-off .machine-rotor,
.machine-scene.motion-off .machine-coolant-flow {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .machine-scene .machine-rotor,
  .machine-scene .machine-coolant-flow {
    animation-play-state: paused !important;
  }
}
