/* The changing words are six small pieces of lettering artwork. These rules
   intentionally replace the earlier font-swapping and cutout-letter animations. */
.hero-word.headline-crafted,
.hero-word.headline-crafted[data-treatment] {
  color: var(--ink);
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  animation: none;
  filter: none;
  translate: none;
  letter-spacing: normal;
  line-height: 0;
  flex: 0 0 auto;
}
.hero-word.headline-crafted[data-treatment="agency"] {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 1;
}
.headline-art {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--ink);
  overflow: visible;
}
.headline-letter {
  transform-box: fill-box;
  transform-origin: 50% 88%;
}
.headline-outgoing {
  position: absolute;
  pointer-events: none;
}
.puff-shadow {
  fill: var(--yellow);
  stroke: var(--yellow);
  stroke-width: 14;
  stroke-linejoin: round;
}
.puff-face {
  fill: var(--ink);
}
[data-phase="playing"] .headline-art-passion .headline-letter {
  animation: puff-in 420ms cubic-bezier(0.18, 0.8, 0.2, 1.12) both;
  animation-delay: calc(var(--letter-index) * 11ms);
}
[data-phase="playing"] .headline-art-ambition .headline-letter {
  animation: poster-up 310ms cubic-bezier(0.19, 0.88, 0.26, 1) both;
  animation-delay: calc(var(--letter-index) * 10ms);
}
.outline-face {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.outline-register {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
[data-phase="playing"] .outline-face {
  animation: trace-type 390ms cubic-bezier(0.25, 0.65, 0.25, 1) both;
}
.paper-face-0 {
  fill: var(--yellow);
}
.paper-face-1 {
  fill: var(--ink);
}
.paper-face-2 {
  fill: var(--paper);
}
.paper-ink-0,
.paper-ink-2 {
  fill: var(--ink);
}
.paper-ink-1 {
  fill: var(--pink);
}
[data-phase="playing"] .headline-art-creativity .headline-letter {
  animation: print-down 230ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
  animation-delay: calc(var(--letter-index) * 13ms);
}
.stamp-stock {
  fill: var(--yellow);
}
.stamp-border {
  fill: none;
  stroke: var(--ink);
  stroke-width: 12;
}
[data-phase="playing"] .headline-art-courage {
  animation: stamp-once 190ms cubic-bezier(0.3, 0.7, 0.25, 1) both;
  transform-origin: center;
}
[data-phase="playing"] .headline-art-people .headline-letter {
  animation: people-together 380ms cubic-bezier(0.19, 0.8, 0.28, 1) both;
  animation-delay: calc(var(--letter-index) * 13ms);
}
[data-phase="playing"] .headline-art-people {
  transform-origin: left center;
  animation: people-emphasis 1000ms cubic-bezier(0.25, 0.6, 0.3, 1) both;
}
.word-stage.headline-crafted .word-rule {
  transition: none;
}
.word-stage.headline-crafted[data-headline-phase="playing"] .word-rule {
  visibility: hidden;
}
.word-stage.headline-crafted[data-headline-phase="complete"] .word-rule {
  visibility: visible;
  opacity: 1;
}
.word-stage.headline-crafted[data-headline-phase="complete"] .word-rule path {
  animation: sign-the-line 450ms cubic-bezier(0.2, 0.7, 0.2, 1) 340ms both;
}
@keyframes puff-in {
  from {
    transform: scale(0.94, 0.86);
  }
  62% {
    transform: scale(1.015, 1.02);
  }
  to {
    transform: scale(1);
  }
}
@keyframes poster-up {
  from {
    transform: scaleY(0.56);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes trace-type {
  from {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}
@keyframes print-down {
  from {
    transform: translateY(-65px) rotate(-2deg);
    opacity: 0.15;
  }
  to {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}
@keyframes stamp-once {
  from {
    transform: scale(1.025) rotate(-0.7deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
@keyframes people-together {
  from {
    transform: translate(var(--arrival-x), 35px);
  }
  to {
    transform: translate(0, 0);
  }
}
@keyframes people-emphasis {
  from {
    transform: scale(0.985);
  }
  45% {
    transform: scale(1.012);
  }
  to {
    transform: scale(1);
  }
}
@keyframes sign-the-line {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  to {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .headline-crafted *,
  .headline-crafted {
    animation: none !important;
    transition: none !important;
  }
}
[data-motion="reduce"] .headline-crafted *,
[data-motion="reduce"] .headline-crafted {
  animation: none !important;
  transition: none !important;
}
@media (forced-colors: active) {
  .headline-art {
    forced-color-adjust: auto;
  }
  .puff-face,
  .paper-ink-0,
  .paper-ink-1,
  .paper-ink-2,
  .stamp-letters {
    fill: CanvasText;
  }
  .puff-shadow,
  .paper-face,
  .stamp-stock {
    fill: Canvas;
  }
  .outline-face,
  .stamp-border {
    stroke: CanvasText;
  }
}
