/* Smooth chapter flow without wheel/touch input being held by mandatory snap. */
html {
  scroll-snap-type: none;
  overscroll-behavior-y: auto;
}

main > section,
footer {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* Avoid repaint-heavy effects while the fixed header travels over the page. */
.nav.scrolled {
  background: rgba(16,16,16,.97);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.scroll-progress {
  transition: none;
  will-change: width;
}

.project-media {
  contain: paint;
}

.project-media img {
  object-position: center !important;
}

.reveal-on-scroll {
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  will-change: auto;
}

@media (max-width: 800px), (pointer: coarse) {
  html { scroll-snap-type: none; }
  .hero:before { display: none; }
}
