/* Owner-requested reference treatment, scoped to the annotated hero title row.
   White scratch texture and 253ms cadence follow Bryan James's documented
   typography technique; the local vector grain is original VivaHaven artwork. */
.scroll-story .chapter-title-row h1,
.scroll-story .chapter-title-row .chapter-label b {
  color: #fff;
  -webkit-text-stroke: .65px #173b37;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .scroll-story .chapter-title-row h1,
  .scroll-story .chapter-title-row .chapter-label b {
    background-image: url('../artwork/chapter-scratch.svg');
    background-repeat: repeat;
    background-size: 80px 60px;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chapter-type-scratch .253s linear infinite;
    filter: drop-shadow(0 1px 0 rgba(23, 59, 55, .55));
  }
}

@keyframes chapter-type-scratch {
  0%, 25%, 100% { background-position: 0 0; }
  26%, 50% { background-position: 20px -20px; }
  51%, 75% { background-position: 40px -40px; }
  76%, 99% { background-position: 60px -60px; }
}

html[data-hero=off] .scroll-story .chapter-title-row h1,
html[data-hero=off] .scroll-story .chapter-title-row .chapter-label b {
  animation-play-state: paused;
}

html[data-motion=off] .scroll-story .chapter-title-row h1,
html[data-motion=off] .scroll-story .chapter-title-row .chapter-label b {
  animation: none;
  background-image: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .scroll-story .chapter-title-row h1,
  .scroll-story .chapter-title-row .chapter-label b {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
}

@media (forced-colors: active) {
  .scroll-story .chapter-title-row h1,
  .scroll-story .chapter-title-row .chapter-label b {
    -webkit-text-stroke: 0;
  }
}
