/* ContactModal entry transition, kept out of the component's inline CSS:
   the Nu HTML checker does not know `@starting-style` or `allow-discrete`
   and reports each as an error when they are inline. `allow-discrete` plus
   `@starting-style` is what lets a property that toggles between none and
   grid animate at all; browsers without it show the modal immediately. */
@media (prefers-reduced-motion: no-preference) {
  .cm {
    opacity: 0;
    transition: opacity 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete;
  }
  .cm[open] { opacity: 1; }
  @starting-style {
    .cm[open] { opacity: 0; }
  }
  .cm__panel { transition: transform 0.18s ease; }
  .cm:not([open]) .cm__panel { transform: translateY(8px); }
}
