.uff-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.55rem;
  background:
    radial-gradient(ellipse 72% 58% at 58% 42%, #c47a52 0%, #9a5536 52%, #7a422b 100%);
  color: #fffcfa;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.62s ease, visibility 0.62s ease;
}

.uff-intro.is-playing:not(.is-done) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.uff-intro.is-done,
html.uff-intro-done .uff-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.uff-intro-done .uff-intro {
  transition: none;
}

.uff-intro__brand {
  display: grid;
  justify-items: stretch;
  gap: 0.55rem;
}

.uff-intro__mark,
.uff-intro__sub {
  display: flex;
  justify-content: center;
  margin: 0;
  line-height: 0.9;
}

.uff-intro__mark {
  font-family: var(--uff-serif);
  font-size: clamp(4.4rem, 14vw, 7.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  padding-inline-start: 0.16em;
}

.uff-intro__sub {
  font-family: var(--uff-sans);
  font-size: clamp(0.78rem, 2.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  padding-inline-start: 0.55em;
  text-transform: uppercase;
}

.uff-intro__mark span,
.uff-intro__sub span {
  display: inline-block;
  clip-path: inset(0 100% 0 -0.12em);
}

.uff-intro__thread {
  display: block;
  width: 100%;
  height: auto;
  color: rgb(255 252 250 / 0.72);
  overflow: visible;
}

.uff-intro__line {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}

.uff-intro__hoop {
  stroke-dasharray: 33;
  stroke-dashoffset: 33;
}

body.uff-intro-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .uff-intro.is-playing:not(.is-done) {
    animation: uff-intro-veil 2.85s ease forwards;
  }

  .uff-intro.is-playing .uff-intro__mark span {
    animation: uff-intro-write 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 0.16s + 0.12s);
  }

  .uff-intro.is-playing .uff-intro__sub span {
    animation: uff-intro-write 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 0.09s + 1.18s);
  }

  .uff-intro.is-playing .uff-intro__line {
    animation: uff-intro-draw 0.62s ease forwards;
    animation-delay: 0.62s;
  }

  .uff-intro.is-playing .uff-intro__hoop {
    animation: uff-intro-draw 0.42s ease forwards;
    animation-delay: 1.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uff-intro__mark span,
  .uff-intro__sub span {
    clip-path: none;
  }

  .uff-intro__line,
  .uff-intro__hoop {
    stroke-dashoffset: 0;
  }

  .uff-intro.is-playing:not(.is-done) {
    animation: uff-intro-veil 0.45s ease 0.35s forwards;
  }
}

@keyframes uff-intro-write {
  to {
    clip-path: inset(0 0 0 -0.12em);
  }
}

@keyframes uff-intro-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes uff-intro-veil {
  0%,
  78% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}
