/* Licensed to account 52c7da1aea3f, 2026-10-19. Moving parts. */
/* Scroll distortion, the mechanics.
   Moving parts. The script adds the canvas itself, nothing to write here.
   Readable source: components/scroll-distortion/scroll-distortion.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 in 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-scroll-distortion]:not(img) {
  position: relative;
}

/* The canvas in the box: every picture of the box is drawn on it.
   The script gives it its size, the window and a margin, and slides it
   down the box as the page scrolls. It never takes the pointer, so links
   and pictures underneath keep their clicks and their menu. */
[data-scroll-distortion-layer] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  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-scroll-distortion-live] {
  opacity: 0;
}

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

/* Clinix Studio: the look of the preview (the scroll-distortion-* classes
   of the paper mill's colour notes, set in Instrument Sans and Geist Mono)
   is left out of this copy on purpose. The plates of the cases keep their
   own look in src/components/WorkPlates.astro, which also lays the liquid
   hover canvas of each plate over this one. The mechanics above are the
   file as shipped. */
