{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "proof-avatar-orbit",
  "type": "registry:component",
  "title": "Proof Avatar Orbit",
  "description": "Customer avatars ride a large orbit ring that turns to bring the speaker into a fixed spotlight, while their quote assembles word by word beside it. A progress ring around the active face advances the carousel and pauses on hover or focus.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "social-proof",
    "testimonials",
    "carousel",
    "orbit",
    "avatars",
    "quote",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/proof-avatar-orbit",
  "files": [
    {
      "path": "registry/hyperblur/proof-avatar-orbit.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/proof-avatar-orbit.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface OrbitTestimonial {\n  quote: string;\n  name: string;\n  role: string;\n  company: string;\n  metric?: string;\n  metricLabel?: string;\n}\n\nexport interface ProofAvatarOrbitProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  testimonials?: OrbitTestimonial[];\n  defaultIndex?: number;\n  interval?: number;\n  autoPlay?: boolean;\n  accent?: string;\n  onIndexChange?: (index: number) => void;\n}\n\nconst css = `\n.hb-wb2 {\n  --hb-wb2-accent: #22d3ee;\n  --hb-wb2-r: 400px;\n  --hb-wb2-cx: -230px;\n  --hb-wb2-cy: 50%;\n  --hb-wb2-base: 0deg;\n  --hb-wb2-av: 64px;\n  box-sizing: border-box;\n  position: relative;\n  width: 100%;\n  min-height: 580px;\n  overflow: hidden;\n  container-type: inline-size;\n  background: radial-gradient(120% 90% at 0% 50%, #0f1417, #0a0a0a 60%);\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-wb2 *, .hb-wb2 *::before, .hb-wb2 *::after { box-sizing: border-box; }\n.hb-wb2-orbit {\n  position: absolute;\n  left: var(--hb-wb2-cx);\n  top: var(--hb-wb2-cy);\n  width: 0;\n  height: 0;\n  pointer-events: none;\n}\n.hb-wb2-ring {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  border-radius: 50%;\n  transform: translate(-50%, -50%);\n}\n.hb-wb2-ring[data-k=\"a\"] { width: calc(var(--hb-wb2-r) * 2); height: calc(var(--hb-wb2-r) * 2); border: 1px solid rgba(255, 255, 255, .1); }\n.hb-wb2-ring[data-k=\"b\"] { width: calc(var(--hb-wb2-r) * 2 - 120px); height: calc(var(--hb-wb2-r) * 2 - 120px); border: 1px dashed rgba(255, 255, 255, .06); }\n.hb-wb2-ring[data-k=\"c\"] {\n  width: calc(var(--hb-wb2-r) * 2 + 90px);\n  height: calc(var(--hb-wb2-r) * 2 + 90px);\n  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 .25deg, transparent .25deg 3deg);\n  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));\n  mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));\n  transform: translate(-50%, -50%) rotate(calc(var(--hb-wb2-step) * -4deg));\n  transition: transform 1.2s cubic-bezier(.65, 0, .35, 1);\n}\n.hb-wb2-spot {\n  position: absolute;\n  left: calc(var(--hb-wb2-cx) + cos(var(--hb-wb2-base)) * var(--hb-wb2-r));\n  top: calc(var(--hb-wb2-cy) + sin(var(--hb-wb2-base)) * var(--hb-wb2-r));\n  width: 340px;\n  height: 340px;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-wb2-accent) 22%, transparent), transparent);\n  transform: translate(-50%, -50%);\n  pointer-events: none;\n}\n.hb-wb2-wheel {\n  position: absolute;\n  inset: 0;\n  transform: rotate(calc(var(--hb-wb2-base) - var(--hb-wb2-step) * var(--hb-wb2-gap)));\n  transition: transform 1.2s cubic-bezier(.65, 0, .35, 1);\n}\n.hb-wb2-slot {\n  position: absolute;\n  left: 0;\n  top: 0;\n  transform: rotate(calc(var(--hb-wb2-i) * var(--hb-wb2-gap))) translateX(var(--hb-wb2-r));\n}\n.hb-wb2-av {\n  position: absolute;\n  left: 0;\n  top: 0;\n  display: grid;\n  place-items: center;\n  width: var(--hb-wb2-av);\n  height: var(--hb-wb2-av);\n  padding: 0;\n  border: 0;\n  border-radius: 50%;\n  background: none;\n  color: #fff;\n  font: inherit;\n  cursor: pointer;\n  pointer-events: auto;\n  opacity: var(--hb-wb2-o, 1);\n  transform: translate(-50%, -50%) rotate(calc(-1 * (var(--hb-wb2-base) - var(--hb-wb2-step) * var(--hb-wb2-gap) + var(--hb-wb2-i) * var(--hb-wb2-gap)))) scale(var(--hb-wb2-s, .72));\n  transition: transform 1.2s cubic-bezier(.65, 0, .35, 1), opacity .8s ease;\n}\n.hb-wb2-face {\n  position: absolute;\n  inset: 6px;\n  display: grid;\n  place-items: center;\n  border-radius: 50%;\n  font-size: 18px;\n  font-weight: 600;\n  letter-spacing: -.02em;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -8px 16px rgba(0, 0, 0, .25), 0 10px 30px -8px rgba(0, 0, 0, .8);\n}\n.hb-wb2-av[aria-current=\"true\"] .hb-wb2-face { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px #0a0a0a, 0 0 0 4px color-mix(in srgb, var(--hb-wb2-accent) 60%, transparent), 0 0 40px -4px var(--hb-wb2-accent); }\n.hb-wb2-av:focus-visible { outline: 2px solid var(--hb-wb2-accent); outline-offset: 2px; }\n.hb-wb2-prog { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); overflow: visible; }\n.hb-wb2-prog circle { fill: none; stroke: var(--hb-wb2-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: hb-wb2-fill var(--hb-wb2-int) linear forwards; }\n.hb-wb2:hover .hb-wb2-prog circle, .hb-wb2:focus-within .hb-wb2-prog circle { animation-play-state: paused; }\n.hb-wb2[data-auto=\"false\"] .hb-wb2-prog { display: none; }\n.hb-wb2-wrap {\n  position: relative;\n  max-width: 1120px;\n  min-height: 580px;\n  margin: 0 auto;\n  padding: 72px 32px 64px 300px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.hb-wb2-wrap > :not(.hb-wb2-orbit):not(.hb-wb2-spot) { position: relative; }\n.hb-wb2-head { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; }\n.hb-wb2-eyebrow { color: var(--hb-wb2-accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }\n.hb-wb2-title { margin: 0; color: #8f8f8f; font-size: 14px; font-weight: 500; letter-spacing: 0; }\n.hb-wb2-head i { width: 4px; height: 4px; border-radius: 50%; background: #3a3a3a; }\n.hb-wb2-quote { margin: 0; min-height: 4.6em; font-size: clamp(22px, 3.1cqw, 34px); font-weight: 500; line-height: 1.24; letter-spacing: -.025em; text-wrap: pretty; }\n.hb-wb2-word {\n  display: inline-block;\n  white-space: pre;\n  animation: hb-wb2-word .8s cubic-bezier(.2, .8, .2, 1) both;\n  animation-delay: calc(min(var(--hb-wb2-w) * 26ms, 900ms) + 250ms);\n}\n.hb-wb2-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }\n.hb-wb2-cite { display: flex; flex-direction: column; gap: 3px; animation: hb-wb2-rise .7s .45s cubic-bezier(.2, .8, .2, 1) both; }\n.hb-wb2-cite b { font-size: 15px; font-weight: 600; }\n.hb-wb2-cite span { color: #8f8f8f; font-size: 13.5px; }\n.hb-wb2-metric {\n  display: flex;\n  align-items: baseline;\n  gap: 10px;\n  padding: 10px 14px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 12px;\n  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);\n  animation: hb-wb2-rise .7s .55s cubic-bezier(.2, .8, .2, 1) both;\n}\n.hb-wb2-metric b { color: var(--hb-wb2-accent); font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }\n.hb-wb2-metric span { color: #a1a1a1; font-size: 12.5px; }\n.hb-wb2-ctrl { display: flex; align-items: center; gap: 8px; margin-left: auto; }\n.hb-wb2-count { margin-right: 8px; color: #8f8f8f; font-size: 12.5px; font-variant-numeric: tabular-nums; font-family: var(--font-mono, ui-monospace, monospace); }\n.hb-wb2-count b { color: #ededed; font-weight: 500; }\n.hb-wb2-btn {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  padding: 0;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 50%;\n  background: rgba(255, 255, 255, .03);\n  color: #ededed;\n  cursor: pointer;\n  transition: background .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-wb2-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }\n.hb-wb2-btn:active { transform: scale(.94); }\n.hb-wb2-btn:focus-visible { outline: 2px solid var(--hb-wb2-accent); outline-offset: 2px; }\n.hb-wb2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@keyframes hb-wb2-fill { to { stroke-dashoffset: 0; } }\n@keyframes hb-wb2-word { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }\n@keyframes hb-wb2-rise { from { opacity: 0; transform: translateY(10px); } }\n@container (max-width: 760px) {\n  .hb-wb2 { --hb-wb2-r: 330px; --hb-wb2-cx: 50%; --hb-wb2-cy: -200px; --hb-wb2-base: 90deg; --hb-wb2-av: 58px; min-height: 0; background: radial-gradient(90% 50% at 50% 0%, #0f1417, #0a0a0a 70%); }\n  .hb-wb2-wrap { min-height: 0; padding: 200px 20px 56px; }\n  .hb-wb2-head { justify-content: center; }\n  .hb-wb2-quote { min-height: 0; text-align: center; }\n  .hb-wb2-foot { justify-content: center; text-align: center; }\n  .hb-wb2-cite { align-items: center; }\n  .hb-wb2-ctrl { margin: 0; width: 100%; justify-content: center; }\n}\n@container (max-width: 420px) {\n  .hb-wb2 { --hb-wb2-r: 280px; --hb-wb2-cy: -150px; --hb-wb2-av: 52px; }\n  .hb-wb2-wrap { padding-top: 196px; }\n  .hb-wb2-head { flex-wrap: wrap; gap: 6px 10px; }\n  .hb-wb2-head i { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-wb2-wheel, .hb-wb2-av, .hb-wb2-ring[data-k=\"c\"], .hb-wb2-btn { transition: none; }\n  .hb-wb2-word, .hb-wb2-cite, .hb-wb2-metric { animation: none; }\n  .hb-wb2-prog { display: none; }\n}\n`;\n\nconst tones = [\n  [\"#22d3ee\", \"#0e7490\"],\n  [\"#a78bfa\", \"#5b21b6\"],\n  [\"#fb923c\", \"#9a3412\"],\n  [\"#34d399\", \"#047857\"],\n  [\"#f472b6\", \"#9d174d\"],\n  [\"#facc15\", \"#a16207\"],\n  [\"#60a5fa\", \"#1d4ed8\"],\n  [\"#f87171\", \"#991b1b\"],\n];\n\nconst defaultTestimonials: OrbitTestimonial[] = [\n  { quote: \"We replaced four dashboards and a weekly spreadsheet ritual. Finance now closes the month in two days instead of nine.\", name: \"Hannah Weiss\", role: \"VP Finance\", company: \"Brightline Freight\", metric: \"7 days\", metricLabel: \"faster month-end close\" },\n  { quote: \"The forecasting view is the first thing our board asks for. It made our planning meetings shorter and calmer.\", name: \"Rafael Costa\", role: \"COO\", company: \"Juniper Clinics\", metric: \"41%\", metricLabel: \"shorter planning cycles\" },\n  { quote: \"Every team owns its numbers now. Nobody waits on the data team for a chart, and the data team finally gets to do real work.\", name: \"Aiko Tanaka\", role: \"Head of Data\", company: \"Mosswood\", metric: \"1,200\", metricLabel: \"self-serve reports a month\" },\n  { quote: \"We caught a pricing leak in week one that had cost us six figures a year. That paid for the next decade.\", name: \"Elliot Mensah\", role: \"CFO\", company: \"Northpaw\", metric: \"$184k\", metricLabel: \"recovered in year one\" },\n  { quote: \"Rolling it out to 300 people took a single afternoon. The permissions model just made sense to our admins.\", name: \"Clara Jensen\", role: \"IT Director\", company: \"Halberd Group\", metric: \"300\", metricLabel: \"seats live in one day\" },\n  { quote: \"I open it before email every morning. It tells me what changed and why, in plain sentences.\", name: \"Samir Patel\", role: \"Founder\", company: \"Quayside\", metric: \"6 min\", metricLabel: \"daily review, down from 40\" },\n  { quote: \"Our investors get a live link instead of a quarterly deck. Fundraising conversations start from trust.\", name: \"Laura Kim\", role: \"CEO\", company: \"Fieldnote\", metric: \"2.4x\", metricLabel: \"faster diligence\" },\n  { quote: \"The alerts are tuned so well that when one fires, people actually stop and look.\", name: \"Diego Herrera\", role: \"Ops lead\", company: \"Cobalt Kitchens\", metric: \"93%\", metricLabel: \"alerts acted on\" },\n  { quote: \"Support replied with a fix and a short video, twice, before we had finished writing the ticket.\", name: \"Nora Lindqvist\", role: \"RevOps\", company: \"Tallgrass\", metric: \"4 min\", metricLabel: \"median first reply\" },\n  { quote: \"It is the only tool our sales and finance teams agree on. That alone is worth the subscription.\", name: \"Owen Gallagher\", role: \"CRO\", company: \"Ridgeway\", metric: \"1\", metricLabel: \"source of truth\" },\n];\n\nfunction initials(name: string) {\n  return name.split(\" \").map((p) => p[0]).slice(0, 2).join(\"\");\n}\n\nexport function ProofAvatarOrbit({\n  eyebrow = \"Customer stories\",\n  title = \"Heard from teams on Ledgerly\",\n  testimonials = defaultTestimonials,\n  defaultIndex = 0,\n  interval = 6500,\n  autoPlay = true,\n  accent = \"#22d3ee\",\n  onIndexChange,\n  className = \"\",\n  style,\n  ...rest\n}: ProofAvatarOrbitProps) {\n  const uid = React.useId();\n  const n = Math.max(testimonials.length, 1);\n  const [step, setStep] = React.useState(() => Math.max(0, Math.min(defaultIndex, n - 1)));\n  const active = ((step % n) + n) % n;\n  const t = testimonials[active];\n\n  const go = React.useCallback(\n    (delta: number) => {\n      const next = step + delta;\n      setStep(next);\n      onIndexChange?.(((next % n) + n) % n);\n    },\n    [n, step, onIndexChange],\n  );\n\n  const goTo = (i: number) => {\n    let d = i - active;\n    if (d > n / 2) d -= n;\n    if (d < -n / 2) d += n;\n    if (d !== 0) go(d);\n  };\n\n  const onKey = (e: React.KeyboardEvent) => {\n    if (e.key === \"ArrowRight\" || e.key === \"ArrowDown\") {\n      e.preventDefault();\n      go(1);\n    } else if (e.key === \"ArrowLeft\" || e.key === \"ArrowUp\") {\n      e.preventDefault();\n      go(-1);\n    }\n  };\n\n  const vars = {\n    \"--hb-wb2-accent\": accent,\n    \"--hb-wb2-step\": step,\n    \"--hb-wb2-gap\": `${(360 / n).toFixed(4)}deg`,\n    \"--hb-wb2-int\": `${Math.max(interval, 1500)}ms`,\n    ...style,\n  } as React.CSSProperties;\n\n  const words = t ? t.quote.split(\" \") : [];\n\n  return (\n    <section className={`hb-wb2 ${className}`} style={vars} data-auto={autoPlay} aria-labelledby={`${uid}-t`} aria-roledescription=\"carousel\" {...rest}>\n      <style href=\"hb-proof-avatar-orbit\" precedence=\"default\">{css}</style>\n      <div className=\"hb-wb2-wrap\">\n        <div className=\"hb-wb2-spot\" aria-hidden=\"true\" />\n        <div className=\"hb-wb2-orbit\">\n          <div className=\"hb-wb2-ring\" data-k=\"c\" aria-hidden=\"true\" />\n          <div className=\"hb-wb2-ring\" data-k=\"a\" aria-hidden=\"true\" />\n          <div className=\"hb-wb2-ring\" data-k=\"b\" aria-hidden=\"true\" />\n          <div className=\"hb-wb2-wheel\" role=\"group\" aria-label=\"Choose a customer\" onKeyDown={onKey}>\n            {testimonials.map((item, i) => {\n              const raw = Math.abs(i - active);\n              const d = Math.min(raw, n - raw);\n              const o = d === 0 ? 1 : d === 1 ? 0.6 : d === 2 ? 0.28 : 0.08;\n              const s = d === 0 ? 1 : 0.72;\n              const [a, b] = tones[i % tones.length];\n              return (\n                <div key={`${item.name}-${i}`} className=\"hb-wb2-slot\" style={{ \"--hb-wb2-i\": i } as React.CSSProperties}>\n                  <button\n                    type=\"button\"\n                    className=\"hb-wb2-av\"\n                    aria-current={i === active}\n                    aria-label={`Quote from ${item.name}, ${item.company}`}\n                    tabIndex={i === active ? 0 : -1}\n                    onClick={() => goTo(i)}\n                    style={{ \"--hb-wb2-o\": o, \"--hb-wb2-s\": s } as React.CSSProperties}\n                  >\n                    {i === active && autoPlay && (\n                      <svg key={step} className=\"hb-wb2-prog\" viewBox=\"0 0 72 72\" aria-hidden=\"true\" onAnimationEnd={() => go(1)}>\n                        <circle cx=\"36\" cy=\"36\" r=\"34\" pathLength={100} />\n                      </svg>\n                    )}\n                    <span className=\"hb-wb2-face\" style={{ background: `radial-gradient(circle at 30% 25%, ${a}, ${b})` }}>{initials(item.name)}</span>\n                  </button>\n                </div>\n              );\n            })}\n          </div>\n        </div>\n        <div className=\"hb-wb2-head\">\n          <span className=\"hb-wb2-eyebrow\">{eyebrow}</span>\n          <i aria-hidden=\"true\" />\n          <h2 id={`${uid}-t`} className=\"hb-wb2-title\">{title}</h2>\n        </div>\n        {t && (\n          <div key={step} aria-live=\"polite\">\n            <blockquote className=\"hb-wb2-quote\">\n              <span className=\"hb-wb2-sr\">{t.quote}</span>\n              <span aria-hidden=\"true\">\n                {words.map((w, i) => (\n                  <span key={i} className=\"hb-wb2-word\" style={{ \"--hb-wb2-w\": i } as React.CSSProperties}>{i < words.length - 1 ? `${w} ` : w}</span>\n                ))}\n              </span>\n            </blockquote>\n            <div className=\"hb-wb2-foot\">\n              <div className=\"hb-wb2-cite\">\n                <b>{t.name}</b>\n                <span>{`${t.role}, ${t.company}`}</span>\n              </div>\n              {t.metric && (\n                <div className=\"hb-wb2-metric\">\n                  <b>{t.metric}</b>\n                  <span>{t.metricLabel}</span>\n                </div>\n              )}\n            </div>\n          </div>\n        )}\n        <div className=\"hb-wb2-foot\" style={{ marginTop: 28 }}>\n          <div className=\"hb-wb2-ctrl\">\n            <span className=\"hb-wb2-count\"><b>{String(active + 1).padStart(2, \"0\")}</b>{` / ${String(n).padStart(2, \"0\")}`}</span>\n            <button type=\"button\" className=\"hb-wb2-btn\" aria-label=\"Previous quote\" onClick={() => go(-1)}>\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M10 3L5 8l5 5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n            </button>\n            <button type=\"button\" className=\"hb-wb2-btn\" aria-label=\"Next quote\" onClick={() => go(1)}>\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M6 3l5 5-5 5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n            </button>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}