/**************************************************************
* GLOBAL
**************************************************************/


/* horizontal-ticker
************************************************/
.horizontal-ticker > span {
  animation: ticker-horizontal-scrolling 36s linear infinite;
}

@keyframes ticker-horizontal-scrolling {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* js-transient-obi
************************************************/
.js-transient-obi:not(.segment-heading) {
  position: relative;
  overflow: hidden;
}

.js-transient-obi:not(.segment-heading)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  background: var(--wp--preset--color--foreground);
}

.js-transient-obi:not(.segment-heading) > img {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.js-transient-obi:not(.segment-heading).is-animated::before {
  animation: transient-bg-cover-fx 1.5s ease-in-out forwards;
}

.js-transient-obi:not(.segment-heading).is-animated > img {
  opacity: 1;
  transition-delay: 0.75s;
}

/* js-transient-obi */
.js-transient-obi[class*="segment-heading"] {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.js-transient-obi[class*="segment-heading"] p,
.js-transient-obi[class*="segment-heading"] .wp-block-heading {
  position: relative;
  overflow: hidden;
}

.js-transient-obi[class*="segment-heading"] p > strong,
.js-transient-obi[class*="segment-heading"] .wp-block-heading > strong {
  opacity: 0;
}

.js-transient-obi[class*="segment-heading"] p::before,
.js-transient-obi[class*="segment-heading"] .wp-block-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  background: var(--wp--preset--color--foreground);
}

.js-transient-obi[class*="segment-heading"].is-animated p > strong,
.js-transient-obi[class*="segment-heading"].is-animated .wp-block-heading > strong {
  opacity: 1;
  transition-delay: 0.75s;
}

.js-transient-obi[class*="segment-heading"].is-animated p::before,
.js-transient-obi[class*="segment-heading"].is-animated .wp-block-heading::before {
  animation: transient-bg-cover-fx 1.5s ease-in-out forwards;
}

@keyframes transient-bg-cover-fx {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 1;
    transform: translateX(102%);
  }
}



/**************************************************************
* HERO
**************************************************************/

/* states */
#js-hero-heading-fx .hero-heading__line1,
#js-hero-heading-fx .hero-heading__line2,
#js-hero-heading-fx .hero-heading__handwritten-catch {
  opacity: 0;
}

/* animation */
.hero-slide img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-slide.is-shown img {
  opacity: 1;
}

.hero-slide img {
  transform: scale(1.3);
  transform-origin: center;
  animation: silde-zoomed-fx 26s linear alternate infinite;
}

@keyframes silde-zoomed-fx {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}



/**************************************************************
* CONCEPT
**************************************************************/

/* states */
#js-concept-reveal-fx :is(h2, h3, h4, h5, h6),
#js-concept-reveal-fx :is(p, li, dt, dd) {
  will-change: filter, transform, opacity;
}

#js-concept-reveal-fx :is(p.reveal-fx-ended) > mark {
  background-size: 20px 2px, 0 2px, 100% 2px;
  background-position: calc(100% + 20px) 100%, 100% 100%, 0 100%;
}
