/*
 * Motion layer for the Webflow-exported markup.
 *
 * Webflow toggles these components by flipping `display` (modals) or the
 * `w--open` class (dropdowns). A CSS keyframe animation replays every time an
 * element goes from display:none to visible, so entrances need no JS.
 * Exits that must play before the element disappears live in motion.js.
 *
 * Only transform and opacity are animated (compositor-only).
 */
:root {
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --modal-in: 240ms;
  --modal-out: 180ms; /* exits ~25% faster than entrances */
}

@keyframes arisbe-fade-in { from { opacity: 0; } }
@keyframes arisbe-fade-out { to { opacity: 0; } }
@keyframes arisbe-pop-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes arisbe-pop-out { to { opacity: 0; transform: scale(0.98); } }
@keyframes arisbe-reveal { from { opacity: 0; transform: translateY(-6px); } }

/* Testimonial modal: backdrop + dialog move as one unit (same duration/easing). */
.modal-container-backdrop {
  animation: arisbe-fade-in var(--modal-in) var(--ease-out-quart);
}
.modal-container-backdrop .modal {
  animation: arisbe-pop-in var(--modal-in) var(--ease-out-quart);
  will-change: transform, opacity;
}
.modal-container-backdrop.is-closing {
  animation: arisbe-fade-out var(--modal-out) var(--ease-out-quart) forwards;
  pointer-events: none;
}
.modal-container-backdrop.is-closing .modal {
  animation: arisbe-pop-out var(--modal-out) var(--ease-out-quart) forwards;
}

/* Workshop outline accordions. */
.w-dropdown-list.w--open {
  animation: arisbe-reveal 220ms var(--ease-out-quart);
}
.w-dropdown-toggle > .vectors-wrapper-8 {
  transition: transform 200ms var(--ease-in-out-cubic);
}
.w-dropdown-toggle.w--open > .vectors-wrapper-8 {
  transform: rotate(180deg);
}

/* Press feedback on buttons. */
.frame-17124:not(.disabled),
.frame-17049,
.frame-17127,
.frame-46,
.workshop .workshop-register-button {
  transition: transform 120ms var(--ease-out-quart);
}
.frame-17124:not(.disabled):active,
.frame-17049:active,
.frame-17127:active,
.frame-46:active,
.workshop:active .workshop-register-button {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .modal-container-backdrop,
  .modal-container-backdrop .modal,
  .modal-container-backdrop.is-closing,
  .modal-container-backdrop.is-closing .modal,
  .w-dropdown-list.w--open {
    animation: none;
  }
  .w-dropdown-toggle > .vectors-wrapper-8,
  .frame-17124:not(.disabled),
  .frame-17049,
  .frame-17127,
  .frame-46,
  .workshop .workshop-register-button {
    transition: none;
  }
}
