@font-face {
  font-family: Montserrat Wave;
  src: url("media/Montserrat-Wave.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

.weight-wave {
  font-family: Montserrat Wave, Montserrat, sans-serif;
  font-weight: 600;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.weight-wave.hero-type {
  font-size: clamp(1.8rem, 3.35vw, 3.55rem);
  line-height: 1.13;
  gap: 3px;
}
.wave-line { display: block; }
.hero:not(.intro-done) .hero-line .wave-line {
  animation: hero-lettering 430ms var(--ease-out) both;
}
.hero:not(.intro-done) .hero-line:last-child .wave-line { animation-delay: 55ms; }
.wave-word { white-space: nowrap; display: inline-block; }
.wave-cell { display: inline-grid; grid-template-areas: "glyph"; text-align: center; }
.wave-cell::before { content: attr(data-letter); font-weight: 820; visibility: hidden; grid-area: glyph; }
.wave-cell > span { grid-area: glyph; }

.read-along { position: relative; isolation: isolate; }
.marker-phrase {
  background: linear-gradient(177deg, transparent 47%, #9076d978 49%, #8466cc78 91%, transparent 94%) left bottom / 0% .48em no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 460ms cubic-bezier(.22,.75,.25,1);
}
.marker-phrase.marked { background-size: 100% .48em; }
@media (prefers-reduced-motion: reduce) {
  .marker-phrase { background-size: 100% .48em; transition: none; }
}
.read-along > span:not(.read-along-highlight) { white-space: nowrap; }
.read-along .read-along-past { color: var(--ink); }
.read-along-highlight {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1.3em;
  opacity: 0;
  z-index: -1;
  transform-origin: left center;
  pointer-events: none;
  border-radius: 3px;
  background: #3b3254;
}

.springy-input { position: relative; display: block; min-width: 0; }
.springy-input input { position: relative; width: 100%; }
.springy-input .springy-ring {
  position: absolute;
  inset: -2px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}
.springy-input:focus-within input { border-color: var(--accent); }
.springy-input input:focus-visible { outline-offset: 2px; }
.springy-input.email-invalid input, .springy-input.email-invalid .springy-ring { border-color: #fc979f; }

.cookie-body { padding-right: 62px; }
.cookie-bite-icon {
  width: 48px;
  height: 48px;
  position: absolute;
  right: 18px;
  top: 14px;
  pointer-events: none;
}
.cookie-bite-icon g[mask] { transform-origin: 50% 50%; }
.cookie-banner.cookie-finishing { overflow: hidden; pointer-events: none; }
.cookie-banner .cookie-saved { display: none; }
.cookie-banner.cookie-finishing .cookie-saved {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding-right: 64px;
  font-weight: 600;
}
@media (min-width: 591px) and (max-width: 920px) {
  .weight-wave.hero-type { font-size: clamp(2.8rem, 5.3vw, 3.55rem); }
}
@media (max-width: 590px) {
  .weight-wave.hero-type { font-size: clamp(1.45rem, 7.8vw, 2.8rem); }
  .cookie-body { padding-right: 42px; }
  .cookie-bite-icon { right: 12px; width: 34px; height: 34px; }
}
