/* Book a call entrance. The card rises and fades in (same values as the section labels, label.css);
   the portrait's outline draws with the scroll like the credibility bento tiles (bento.css), then
   fades out as the portrait fades in. Scripted in js/contact-enter.js. */
.js .contact-inner > .contact-card {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.8s var(--ease);
}
.js .contact-inner.is-in > .contact-card {
  opacity: 1;
  transform: none;
}
/* the contents cascade in after the card, as they do when the Book a call panel opens (panels.css) */
.js .contact-inner > .contact-card .contact-head,
.js .contact-inner > .contact-card .form > * {
  opacity: 0;
  transform: translateY(14px);
}
.js .contact-inner.is-in > .contact-card .contact-head,
.js .contact-inner.is-in > .contact-card .form > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.35s ease-out calc(var(--i, 0) * 55ms + 120ms),
    transform 0.55s var(--ease) calc(var(--i, 0) * 55ms + 120ms);
}
.contact-inner > .contact-card .contact-head {
  --i: 0;
}
.contact-inner > .contact-card .form > :nth-child(1) {
  --i: 1;
}
.contact-inner > .contact-card .form > :nth-child(2) {
  --i: 2;
}
.contact-inner > .contact-card .form > :nth-child(3) {
  --i: 3;
}
.contact-inner > .contact-card .form > :nth-child(4) {
  --i: 4;
}
/* the figure stops clipping so the outline can sit on its edge; the image keeps the rounded corners */
.js .contact-photo {
  position: relative;
  overflow: visible;
}
.js .contact-photo img {
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s ease,
    transform 0.8s var(--ease);
}
.js .contact-photo.is-done img {
  opacity: 1;
  transform: none;
}
.contact-photo .draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.contact-photo .draw path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}
.js .contact-photo.is-done .draw {
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}
@media (prefers-reduced-motion: reduce) {
  .js .contact-inner > .contact-card,
  .js .contact-inner > .contact-card .contact-head,
  .js .contact-inner > .contact-card .form > *,
  .js .contact-photo img,
  .js .contact-photo .draw {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  .js .contact-photo .draw {
    display: none;
  }
}
