/* Approved HERO typography motion. All selectors are limited to the front page. */
.hero-motion-replay { display: none; }

.hero-motion-preview .hero-media img { animation: none; }
.hero-motion-preview .hero .eyebrow,
.hero-motion-preview .hero h1 > span,
.hero-motion-preview .hero-statement,
.hero-motion-preview .hero-summary,
.hero-motion-preview .hero-actions { animation: none; }

.hero-motion-preview:not(.hero-motion-ready) .hero h1,
.hero-motion-preview:not(.hero-motion-ready) .hero-statement,
.hero-motion-preview:not(.hero-motion-ready) .hero-summary,
.hero-motion-preview:not(.hero-motion-ready) .hero-actions { opacity: 0; }

.hero-motion-preview .hero h1 > span { white-space: nowrap; }
.hero-motion-preview .hero h1 .motion-glyph {
  display: inline-block;
  margin: 0;
  font: inherit;
  font-style: normal;
  letter-spacing: inherit;
  opacity: 0;
  transform: translate3d(var(--motion-x), var(--motion-y), 0) rotate(var(--motion-angle)) scale(.72, 1.18);
}
.hero-motion-preview .hero h1 .motion-space {
  display: inline;
  font-style: normal;
  white-space: pre;
}
.hero-motion-preview.hero-motion-run .hero h1 .motion-glyph {
  animation: ccwGlyphGather 1230ms cubic-bezier(.16, 1, .28, 1) var(--motion-delay) both;
}
@keyframes ccwGlyphGather {
  0% { opacity: 0; transform: translate3d(var(--motion-x), var(--motion-y), 0) rotate(var(--motion-angle)) scale(.72, 1.18); }
  62% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

.hero-motion-preview .hero-statement-line { display: block; opacity: 0; transform: translateY(25px); }
.hero-motion-preview .hero-statement br { display: none; }
.hero-motion-preview.hero-motion-run .hero-statement-line {
  animation: ccwStatementReveal 930ms cubic-bezier(.2, .7, .25, 1) var(--statement-delay) both;
}
.hero-motion-preview .hero-statement-line:first-child { --statement-delay: 1620ms; }
.hero-motion-preview .hero-statement-line:last-child { --statement-delay: 1870ms; }
@keyframes ccwStatementReveal {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-motion-preview .hero-summary,
.hero-motion-preview .hero-actions { opacity: 0; transform: translateY(16px); }
.hero-motion-preview.hero-motion-run .hero-summary { animation: ccwAfterCopy 760ms ease-out 2380ms both; }
.hero-motion-preview.hero-motion-run .hero-actions { animation: ccwAfterCopy 760ms ease-out 2620ms both; }
@keyframes ccwAfterCopy {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-motion-preview .hero-motion-replay {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 25px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  cursor: pointer;
  font: 600 10px/1.3 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color 200ms ease;
}
.hero-motion-preview .hero-motion-replay:first-letter { font-size: 16px; }
.hero-motion-preview .hero-motion-replay:hover,
.hero-motion-preview .hero-motion-replay:focus-visible { color: #fff; }

@media (max-width: 680px) {
  .hero-motion-preview .hero-statement-line { max-width: 100%; }
  .hero-motion-preview .hero-motion-replay { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion-preview .hero h1 .motion-glyph,
  .hero-motion-preview .hero-statement-line,
  .hero-motion-preview .hero-summary,
  .hero-motion-preview .hero-actions { opacity: 1; transform: none; animation: none !important; }
}
