/* Homepage live menu heading — editorial splash motion. */
body.jd-body .jd-menu-home__titles {
  position: relative;
}

body.jd-body .jd-menu-home__titles .jd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

body.jd-body .jd-menu-home__live-dot {
  position: relative;
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a88351;
  box-shadow: 0 0 0 .28rem rgba(168,131,81,.12);
}

body.jd-body .jd-menu-home__live-dot::after {
  content: "";
  position: absolute;
  inset: -.32rem;
  border: 1px solid rgba(168,131,81,.42);
  border-radius: inherit;
  animation: jd-menu-live-pulse 2.4s ease-out infinite;
}

body.jd-body .jd-menu-home__display {
  position: relative;
  isolation: isolate;
  width: fit-content;
  padding: .04em .18em .18em 0;
}

body.jd-body .jd-menu-home__display > span:not(.jd-menu-home__splash),
body.jd-body .jd-menu-home__display > em {
  position: relative;
  z-index: 2;
}

body.jd-body .jd-menu-home__display > em {
  color: #9e7a4f;
  text-shadow: 0 .05em 0 rgba(255,255,255,.7);
}

body.jd-body .jd-menu-home__splash {
  position: absolute;
  z-index: 1;
  right: -1.8rem;
  bottom: -.85rem;
  width: min(27rem, 76%);
  pointer-events: none;
  transform: rotate(-4deg);
}

body.jd-body .jd-menu-home__splash svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(185,145,86,.46);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.jd-body .jd-menu-home__splash path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: jd-menu-splash-draw 5.8s cubic-bezier(.2,.7,.2,1) infinite;
}

body.jd-body .jd-menu-home__splash path:nth-child(2) {
  animation-delay: .16s;
  stroke-width: 1;
  opacity: .65;
}

body.jd-body .jd-menu-home__splash circle {
  fill: rgba(185,145,86,.38);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: jd-menu-drop 5.8s ease-in-out infinite;
}

body.jd-body .jd-menu-home__splash circle:nth-of-type(2) { animation-delay: .13s; }
body.jd-body .jd-menu-home__splash circle:nth-of-type(3) { animation-delay: .26s; }

@keyframes jd-menu-splash-draw {
  0%, 8% { stroke-dashoffset: 520; opacity: 0; }
  20%, 72% { stroke-dashoffset: 0; opacity: 1; }
  88%, 100% { stroke-dashoffset: -520; opacity: 0; }
}

@keyframes jd-menu-drop {
  0%, 14% { opacity: 0; transform: scale(.2) translateY(.5rem); }
  26%, 72% { opacity: 1; transform: scale(1) translateY(0); }
  88%, 100% { opacity: 0; transform: scale(.45) translateY(-.35rem); }
}

@keyframes jd-menu-live-pulse {
  0% { opacity: .8; transform: scale(.55); }
  65%, 100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 560px) {
  body.jd-body .jd-menu-home__splash {
    right: -.45rem;
    bottom: -.5rem;
    width: 82%;
  }

  body.jd-body .jd-menu-home__lead {
    max-width: 38ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.jd-body .jd-menu-home__live-dot::after,
  body.jd-body .jd-menu-home__splash path,
  body.jd-body .jd-menu-home__splash circle {
    animation: none;
  }

  body.jd-body .jd-menu-home__splash path { stroke-dashoffset: 0; opacity: 1; }
  body.jd-body .jd-menu-home__splash circle { opacity: 1; transform: none; }
}
