/* Entrance adapted from Animate.css v4.1.1 fadeInUp. MIT license in vendor/. */
@keyframes ame-rise {
  from { opacity: .72; transform: translate3d(0, 15px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes ame-cover-settle {
  from { scale: 1.048; }
  to { scale: 1; }
}

@keyframes ame-accent-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .page-intro > img, .hero-slide.is-active { animation: ame-cover-settle 1.8s cubic-bezier(.2, .65, .35, 1) both; }
  .page-intro > .wrap > *, .hero-content > * {
    animation: ame-rise .56s cubic-bezier(.2, .75, .3, 1) both;
  }
  .page-intro > .wrap > :nth-child(2), .hero-content > :nth-child(2) { animation-delay: .06s; }
  .page-intro > .wrap > :nth-child(3), .hero-content > :nth-child(3) { animation-delay: .12s; }
  .page-intro > .wrap > :nth-child(4), .hero-content > :nth-child(4) { animation-delay: .18s; }

  .page-intro::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 15%, #e8a1ca 50%, transparent 85%);
    animation: ame-accent-sweep 1.75s ease-out .2s both;
  }
  .ame-reveal { animation: ame-rise .55s cubic-bezier(.2, .75, .3, 1) var(--ame-reveal-delay, 0ms) backwards; }
  .ame-reveal:focus-within { animation: none; }
  .login-dialog[open] { animation: ame-rise .25s ease-out; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .unit-card.with-photo img {
    transition: scale .45s cubic-bezier(.2, .75, .3, 1), filter .2s ease;
  }
  .unit-card.with-photo:is(:hover, :focus-visible) img { scale: 1.045; }
  .contact-option { transition: background .2s ease, border-color .2s ease; }
  .contact-option:is(:hover, :focus-visible) { border-color: #d7b7cb; }
}
