.scroll-section1 {
  position: relative;
  z-index: 1;
  height: 320vh;
  height: 320svh;
}
.scroll-section1 .text-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.essence-motion {
  position: relative;
  width: 100%;
  height: 100%;
  color: #f4f4f0;
  font-family: inherit;
  letter-spacing: -.055em;
}

.essence-a11y-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.essence-source, .essence-word { display: none; }
.essence-final {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
  font-size: clamp(16px, 5vw, 78px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.5;
  white-space: nowrap;
}
.essence-final-line { height: 1.5em; }
.essence-final-key { display: inline-block; color: #fff; font-weight: 900; }
.essence-complement { color: #999; }

.is-animated .essence-source {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 1.5vw, 30px);
  padding: 0 20px;
  font-size: var(--essence-base);
}
.essence-source-line {
  text-align: center;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.5;
  white-space: nowrap;
}
.essence-prefix, .essence-suffix {
  display: inline-block;
  color: #b8b8bb;
}
.essence-prefix strong { color: #f4f4f0; font-weight: 700; }
.essence-slot {
  display: inline-block;
  visibility: hidden;
  font-weight: 900;
}
.is-animated .essence-word {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  font-size: var(--essence-grid);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.055em;
  line-height: 1.5;
  white-space: nowrap;
  transform-origin: 0 0;
}
.is-animated .essence-final {
  transform: none;
  font-size: var(--essence-final-size);
}
.is-animated .essence-final-key { visibility: hidden; }
.is-animated .essence-complement {
  display: inline-block;
  opacity: 0;
}
.is-motion-active .essence-word { will-change: transform; }
.is-motion-active .essence-prefix,
.is-motion-active .essence-suffix,
.is-motion-active .essence-complement { will-change: transform, opacity; }
.scroll-section1:not(.is-animated) .essence-complement {
  opacity: 1 !important;
  transform: none !important;
}
.essence-mobile .essence-prefix {
  display: block;
  white-space: normal;
  word-break: keep-all;
  text-wrap: balance;
}
.essence-mobile .essence-source { gap: 24px; }

@media (max-width: 600px) {
  .scroll-section1 { height: 340vh; height: 340svh; }
  .essence-final { font-size: clamp(16px, 5vw, 30px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-section1 { height: 100vh; height: 100svh; }
}
