/* INTRO ANIMATIE — alleen zichtbaar bij allereerste bezoek */

.sophea-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.sophea-intro__logo {
  width: 150px;
  height: auto;
  opacity: 0;
  animation:
    sopheaIntroIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    sopheaIntroZweven 2.6s ease-in-out infinite;
  animation-delay: 0.1s, 0.85s;
}

@keyframes sopheaIntroIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sopheaIntroZweven {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Fade-out state, toegevoegd via JS */
.sophea-intro.is-weg {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sophea-intro__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 500px) {
  .sophea-intro__logo {
    width: 85px;
  }
}
