.hero .media {
  position: relative;
  overflow: hidden;
}

.hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .media .portrait-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  -webkit-mask-image: url("assets/ink-sprite.png");
  -webkit-mask-size: 2500% 100%;
  -webkit-mask-position: 0;
  -webkit-mask-repeat: no-repeat;

  opacity: 0;
}

.hero .media.reveal .portrait-image {
  opacity: 1;
  animation: ink-reveal 1.75s steps(24) forwards;
}

@keyframes ink-reveal {
  from {
    -webkit-mask-position: 0 0;
  }
  to {
    -webkit-mask-position: 100% 0;
  }
}
/* --- Neue Scroll Animationen --- */

/* Die Animation selbst */
@keyframes fadeInUpBlur {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Basis-Klasse für Elemente, die animiert werden sollen */
.animate-entry {
  opacity: 0; /* Anfangs unsichtbar */
  /* Ensures the element stays in the 0% state before animation 
     and the 100% state after animation */
  animation-fill-mode: both;
}

/* Diese Klasse wird per JS hinzugefügt, sobald das Element sichtbar ist */
.animate-entry.in-view {
  animation-name: fadeInUpBlur;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(
    0.25,
    0.46,
    0.45,
    0.94
  ); /* Smooth ease-out */
}

/* Staggering (Verzögerungen) für Kind-Elemente */
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}
.delay-6 {
  animation-delay: 0.6s;
}
