/* Licensed to account 52c7da1aea3f, 2026-10-19. Moving parts. */
/* Liquid hover, the mechanics.
   Moving parts. The script adds the canvas itself, nothing to write here.
   Readable source: components/liquid-hover/liquid-hover.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 box as positioning context, the
   canvas over it, out of the flow, and the page's own picture made clear
   while the canvas draws it. */

/* Box: positioning context for the canvas.
   The script sets it too, in case this file is not loaded. */
[data-liquid-hover]:not(img) {
  position: relative;
}

/* The canvas over the box: every picture of the box is drawn on it.
   It never takes the pointer, so links and pictures underneath keep their
   clicks and their menu. */
[data-liquid-hover-layer] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* A picture the canvas draws: the page's own copy, clear but still there.
   It keeps its box, its alt text and its clicks. The script only marks a
   picture once the canvas shows it; without WebGL, under reduced motion or
   when a picture cannot be read, nothing is marked and the picture stays. */
[data-liquid-hover-live] {
  opacity: 0;
}

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

/* Clinix Studio: the look of the preview (the liquid-hover-* classes of the
   sample wall, set in Instrument Sans and Geist Mono on #f4ece0) is left out
   of this copy on purpose. The plates of the cases keep their own look in
   src/components/WorkPlates.astro; the fringe colour comes from the site's
   accent token there. The mechanics above are the file as shipped. */
