:root {
  --bh-reveal-duration: 900ms;
  --bh-reveal-stagger: 90ms;
}

[data-bh-reveal='pending'] {
  opacity: 0;
  will-change: opacity, transform;
}

[data-bh-reveal='in'] {
  animation: bh-rise 850ms var(--bh-ease) both;
  animation-delay: calc(var(--bh-i, 0) * var(--bh-reveal-stagger));
}

@keyframes bh-rise {
  0% { opacity: 0; transform: translate3d(0, 18px, 0); }
  55% { opacity: 1; }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

[data-bh-reveal-from='fade'][data-bh-reveal='in'] {
  animation-name: bh-fade;
  animation-duration: 800ms;
}

@keyframes bh-fade {
  0% { opacity: 0; }
  to { opacity: 1; }
}

[data-bh-pace='calm'][data-bh-reveal='in'] {
  animation-duration: 1400ms;
}

[data-bh-pace='brisk'][data-bh-reveal='in'] {
  animation-duration: 650ms;
}

[data-bh-reveal='done'] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.bh-hero__word[data-bh-reveal='pending'],
.bh-hero__word[data-bh-reveal='in'] {
  overflow: visible;
  opacity: 1;
  transform: none;
  animation: none;
}

.bh-hero__word[data-bh-reveal='pending']:where(:not([data-bh-reveal-from='fade'])) .bh-hero__wordinner {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.3em, 0);
}

.bh-hero__word[data-bh-reveal='in']:where(:not([data-bh-reveal-from='fade'])) .bh-hero__wordinner {
  display: inline-block;
  animation: bh-word-rise 900ms var(--bh-ease) both;
  animation-delay: calc(var(--bh-i, 0) * 90ms);
}

@keyframes bh-word-rise {
  from { opacity: 0; transform: translate3d(0, 0.3em, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@supports (animation-timeline: view()) {
  .bh-hero__img {
    animation: bh-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes bh-parallax {
    from { transform: translate3d(0, -4%, 0) scale(1.12); }
    to { transform: translate3d(0, 4%, 0) scale(1.12); }
  }
}

.bh-about__media[data-bh-reveal='pending']:where(:not([data-bh-reveal-from='fade'])),
.bh-about__media[data-bh-reveal='in']:where(:not([data-bh-reveal-from='fade'])) {
  opacity: 1;
  animation: none;
}

.bh-about__media[data-bh-reveal='pending']:where(:not([data-bh-reveal-from='fade'])) .bh-about__media-inner {
  clip-path: inset(100% 0 0 0);
}

.bh-about__media[data-bh-reveal='in']:where(:not([data-bh-reveal-from='fade'])) .bh-about__media-inner {
  clip-path: inset(0 0 0 0);
  transition: clip-path 950ms var(--bh-ease-out-expo);
}

.bh-about__media[data-bh-reveal='done'] .bh-about__media-inner {
  clip-path: none;
}

.bh-about__media[data-bh-reveal='pending']:where(:not([data-bh-reveal-from='fade'])) .bh-about__img {
  transform: scale3d(1.09, 1.09, 1);
}

.bh-about__media[data-bh-reveal='in']:where(:not([data-bh-reveal-from='fade'])) .bh-about__img {
  transform: scale3d(1, 1, 1);
  transition: transform 1300ms var(--bh-ease-out-expo);
}

@media print, (prefers-reduced-motion: reduce) {
  [data-bh-reveal='pending'],
  [data-bh-reveal='in'],
  [data-bh-reveal='done'],
  .bh-hero__word[data-bh-reveal] .bh-hero__wordinner {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
    will-change: auto;
  }

  .bh-about__media[data-bh-reveal] .bh-about__media-inner,
  .bh-about__media[data-bh-reveal] .bh-about__img {
    clip-path: none;
    transform: none;
    transition: none;
  }

  .bh-hero__img,
  .bh-hero__scroll {
    animation: none;
  }
}
