/* Dot -> circular symbol -> full word -> hold. A continuous 3.62s cycle. */
.footer-word.footer-word-housecredit {
  font-size: clamp(40px,15vw,230px);
  text-align: center;
  color: var(--navy);
  letter-spacing: -.04em;
  transform-origin: center;
  overflow: clip;
  padding-bottom: .08em;
}
.footer-word-housecredit .footer-word-letters {
  display: inline-flex;
  position: relative;
  white-space: nowrap;
  padding: .18em .04em 0;
}
.footer-word-housecredit .footer-letter { display: inline-block; position: relative; transform-origin: center 70%; }
.footer-word-housecredit.reveal.pre-reveal { opacity: 1; transform: none; }
.footer-word-housecredit.is-visible { animation: none; }
.wordmark-o { display: inline-block; }
.wordmark-dot { position: absolute; width: .12em; height: .12em; border-radius: 50%; background: currentColor; left: 50%; top: 62%; margin: -.06em; opacity: 0; }
.wordmark-spark { position: absolute; width: .23em; height: .23em; left: 50%; top: .15em; margin-left: -.115em; opacity: 0; }
.wordmark-ready .footer-letter { animation: housecredit-letter-loop 3.62s cubic-bezier(.22,1,.36,1) infinite both; }
.wordmark-ready .wordmark-circle { animation-name: housecredit-circle-loop; }
.wordmark-ready .wordmark-o { animation: housecredit-ring-loop 3.62s ease-in-out infinite both; }
.wordmark-ready .wordmark-dot { animation: housecredit-dot-loop 3.62s ease-in-out infinite both; }
.wordmark-ready .wordmark-spark { animation: housecredit-spark-loop 3.62s cubic-bezier(.22,1,.36,1) infinite both; }
.wordmark-ready .footer-letter, .wordmark-ready .wordmark-o, .wordmark-ready .wordmark-dot, .wordmark-ready .wordmark-spark { animation-play-state: paused; }
.wordmark-running .footer-letter, .wordmark-running .wordmark-o, .wordmark-running .wordmark-dot, .wordmark-running .wordmark-spark { animation-play-state: running; }
@keyframes housecredit-letter-loop {
  0%, 3% { opacity: 1; transform: none; }
  8%, 35% { opacity: 0; transform: translateX(var(--center-x)) scale(.12); }
  41% { opacity: 1; }
  54%, 100% { opacity: 1; transform: none; }
}
@keyframes housecredit-circle-loop {
  0%, 3% { transform: none; }
  10%, 35% { transform: translateX(var(--center-x)); }
  54%, 100% { transform: none; }
}
@keyframes housecredit-ring-loop {
  0%, 3% { opacity: 1; transform: none; }
  8%, 17% { opacity: 0; transform: scale(.15) rotate(-150deg); }
  23% { opacity: 1; transform: scale(1.1) rotate(20deg); }
  32%, 100% { opacity: 1; transform: none; }
}
@keyframes housecredit-dot-loop {
  0%, 6% { opacity: 0; transform: scale(0); }
  9% { opacity: 1; transform: translateY(.05em) scale(1); }
  14% { opacity: 1; transform: translateY(-.32em) scale(.9,1.15); }
  19% { opacity: 1; transform: translateY(0) scale(1.3,.8); }
  23%, 100% { opacity: 0; transform: scale(0); }
}
@keyframes housecredit-spark-loop {
  0%, 3% { opacity: 1; transform: none; }
  8%, 18% { opacity: 0; transform: translateY(.4em) scale(0) rotate(-180deg); }
  25%, 33% { opacity: 1; transform: translateY(.4em) scale(1) rotate(0); }
  48%, 100% { opacity: 1; transform: none; }
}
.wordmark-toggle { display: block; margin: .3rem auto 1.2rem; padding: .5rem .8rem; border: 0; background: none; color: var(--navy); font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.wordmark-toggle[hidden] { display: none; }
.wordmark-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.wordmark-static .footer-letter, .wordmark-static .wordmark-o, .wordmark-static .wordmark-dot, .wordmark-static .wordmark-spark { animation: none; opacity: 1; transform: none; }
.wordmark-static .wordmark-dot { opacity: 0; }
@media(max-width:560px) { .footer-word.footer-word-housecredit { font-size: 15vw; } }
@media(prefers-reduced-motion:reduce) {
  .footer-word-housecredit .footer-letter, .footer-word-housecredit .wordmark-o, .footer-word-housecredit .wordmark-spark { animation: none; opacity: 1; transform: none; }
  .footer-word-housecredit .wordmark-dot, .wordmark-toggle { display: none; }
}
