:root {
  --brand-intro-ink: #f7f8ff;
  --brand-intro-accent: rgb(235, 69, 66);
}

.brand-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050715;
  color: var(--brand-intro-ink);
  cursor: pointer;
  opacity: 1;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms step-end;
}

.brand-intro__glow {
  position: absolute;
  width: min(72vw, 940px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 96, 183, 0.25), rgba(17, 24, 60, 0.12) 35%, transparent 70%);
  transform: scale(0.5);
  opacity: 0;
}

.brand-intro__logo {
  position: relative;
  z-index: 1;
  width: min(68vw, 560px);
  overflow: visible;
}

.brand-intro__word text {
  fill: currentColor;
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif;
  font-size: 106px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-intro__word {
  opacity: 0;
}

.brand-intro__word--frame {
  transform: translateX(-72px);
}

.brand-intro__word--cut {
  transform: translateX(72px);
}

.brand-intro__cut {
  stroke: var(--brand-intro-accent);
  stroke-linecap: round;
  stroke-width: 7;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  filter: drop-shadow(0 0 14px rgba(235, 69, 66, 0.6));
}

.brand-intro__hint {
  position: absolute;
  bottom: 9vh;
  margin: 0;
  color: rgba(247, 248, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  text-transform: uppercase;
}

.brand-intro--playing .brand-intro__glow {
  animation: brand-intro-glow 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand-intro--playing .brand-intro__word {
  animation: brand-intro-word 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-intro--playing .brand-intro__word--frame {
  animation-delay: 150ms;
}

.brand-intro--playing .brand-intro__word--cut {
  animation-delay: 300ms;
}

.brand-intro--playing .brand-intro__cut {
  animation: brand-intro-cut 610ms cubic-bezier(0.16, 1, 0.3, 1) 610ms forwards;
}

.brand-intro--playing .brand-intro__hint {
  animation: brand-intro-hint 320ms ease 1.05s forwards;
}

.brand-intro--leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes brand-intro-glow {
  0% { opacity: 0; transform: scale(0.5); }
  52% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.55; transform: scale(1.18); }
}

@keyframes brand-intro-word {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes brand-intro-cut {
  to { stroke-dashoffset: 0; }
}

@keyframes brand-intro-hint {
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .brand-intro__logo { width: min(82vw, 440px); }
  .brand-intro__hint { bottom: 7vh; font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; }
}
