/* ---------- cursor: a small shape that becomes a magnifying glass (cursor.js), on every page of the site ----------
   Only with a mouse; the class on <html> is set by the script, so without it
   the system cursor stays. The layer inverts what is under it, which only
   works when the blend sits on the layer itself. Everything is drawn around
   the pointer: .zc-el has no size and sits exactly on it */
/* a fully transparent 1×1 picture as the cursor, with "none" as the fallback:
   some browsers (Safari, Chrome on a Mac) let the system arrow flash through
   "none" while the mouse moves; a transparent image cursor stays hidden */
/* over a playing video Chrome and Safari on a Mac show their own arrow, even
   with the cursor hidden. Videos without controls let the mouse through to the
   block around them (a case card link, or the figure that opens the preview),
   and a transparent sheet lies over them, so the video is never the top layer
   under the pointer (a playing video on top gets its own system layer on a Mac) */
.zc video:not([controls]){ pointer-events: none; }
.zc .case-cover, .zc [data-lb-video]{ position: relative; }
.zc .case-cover::after, .zc [data-lb-video]::after{
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.001);
}
.zc, .zc *{
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR4nGNgAAIAAAUAAXpeqz8AAAAASUVORK5CYII=") 0 0, none !important;
}
/* the layer has no size of its own (the star is drawn around a point), so the
   inverting blend covers only the star, not the whole screen every frame */
.zc-layer{ position: fixed; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 400; mix-blend-mode: difference; }
.zc-layer.zc-plain{ mix-blend-mode: normal; }
/* case pages zoom the whole page by 1.25 on desktop; cursor.js gives the
   layer the opposite zoom, because mouse coordinates are real px */
.zc-el, .zc-trail{ position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; opacity: 0; transition: opacity .18s ease; }
.zc-in .zc-el, .zc-in .zc-trail{ opacity: 1; }
.zc-shape{
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transition: scale .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, rotate .4s cubic-bezier(.34,1.56,.64,1);
}
.zc-shape > *{ position: absolute; display: block; }
.zc-link .zc-shape{ scale: 1.5; }
.zc-on .zc-shape{ scale: 0; opacity: 0; }
/* the magnifying glass: its ring is centred on the pointer */
.zc-loupe{
  position: absolute; left: -16px; top: -16px; width: 40px; height: 40px; overflow: visible;
  transform-origin: 40% 40%;
  opacity: 0; scale: .2; rotate: -35deg;
  transition: opacity .2s ease, scale .5s cubic-bezier(.34,1.56,.64,1), rotate .55s cubic-bezier(.34,1.56,.64,1);
}
.zc-on .zc-loupe{ opacity: 1; scale: 1; rotate: 0deg; }
/* shapes */
.zc-dot{ left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.zc-dot-s{ left: -3px; top: -3px; width: 6px; height: 6px; }
.zc-s-dot.zc-link .zc-shape{ scale: 2.2; }
.zc-arrow{ left: -2.5px; top: -2.5px; width: 22px; height: 22px; }
.zc-s-figma .zc-arrow{ filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.zc-tag{
  left: 16px; top: 19px; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #6e7df0, #baa3ff); color: #fff;
  font: 600 12px/16px 'Inter', sans-serif; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(38,25,92,.35);
}
.zc-s-figma .zc-loupe{ filter: drop-shadow(0 0 1.5px rgba(38,25,92,.9)) drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.zc-s-figma .zc-loupe circle, .zc-s-figma .zc-loupe path{ stroke: #6e7df0; }
.zc-star{ left: -10px; top: -10px; width: 20px; height: 20px; }
@keyframes zc-spin{ to{ rotate: 360deg; } }
/* the star stands still; over things you can click it either spins (spin)
   or grows and gets tiny stars twinkling around it (the other LINK effects) */
.zc-l-spin.zc-link .zc-star{ animation: zc-spin 1.6s linear infinite; }
.zc-link:not(.zc-l-spin) .zc-shape{ scale: 1.8; }
.zc-sparks{ position: absolute; left: 0; top: 0; }
.zc-spark{
  position: absolute; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  pointer-events: none; opacity: 0; scale: 0;
}
.zc-spark svg{ display: block; width: 100%; height: 100%; }
.zc-on .zc-sparks{ display: none; }
@keyframes zc-tw{ 0%, 100%{ scale: 0; opacity: 0; } 35%{ scale: 1; opacity: 1; } 70%{ scale: .1; opacity: 0; } }
.zc-tw{ animation: zc-tw 1.5s ease-in-out infinite; animation-delay: var(--d); }
/* pop: no turning, a slow soft rise and fade */
@keyframes zc-pop{
  0%{ scale: .3; opacity: 0; }
  45%{ scale: 1; opacity: 1; }
  100%{ scale: .55; opacity: 0; }
}
.zc-pop{ animation: zc-pop 2.2s cubic-bezier(.45,0,.55,1) forwards; }
.zc-spark.zc-gone{ opacity: 0 !important; transition: opacity .35s ease; }
@keyframes zc-fly{ 0%{ translate: 0 0; scale: .3; opacity: 1; } 60%{ opacity: 1; } 100%{ translate: var(--dx) var(--dy); scale: 1; opacity: 0; } }
.zc-fly{ animation: zc-fly .7s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes zc-fall{ 0%{ scale: 0; opacity: 0; } 25%{ scale: 1; opacity: 1; } 100%{ translate: 0 16px; scale: .2; opacity: 0; } }
.zc-fall{ animation: zc-fall .8s ease-out forwards; }
.zc-glow{
  position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,.12) 45%, transparent 70%);
  opacity: 0; scale: .5; transition: opacity .3s ease, scale .4s cubic-bezier(.34,1.56,.64,1);
}
.zc-l-halo.zc-link .zc-glow{ opacity: 1; scale: 1; }
.zc-pen{ left: -2px; top: -2px; width: 24px; height: 24px; }
.zc-cross{ left: -12px; top: -12px; width: 24px; height: 24px; }
.zc-s-cross.zc-link .zc-shape{ rotate: 45deg; scale: 1.2; }
.zc-drop{ left: 0; top: 0; width: 18px; height: 18px; border-radius: 0 50% 50% 50%; background: #fff; }
.zc-trail{
  margin: -16px 0 0 -16px; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #fff; box-sizing: border-box;
  transition: opacity .18s ease, scale .3s cubic-bezier(.34,1.56,.64,1);
}
.zc-link .zc-trail{ scale: 1.5; }
.zc-on .zc-trail{ scale: .4; opacity: 0; }
@media (prefers-reduced-motion: reduce){
  .zc-el, .zc-trail, .zc-shape, .zc-loupe{ transition: none; }
  .zc-link .zc-star{ animation: none; }
  .zc-spark{ display: none; }
}
