{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "proof-logo-dock",
  "type": "registry:component",
  "title": "Proof Logo Dock",
  "description": "A row of customer marks that magnifies under the pointer like a desktop dock. The nearest logo lights up and a story card below swaps in its headline result and quote, with a caret that slides to the active logo.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "social-proof",
    "logo cloud",
    "dock",
    "magnify",
    "customers",
    "case study",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/proof-logo-dock",
  "files": [
    {
      "path": "registry/hyperblur/proof-logo-dock.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/proof-logo-dock.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type DockMark = \"orbit\" | \"wing\" | \"rays\" | \"wave\" | \"pine\" | \"tiles\" | \"quill\" | \"tandem\" | \"hex\";\n\nexport interface DockCustomer {\n  name: string;\n  mark?: DockMark;\n  metric: string;\n  metricLabel: string;\n  quote: string;\n  person: string;\n  href?: string;\n}\n\nexport interface ProofLogoDockProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  customers?: DockCustomer[];\n  defaultActive?: number;\n  magnify?: number;\n  linkLabel?: string;\n  accent?: string;\n  onActiveChange?: (index: number) => void;\n}\n\nconst css = `\n.hb-wb3 {\n  --hb-wb3-accent: #f59e0b;\n  --hb-wb3-base: clamp(56px, 7.2cqw, 78px);\n  box-sizing: border-box;\n  position: relative;\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-wb3 *, .hb-wb3 *::before, .hb-wb3 *::after { box-sizing: border-box; }\n.hb-wb3::before {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  top: 46%;\n  width: 900px;\n  height: 260px;\n  transform: translate(-50%, -50%);\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-wb3-accent) 12%, transparent), transparent);\n  pointer-events: none;\n}\n.hb-wb3-wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 88px 24px 96px; text-align: center; }\n.hb-wb3-eyebrow { margin: 0 0 14px; color: #8f8f8f; font-size: 13px; font-weight: 500; }\n.hb-wb3-eyebrow b { color: #ededed; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-wb3-title { margin: 0 auto; max-width: 620px; font-size: clamp(26px, 3.6cqw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }\n.hb-wb3-dock {\n  position: relative;\n  display: flex;\n  align-items: flex-end;\n  justify-content: center;\n  gap: 10px;\n  height: calc(var(--hb-wb3-base) * 1.75 + 24px);\n  margin: 40px auto 0;\n  padding: 0 0 18px;\n  list-style: none;\n  touch-action: pan-y;\n}\n.hb-wb3-dock::after {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  bottom: 8px;\n  width: min(100%, 860px);\n  height: 1px;\n  transform: translateX(-50%);\n  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);\n}\n.hb-wb3-item { position: relative; display: flex; flex-direction: column; align-items: center; }\n.hb-wb3-tile {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: calc(var(--hb-wb3-base) * var(--hb-wb3-s, 1));\n  height: calc(var(--hb-wb3-base) * var(--hb-wb3-s, 1));\n  padding: 0;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 22%;\n  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 24px -14px rgba(0, 0, 0, .9);\n  color: #7a7a7a;\n  cursor: pointer;\n  transition: width .22s cubic-bezier(.2, .8, .2, 1), height .22s cubic-bezier(.2, .8, .2, 1), color .3s ease, border-color .3s ease, background .3s ease;\n}\n.hb-wb3-tile svg { width: 46%; height: 46%; }\n.hb-wb3-tile[aria-pressed=\"true\"] {\n  color: #fff;\n  border-color: color-mix(in srgb, var(--hb-wb3-accent) 55%, transparent);\n  background: linear-gradient(180deg, color-mix(in srgb, var(--hb-wb3-accent) 22%, #1a1a1a), #101010);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 4px color-mix(in srgb, var(--hb-wb3-accent) 10%, transparent), 0 18px 36px -12px color-mix(in srgb, var(--hb-wb3-accent) 45%, transparent);\n}\n.hb-wb3-tile:hover { color: #d4d4d4; }\n.hb-wb3-tile:focus-visible { outline: 2px solid var(--hb-wb3-accent); outline-offset: 3px; }\n.hb-wb3-name {\n  position: absolute;\n  bottom: calc(100% + 10px);\n  left: 50%;\n  padding: 4px 9px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 7px;\n  background: #1c1c1c;\n  color: #ededed;\n  font-size: 12px;\n  font-weight: 500;\n  white-space: nowrap;\n  opacity: 0;\n  transform: translate(-50%, 6px);\n  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);\n  pointer-events: none;\n}\n.hb-wb3-item[data-on=\"true\"] .hb-wb3-name { opacity: 1; transform: translate(-50%, 0); }\n.hb-wb3-dot { position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: var(--hb-wb3-accent); box-shadow: 0 0 8px var(--hb-wb3-accent); opacity: 0; transition: opacity .3s ease; }\n.hb-wb3-item[data-on=\"true\"] .hb-wb3-dot { opacity: 1; }\n.hb-wb3-story {\n  position: relative;\n  display: grid;\n  grid-template-columns: auto minmax(0, 1fr);\n  align-items: center;\n  gap: 28px;\n  max-width: 680px;\n  margin: 26px auto 0;\n  padding: 22px 26px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 20px;\n  background: linear-gradient(180deg, #151515, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .9);\n  text-align: left;\n}\n.hb-wb3-caret {\n  position: absolute;\n  top: -7px;\n  left: 50%;\n  width: 12px;\n  height: 12px;\n  border-top: 1px solid rgba(255, 255, 255, .08);\n  border-left: 1px solid rgba(255, 255, 255, .08);\n  background: #151515;\n  transform: translateX(-50%) rotate(45deg);\n  transition: left .45s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-wb3-metric { padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, .08); animation: hb-wb3-in .55s cubic-bezier(.2, .8, .2, 1) both; }\n.hb-wb3-metric b { display: block; color: var(--hb-wb3-accent); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }\n.hb-wb3-metric span { display: block; margin-top: 8px; color: #8f8f8f; font-size: 12.5px; max-width: 150px; line-height: 1.4; }\n.hb-wb3-body { min-width: 0; animation: hb-wb3-in .55s .08s cubic-bezier(.2, .8, .2, 1) both; }\n.hb-wb3-quote { margin: 0; color: #d4d4d4; font-size: 15px; line-height: 1.55; }\n.hb-wb3-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }\n.hb-wb3-person { color: #8f8f8f; font-size: 13px; }\n.hb-wb3-link { display: inline-flex; align-items: center; gap: 6px; color: #ededed; font-size: 13px; font-weight: 500; text-decoration: none; border-radius: 4px; }\n.hb-wb3-link svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }\n.hb-wb3-link:hover svg { transform: translateX(3px); }\n.hb-wb3-link:focus-visible { outline: 2px solid var(--hb-wb3-accent); outline-offset: 3px; }\n@keyframes hb-wb3-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }\n@container (max-width: 640px) {\n  .hb-wb3-wrap { padding: 64px 16px 72px; }\n  .hb-wb3-dock { flex-wrap: wrap; height: auto; gap: 12px; padding: 34px 0 18px; max-width: 360px; }\n  .hb-wb3-tile { width: 64px; height: 64px; }\n  .hb-wb3-tile[aria-pressed=\"true\"] { transform: scale(1.08); }\n  .hb-wb3-dot { bottom: -8px; }\n  .hb-wb3-name { display: none; }\n  .hb-wb3-caret { display: none; }\n  .hb-wb3-story { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }\n  .hb-wb3-metric { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }\n  .hb-wb3-metric span { max-width: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-wb3-tile, .hb-wb3-name, .hb-wb3-caret, .hb-wb3-link svg { transition: none; }\n  .hb-wb3-metric, .hb-wb3-body { animation: none; }\n}\n`;\n\nfunction Mark({ kind }: { kind: DockMark }) {\n  const p = { fill: \"none\", stroke: \"currentColor\", strokeWidth: 2.2, strokeLinecap: \"round\" as const, strokeLinejoin: \"round\" as const };\n  switch (kind) {\n    case \"orbit\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <circle cx=\"16\" cy=\"16\" r=\"5\" fill=\"currentColor\" />\n          <ellipse cx=\"16\" cy=\"16\" rx=\"13\" ry=\"6\" {...p} transform=\"rotate(-28 16 16)\" />\n        </svg>\n      );\n    case \"wing\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <path d=\"M3 22L16 6l4 9 9-3-13 14z\" fill=\"currentColor\" />\n        </svg>\n      );\n    case \"rays\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <circle cx=\"16\" cy=\"16\" r=\"5.5\" fill=\"currentColor\" />\n          <path d=\"M16 2v5M16 25v5M2 16h5M25 16h5M6 6l3.5 3.5M22.5 22.5L26 26M26 6l-3.5 3.5M9.5 22.5L6 26\" {...p} />\n        </svg>\n      );\n    case \"wave\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <path d=\"M3 12c4-4 7-4 10 0s6 4 10 0 5-3 6-2M3 20c4-4 7-4 10 0s6 4 10 0 5-3 6-2\" {...p} strokeWidth={2.8} />\n        </svg>\n      );\n    case \"pine\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <path d=\"M16 3l7 10h-4l6 9H7l6-9H9z\" fill=\"currentColor\" />\n          <path d=\"M16 22v7\" {...p} strokeWidth={3} />\n        </svg>\n      );\n    case \"tiles\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <rect x=\"4\" y=\"4\" width=\"11\" height=\"11\" rx=\"3\" fill=\"currentColor\" />\n          <rect x=\"17\" y=\"4\" width=\"11\" height=\"11\" rx=\"5.5\" fill=\"currentColor\" opacity=\".55\" />\n          <rect x=\"4\" y=\"17\" width=\"11\" height=\"11\" rx=\"5.5\" fill=\"currentColor\" opacity=\".55\" />\n          <rect x=\"17\" y=\"17\" width=\"11\" height=\"11\" rx=\"3\" fill=\"currentColor\" />\n        </svg>\n      );\n    case \"quill\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <path d=\"M27 4C15 6 8 14 6 27c5-9 11-14 21-16-6-1-9 0-12 2 3-4 7-7 12-9z\" fill=\"currentColor\" />\n        </svg>\n      );\n    case \"tandem\":\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <circle cx=\"11.5\" cy=\"16\" r=\"8\" fill=\"currentColor\" />\n          <circle cx=\"20.5\" cy=\"16\" r=\"8\" {...p} />\n        </svg>\n      );\n    default:\n      return (\n        <svg viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n          <path d=\"M16 3l11 6.5v13L16 29 5 22.5v-13z\" {...p} />\n          <path d=\"M16 10l5.5 3.2v6.6L16 23l-5.5-3.2v-6.6z\" fill=\"currentColor\" />\n        </svg>\n      );\n  }\n}\n\nconst defaultCustomers: DockCustomer[] = [\n  { name: \"Orbitly\", mark: \"orbit\", metric: \"3.1x\", metricLabel: \"more releases per week\", quote: \"Our release train went from a monthly event to something nobody notices, which is exactly the point.\", person: \"Mei Lin, Head of Platform\", href: \"#orbitly\" },\n  { name: \"Kestrel Air\", mark: \"wing\", metric: \"-62%\", metricLabel: \"incident minutes in a quarter\", quote: \"On-call used to mean a ruined weekend. Now the pager mostly sleeps and so do we.\", person: \"James Okoro, SRE lead\", href: \"#kestrel\" },\n  { name: \"Lumen Energy\", mark: \"rays\", metric: \"11 wks\", metricLabel: \"saved on the grid rollout\", quote: \"We shipped the field app before the hardware arrived. That had never happened before.\", person: \"Ingrid Sol, Program director\", href: \"#lumen\" },\n  { name: \"Halcyon\", mark: \"wave\", metric: \"99.99%\", metricLabel: \"uptime across 14 regions\", quote: \"Clinics in six countries rely on us at 3am local time. The platform has never been the reason they waited.\", person: \"Ravi Menon, CTO\", href: \"#halcyon\" },\n  { name: \"Pinecrest\", mark: \"pine\", metric: \"$410k\", metricLabel: \"infrastructure saved per year\", quote: \"We turned off two data centers and nobody outside the infra channel noticed.\", person: \"Beatriz Ortega, VP Engineering\", href: \"#pinecrest\" },\n  { name: \"Mosaic\", mark: \"tiles\", metric: \"48 hrs\", metricLabel: \"from signed contract to live\", quote: \"Enterprise onboarding used to be a quarter-long project. Now it is a two-day checklist.\", person: \"Theo Laurent, Solutions lead\", href: \"#mosaic\" },\n  { name: \"Quillstack\", mark: \"quill\", metric: \"1 day\", metricLabel: \"for new hires to ship\", quote: \"The first pull request lands on day one. It sets the tone for the whole job.\", person: \"Hana Sato, Eng manager\", href: \"#quillstack\" },\n  { name: \"Tandem\", mark: \"tandem\", metric: \"4.2x\", metricLabel: \"faster preview builds\", quote: \"Designers review real builds instead of screenshots, and the feedback got sharper overnight.\", person: \"Lucas Moreau, Design lead\", href: \"#tandem\" },\n  { name: \"Vertex Labs\", mark: \"hex\", metric: \"0\", metricLabel: \"failed deploys since March\", quote: \"Automatic rollbacks caught the two bad releases before a single customer saw them.\", person: \"Amara Diallo, Staff engineer\", href: \"#vertex\" },\n];\n\nexport function ProofLogoDock({\n  eyebrow = \"Trusted by 3,400 engineering teams\",\n  title = \"The companies you use every day ship with Relay\",\n  customers = defaultCustomers,\n  defaultActive = 3,\n  magnify = 0.7,\n  linkLabel = \"Read the story\",\n  accent = \"#f59e0b\",\n  onActiveChange,\n  className = \"\",\n  style,\n  ...rest\n}: ProofLogoDockProps) {\n  const uid = React.useId();\n  const n = customers.length;\n  const start = Math.max(0, Math.min(defaultActive, n - 1));\n  const [active, setActive] = React.useState(start);\n  const [focus, setFocus] = React.useState<number>(start);\n  const dockRef = React.useRef<HTMLUListElement>(null);\n  const storyRef = React.useRef<HTMLDivElement>(null);\n  const caretRef = React.useRef<HTMLSpanElement>(null);\n\n  const select = (i: number) => {\n    if (i !== active) {\n      setActive(i);\n      onActiveChange?.(i);\n    }\n  };\n\n  React.useEffect(() => {\n    const dock = dockRef.current;\n    const story = storyRef.current;\n    const caret = caretRef.current;\n    if (!dock || !story || !caret) return;\n    let raf = 0;\n    const t0 = performance.now();\n    const place = (now: number) => {\n      const tile = dock.children[active] as HTMLElement | undefined;\n      if (tile) {\n        const a = tile.getBoundingClientRect();\n        const b = story.getBoundingClientRect();\n        const x = Math.max(20, Math.min(b.width - 20, a.left + a.width / 2 - b.left));\n        caret.style.left = `${x.toFixed(1)}px`;\n      }\n      if (now - t0 < 400) raf = requestAnimationFrame(place);\n    };\n    raf = requestAnimationFrame(place);\n    return () => cancelAnimationFrame(raf);\n  }, [active, focus]);\n\n  const onMove = (e: React.PointerEvent<HTMLUListElement>) => {\n    if (e.pointerType !== \"mouse\") return;\n    const r = e.currentTarget.getBoundingClientRect();\n    const items = Array.from(e.currentTarget.children) as HTMLElement[];\n    const first = items[0]?.getBoundingClientRect();\n    const last = items[items.length - 1]?.getBoundingClientRect();\n    const left = first ? first.left : r.left;\n    const right = last ? last.right : r.right;\n    const f = ((e.clientX - left) / Math.max(right - left, 1)) * n - 0.5;\n    const clamped = Math.max(-0.5, Math.min(n - 0.5, f));\n    setFocus(clamped);\n    select(Math.max(0, Math.min(n - 1, Math.round(clamped))));\n  };\n\n  const onKey = (e: React.KeyboardEvent, i: number) => {\n    let next = -1;\n    if (e.key === \"ArrowRight\") next = (i + 1) % n;\n    if (e.key === \"ArrowLeft\") next = (i - 1 + n) % n;\n    if (e.key === \"Home\") next = 0;\n    if (e.key === \"End\") next = n - 1;\n    if (next < 0) return;\n    e.preventDefault();\n    select(next);\n    setFocus(next);\n    const btn = dockRef.current?.children[next]?.querySelector(\"button\");\n    btn?.focus();\n  };\n\n  const c = customers[active];\n  const vars = { \"--hb-wb3-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-wb3 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-proof-logo-dock\" precedence=\"default\">{css}</style>\n      <div className=\"hb-wb3-wrap\">\n        <p className=\"hb-wb3-eyebrow\">{eyebrow}</p>\n        <h2 id={`${uid}-t`} className=\"hb-wb3-title\">{title}</h2>\n        <ul ref={dockRef} className=\"hb-wb3-dock\" onPointerMove={onMove} onPointerLeave={() => setFocus(active)}>\n          {customers.map((cu, i) => {\n            const d = i - focus;\n            const s = 1 + Math.max(0, magnify) * Math.exp(-(d * d) / 1.6);\n            return (\n              <li key={`${cu.name}-${i}`} className=\"hb-wb3-item\" data-on={i === active}>\n                <span className=\"hb-wb3-name\" aria-hidden=\"true\">{cu.name}</span>\n                <button\n                  type=\"button\"\n                  className=\"hb-wb3-tile\"\n                  aria-pressed={i === active}\n                  aria-label={cu.name}\n                  aria-controls={`${uid}-s`}\n                  tabIndex={i === active ? 0 : -1}\n                  style={{ \"--hb-wb3-s\": s.toFixed(3) } as React.CSSProperties}\n                  onClick={() => {\n                    select(i);\n                    setFocus(i);\n                  }}\n                  onFocus={() => {\n                    select(i);\n                    setFocus(i);\n                  }}\n                  onKeyDown={(e) => onKey(e, i)}\n                >\n                  <Mark kind={cu.mark ?? \"hex\"} />\n                </button>\n                <span className=\"hb-wb3-dot\" aria-hidden=\"true\" />\n              </li>\n            );\n          })}\n        </ul>\n        {c && (\n          <div ref={storyRef} id={`${uid}-s`} className=\"hb-wb3-story\" aria-live=\"polite\">\n            <span ref={caretRef} className=\"hb-wb3-caret\" aria-hidden=\"true\" />\n            <div key={`m${active}`} className=\"hb-wb3-metric\">\n              <b>{c.metric}</b>\n              <span>{c.metricLabel}</span>\n            </div>\n            <div key={`b${active}`} className=\"hb-wb3-body\">\n              <p className=\"hb-wb3-quote\">{c.quote}</p>\n              <div className=\"hb-wb3-meta\">\n                <span className=\"hb-wb3-person\">{`${c.person}, ${c.name}`}</span>\n                {c.href && (\n                  <a className=\"hb-wb3-link\" href={c.href}>\n                    {linkLabel}\n                    <svg width=\"13\" height=\"13\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M3 8h10M9 4l4 4-4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n                  </a>\n                )}\n              </div>\n            </div>\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}