/* COET's cursor (assets/cursor.js), on every page: a solid white square at rest. Over anything you can press, the
   square shrinks and an accent outline opens around it with space between. It sits in the page, so light mode's
   page-wide flip turns the square black and keeps the accent amber. */
html.has-cursor, html.has-cursor *:not(input, textarea, [contenteditable=""], [contenteditable="true"]) { cursor: none !important; }
/* The cursor trails the pointer softly (cursor.js eases it each frame) and snaps onto [data-magnet] buttons. */
.cursor { position: fixed; left: 0; top: 0; z-index: 2147483000; width: 0; height: 0; pointer-events: none; opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor.is-off { opacity: 0; }
.cursor::before, .cursor::after { content: ""; position: absolute; box-sizing: border-box;
  transition: left .25s cubic-bezier(.2, .7, .1, 1), top .25s cubic-bezier(.2, .7, .1, 1), width .25s cubic-bezier(.2, .7, .1, 1),
    height .25s cubic-bezier(.2, .7, .1, 1), opacity .2s, background-color .2s; }
/* outline: hidden at rest, sitting tight on the square so it can open outward */
.cursor::before { left: -6px; top: -6px; width: 12px; height: 12px; border: 1px solid var(--signal, #ffb900); opacity: 0; }
/* square */
.cursor::after { left: -6px; top: -6px; width: 12px; height: 12px; background: #fff; }
.cursor.is-primary::after { background: var(--signal, #ffb900); }   /* over a primary call to action */
/* Hover over anything pressable: the square shrinks, the accent outline opens with space around it */
.cursor.is-big::before { left: -18px; top: -18px; width: 36px; height: 36px; opacity: 1; }
.cursor.is-big::after { left: -3px; top: -3px; width: 6px; height: 6px; }
/* pressing tightens it a touch */
.cursor.is-down::after { left: -5px; top: -5px; width: 10px; height: 10px; }
.cursor.is-big.is-down::before { left: -14px; top: -14px; width: 28px; height: 28px; }
.cursor.is-big.is-down::after { left: -3px; top: -3px; width: 6px; height: 6px; }
/* Snapped onto a magnetic button: the outline wraps the whole button as a pill and the square tucks away */
.cursor::before { border-radius: 0; }
.cursor.is-snap::before { left: calc(var(--sw, 36px) / -2); top: calc(var(--sh, 36px) / -2); width: var(--sw, 36px); height: var(--sh, 36px);
  border-radius: 999px; opacity: 1; }
.cursor.is-snap::after { left: -2px; top: -2px; width: 4px; height: 4px; opacity: 0; }
/* Drag state: over the draggable image strip (or any [data-drag]) the outline grows into a filled circle that reads
   "Drag", and the square tucks away. Pressing squeezes it a little, as if holding on. */
.cursor__label { position: absolute; left: 0; top: 0; z-index: 1; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font: 500 13px/1 var(--apple, sans-serif); letter-spacing: -.01em; color: #000; white-space: nowrap;
  transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .1, 1); }
.cursor.is-grab::before { left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; opacity: 1;
  background: #fff; border-color: #fff; }
.cursor.is-grab::after { left: 0; top: 0; width: 0; height: 0; opacity: 0; }
.cursor.is-grab .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-grab.is-down::before { left: -32px; top: -32px; width: 64px; height: 64px; }
.cursor.is-grab.is-down .cursor__label { transform: translate(-50%, -50%) scale(.9); }

/* ── work index filters (assets/workfilter.js) ── */
.wi-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--s6); }
.wi-filter { display: inline-flex; align-items: center; gap: .5em; height: 32px; padding: 0 16px; border-radius: 50px;
  background: rgb(185 185 185 / .2); border: .1rem solid rgb(0 0 0 / 0); color: #fff; font: 400 16px/2 var(--apple, inherit);
  letter-spacing: -.01em; transition: background-color .25s var(--ml-ease, ease), color .25s var(--ml-ease, ease); }
.wi-filter:hover { background: rgb(185 185 185 / .3); }
.wi-filter[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #000; }
.wi-filter__n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.wi-filter:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
/* light mode inverts the page, so the pressed pill lands yellow with white text */
.wi-list li[hidden] { display: none; }
.wi-empty { padding: var(--s7) 0; color: var(--muted); }
