/*!
 * pace.text-reveal — companion styles for the port of Magic UI `text-reveal`.
 * MIT License, Copyright (c) Magic UI; full notice in fx.js.
 */

/*
 * Sticky, never a ScrollTrigger pin: the track's height sets the scroll length and the stage
 * holds one small viewport. Sticky stops working if any ancestor has overflow hidden or auto;
 * use overflow-x: clip for horizontal bleed.
 */
.fx-reveal {
  position: relative;
  height: var(--fx-track, 200svh);
}
.fx-reveal__stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  height: 100svh;
}

@media print {
  .fx-reveal { height: auto !important; }
  .fx-reveal__stage { position: static; height: auto; }
  .fx-reveal__word { opacity: 1 !important; }
}
