/* Licensed to account 52c7da1aea3f, 2026-10-19. Moving parts. */
/* Footer reveal, the mechanics.
   Moving parts. The footer holds under the page, and the page lifts off it.
   Readable source: components/footer-reveal/footer-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 effect needs to work at all: the page over the footer, the footer
   held under it, the shadow of the page and the mask of the wordmark. They
   reach their elements by attributes, never by a class. */

/* The page above the footer: over it, in the stacking order.
   The page needs a background of its own, or the footer shows through it.
   The script marks the blocks before the footer when nothing carries the
   attribute. */
[data-footer-reveal-page] {
  position: relative;
  z-index: 1;
}

/* The footer, held under the page: that is the reveal.
   Sticky against the window, at both ends. A footer shorter than the window
   holds by its foot; a footer taller than the window cannot satisfy both, the
   top wins, and it holds by its head: its first screen is uncovered, then
   the rest scrolls up as any page does. Nothing is measured for it. */
[data-footer-reveal] {
  position: sticky;
  top: 0;
  bottom: 0;
  z-index: 0;
}

/* Nothing of the footer stretches the page past its foot.
   A letter waiting under its line reaches below the footer when the
   wordmark sits at its foot, and so does a name set on a tight line; either
   would add its height to the scroll and leave a blank band under the
   footer. The footer cuts what passes its top and its foot. */
[data-footer-reveal] {
  overflow-y: clip;
}

/* Let go of the hold: reduced motion, or nowhere to hold.
   The footer simply follows the page. `still` is reduced motion, `flat` a
   footer whose ancestor cuts its overflow. The media query covers a page
   whose script has not run. */
[data-footer-reveal-state="still"],
[data-footer-reveal-state="flat"] {
  position: relative;
  top: auto;
  bottom: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-footer-reveal] {
    position: relative;
    top: auto;
    bottom: auto;
  }
}

/* The edge of the page: a line of no height, added by the script.
   It sits just before the footer, moves with the page, and carries the
   shadow. It is also what the script watches and measures. */
[data-footer-reveal-edge] {
  position: relative;
  z-index: 1;
  height: 0;
  pointer-events: none;
}

/* The shadow the page drops on the footer, at its edge.
   Its opacity and its length follow the lift; the script writes both. */
[data-footer-reveal-shade] {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(56px, 16vh, 180px);
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.62) 12%,
    rgba(0, 0, 0, 0.32) 30%,
    rgba(0, 0, 0, 0.12) 55%,
    rgba(0, 0, 0, 0.03) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transform-origin: 50% 0;
}

/* The shade the footer lies in while the page covers it.
   A veil over the whole footer, added by the script as its last child, out
   of the flow and never in the way of a click. It is carried past the two
   sides like the footer's own colour, so a footer under its size shows no
   seam; the footer cuts it above and below. The script shows it and writes
   its opacity. */
[data-footer-reveal-veil] {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  background-color: #000000;
  box-shadow: 0 0 0 100vmax #000000;
  opacity: 0;
  pointer-events: none;
}

/* The mask of the wordmark: one box per word, added by the script.
   Letters come up from under its line. The cut is drawn a little outside
   the box, for what a letter draws outside its own, the tail of a g, the
   overhang of a tight letter spacing. clip-path and not overflow: it moves
   nothing, and the word keeps its place on its line. */
[data-footer-reveal-word] {
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(-0.14em -0.5em -0.2em -0.5em);
}

/* One box per letter, added by the script: what the motion moves.
   A letter waits under its line, past its own height. Once the script marks
   the wordmark as in, each letter comes up on its own time, later by its
   rank; the script writes the two durations and the rank. Covered again, it
   goes back with no motion, out of sight. */
[data-footer-reveal-letter] {
  display: inline-block;
}

[data-footer-reveal-split] [data-footer-reveal-letter] {
  transform: translate3d(0, calc(100% + 0.4em), 0);
}

[data-footer-reveal-split="in"] [data-footer-reveal-letter] {
  transform: none;
  transition-property: transform;
  transition-duration: var(--footer-reveal-rise, 1.3s);
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--footer-reveal-i, 0) * var(--footer-reveal-stagger, 0.07s));
}

/* Moving parts get a layer of their own while the footer is near. */
[data-footer-reveal-state="live"] [data-footer-reveal-letter],
[data-footer-reveal-state="live"] [data-footer-reveal-columns] {
  will-change: transform;
}

/* ---------- states and what a class cannot hold ---------- */

/* Links take the ink of the footer.
   Two attributes, so the rule wins over the colour the class names for the
   Designer, and the ink setting reaches every link. */
[data-footer-reveal] [data-footer-reveal-link] {
  color: inherit;
  transition: opacity 0.2s ease;
}

/* Link states: pointer and keyboard. */
[data-footer-reveal] [data-footer-reveal-link]:hover,
[data-footer-reveal] [data-footer-reveal-link]:focus-visible {
  opacity: 1;
}

/* Keyboard ring, in the ink of the footer. */
:where([data-footer-reveal]) :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

/* Clinix Studio: the look of the preview (the footer-reveal-* classes, set in
   Instrument Sans and Geist Mono on #15100c) is left out of this copy on
   purpose. The same classes are styled on the site's own design tokens in
   src/components/Footer.astro. The mechanics above are the file as shipped. */
