/* ── RBL intro — black → logo fades in → shine → fade out → site ── */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

.intro.is-done,
html.intro-skip .intro {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

.intro__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(280px, 62vw);
  overflow: visible;
  will-change: opacity;
}

.intro__logo {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.intro__tagline {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #186f9b;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.intro__shine {
  position: absolute;
  inset: -35% -55%;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.75) 49%,
    rgba(39, 227, 255, 0.55) 52%,
    rgba(255, 255, 255, 0) 60%,
    transparent 65%
  );
  transform: translateX(-130%) skewX(-12deg);
  pointer-events: none;
  opacity: 0;
}

/* 1) Slow center fade-in */
html:not(.intro-skip) .intro:not(.is-done) .intro__brand {
  animation: intro-appear 1.8s ease-out 0.2s both;
}

/* 2) Shine only after logo is fully visible */
html:not(.intro-skip) .intro:not(.is-done) .intro__shine {
  animation: intro-shine 1s ease-in-out 2.2s both;
}

/* 3) Splash fades out after shine */
html:not(.intro-skip) .intro:not(.is-done) {
  animation: intro-fade-out 1s ease 3.4s forwards;
}

/* 4) Website slowly fades in */
html:not(.intro-skip) body.intro-pending .site-header,
html:not(.intro-skip) body.intro-pending main,
html:not(.intro-skip) body.intro-pending .site-footer {
  opacity: 0;
  animation: intro-site-in 1.4s ease 3.5s forwards;
}

html.intro-skip body.intro-pending .site-header,
html.intro-skip body.intro-pending main,
html.intro-skip body.intro-pending .site-footer,
body.intro-revealing .site-header,
body.intro-revealing main,
body.intro-revealing .site-footer {
  opacity: 1 !important;
  animation: none !important;
}

body.intro-pending {
  overflow: hidden;
  background: #000;
}

@keyframes intro-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes intro-shine {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-12deg);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) skewX(-12deg);
  }
}

@keyframes intro-fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes intro-site-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.intro-skip) .intro {
    display: none !important;
  }

  html:not(.intro-skip) body.intro-pending .site-header,
  html:not(.intro-skip) body.intro-pending main,
  html:not(.intro-skip) body.intro-pending .site-footer {
    opacity: 1 !important;
    animation: none !important;
  }
}
