/**
 * AnimateBox.dev — Clarity Stroke
 * https://animatebox.dev
 *
 * Soft fogged plate that clears along a pointer stroke.
 */

.ab-clarity-stroke {
  --ab-cs-font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --ab-cs-bg: #0b0b0c;
  --ab-cs-fg: #f3f1ec;
  --ab-cs-cursor: crosshair;

  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  overflow: hidden;
  background: var(--ab-cs-bg);
  color: var(--ab-cs-fg);
  font-family: var(--ab-cs-font);
  cursor: var(--ab-cs-cursor);
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ab-clarity-stroke__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  filter: var(--ab-cs-fog);
}

.ab-clarity-stroke__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ab-clarity-stroke.is-ready .ab-clarity-stroke__canvas {
  opacity: 1;
}

.ab-clarity-stroke.is-ready .ab-clarity-stroke__picture {
  visibility: hidden;
}

.ab-clarity-stroke.is-plain .ab-clarity-stroke__canvas {
  display: none;
}

.ab-clarity-stroke.is-plain .ab-clarity-stroke__picture {
  visibility: visible;
  filter: none;
}

.ab-clarity-stroke__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ab-clarity-stroke:not([data-ab-force-motion="true"]) .ab-clarity-stroke__canvas {
    display: none !important;
  }

  .ab-clarity-stroke:not([data-ab-force-motion="true"]) .ab-clarity-stroke__picture {
    visibility: visible;
    filter: none;
  }
}
