/* ---------- site-wide custom cursor ----------
   A small brand-purple square follows the pointer everywhere on desktop. It grows into a
   circle over anything clickable, and morphs into a filled pill ("View case study" /
   "Coming soon") over case-study cards. Touch/coarse pointers are left completely alone —
   see assets/motion.js, which only ever runs this under (hover:hover) and (pointer:fine). */
@media (hover:hover) and (pointer:fine){
  html.custom-cursor,html.custom-cursor *{cursor:none}
  html.custom-cursor input,html.custom-cursor textarea,html.custom-cursor select,html.custom-cursor [contenteditable]{cursor:text}
}

/* box is drawn at its full "hover" size (24px) and scaled DOWN to ~10px at rest — see
   DOT_BIG in assets/motion.js. Scaling a layer up past the size it was rasterized at is what
   causes a blurry/pixelated edge on hover; scaling a correctly-sized layer down never does. */
.cx-dot{position:fixed;top:0;left:0;z-index:10000;width:24px;height:24px;margin:-12px 0 0 -12px;
  background:#5700ff;border-radius:5px;pointer-events:none;will-change:transform;opacity:0;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  transition:opacity .2s ease,background-color .2s ease,border-radius .25s cubic-bezier(.34,1.56,.64,1)}
.cx-dot.is-on{opacity:1}
.cx-dot.is-big{border-radius:50%}
.cx-dot.is-down{background:#532de0}
html.cx-hide-dot .cx-dot{opacity:0}

/* cursor-follow tag: shown over case-study cards on hover */
.cursor-tag{position:fixed;top:0;left:0;z-index:10000;pointer-events:none;will-change:transform}
.cursor-tag-in{display:inline-flex;align-items:center;gap:8px;padding:11px 20px 11px 16px;border-radius:999px;
  background:#5700ff;color:#f8f8fb;font:500 13px/1 'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  white-space:nowrap;transform:translate(-50%,-50%) scale(.5);opacity:0;
  transition:opacity .2s ease,transform .3s cubic-bezier(.34,1.56,.64,1),background-color .2s ease}
.cursor-tag.is-on .cursor-tag-in{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cursor-tag-dot{flex:none;width:6px;height:6px;border-radius:99px;background:currentColor;opacity:.65}
.cursor-tag[data-state="soon"] .cursor-tag-in{background:#6d49f4}
.cursor-tag[data-state="image"] .cursor-tag-in{background:#121214}

@media (prefers-reduced-motion:reduce){
  .cx-dot,.cursor-tag-in{transition:none}
}
