/*
 * Statement — large centred sentence whose words darken as they scroll past.
 */
@layer sections {
  .statement {
    padding-block: 88px;
    text-align: center;
  }

  .statement__text {
    margin: 0 auto;
    max-width: 820px;
    font-family: var(--font-display);
    font-size: calc(34rem / 16);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  @supports (animation-timeline: scroll()) {
    .statement__word {
      animation: statement-word linear both;
      animation-timeline: view();
      animation-range: cover 22% cover 42%;
    }

    @keyframes statement-word {
      from {
        color: var(--color-violet-fade);
      }

      to {
        color: var(--color-ink);
      }
    }
  }
}
