/* Progressive enhancement only: no CSS hides page content. */
/* Early paint cover has a script deadline; the document stays usable without JS. */
html.home-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #fcfcfc;
  pointer-events: none;
}
.home-preloader { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.home-preloader__background { position: absolute; inset: 0; background: #fcfcfc; }
.home-preloader__logo { position: absolute; }
.home-preloader__logo svg { width: 100%; height: 100%; }
html.home-loading:has(.home-preloader)::before { display: none; }

.lsh-site.has-page-motion .site-header__brand .responsive-art { display: block; position: relative; }
.lsh-site.has-page-motion .home-logo-placeholder { visibility: hidden !important; }
.lsh-site.has-page-motion .home-header-logo {
  position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: center;
}
@media (min-width: 64rem) {
  .lsh-site.has-page-motion .home-header-logo { transform: rotate(-6.87deg); }
}
.lsh-site.has-page-motion .page-motion-line { display: block; position: relative; padding-bottom: .08em; margin-bottom: -.08em; }
.lsh-site.has-page-motion [class*="page-motion-line-mask"] { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.lsh-site.has-page-motion .fill-roll-btn { isolation: isolate; overflow: hidden; }
.lsh-site.has-page-motion .frb-fill {
  position: absolute; z-index: -1; left: -15%; top: -55%; width: 130%; height: 155%;
  border-radius: 50% 50% 0 0;
  background: var(--color-pink); pointer-events: none;
}
.lsh-site.has-page-motion .button--add .frb-fill { background: #d93e07; }
.lsh-site.has-page-motion .category .frb-fill { background: rgb(255 255 255 / .3); }
.lsh-site.has-page-motion .frb-labels { position: relative; display: block; }
.lsh-site.has-page-motion :is(.frb-text-1,.frb-text-2) {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lsh-site.has-page-motion .frb-text-2 { position: absolute; inset: 0; pointer-events: none; }
@media print {
  .frb-text-2, .frb-fill { display: none !important; }
  .frb-text-1 { transform: none !important; opacity: 1 !important; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.has-page-motion) { scroll-behavior: smooth; }
  .lsh-site.has-page-motion .fill-roll-btn {
    transition: scale .22s ease;
  }
  .lsh-site.has-page-motion .fill-roll-btn:active { scale: .985; }
}
@media (prefers-reduced-motion: reduce), print {
  html.home-loading::before, .home-preloader { display: none !important; }
  html:has(.has-page-motion) { scroll-behavior: auto; }
}
@media print {
  .lsh-site.has-page-motion [data-page-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ScrollSmoother handles desktop interpolation; nested map results remain native. */
#page-scroll-wrapper { width: 100%; }
html:has(#page-scroll-wrapper) { scroll-behavior: auto; }
@media print {
  .has-page-motion { height: auto !important; }
  #page-scroll-wrapper { position: static !important; overflow: visible !important; height: auto !important; }
  #page-scroll-content { transform: none !important; }
}
