/*
 * Optional progressive enhancement for the illustrated panels.
 * The source WebP is deliberately never hidden: it is the fallback for
 * no-JS, reduced-motion, Save-Data, and runtime errors.
 */
.motion-illustration {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.motion-illustration > img:not(.motion-illustration__svg) {
  display: block;
  inline-size: 100%;
  position: relative;
  z-index: 0;
}

.motion-illustration__svg {
  block-size: 100%;
  inline-size: 100%;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 450ms ease-out;
  z-index: 1;
}

.motion-illustration[data-motion-svg-ready="true"] .motion-illustration__svg {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .motion-illustration__svg {
    display: none;
  }
}
