*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #111110;
  color: #f4f1ea;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.shutter-scroll__section {
  color: #f4f1ea;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.shutter-scroll__section.is--white {
  color: #1a1916;
  background: #f4f1ea;
}

.shutter-scroll__section.is--cream {
  color: #1a1916;
  background: #d9cfc0;
}

.shutter-scroll__bg {
  z-index: 0;
  background-color: #111110;
  position: absolute;
  inset: 0;
}

.shutter-scroll__bg-img {
  opacity: 0.85;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.shutter-scroll__content {
  z-index: 1;
  position: relative;
  padding: 1.5rem;
}

.shutter-scroll__h {
  text-align: center;
  letter-spacing: -0.04em;
  max-width: 10em;
  margin: 0 auto;
  font-size: clamp(2.5rem, 8vw, 6em);
  font-weight: 400;
  line-height: 0.95;
}

.shutter-scroll-transition {
  z-index: 10;
  pointer-events: none;
  color: #f4f1ea;
  position: absolute;
  inset: auto 0% 0%;
}

.shutter-scroll-transition.is--top {
  inset: 0% 0% auto;
}

.shutter-scroll-transition.is--cream {
  color: #d9cfc0;
}

[data-shutter-scroll-panel] {
  display: flex;
  flex-direction: column;
  width: 100%;
}

[data-shutter-scroll-row] {
  height: 3em;
  width: 100%;
  background-color: currentColor;
  backface-visibility: hidden;
  will-change: transform;
}

[data-shutter-scroll-transition][data-shutter-height="1.5em"]
  [data-shutter-scroll-row] {
  height: 1.5em;
}

@media (max-width: 767px) {
  .shutter-scroll__h {
    max-width: 12em;
  }

  [data-shutter-scroll-row] {
    height: 2.25em;
  }

  [data-shutter-scroll-transition][data-shutter-height="1.5em"]
    [data-shutter-scroll-row] {
    height: 1.25em;
  }
}
