/* EFFECT: Headline cycle — two messages share one spot and take turns.
   The lines of the current message slide up and away; the next message's
   lines slide up into place. Loaded after landing.css so these rules win. */
.zg-hl { display: grid; }
.zg-hl__set { grid-area: 1 / 1; display: block; }

/* Brand accent word */
.zg-hl__accent { color: var(--zg-lime); }

/* The message that isn't showing waits below its line masks */
.zg-landing.is-in .zg-hl__set:not(.is-active) .zg-landing__line > span { transform: translateY(170%); }
/* The message leaving slides up and out */
.zg-landing.is-in .zg-hl__set.is-out .zg-landing__line > span { transform: translateY(-170%); }

/* Timing once cycling has begun (the page entrance keeps its own timing) */
.zg-hl.is-cycling .zg-landing__line > span {
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1);
}
.zg-hl.is-cycling .zg-landing__line:nth-child(1) > span { transition-delay: 0s; }
.zg-hl.is-cycling .zg-landing__line:nth-child(2) > span { transition-delay: 0.08s; }
.zg-hl.is-cycling .zg-landing__line:nth-child(3) > span { transition-delay: 0.16s; }

/* Snap a finished message back below its masks without animating */
.zg-hl__set.is-reset .zg-landing__line > span { transition: none !important; }
