/* Selected work — track filter (segmented pill with a sliding lens) + arrow fix */

.work-filter {
  position: relative; display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 4px; border: 1px solid var(--line); border-radius: 15px;
  background: #ffffff8c; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
[data-theme="dark"] .work-filter { background: #ffffff0d; }
.work-filter button {
  position: relative; z-index: 1; min-height: 38px; padding: 0 16px;
  border: 0; border-radius: 11px; background: transparent; color: var(--secondary);
  font: 550 13px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: color .2s;
}
.work-filter button:hover { color: var(--ink); }
.work-filter button[aria-pressed="true"] { color: var(--ink); }
.work-filter button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 11px; }
.work-filter__lens {
  position: absolute; top: 4px; left: 0; height: 38px; width: 0; border-radius: 11px;
  background: #fff; box-shadow: 0 2px 8px #1e25351c, inset 0 1px 0 #fff;
  transition: transform .45s cubic-bezier(.3, 1.35, .45, 1), width .45s cubic-bezier(.3, 1.35, .45, 1);
  pointer-events: none;
}
[data-theme="dark"] .work-filter__lens { background: #3a3e48; box-shadow: 0 2px 8px #0005; }

/* A filtered-in card fades up into place */
.bento.is-in { animation: bento-in .5s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes bento-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* Crisp arrow, perfectly centred in its circle */
.circle-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 700px) {
  .work-filter { margin-top: 20px; }
  .work-filter button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento.is-in { animation: none; }
  .work-filter__lens { transition: none; }
}
