.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.bg-image-fade {
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.bg-image-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--fade-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.bg-image-fade.bg-loaded::before {
  opacity: 1;
}

.bg-image-fade > * {
  position: relative;
  z-index: 1;
}