/* Scroll integration only: preserve the portfolio's original visual styling. */
/* The original body already hides horizontal overflow. Contain it at the root
   too, so long section headings cannot widen a phone's layout viewport and
   move the fixed navigation outside the screen. This does not create a new
   scroll container or change the content layout. */
html {
  overflow-x: clip;
}
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
/* Keep native anchor navigation clear of the existing fixed navigation. */
main > section[id],
#main-content {
  scroll-margin-top: 96px;
}
@media (max-width: 900px) {
  main > section[id],
  #main-content {
    scroll-margin-top: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
