{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "about-team-filter",
  "type": "registry:component",
  "title": "About Team Filter",
  "description": "A team grid with filter chips per team. Hovering or focusing a card lifts the avatar and slides up a bio panel with location, and cards stagger back in whenever the filter changes.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "about",
    "about",
    "team",
    "filter",
    "bio",
    "hover reveal",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/about-team-filter",
  "files": [
    {
      "path": "registry/hyperblur/about-team-filter.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/about-team-filter.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AboutTeamMember {\n  name: string;\n  role: string;\n  team: string;\n  bio: string;\n  location: string;\n  hue: number;\n}\n\nexport interface AboutTeamFilterProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  members?: AboutTeamMember[];\n  allLabel?: string;\n  defaultTeam?: string;\n  onTeamChange?: (team: string) => void;\n  accent?: string;\n}\n\nconst defaultMembers: AboutTeamMember[] = [\n  { name: \"Maya Okafor\", role: \"Co-founder, CEO\", team: \"Leadership\", bio: \"Ran payments infrastructure at Stripe for six years before starting Northwind in a Lagos co-working space.\", location: \"Lisbon\", hue: 262 },\n  { name: \"Jonas Lindqvist\", role: \"Co-founder, CTO\", team: \"Leadership\", bio: \"Wrote the first query engine on a train between Malmo and Berlin. Still reviews every schema change.\", location: \"Berlin\", hue: 200 },\n  { name: \"Priya Raman\", role: \"Staff Engineer\", team: \"Engineering\", bio: \"Owns the sync layer. Previously built offline-first tooling at Figma and loves a good flame graph.\", location: \"Toronto\", hue: 152 },\n  { name: \"Diego Alvarez\", role: \"Product Designer\", team: \"Design\", bio: \"Sketches every flow on paper first. Formerly at Linear, now obsessed with keyboard-first interfaces.\", location: \"Mexico City\", hue: 24 },\n  { name: \"Hana Ito\", role: \"Engineering Manager\", team: \"Engineering\", bio: \"Grew the platform team from three to fourteen people without a single all-hands that ran over time.\", location: \"Tokyo\", hue: 330 },\n  { name: \"Samuel Mensah\", role: \"Head of Growth\", team: \"Go to market\", bio: \"Took a developer tool from zero to forty thousand weekly users with docs, not ads.\", location: \"Accra\", hue: 44 },\n  { name: \"Elena Petrova\", role: \"Brand Designer\", team: \"Design\", bio: \"Drew the Northwind wordmark by hand. Collects Soviet-era type specimens and old transit maps.\", location: \"Amsterdam\", hue: 292 },\n  { name: \"Noah Fischer\", role: \"Solutions Engineer\", team: \"Go to market\", bio: \"Has migrated more than two hundred customers off spreadsheets and remembers every one of them.\", location: \"Zurich\", hue: 176 },\n];\n\nconst css = `\n@keyframes hb-yg1-in {\n  from { opacity: 0; transform: translateY(14px) scale(0.97); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-yg1-orbit {\n  to { transform: rotate(360deg); }\n}\n.hb-yg1 {\n  --hb-yg1-accent: #8b5cf6;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-yg1 *, .hb-yg1 *::before, .hb-yg1 *::after { box-sizing: border-box; }\n.hb-yg1-glow {\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background:\n    radial-gradient(40% 50% at 15% 0%, color-mix(in srgb, var(--hb-yg1-accent) 18%, transparent), transparent 70%),\n    radial-gradient(30% 40% at 95% 20%, rgba(255, 255, 255, 0.04), transparent 70%);\n}\n.hb-yg1-in {\n  position: relative;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 88px 24px 96px;\n}\n.hb-yg1-head {\n  display: grid;\n  gap: 20px;\n  align-items: end;\n}\n@container (min-width: 760px) {\n  .hb-yg1-head { grid-template-columns: 1.2fr 1fr; }\n}\n.hb-yg1-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  color: color-mix(in srgb, var(--hb-yg1-accent) 70%, #fff);\n  font-size: 12.5px;\n  font-weight: 600;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n}\n.hb-yg1-eyebrow::before {\n  content: \"\";\n  width: 18px;\n  height: 1px;\n  background: currentColor;\n}\n.hb-yg1-title {\n  margin: 14px 0 0;\n  font-size: clamp(32px, 5cqw, 52px);\n  font-weight: 650;\n  line-height: 1.04;\n  letter-spacing: -0.04em;\n  text-wrap: balance;\n}\n.hb-yg1-sub {\n  margin: 0;\n  color: #8f8f8f;\n  font-size: 16px;\n  line-height: 1.6;\n  text-wrap: pretty;\n}\n.hb-yg1-chips {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 8px;\n  margin-top: 36px;\n}\n.hb-yg1-chip {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 34px;\n  padding: 0 14px;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  border-radius: 999px;\n  background: #111;\n  color: #a1a1a1;\n  font: inherit;\n  font-size: 13.5px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;\n}\n.hb-yg1-chip:hover { color: #ededed; border-color: rgba(255, 255, 255, 0.16); }\n.hb-yg1-chip:focus-visible { outline: 2px solid var(--hb-yg1-accent); outline-offset: 2px; }\n.hb-yg1-chip[aria-pressed=\"true\"] {\n  border-color: color-mix(in srgb, var(--hb-yg1-accent) 60%, transparent);\n  background: color-mix(in srgb, var(--hb-yg1-accent) 16%, #111);\n  color: #fff;\n}\n.hb-yg1-count {\n  min-width: 20px;\n  height: 20px;\n  padding: 0 6px;\n  border-radius: 999px;\n  background: rgba(255, 255, 255, 0.06);\n  font-size: 11.5px;\n  line-height: 20px;\n  text-align: center;\n  font-variant-numeric: tabular-nums;\n}\n.hb-yg1-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));\n  gap: 14px;\n  margin: 24px 0 0;\n  padding: 0;\n  list-style: none;\n}\n.hb-yg1-card {\n  position: relative;\n  height: 270px;\n  overflow: hidden;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  border-radius: 18px;\n  background: #111;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);\n  outline: none;\n  animation: hb-yg1-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n  transition: border-color 0.3s ease, transform 0.3s ease;\n}\n.hb-yg1-card:hover, .hb-yg1-card:focus-visible {\n  border-color: color-mix(in srgb, var(--hb-yg1-accent) 45%, transparent);\n  transform: translateY(-3px);\n}\n.hb-yg1-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-yg1-accent) 35%, transparent); }\n.hb-yg1-art {\n  position: absolute;\n  inset: 0 0 76px;\n  display: grid;\n  place-items: center;\n  background:\n    radial-gradient(70% 70% at 50% 40%, hsl(var(--hb-yg1-h) 70% 55% / 0.28), transparent 70%),\n    linear-gradient(180deg, #151515, #111);\n}\n.hb-yg1-ring {\n  position: absolute;\n  width: 132px;\n  height: 132px;\n  border-radius: 50%;\n  border: 1px dashed hsl(var(--hb-yg1-h) 70% 70% / 0.3);\n  animation: hb-yg1-orbit 24s linear infinite;\n}\n.hb-yg1-avatar {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 96px;\n  height: 96px;\n  border-radius: 50%;\n  background: linear-gradient(140deg, hsl(var(--hb-yg1-h) 80% 66%), hsl(calc(var(--hb-yg1-h) + 40) 70% 38%));\n  box-shadow: 0 18px 40px -16px hsl(var(--hb-yg1-h) 80% 50% / 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);\n  color: rgba(255, 255, 255, 0.94);\n  font-size: 30px;\n  font-weight: 650;\n  letter-spacing: -0.03em;\n  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-yg1-card:hover .hb-yg1-avatar, .hb-yg1-card:focus-visible .hb-yg1-avatar { transform: translateY(-34px) scale(0.72); }\n.hb-yg1-meta {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  padding: 16px 18px 18px;\n}\n.hb-yg1-name {\n  margin: 0;\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.01em;\n}\n.hb-yg1-role {\n  margin: 3px 0 0;\n  color: #8f8f8f;\n  font-size: 13px;\n}\n.hb-yg1-bio {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  padding: 18px;\n  border-top: 1px solid rgba(255, 255, 255, 0.08);\n  background: linear-gradient(180deg, rgba(17, 17, 17, 0.88), #111 40%);\n  -webkit-backdrop-filter: blur(10px);\n  backdrop-filter: blur(10px);\n  transform: translateY(101%);\n  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-yg1-card:hover .hb-yg1-bio, .hb-yg1-card:focus-visible .hb-yg1-bio { transform: none; }\n.hb-yg1-bio p {\n  margin: 8px 0 0;\n  color: #c4c4c4;\n  font-size: 13px;\n  line-height: 1.55;\n}\n.hb-yg1-loc {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  margin-top: 12px;\n  color: color-mix(in srgb, var(--hb-yg1-accent) 60%, #fff);\n  font-size: 12px;\n  font-weight: 500;\n}\n.hb-yg1-empty {\n  grid-column: 1 / -1;\n  padding: 48px;\n  border: 1px dashed rgba(255, 255, 255, 0.1);\n  border-radius: 18px;\n  color: #8f8f8f;\n  text-align: center;\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-yg1-card, .hb-yg1-ring { animation: none; }\n  .hb-yg1-card, .hb-yg1-avatar, .hb-yg1-bio, .hb-yg1-chip { transition: none; }\n}\n`;\n\nfunction initials(name: string) {\n  return name.split(\" \").map((p) => p[0]).slice(0, 2).join(\"\");\n}\n\nexport function AboutTeamFilter({\n  eyebrow = \"The team\",\n  title = \"Twenty-three people, eleven time zones, one very long Slack thread\",\n  subtitle = \"We are a small, remote-first team of engineers, designers and operators. Hover a card to meet the person behind it.\",\n  members = defaultMembers,\n  allLabel = \"Everyone\",\n  defaultTeam,\n  onTeamChange,\n  accent = \"#8b5cf6\",\n  className = \"\",\n  style,\n  ...rest\n}: AboutTeamFilterProps) {\n  const teams = React.useMemo(() => [allLabel, ...Array.from(new Set(members.map((m) => m.team)))], [members, allLabel]);\n  const [team, setTeam] = React.useState(defaultTeam ?? allLabel);\n  const chipRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n  const visible = team === allLabel ? members : members.filter((m) => m.team === team);\n\n  const choose = (next: string) => {\n    setTeam(next);\n    onTeamChange?.(next);\n  };\n\n  const onChipKey = (e: React.KeyboardEvent, i: number) => {\n    if (e.key !== \"ArrowRight\" && e.key !== \"ArrowLeft\") return;\n    e.preventDefault();\n    const next = (i + (e.key === \"ArrowRight\" ? 1 : -1) + teams.length) % teams.length;\n    chipRefs.current[next]?.focus();\n    choose(teams[next]);\n  };\n\n  return (\n    <section className={`hb-yg1 ${className}`} style={{ \"--hb-yg1-accent\": accent, ...style } as React.CSSProperties} {...rest}>\n      <style href=\"hb-about-team-filter\" precedence=\"default\">{css}</style>\n      <div className=\"hb-yg1-glow\" aria-hidden=\"true\" />\n      <div className=\"hb-yg1-in\">\n        <div className=\"hb-yg1-head\">\n          <div>\n            <span className=\"hb-yg1-eyebrow\">{eyebrow}</span>\n            <h2 className=\"hb-yg1-title\">{title}</h2>\n          </div>\n          <p className=\"hb-yg1-sub\">{subtitle}</p>\n        </div>\n        <div className=\"hb-yg1-chips\" role=\"toolbar\" aria-label=\"Filter by team\">\n          {teams.map((t, i) => (\n            <button\n              key={t}\n              ref={(el) => { chipRefs.current[i] = el; }}\n              type=\"button\"\n              className=\"hb-yg1-chip\"\n              aria-pressed={team === t}\n              tabIndex={team === t ? 0 : -1}\n              onClick={() => choose(t)}\n              onKeyDown={(e) => onChipKey(e, i)}\n            >\n              {t}\n              <span className=\"hb-yg1-count\">{t === allLabel ? members.length : members.filter((m) => m.team === t).length}</span>\n            </button>\n          ))}\n        </div>\n        <ul className=\"hb-yg1-grid\" aria-live=\"polite\">\n          {visible.length === 0 && <li className=\"hb-yg1-empty\">Nobody here yet.</li>}\n          {visible.map((m, i) => (\n            <li\n              key={`${team}-${m.name}`}\n              className=\"hb-yg1-card\"\n              tabIndex={0}\n              aria-label={`${m.name}, ${m.role}`}\n              style={{ \"--hb-yg1-h\": m.hue, animationDelay: `${(i * 0.06).toFixed(2)}s` } as React.CSSProperties}\n            >\n              <div className=\"hb-yg1-art\" aria-hidden=\"true\">\n                <span className=\"hb-yg1-ring\" />\n                <span className=\"hb-yg1-avatar\">{initials(m.name)}</span>\n              </div>\n              <div className=\"hb-yg1-meta\">\n                <p className=\"hb-yg1-name\">{m.name}</p>\n                <p className=\"hb-yg1-role\">{m.role}</p>\n              </div>\n              <div className=\"hb-yg1-bio\">\n                <p className=\"hb-yg1-name\">{m.name}</p>\n                <p>{m.bio}</p>\n                <span className=\"hb-yg1-loc\">\n                  <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" aria-hidden=\"true\">\n                    <path d=\"M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21Z\" />\n                    <circle cx=\"12\" cy=\"9.5\" r=\"2.5\" />\n                  </svg>\n                  {m.location}\n                </span>\n              </div>\n            </li>\n          ))}\n        </ul>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}