@media (prefers-reduced-motion: no-preference) {
  body {
    --interface-entrance-duration: 640ms;
    --interface-entrance-ease: cubic-bezier(.22, 1, .36, 1);
  }

  /* Wait for the opening splash to finish before revealing the controls. */
  body:has(> .splash) :is(.cs-header, .cs-floating-contact, .portfolio-ask__launcher) {
    visibility: hidden;
  }

  body:not(:has(> .splash)) .cs-header {
    --entrance-offset: -30px;
    animation: interface-entrance var(--interface-entrance-duration) var(--interface-entrance-ease) backwards;
  }

  body:not(:has(> .splash)) .cs-floating-contact {
    --entrance-offset: 26px;
    animation: interface-entrance var(--interface-entrance-duration) var(--interface-entrance-ease) 300ms backwards;
  }

  body:not(:has(> .splash)) .portfolio-ask__launcher {
    --entrance-offset: 26px;
    animation: interface-entrance var(--interface-entrance-duration) var(--interface-entrance-ease) 640ms backwards;
  }

  @keyframes interface-entrance {
    from { opacity: 0; translate: 0 var(--entrance-offset); }
    to { opacity: 1; translate: 0 0; }
  }
}
