/* Licensed to account 52c7da1aea3f, 2026-10-19. Moving parts. */
/* Clip reveal, the mechanics.
   Moving parts. The script writes the clip, the scale and the rule itself; two rules are all it asks of a stylesheet.
   Readable source: components/clip-reveal/clip-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 around the script: a frame that is not seen before the
   script has closed it, and a frame that keeps its picture inside its
   corners once the clip is gone. */

/* Before the script: the frame 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 frame it gave
   back with destroy() stays in view. If the script never runs, the frame
   shows by itself after four seconds; without JavaScript at all, the
   noscript line of snippet.html shows it at once. */
html:not([data-clip-reveal-loaded]) [data-clip-reveal]:not([data-clip-reveal-state]) {
  visibility: hidden;
  animation-name: clip-reveal-failsafe;
  animation-duration: 0s;
  animation-delay: 4s;
  animation-fill-mode: forwards;
}

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

/* At rest: the frame clips its picture to its own corners.
   While it opens, the clip-path carries the radius. Once open the clip is
   taken off, and this is what keeps a rounded frame rounded. In :where(),
   so a class of the page wins over it. */
:where([data-clip-reveal]) {
  overflow: hidden;
}

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

/* Clinix Studio: the look of the preview (the clip-reveal-* classes of the
   sample book, set in Instrument Sans and Geist Mono on #f4ece0) is left out
   of this copy on purpose. The frames that open on this site keep their own
   look: the plates of the cases in src/components/WorkPlates.astro and the
   portraits in src/components/TeamGrid.astro; the colour of the rule comes
   from the site's accent token in BaseLayout.astro. The mechanics above are
   the file as shipped. */
