{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "profile-header-card",
  "type": "registry:component",
  "title": "Profile Header Card",
  "description": "A social profile header with a drifting gradient cover, overlapping avatar, follow and message actions, stats that count up and tabs with a sliding underline.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "profile",
    "profile",
    "header",
    "cover",
    "follow",
    "tabs",
    "stats"
  ],
  "docs": "https://hyperblur.dev/effects/profile-header-card",
  "files": [
    {
      "path": "registry/hyperblur/profile-header-card.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/profile-header-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface ProfileHeaderCardStat {\n  label: string;\n  value: number;\n}\n\nexport interface ProfileHeaderCardTab {\n  id: string;\n  label: string;\n  count?: number;\n}\n\nexport interface ProfileHeaderCardPost {\n  title: string;\n  meta: string;\n  hue: number;\n}\n\nexport interface ProfileHeaderCardProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  name?: string;\n  handle?: string;\n  verified?: boolean;\n  bio?: string;\n  location?: string;\n  website?: { label: string; href: string };\n  joined?: string;\n  stats?: ProfileHeaderCardStat[];\n  tabs?: ProfileHeaderCardTab[];\n  panels?: Record<string, ProfileHeaderCardPost[]>;\n  tab?: string;\n  defaultTab?: string;\n  onTabChange?: (id: string) => void;\n  following?: boolean;\n  defaultFollowing?: boolean;\n  onFollowChange?: (following: boolean) => void;\n  onMessage?: () => void;\n  accent?: string;\n}\n\nconst defaultStats: ProfileHeaderCardStat[] = [\n  { label: \"Followers\", value: 48210 },\n  { label: \"Following\", value: 312 },\n  { label: \"Appreciations\", value: 1294000 },\n];\n\nconst defaultTabs: ProfileHeaderCardTab[] = [\n  { id: \"posts\", label: \"Posts\", count: 128 },\n  { id: \"work\", label: \"Work\", count: 24 },\n  { id: \"likes\", label: \"Likes\" },\n];\n\nconst defaultPanels: Record<string, ProfileHeaderCardPost[]> = {\n  posts: [\n    { title: \"Why our settings page has no save button\", meta: \"2 days ago · 312 likes\", hue: 218 },\n    { title: \"A type scale that survives dark mode\", meta: \"Last week · 1.4K likes\", hue: 262 },\n    { title: \"Notes from shipping Ledger 2.0\", meta: \"Oct 12 · 856 likes\", hue: 190 },\n  ],\n  work: [\n    { title: \"Ledger, a calm finance app\", meta: \"Case study · 2026\", hue: 152 },\n    { title: \"Northwind design system\", meta: \"Lead designer · 2024\", hue: 226 },\n    { title: \"Field, offline maps for hikers\", meta: \"Side project · 2023\", hue: 32 },\n  ],\n  likes: [\n    { title: \"The quiet power of empty states\", meta: \"by Theo Lind\", hue: 300 },\n    { title: \"Designing for 300ms\", meta: \"by Ana Sousa\", hue: 12 },\n    { title: \"Color tokens at scale\", meta: \"by Kenji Mori\", hue: 200 },\n  ],\n};\n\nconst css = `\n.hb-kg5 {\n  --hb-kg5-accent: #2f7bff;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kg5 *, .hb-kg5 *::before, .hb-kg5 *::after { box-sizing: border-box; }\n.hb-kg5-inner { max-width: 1120px; margin: 0 auto; padding: 48px 16px 64px; }\n.hb-kg5-card {\n  position: relative;\n  overflow: hidden;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 24px;\n  background: #111;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 30px 80px -40px rgba(0, 0, 0, .8);\n}\n.hb-kg5-cover {\n  position: relative;\n  height: clamp(130px, 22cqi, 220px);\n  overflow: hidden;\n  background:\n    radial-gradient(40% 80% at 18% 30%, var(--hb-kg5-accent), transparent 70%),\n    radial-gradient(35% 70% at 78% 18%, #a855f7, transparent 70%),\n    radial-gradient(45% 90% at 58% 110%, #14b8a6, transparent 70%),\n    #0d1222;\n  background-size: 140% 140%;\n  animation: hb-kg5-drift 18s ease-in-out infinite alternate;\n}\n.hb-kg5-cover::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background:\n    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 32px 32px,\n    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 32px 32px;\n  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);\n  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);\n}\n.hb-kg5-cover::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(180deg, transparent 50%, rgba(17, 17, 17, .65));\n}\n.hb-kg5-body { padding: 0 20px 4px; }\n.hb-kg5-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }\n.hb-kg5-avatar {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: clamp(84px, 13cqi, 116px);\n  aspect-ratio: 1;\n  margin-top: calc(clamp(84px, 13cqi, 116px) / -2);\n  border: 4px solid #111;\n  border-radius: 50%;\n  background: linear-gradient(135deg, #ffd29a, #ff7a59 50%, #c2417a);\n  color: #1b0f12;\n  font-size: clamp(28px, 4.4cqi, 40px);\n  font-weight: 700;\n  letter-spacing: -.02em;\n  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);\n  z-index: 1;\n}\n.hb-kg5-online {\n  position: absolute;\n  right: 6%;\n  bottom: 6%;\n  width: 18%;\n  aspect-ratio: 1;\n  border: 3px solid #111;\n  border-radius: 50%;\n  background: #22c55e;\n}\n.hb-kg5-actions { display: flex; gap: 8px; padding-top: 14px; }\n.hb-kg5-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 7px;\n  height: 40px;\n  padding: 0 18px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .03);\n  color: #ededed;\n  font: inherit;\n  font-size: 14px;\n  font-weight: 600;\n  white-space: nowrap;\n  cursor: pointer;\n  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;\n}\n.hb-kg5-btn svg { width: 16px; height: 16px; flex: none; }\n.hb-kg5-btn:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .07); }\n.hb-kg5-btn:active { transform: scale(.97); }\n.hb-kg5 button:focus-visible, .hb-kg5 a:focus-visible { outline: 2px solid var(--hb-kg5-accent); outline-offset: 2px; }\n.hb-kg5-icon { width: 40px; padding: 0; }\n.hb-kg5-follow[aria-pressed=\"false\"] {\n  border-color: transparent;\n  background: var(--hb-kg5-accent);\n  color: #fff;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -10px var(--hb-kg5-accent);\n}\n.hb-kg5-follow[aria-pressed=\"false\"]:hover { background: color-mix(in srgb, var(--hb-kg5-accent) 88%, #fff); }\n.hb-kg5-follow[aria-pressed=\"true\"] { min-width: 120px; }\n.hb-kg5-main { display: inline-flex; align-items: center; gap: 7px; }\n.hb-kg5-follow .hb-kg5-alt { display: none; }\n.hb-kg5-follow[aria-pressed=\"true\"]:hover { border-color: rgba(248, 113, 113, .4); color: #fca5a5; background: rgba(248, 113, 113, .08); }\n.hb-kg5-follow[aria-pressed=\"true\"]:hover .hb-kg5-main { display: none; }\n.hb-kg5-follow[aria-pressed=\"true\"]:hover .hb-kg5-alt { display: inline; }\n.hb-kg5-grid { display: grid; gap: 20px; margin-top: 16px; }\n.hb-kg5-name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: clamp(22px, 3.2cqi, 30px); font-weight: 680; letter-spacing: -.025em; }\n.hb-kg5-name svg { width: 22px; height: 22px; flex: none; color: var(--hb-kg5-accent); }\n.hb-kg5-handle { margin: 2px 0 0; color: #8f8f8f; font-size: 15px; }\n.hb-kg5-bio { margin: 14px 0 0; max-width: 580px; color: #cfcfcf; font-size: 15px; line-height: 1.6; text-wrap: pretty; }\n.hb-kg5-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: #8f8f8f; font-size: 14px; }\n.hb-kg5-meta li { display: inline-flex; align-items: center; gap: 6px; }\n.hb-kg5-meta svg { width: 15px; height: 15px; }\n.hb-kg5-meta a { color: color-mix(in srgb, var(--hb-kg5-accent) 55%, #fff); text-decoration: none; }\n.hb-kg5-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.hb-kg5-stats {\n  display: grid;\n  grid-template-columns: repeat(var(--hb-kg5-n), minmax(0, 1fr));\n  align-self: start;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 16px;\n  background: linear-gradient(180deg, #151515, #121212);\n}\n.hb-kg5-stat { display: flex; flex-direction: column-reverse; padding: 14px 16px; min-width: 0; }\n.hb-kg5-stat + .hb-kg5-stat { border-left: 1px solid rgba(255, 255, 255, .06); }\n.hb-kg5-num { display: block; font-size: clamp(20px, 2.8cqi, 26px); font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }\n.hb-kg5-lbl { display: block; overflow: hidden; margin-top: 2px; color: #8f8f8f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-kg5-tabs { position: relative; display: flex; gap: 4px; margin: 24px -20px 0; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }\n.hb-kg5-tab {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 46px;\n  padding: 0 14px;\n  border: 0;\n  border-radius: 8px 8px 0 0;\n  background: none;\n  color: #8f8f8f;\n  font: inherit;\n  font-size: 14px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: color .2s ease;\n}\n.hb-kg5-tab:hover { color: #ededed; }\n.hb-kg5-tab[aria-selected=\"true\"] { color: #ededed; }\n.hb-kg5-tab:focus-visible { outline-offset: -2px; }\n.hb-kg5-count { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #a1a1a1; font-size: 11px; font-weight: 600; }\n.hb-kg5-bar {\n  position: absolute;\n  left: 0;\n  bottom: -1px;\n  height: 2px;\n  border-radius: 2px;\n  background: var(--hb-kg5-accent);\n  box-shadow: 0 0 12px var(--hb-kg5-accent);\n  transition: transform .35s cubic-bezier(.3, .9, .3, 1), width .35s cubic-bezier(.3, .9, .3, 1);\n}\n.hb-kg5-panel { display: grid; gap: 12px; padding: 20px 0 20px; }\n.hb-kg5-post {\n  display: grid;\n  gap: 10px;\n  padding: 10px;\n  border: 1px solid rgba(255, 255, 255, .06);\n  border-radius: 16px;\n  background: #141414;\n  animation: hb-kg5-up .45s cubic-bezier(.2, .8, .2, 1) both;\n  animation-delay: var(--hb-kg5-i);\n  transition: border-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kg5-post:hover { border-color: rgba(255, 255, 255, .14); transform: translateY(-2px); }\n.hb-kg5-thumb { height: 96px; border-radius: 10px; }\n.hb-kg5-ptitle { margin: 0; padding: 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; }\n.hb-kg5-pmeta { margin: -4px 0 2px; padding: 0 4px; color: #8f8f8f; font-size: 12px; }\n@container (min-width: 640px) {\n  .hb-kg5-inner { padding: 64px 32px 88px; }\n  .hb-kg5-body { padding: 0 32px 8px; }\n  .hb-kg5-tabs { margin: 28px -32px 0; padding: 0 32px; }\n  .hb-kg5-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }\n}\n@container (min-width: 900px) {\n  .hb-kg5-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; }\n  .hb-kg5-stats { margin-top: 6px; }\n}\n@keyframes hb-kg5-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }\n@keyframes hb-kg5-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-kg5-cover, .hb-kg5-post { animation: none; }\n  .hb-kg5-bar, .hb-kg5-btn, .hb-kg5-post, .hb-kg5-tab { transition: none; }\n  .hb-kg5-post:hover { transform: none; }\n}\n`;\n\nfunction compact(n: number) {\n  if (n >= 1000000) return `${(n / 1000000).toFixed(n >= 10000000 ? 0 : 1).replace(/\\.0$/, \"\")}M`;\n  if (n >= 10000) return `${(n / 1000).toFixed(1).replace(/\\.0$/, \"\")}K`;\n  return n.toLocaleString(\"en-US\");\n}\n\nfunction initialsOf(name: string) {\n  return name\n    .split(/\\s+/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((w) => w.charAt(0).toUpperCase())\n    .join(\"\");\n}\n\nexport function ProfileHeaderCard({\n  name = \"Maya Okafor\",\n  handle = \"@mayabuilds\",\n  verified = true,\n  bio = \"Product designer building calm tools for busy teams. Previously design lead at Northwind. Writing about interfaces, type and the craft of shipping.\",\n  location = \"Lisbon, Portugal\",\n  website = { label: \"maya.design\", href: \"https://maya.design\" },\n  joined = \"Joined March 2019\",\n  stats = defaultStats,\n  tabs = defaultTabs,\n  panels = defaultPanels,\n  tab,\n  defaultTab,\n  onTabChange,\n  following,\n  defaultFollowing = false,\n  onFollowChange,\n  onMessage,\n  accent = \"#2f7bff\",\n  className = \"\",\n  style,\n  ...rest\n}: ProfileHeaderCardProps) {\n  const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n  const [innerTab, setInnerTab] = React.useState(defaultTab ?? tabs[0]?.id ?? \"\");\n  const [innerFollowing, setInnerFollowing] = React.useState(defaultFollowing);\n  const [progress, setProgress] = React.useState(0);\n  const [bar, setBar] = React.useState({ x: 0, w: 0 });\n  const tabRefs = React.useRef<Record<string, HTMLButtonElement | null>>({});\n  const listRef = React.useRef<HTMLDivElement>(null);\n  const active = tab ?? innerTab;\n  const isFollowing = following ?? innerFollowing;\n  const vars = { \"--hb-kg5-accent\": accent, ...style } as React.CSSProperties;\n\n  React.useEffect(() => {\n    let raf = 0;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) {\n      raf = requestAnimationFrame(() => setProgress(1));\n      return () => cancelAnimationFrame(raf);\n    }\n    let start = 0;\n    const step = (t: number) => {\n      if (!start) start = t;\n      const p = Math.min(1, (t - start) / 1400);\n      setProgress(p);\n      if (p < 1) raf = requestAnimationFrame(step);\n    };\n    raf = requestAnimationFrame(step);\n    return () => cancelAnimationFrame(raf);\n  }, []);\n\n  React.useLayoutEffect(() => {\n    const measure = () => {\n      const el = tabRefs.current[active];\n      if (el) setBar({ x: el.offsetLeft, w: el.offsetWidth });\n    };\n    measure();\n    const list = listRef.current;\n    if (!list || typeof ResizeObserver === \"undefined\") return;\n    const ro = new ResizeObserver(measure);\n    ro.observe(list);\n    return () => ro.disconnect();\n  }, [active]);\n\n  const selectTab = (id: string) => {\n    if (tab === undefined) setInnerTab(id);\n    onTabChange?.(id);\n  };\n\n  const toggleFollow = () => {\n    const next = !isFollowing;\n    if (following === undefined) setInnerFollowing(next);\n    onFollowChange?.(next);\n  };\n\n  const onTabKey = (e: React.KeyboardEvent<HTMLDivElement>) => {\n    const at = tabs.findIndex((t) => t.id === active);\n    let next = -1;\n    if (e.key === \"ArrowRight\") next = (at + 1) % tabs.length;\n    else if (e.key === \"ArrowLeft\") next = (at - 1 + tabs.length) % tabs.length;\n    else if (e.key === \"Home\") next = 0;\n    else if (e.key === \"End\") next = tabs.length - 1;\n    if (next < 0) return;\n    e.preventDefault();\n    selectTab(tabs[next].id);\n    tabRefs.current[tabs[next].id]?.focus();\n  };\n\n  const eased = 1 - Math.pow(1 - progress, 3);\n  const posts = panels[active] ?? [];\n\n  return (\n    <section className={`hb-kg5 ${className}`} style={vars} aria-labelledby={`${uid}-name`} {...rest}>\n      <style href=\"hb-profile-header-card\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kg5-inner\">\n        <div className=\"hb-kg5-card\">\n          <div className=\"hb-kg5-cover\" aria-hidden=\"true\" />\n          <div className=\"hb-kg5-body\">\n            <div className=\"hb-kg5-top\">\n              <div className=\"hb-kg5-avatar\" aria-hidden=\"true\">\n                {initialsOf(name)}\n                <span className=\"hb-kg5-online\" />\n              </div>\n              <div className=\"hb-kg5-actions\">\n                <button type=\"button\" className=\"hb-kg5-btn hb-kg5-icon\" aria-label=\"Message\" onClick={onMessage}>\n                  <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2.5 4.5A1.5 1.5 0 0 1 4 3h8a1.5 1.5 0 0 1 1.5 1.5v5A1.5 1.5 0 0 1 12 11H7l-3 2.5V11a1.5 1.5 0 0 1-1.5-1.5v-5Z\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinejoin=\"round\" /></svg>\n                </button>\n                <button type=\"button\" className=\"hb-kg5-btn hb-kg5-follow\" aria-pressed={isFollowing} onClick={toggleFollow}>\n                  {isFollowing ? (\n                    <>\n                      <span className=\"hb-kg5-main\">\n                        <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"m3.5 8.5 3 3 6-7\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n                        Following\n                      </span>\n                      <span className=\"hb-kg5-alt\">Unfollow</span>\n                    </>\n                  ) : (\n                    <>\n                      <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M8 3.5v9M3.5 8h9\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" /></svg>\n                      Follow\n                    </>\n                  )}\n                </button>\n              </div>\n            </div>\n            <div className=\"hb-kg5-grid\">\n              <div>\n                <h2 id={`${uid}-name`} className=\"hb-kg5-name\">\n                  {name}\n                  {verified && (\n                    <svg viewBox=\"0 0 24 24\" aria-label=\"Verified\" role=\"img\">\n                      <path fill=\"currentColor\" d=\"M12 1.8 14.6 4l3.4-.3.9 3.3 3 1.7-1.3 3.2 1.3 3.2-3 1.7-.9 3.3-3.4-.3L12 22.2 9.4 20l-3.4.3-.9-3.3-3-1.7L3.4 12 2.1 8.8l3-1.7.9-3.3 3.4.3L12 1.8Z\" />\n                      <path d=\"m8 12.2 2.7 2.7L16.2 9.4\" fill=\"none\" stroke=\"#fff\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                    </svg>\n                  )}\n                </h2>\n                <p className=\"hb-kg5-handle\">{handle}</p>\n                {bio && <p className=\"hb-kg5-bio\">{bio}</p>}\n                <ul className=\"hb-kg5-meta\">\n                  {location && (\n                    <li>\n                      <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M8 14s4.5-4.2 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 9.8 8 14 8 14Z\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><circle cx=\"8\" cy=\"6.5\" r=\"1.6\" stroke=\"currentColor\" strokeWidth=\"1.3\" /></svg>\n                      {location}\n                    </li>\n                  )}\n                  {website && (\n                    <li>\n                      <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><path d=\"M6.5 9.5 9.5 6.5M7 4.5l1-1a2.8 2.8 0 0 1 4 4l-1 1M9 11.5l-1 1a2.8 2.8 0 0 1-4-4l1-1\" stroke=\"currentColor\" strokeWidth=\"1.3\" strokeLinecap=\"round\" /></svg>\n                      <a href={website.href}>{website.label}</a>\n                    </li>\n                  )}\n                  {joined && (\n                    <li>\n                      <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\"><rect x=\"2.5\" y=\"3.5\" width=\"11\" height=\"10\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.3\" /><path d=\"M2.5 6.5h11M5.5 2v3M10.5 2v3\" stroke=\"currentColor\" strokeWidth=\"1.3\" strokeLinecap=\"round\" /></svg>\n                      {joined}\n                    </li>\n                  )}\n                </ul>\n              </div>\n              {stats.length > 0 && (\n                <dl className=\"hb-kg5-stats\" style={{ \"--hb-kg5-n\": stats.length, margin: 0 } as React.CSSProperties}>\n                  {stats.map((s, i) => {\n                    const target = s.value + (i === 0 && isFollowing && following === undefined ? 1 : 0);\n                    return (\n                      <div key={s.label} className=\"hb-kg5-stat\">\n                        <dt className=\"hb-kg5-lbl\">{s.label}</dt>\n                        <dd className=\"hb-kg5-num\" style={{ margin: 0 }}>{compact(Math.round(target * eased))}</dd>\n                      </div>\n                    );\n                  })}\n                </dl>\n              )}\n            </div>\n            <div ref={listRef} className=\"hb-kg5-tabs\" role=\"tablist\" aria-label=\"Profile sections\" onKeyDown={onTabKey}>\n              {tabs.map((t) => (\n                <button\n                  key={t.id}\n                  ref={(el) => { tabRefs.current[t.id] = el; }}\n                  type=\"button\"\n                  role=\"tab\"\n                  id={`${uid}-tab-${t.id}`}\n                  aria-selected={t.id === active}\n                  aria-controls={`${uid}-panel`}\n                  tabIndex={t.id === active ? 0 : -1}\n                  className=\"hb-kg5-tab\"\n                  onClick={() => selectTab(t.id)}\n                >\n                  {t.label}\n                  {t.count !== undefined && <span className=\"hb-kg5-count\">{t.count}</span>}\n                </button>\n              ))}\n              <span className=\"hb-kg5-bar\" aria-hidden=\"true\" style={{ width: bar.w, transform: `translateX(${bar.x}px)` }} />\n            </div>\n            <div key={active} id={`${uid}-panel`} role=\"tabpanel\" aria-labelledby={`${uid}-tab-${active}`} className=\"hb-kg5-panel\">\n              {posts.map((p, i) => (\n                <article key={p.title} className=\"hb-kg5-post\" style={{ \"--hb-kg5-i\": `${i * 60}ms` } as React.CSSProperties}>\n                  <div\n                    className=\"hb-kg5-thumb\"\n                    style={{\n                      background: `radial-gradient(70% 90% at 25% 20%, hsl(${p.hue} 90% 62% / .9), transparent 70%), radial-gradient(60% 80% at 85% 90%, hsl(${(p.hue + 50) % 360} 80% 55% / .8), transparent 70%), hsl(${p.hue} 30% 12%)`,\n                    }}\n                  />\n                  <h3 className=\"hb-kg5-ptitle\">{p.title}</h3>\n                  <p className=\"hb-kg5-pmeta\">{p.meta}</p>\n                </article>\n              ))}\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}