/* La intro tiene su propia capa; al salir no deja transforms en el recorrido. */
.experience-intro {
  --intro-mint: #7ecbb5;
  --intro-deep: #286649;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg, #f3f7f4);
  color: var(--text-2, #44604f);
}

.intro-aura {
  position: absolute;
  width: min(900px, 150vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, #d2ecdc 0%, #e5f2e8 30%, #f3f7f400 67%);
  pointer-events: none;
}

.intro-center {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-top: -24px;
}

.intro-stage {
  position: relative;
  width: clamp(240px, 35vw, 360px);
  height: clamp(240px, 35vw, 360px);
  perspective: 900px;
}

.intro-symbol {
  position: absolute;
  inset: 13%;
  width: 74%;
  height: 74%;
  overflow: visible;
  transform: rotateX(8deg) rotateY(-18deg) rotateZ(-4deg);
  filter: drop-shadow(4px 10px 6px #2e7d551a);
  transition: opacity 180ms ease;
}

.intro-fill-mask {
  transform: scaleY(var(--intro-progress, 0));
  transform-origin: 50% 100%;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.intro-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.experience-intro[data-renderer="webgl"] .intro-canvas {
  opacity: 1;
}

.experience-intro[data-renderer="webgl"] .intro-symbol {
  opacity: 0;
}

.intro-shadow {
  position: absolute;
  width: 56%;
  height: 8%;
  left: 22%;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #376c4e30, #376c4e00 70%);
  filter: blur(8px);
}

.intro-caption {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.intro-caption p {
  position: relative;
  margin: 0;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.015em;
}

.intro-dots {
  position: absolute;
  display: inline-flex;
  gap: 3px;
  bottom: 9px;
  margin-left: 5px;
}

.intro-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: intro-dot 1.2s ease-in-out infinite;
}

.intro-dots i:nth-child(2) {
  animation-delay: 160ms;
}

.intro-dots i:nth-child(3) {
  animation-delay: 320ms;
}

.intro-track {
  width: 112px;
  height: 2px;
  overflow: hidden;
  background: #28664914;
  border-radius: 2px;
}

.intro-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--intro-deep);
  transform: scaleX(var(--intro-progress, 0));
  transform-origin: left center;
}

.intro-pending #view,
.intro-pending .stepbar {
  opacity: 0;
}

@keyframes intro-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

@media (max-height: 520px) {
  .intro-center {
    gap: 12px;
    margin-top: -12px;
  }
  .intro-stage {
    width: 210px;
    height: 210px;
  }
  .intro-caption {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-symbol {
    transform: none;
  }
  .intro-dots i {
    animation: none;
  }
  .intro-canvas,
  .intro-symbol {
    transition: none;
  }
}

@media print {
  .experience-intro {
    display: none;
  }
  .intro-pending #view,
  .intro-pending .stepbar {
    opacity: 1;
  }
}
