.frisbie-phrase-concept {
  position: relative;
  display: grid;
  min-height: 420px;
  align-content: center;
  padding: clamp(24px, 5vw, 56px);
  overflow: visible;
  isolation: isolate;
}

.frisbie-phrase-concept > * {
  position: relative;
  z-index: 1;
}

.frisbie-phrase-concept--align-left {
  justify-items: start;
  text-align: left;
}

.frisbie-phrase-concept--align-center {
  justify-items: center;
  text-align: center;
}

.frisbie-phrase-concept__phrase {
  display: block;
  color: var(--home-text);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.frisbie-phrase-concept__token {
  display: inline;
  color: var(--home-cyan);
  line-height: inherit;
  text-shadow: 0 0 28px var(--home-cyan-soft);
  vertical-align: baseline;
  white-space: normal;
}

.frisbie-phrase-concept__token--exit,
.frisbie-phrase-concept__token--enter {
  animation: none;
}

.frisbie-phrase-concept__word {
  display: inline-block;
  line-height: inherit;
  vertical-align: baseline;
  white-space: nowrap;
}

.frisbie-phrase-concept__word-break {
  display: inline;
  line-height: inherit;
}

.frisbie-phrase-concept__char {
  display: inline-block;
  --possibility-char-width: 1.14em;

  max-width: var(--possibility-char-width);
  margin-block: -0.1em;
  margin-bottom: -0.3em;
  overflow: hidden;
  padding-block: 0.1em;
  color: var(--home-cyan);
  background: linear-gradient(135deg, var(--home-cyan), var(--home-primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.08;
  transform-origin: 50% 72%;
  white-space: pre;
  vertical-align: baseline;
  will-change: max-width, opacity, filter, transform;
}

.frisbie-phrase-concept__token--enter .frisbie-phrase-concept__char {
  animation: frisbie-phrase-concept-char-build 1040ms
    cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--char-index) * 52ms);
}

.frisbie-phrase-concept__char--space {
  --possibility-char-width: 0.38em;

  text-shadow: none;
}

.frisbie-phrase-concept__token--exit .frisbie-phrase-concept__char {
  animation: frisbie-phrase-concept-char-exit 900ms cubic-bezier(0.7, 0, 0.2, 1)
    both;
  animation-delay: calc((var(--char-total) - var(--char-index)) * 34ms);
}

@keyframes frisbie-phrase-concept-char-build {
  from {
    max-width: 0;
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 0.14em, 0) scale(0.992);
  }

  62% {
    opacity: 1;
    filter: blur(0.75px);
  }

  to {
    max-width: var(--possibility-char-width);
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes frisbie-phrase-concept-char-exit {
  from {
    max-width: var(--possibility-char-width);
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    max-width: 0;
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, -0.11em, 0) scale(0.992);
  }
}

@media (prefers-reduced-motion: reduce) {
  .frisbie-phrase-concept__char,
  .frisbie-phrase-concept__word,
  .frisbie-phrase-concept__token {
    animation: none;
  }
}

@media (max-width: 640px) {
  .frisbie-phrase-concept {
    min-height: 320px;
    padding: 28px 0;
  }

  .frisbie-phrase-concept__phrase {
    font-size: 32px;
  }
}

