a {
  color: inherit;
  text-decoration: none;
}

.hero-intro-track {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #000;
  color: #fff;
  margin: -56px 0 0 0;
}
.hero {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.protein-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.protein-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.protein-fallback {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  will-change: transform;
}
.protein-fallback img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.intro-ensemble-copy {
  --ensemble-half-width: calc(min(3.6vw, 5.7vh) * 4.42);
  --ensemble-copy-gap: clamp(12px, 2vw, 32px);
  position: absolute;
  inset: 0;
  z-index: 3;
  color: #fff;
  font-size: clamp(18px, 2.5vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.is-ensemble .intro-ensemble-copy {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.intro-ensemble-copy span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}
.intro-ensemble-copy-left {
  right: calc(50% + var(--ensemble-half-width) + var(--ensemble-copy-gap));
}
.intro-ensemble-copy-right {
  left: calc(50% + var(--ensemble-half-width) + var(--ensemble-copy-gap));
}
.hero-content {
  position: absolute;
  top: 49%;
  left: 20px;
  width: calc(100% - 40px);
  text-align: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(calc(-50% + 28px));
  pointer-events: none;
  will-change: opacity, transform;
}
.is-final .hero-content {
  pointer-events: auto;
}
.hero h1 {
  font-size: clamp(28px, 3.7vw, 65px);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
  line-height: 1.25;
  color: white;
  font-family: "IBM Plex Sans", "Douyin Sans";
}
.hero-content p {
  font-size: clamp(12px, 1.1vw, 16px);
  color: #e1e1e1;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}
.actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 22px;
  font-size: 16px;
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s;
}

.button .icon {
  transition: all 0.3s;
}

.button.primary {
  background: #03cb94;
  color: #fff;
  font-weight: 650;
}

.button.primary:hover {
  background: #01ab7c;
}

.button.primary:hover .icon {
  transform: translateX(8px) scale(1.2);
}

.button.light {
  background: rgba(255, 255, 255, 0.6);
  color: #000;
}

.button.light:hover {
  background: rgba(255, 255, 255, 1);
}

.intro-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
  pointer-events: none;
}
.intro-scroll-hint i {
  display: block;
  width: 12px;
  height: 12px;
  border-left: 1px solid #00c99b;
  border-top: 1px solid #00c99b;
  transform: rotate(45deg);
  animation: intro-hint-drift 1.8s ease-in-out infinite;
}
.intro-replay {
  position: absolute;
  bottom: 27px;
  right: 30px;
  z-index: 5;
  border: 0;
  background: transparent;
  color: #828a87;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 8px 0;
  opacity: 0;
  transition: color 0.2s;
}
.intro-replay:hover {
  color: white;
  background: transparent;
}
.intro-replay:focus-visible {
  outline: 1px solid #00c99b;
  outline-offset: 5px;
}
.intro-replay:disabled {
  pointer-events: none;
}
@keyframes intro-hint-drift {
  0%,
  100% {
    translate: 0 3px;
    opacity: 0.4;
  }
  50% {
    translate: 0 -3px;
    opacity: 1;
  }
}

@media (max-width: 650px) {
  .hero-intro-track {
    margin: -20px 0 0 0;
  }

  .intro-ensemble-copy {
    --ensemble-half-height: calc(min(6.7vw, 5.5vh) * 4);
    --ensemble-copy-gap: 20px;
    font-size: 32px;
  }
  .intro-ensemble-copy span {
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    letter-spacing: 0.12em;
  }
  .intro-ensemble-copy .intro-ensemble-copy-left {
    bottom: calc(50% + var(--ensemble-half-height) + var(--ensemble-copy-gap));
  }
  .intro-ensemble-copy .intro-ensemble-copy-right {
    top: calc(50% + var(--ensemble-half-height) + var(--ensemble-copy-gap));
  }
  h1 {
    font-size: 25px;
  }
  .hero-content p {
    font-size: 12px;
  }
  .button {
    min-width: 160px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .intro-scroll-hint {
    bottom: 24px;
  }
  .intro-replay {
    right: 18px;
    bottom: 20px;
  }
}
/* @media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .intro-scroll-hint i {
    animation: none;
  }
} */
