/* Licensed to account 52c7da1aea3f, 2026-10-19. Moving parts. */
/* Line reveal, the mechanics.
   Moving parts. The script wraps the words itself, nothing to write here.
   Readable source: components/line-reveal/line-reveal.css */

/* File layout: required mechanics, then the optional look.
   The rules before the line "look, left out of the Webflow Embed" are what
   the script needs to work at all: the windows the words rise through, the
   hidden pose and the move. */

/* Before the script: the heading keeps its room, unseen.
   Hidden with visibility, never display, so nothing below it moves when
   it shows. Once the script has run it marks the page, so a heading it
   gave back with destroy() stays in view. If the script never runs, the
   heading shows by itself after four seconds; without JavaScript at all,
   the noscript line of snippet.html shows it at once. */
html:not([data-line-reveal-loaded]) [data-line-reveal]:not([data-line-reveal-state]) {
  visibility: hidden;
  animation-name: line-reveal-failsafe;
  animation-duration: 0s;
  animation-delay: 4s;
  animation-fill-mode: forwards;
}

@keyframes line-reveal-failsafe {
  to {
    visibility: visible;
  }
}

/* Wrapping: only at the spaces.
   Once split, the heading does not wrap by itself; the spaces the script
   wraps do. Without this a line could break between a word and the comma
   that follows its closing tag. A heading that keeps its spaces as typed
   (pre, pre-wrap) is not a case this covers. */
[data-line-reveal][data-line-reveal-state] {
  white-space: nowrap;
}

.line-reveal-space {
  white-space: normal;
}

/* The window of a word: that is the mask.
   It sits on the baseline like the word it replaces and takes exactly its
   room: the padding lets accents, descenders and italic overhangs show,
   and the negative margin of the same size gives that room back, so the
   lines break where they broke before the script. */
.line-reveal-mask {
  display: inline-block;
  padding: 0.16em 0.14em;
  margin: -0.16em -0.14em;
  clip-path: inset(0px);
  text-decoration: inherit;
}

/* The word that moves inside the window.
   A link's underline does not reach inside an inline block by itself: it
   is carried down on purpose. */
.line-reveal-word {
  display: inline-block;
  text-decoration: inherit;
}

/* Waiting: every word below its window, at once, no motion.
   The drop is the word's height plus both paddings of the window, so not
   a pixel of it shows. */
[data-line-reveal-state="ready"] .line-reveal-word {
  transform: translateY(calc(100% + 0.32em));
}

/* Playing: back to rest, line after line.
   Each window carries the index of its line; the delay is that index
   times the stagger. */
[data-line-reveal-state="playing"] .line-reveal-word {
  transition-property: transform;
  transition-duration: var(--line-reveal-duration, 1.1s);
  transition-timing-function: var(--line-reveal-ease, cubic-bezier(0.16, 1, 0.3, 1));
  transition-delay: calc(var(--line-reveal-delay, 0s) + var(--line-reveal-line, 0) * var(--line-reveal-stagger, 0.08s));
}

/* The spaces wait too, unseen: a space inside a link carries a piece of
   its underline, which would otherwise sit there before the words. Each
   one shows once its line is three tenths in. */
[data-line-reveal-state="ready"] .line-reveal-space {
  visibility: hidden;
}

[data-line-reveal-state="playing"] .line-reveal-space {
  transition-property: visibility;
  transition-duration: 0s;
  transition-delay: calc(var(--line-reveal-delay, 0s) + var(--line-reveal-line, 0) * var(--line-reveal-stagger, 0.08s) + var(--line-reveal-duration, 1.1s) * 0.3);
}

/* At rest: the windows open, so nothing is ever clipped once read. */
[data-line-reveal-state="done"] .line-reveal-mask,
[data-line-reveal-state="static"] .line-reveal-mask {
  clip-path: none;
}

/* Reduced motion, even if it is switched on after the page opened. */
@media (prefers-reduced-motion: reduce) {
  [data-line-reveal][data-line-reveal-state] .line-reveal-word {
    transform: none;
    transition-property: none;
  }
}

/* ---------- look, left out of the Webflow Embed ---------- */

/* Clinix Studio: the look of the preview (the line-reveal-* classes of the
   paper company letter, set in Instrument Sans and Geist Mono) is left out
   of this copy on purpose. The headings that carry data-line-reveal are the
   h1 of each page header, which keep their own classes on the site's
   tokens. The mechanics above are the file as shipped. */
