/* Adapted from the supplied BYQ Scroll Text Reveal 01, in the EG identity. */
.eg-text-reveal {
  --reveal-nav-height: 92px;
  position: relative;
  margin: 0 10px 100px;
  color: var(--ink);
  background: #e8e6df;
  border-radius: 24px;
  isolation: isolate;
}
.eg-text-reveal__pin { position: relative; }
.eg-text-reveal__stage {
  position: relative;
  width: 100%;
  min-height: 640px;
  padding: 78px 6vw 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  overflow: hidden;
  border-radius: 24px;
  background: #e8e6df;
  text-align: center;
}
.eg-text-reveal__stage::before {
  content: "";
  position: absolute;
  width: min(70vw, 950px);
  aspect-ratio: 1;
  border: 1px solid #5ba3d32e;
  border-radius: 50%;
  right: -35%;
  top: -55%;
  pointer-events: none;
}
.eg-text-reveal__eyebrow { display: flex; align-items: center; gap: 15px; }
.eg-text-reveal__eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--blue-dark); }
.eg-text-reveal__headline {
  position: relative;
  max-width: 1100px;
  margin: 0;
  font: 300 clamp(44px, 5.6vw, 88px)/1.08 Montserrat, Arial, sans-serif;
  letter-spacing: -.055em;
}
.eg-text-reveal__sentence { display: block; max-width: 18ch; margin-inline: auto; text-wrap: balance; }
.eg-text-reveal__sentence + .eg-text-reveal__sentence { margin-top: .16em; color: var(--blue-dark); font-weight: 650; }
.eg-text-reveal__word { position: relative; display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.eg-text-reveal__word::before { content: attr(data-word); position: absolute; inset: 0; color: #38383826; }
.eg-text-reveal__inner { position: relative; display: inline-block; }
.eg-text-reveal__note { max-width: 420px; font-size: 12px; line-height: 1.8; color: #626865; }
.eg-text-reveal__footer { position: absolute; bottom: 30px; left: 38px; right: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eg-text-reveal__footer > span { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.eg-text-reveal__skip { font-size: 10px; display: inline-flex; gap: 15px; align-items: center; min-height: 44px; }
.eg-text-reveal__skip span { font-size: 19px; }
.eg-text-reveal__progress { position: absolute; bottom: 0; left: 38px; right: 38px; height: 2px; background: #38383814; }
.eg-text-reveal__progress span { display: block; height: 100%; background: var(--blue-dark); transform-origin: left; }
.eg-text-reveal.is-animated .eg-text-reveal__pin { height: 220svh; }
.eg-text-reveal.is-animated .eg-text-reveal__stage { height: calc(100svh - var(--reveal-nav-height)); min-height: 0; }
.eg-text-reveal.is-animated .eg-text-reveal__inner { will-change: transform; }
@media (max-width: 991px) { .eg-text-reveal { --reveal-nav-height: 84px; } }
@media (max-width: 700px) {
  .eg-text-reveal { --reveal-nav-height: 76px; margin: 0 7px 65px; border-radius: 17px; }
  .eg-text-reveal__stage { min-height: 600px; border-radius: 17px; padding: 56px 24px 106px; gap: 30px; }
  .eg-text-reveal__headline { font-size: clamp(34px, 9.5vw, 56px); line-height: 1.1; }
  .eg-text-reveal__sentence { max-width: 14ch; }
  .eg-text-reveal__eyebrow { font-size: 8px; }
  .eg-text-reveal__note { max-width: 270px; font-size: 11px; }
  .eg-text-reveal__footer { left: 24px; right: 24px; bottom: 22px; flex-direction: column; gap: 0; }
  .eg-text-reveal__footer > span { font-size: 7px; }
  .eg-text-reveal__progress { left: 24px; right: 24px; }
  .eg-text-reveal.is-animated .eg-text-reveal__pin { height: 165svh; }
}
@media (max-height: 599px), (prefers-reduced-motion: reduce) {
  .eg-text-reveal__pin { height: auto !important; }
  .eg-text-reveal__stage { height: auto !important; min-height: 0; padding-block: 65px 115px; }
}
