html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

html {
  scrollbar-gutter: stable;
}

html.is-opening {
  overflow: hidden;
}

.curtain {
  display: none;
}

.js .curtain {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: var(--fg);
  z-index: 80;
}

.curtain-l {
  left: 0;
}

.curtain-r {
  right: 0;
}

.js [data-clip],
.js [data-hero-clip] {
  clip-path: inset(100% 0 0 0);
}

.js [data-reveal] .word {
  clip-path: inset(100% -6% -20% -6%);
}

.hero-title .char {
  display: inline-block;
}

.hero-title .word {
  overflow: hidden;
  padding: 0.08em 0.04em 0.14em;
  margin: -0.08em -0.04em -0.14em;
}

.hero-title .ht-glaze .word {
  padding: 0.08em 0.2em 0.32em;
  margin: -0.08em -0.2em -0.32em;
}

.js .hero-title .char {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .curtain {
    display: none !important;
  }

  .cta::after,
  .field::after {
    transition: none;
  }
}

@media (min-width: 900px) {
  .js .torte-track {
    width: max-content;
    overflow: visible;
    scroll-snap-type: none;
  }
}

.js.is-opening .hero-title .char {
  will-change: transform, opacity;
}
