.wordmark,
.primary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.scroll-cue,
.chapter-index {
  color: #9c9992;
}

.hero-image {
  z-index: -3;
}

.hero-animation {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: 0;
  transition: opacity 320ms ease;
}

.hero-animation.is-ready {
  opacity: 1;
}

.hero-motion-control {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 4vw, 72px);
  bottom: 30px;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(237, 234, 228, 0.5);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  color: #edeae4;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-motion-control[hidden],
.hero-animation[hidden] {
  display: none;
}

.hero-motion-control__icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.hero-motion-control__icon::before,
.hero-motion-control__icon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d5b06c;
}

.hero-motion-control__icon::before {
  left: 2px;
}

.hero-motion-control__icon::after {
  right: 2px;
}

.hero-motion-control[data-paused="true"]
  .hero-motion-control__icon::before {
  inset: 0;
  width: auto;
  clip-path: polygon(12% 0, 100% 50%, 12% 100%);
}

.hero-motion-control[data-paused="true"]
  .hero-motion-control__icon::after {
  display: none;
}

.hero-motion-control:hover,
.hero-motion-control:focus-visible {
  border-color: #d5b06c;
  color: #d5b06c;
}

@media (width <= 720px) {
  .hero-animation {
    object-position: 63% center;
  }

  .hero-motion-control {
    top: 82px;
    right: 18px;
    bottom: auto;
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero-motion-control > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animation {
    transition: none;
  }
}
