/* The open curves continue the flight motif from the home page. */
.hero-simple {
  overflow: clip;
}

.hero-simple::before,
.hero-simple::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: 54%;
  top: 7%;
  width: 72%;
  height: 61%;
  border-bottom: 1px solid #ffaf7d73;
  border-radius: 50%;
  transform: rotate(-17deg);
  mask-image: linear-gradient(90deg, transparent 3%, #000 52%, #000 94%, transparent);
}

.hero-simple::after {
  top: 19%;
  left: 61%;
  height: 50%;
  transform: rotate(-24deg);
  border-color: #a3e2e055;
}

@media (max-width: 740px) {
  .hero-simple::before,
  .hero-simple::after {
    left: 45%;
    width: 110%;
    opacity: .56;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-simple::before,
  .hero-simple::after {
    animation: wm-draw-curve 1.2s cubic-bezier(.22, .71, .19, 1) backwards;
  }

  .hero-simple::after {
    animation-delay: 110ms;
  }

  :is(.hero-simple, .editorial-hero) .kicker::before,
  .contact-copy .kicker::before {
    transform-origin: left;
    animation: wm-ink-in 650ms cubic-bezier(.22, .71, .19, 1) backwards;
  }

  :is(.hero-simple, .editorial-hero) h1 {
    animation: wm-title-in 600ms cubic-bezier(.22, .71, .19, 1) backwards;
  }

  :is(.hero-simple, .editorial-hero) .lead {
    animation: wm-title-in 560ms 70ms cubic-bezier(.22, .71, .19, 1) backwards;
  }

  /* The observer adds these attributes only to elements already in view. */
  [data-wm-enter] {
    animation-duration: 540ms;
    animation-timing-function: cubic-bezier(.22, .71, .19, 1);
    animation-fill-mode: backwards;
  }

  [data-wm-enter="title"] {
    animation-name: wm-title-in;
  }

  [data-wm-enter="card"] {
    animation-name: wm-card-in;
  }

  [data-wm-enter="photo"] {
    animation-name: wm-photo-in;
    animation-duration: 780ms;
  }

  [data-wm-beat="1"] { animation-delay: 65ms; }
  [data-wm-beat="2"] { animation-delay: 130ms; }

  .steps > li[data-wm-enter] {
    position: relative;
    animation-duration: 800ms;
  }

  .steps > li[data-wm-enter]::after {
    content: "";
    position: absolute;
    inset: -2px auto auto 0;
    width: 48%;
    height: 2px;
    background: linear-gradient(90deg, #c76d49, #baced0);
    transform-origin: left;
    animation: wm-step-mark 800ms ease-out both;
  }

  .invitation[data-wm-enter]::after {
    transform-origin: left;
    animation: wm-ink-in 900ms cubic-bezier(.22, .71, .19, 1) both;
  }

  .faq details[open] > p {
    animation: wm-title-in 250ms ease-out;
  }

  .band .more .arrow,
  .invite-actions .button .arrow {
    transition: transform 200ms ease-out;
  }

  @keyframes wm-draw-curve {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }

  @keyframes wm-ink-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  @keyframes wm-title-in {
    from { opacity: .80; transform: translateY(9px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes wm-card-in {
    from { opacity: .70; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes wm-photo-in {
    from { opacity: .86; transform: scale(1.065); }
    to { opacity: 1; transform: none; }
  }

  @keyframes wm-step-mark {
    0% { transform: scaleX(0); opacity: 0; }
    48% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .band .more:is(:hover, :focus-visible) .arrow,
  .invite-actions .button:is(:hover, :focus-visible) .arrow {
    transform: translateX(3px);
  }

  .band .more {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .26em;
    transition: text-decoration-color 180ms ease;
  }

  .band .more:is(:hover, :focus-visible) {
    text-decoration-color: currentColor;
  }
}

@media print, (forced-colors: active) {
  .hero-simple::before,
  .hero-simple::after {
    display: none;
  }
}
