/* Movimento editorial compartilhado entre cabeçalho e títulos. */
.split-word,
.split-char {
  display: inline-block;
}

[data-split-heading] .split-word {
  overflow: clip;
  vertical-align: top;
}

[data-split-heading].is-split-ready:not(.is-split-active) {
  opacity: 0;
}

[data-split-heading].is-split-active {
  opacity: 1;
}

[data-css-reveal].is-reveal-ready {
  opacity: 0;
  transform: translateY(24px);
}

[data-css-reveal].is-in-view {
  animation: gentle-rise 900ms var(--ease-editorial) both;
}

.leaf-dot {
  position: relative;
  display: inline-block;
}

.leaf-dot::after {
  content: "";
  position: absolute;
  top: -0.17em;
  left: 50%;
  width: 0.42em;
  height: 0.3em;
  background-color: var(--verde-salvia);
  opacity: 0;
  transform: translate(-30%, -35%) rotate(-28deg) scale(0);
  transform-origin: 12% 88%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 15C3 5 12 0 23 1C21 10 13 16 1 15Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 15C3 5 12 0 23 1C21 10 13 16 1 15Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header-wordmark.is-written .leaf-dot::after {
  animation: leaf-bloom 620ms cubic-bezier(0.16, 1.35, 0.3, 1) both;
}

@keyframes gentle-rise {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  65% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes leaf-bloom {
  0% {
    opacity: 0;
    transform: translate(-30%, -35%) rotate(-34deg) scale(0);
  }

  70% {
    opacity: 1;
    transform: translate(-30%, -35%) rotate(7deg) scale(1.15);
  }

  100% {
    opacity: 1;
    transform: translate(-30%, -35%) rotate(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaf-dot::after {
    opacity: 1;
    transform: translate(-30%, -35%) rotate(0) scale(1);
  }
}
