.prototype-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.prototype-filter {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: 600 13px/1.2 "Manrope", sans-serif;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.prototype-filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.prototype-filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.prototype-filter:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.project-card[hidden] {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .prototype-filters {
    margin-bottom: 18px;
  }

  .prototype-filter {
    min-height: 44px;
  }
}

/* A single liquid surface moves behind three ordinary, crisp buttons. */
.prototype-filters {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  height: 40px;
  padding: 3px;
  gap: 2px;
  flex-wrap: nowrap;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.prototype-filter {
  position: relative;
  z-index: 1;
  min-width: 68px;
  min-height: 34px;
  padding: 8px 17px;
  border: 0;
  background: transparent;
  line-height: 18px;
  transition: color 180ms ease;
}
.prototype-filter:hover { color: var(--ink); }
.prototype-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.prototype-filters[data-indicator-ready] .prototype-filter[aria-pressed="true"] { background: transparent; }
.filter-liquid-surface { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.filter-gooey { width: 100%; height: 100%; }
.filter-indicator { border-radius: 999px; transition: transform 280ms cubic-bezier(.22,.8,.24,1), width 280ms ease; }
.filter-indicator-solid { background: var(--ink); }
.prototype-filter:focus-visible { outline-offset: 1px; }
@media (max-width: 640px) {
  .prototype-filters { height: 44px; }
  .prototype-filter { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .filter-indicator { transition: none; }
}
