:where(.glass-app, .workbench-reference) {
  --motion-ease: cubic-bezier(.16,1,.3,1);
  --motion-press: 110ms;
  --motion-shift: 180ms;
  --motion-reveal: 240ms;
  --motion-distance: 4px;
}

.glass-app .cards-home .module-card,
.glass-app .cards-home .module-card:hover,
.glass-app .cards-home .module-card:active,
.glass-app .cards-home .module-card .card-arrow {
  transform: none;
}

.glass-app .cards-home .module-card::after {
  animation: none;
  background-image: none;
}

.glass-app :is(.module-card,.workbench-section,.video-showcase,.resource-links a,.case-card):active {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

@media (prefers-reduced-motion: no-preference) {
  :where(.glass-app, .workbench-reference) .workbench-enter,
  .glass-app :is(.departure-result,.quiz-feedback,.workbench-feedback[open]),
  .glass-app .case-questions details[open] > p {
    animation: workbench-reveal var(--motion-reveal) var(--motion-ease);
  }

  .glass-app :is(.module-card,.workbench-section,.video-showcase,.resource-links a,.case-card) {
    --entry-lift: 0px;
    --entry-arrow: 0px;
    --entry-art: 0px;
    translate: 0 var(--entry-lift);
    transition: translate var(--motion-shift) var(--motion-ease), border-color var(--motion-shift) var(--motion-ease), background-color var(--motion-shift) var(--motion-ease);
  }
  .glass-app :is(.module-card,.workbench-section,.video-showcase,.resource-links a,.case-card):focus-visible {
    --entry-arrow: var(--motion-distance);
    --entry-art: calc(0px - var(--motion-distance));
  }
  .glass-app :is(.module-card,.workbench-section,.video-showcase,.resource-links a,.case-card):active {
    --entry-lift: 1px;
    --entry-arrow: 0px;
    --entry-art: 0px;
    transition-duration: var(--motion-press);
  }
  .glass-app .module-card .card-arrow,
  .glass-app :is(.workbench-section,.resource-links a,.case-card) > svg:last-child,
  .glass-app .video-showcase-action svg {
    translate: var(--entry-arrow) 0;
    transition: translate var(--motion-shift) var(--motion-ease);
  }
  .glass-app .module-illustration > svg,
  .glass-app .video-showcase-layer {
    translate: 0 var(--entry-art);
    transition: translate var(--motion-shift) var(--motion-ease);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .glass-app :is(.module-card,.workbench-section,.video-showcase,.resource-links a,.case-card):hover:not(:active) {
    --entry-lift: -2px;
    --entry-arrow: var(--motion-distance);
    --entry-art: calc(0px - var(--motion-distance));
  }
}

@keyframes workbench-reveal {
  from { opacity: .78; translate: 0 var(--motion-distance); }
  to { opacity: 1; translate: 0 0; }
}
