/* ValTIC — intro del logo sobre el vídeo del hero.
   El vídeo de la intro trae el fondo quitado (negro puro) y se mezcla con
   `screen`: el negro desaparece y solo quedan el planeta, las chispas y el
   logo, que se suman como luz encima del vídeo de fondo de siempre. */

:root {
  --vt-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.vt-intro-video {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 1920px;          /* el JS la ajusta al tamaño de pantalla */
  height: 1080px;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 1;
  transition: opacity calc(.45s * var(--vt-slow, 1)) var(--vt-ease-out);
}
.vt-intro-video.is-out {
  opacity: 0;
}

.vt-intro-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 52%, rgba(4, 4, 10, .78) 0%, rgba(4, 4, 10, .5) 50%, rgba(4, 4, 10, 0) 100%);
  opacity: 1;
  transition: opacity calc(.8s * var(--vt-slow, 1)) var(--vt-ease-out);
}
.vt-intro-stage.is-out {
  opacity: 0;
}

/* Mientras dura la intro: el texto del hero, la pista de scroll y el logo de
   la barra esperan. Las clases `vt-intro-text` y `vt-intro-nav` las pone un script en el <head> para
   que no haya parpadeo. */
html.vt-intro-nav #navbar .nav-logo img {
  opacity: 0 !important;
  transition: none !important;
}
html.vt-intro-chat .asv-burbuja img {
  opacity: 0 !important;
}
html.vt-intro-text .vh-acts .vh-title,
html.vt-intro-text .vh-acts .vh-sub {
  opacity: 0;
  transform: translateY(18px);
}
html.vt-intro-text .vh-scroll-hint {
  opacity: 0;
}

.vh-acts .vh-title,
.vh-acts .vh-sub {
  transition: opacity calc(.7s * var(--vt-slow, 1)) var(--vt-ease-out), transform calc(.7s * var(--vt-slow, 1)) var(--vt-ease-out);
}
.vh-acts .vh-sub {
  transition-delay: .08s;
}
.vh-scroll-hint {
  transition: opacity .6s var(--vt-ease-out) .3s;
}

/* El logo nítido que releva al vídeo y viaja del centro del hero a la barra. */
.vt-intro-flyer {
  position: fixed;
  z-index: 1001;          /* por encima de la barra (#navbar = 1000) */
  margin: 0;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.vt-intro-flyer img {
  display: block;
  width: 100%;
  height: 100%;
}
/* Destello que recorre las letras: recortado con la propia forma del logo. */
.vt-intro-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: var(--vt-logo) center / 100% 100% no-repeat;
  mask: var(--vt-logo) center / 100% 100% no-repeat;
}
.vt-intro-sheen span {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-110%);
}

/* El planeta de Sphere camino de la burbuja del chat. */
.vt-intro-planet {
  position: fixed;
  z-index: 10000;         /* por encima de la burbuja del chat */
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.vt-intro-planet-sprite {
  position: absolute;
  max-width: none;
  height: auto;
}
.vt-intro-planet-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .vt-intro-video,
  .vt-intro-stage,
  .vt-intro-planet,
  .vt-intro-flyer {
    display: none !important;
  }
}
