/* Licensed to account 52c7da1aea3f, 2026-10-20. Moving parts. */
/* Depth tilt, the mechanics.
   Moving parts. The script adds the sheen itself and writes the tilt, nothing to write here.
   Readable source: components/depth-tilt/depth-tilt.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 surface as positioning context and
   the sheen over it, out of the flow. What only reads as a look sits in
   :where(), which carries no specificity, so a single class from the page
   wins over it without !important. */

/* Surface: positioning context for the sheen.
   The script sets it too, in case this file is not loaded. */
[data-depth-tilt-surface] {
  position: relative;
}

/* Sheen: the box that clips the light to the surface and its corners.
   It never takes the pointer, so a link under it keeps working. */
.depth-tilt-sheen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

/* The disc of light, moved and faded by the script. */
.depth-tilt-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* Colour of the sheen: white, in the look of the preview.
   Read by the script when no setting names one. */
:where([data-depth-tilt]) {
  --depth-tilt-sheen-color: #ffffff;
}

/* Keyboard: the ring on the card that has the focus, never on a click. */
:where([data-depth-tilt]:focus-visible) {
  outline: 1px solid #15100c;
  outline-offset: clamp(3px, 0.4vw, 6px);
}

:where([data-depth-tilt]:focus:not(:focus-visible)) {
  outline: none;
}

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

/* Clinix Studio: the look of the preview (the depth-tilt-* classes of the
   three paper cards between two strips of labels, set in Instrument Sans
   and Geist Mono) is left out of this copy on purpose. The cards of
   "Andere diensten" on the service pages (src/components/ServiceDeck.astro)
   carry their own look on the site's tokens: the picture of the service
   sunk inside the hairline frame, the name as the nearest layer. The
   mechanics above are the file as shipped. */
