{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "proof-spotlight-quote",
  "type": "registry:component",
  "title": "Proof Spotlight Quote",
  "description": "One large serif quote at a time on a paper background. It advances every few seconds with a blur crossfade, and small avatar buttons with a progress ring let visitors pick a quote.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "social-proof",
    "testimonial",
    "quote",
    "carousel",
    "customer story",
    "light",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/proof-spotlight-quote",
  "files": [
    {
      "path": "registry/hyperblur/proof-spotlight-quote.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/proof-spotlight-quote.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface SpotlightQuote {\n  quote: string;\n  name: string;\n  role: string;\n  company: string;\n  metric?: string;\n}\n\nexport interface ProofSpotlightQuoteProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  quotes?: SpotlightQuote[];\n  interval?: number;\n  autoPlay?: boolean;\n  defaultIndex?: number;\n  onIndexChange?: (index: number) => void;\n  accent?: string;\n}\n\nconst css = `\n.hb-kd2 {\n  --hb-kd2-accent: #ff5a36;\n  --hb-kd2-int: 6s;\n  box-sizing: border-box;\n  container-type: inline-size;\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  background: #f7f5ef;\n  color: #17161a;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kd2 *, .hb-kd2 *::before, .hb-kd2 *::after { box-sizing: border-box; }\n.hb-kd2::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background:\n    radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, var(--hb-kd2-accent) 10%, transparent), transparent 70%),\n    repeating-linear-gradient(0deg, rgba(23, 22, 26, .035) 0 1px, transparent 1px 32px);\n  pointer-events: none;\n}\n.hb-kd2-in {\n  position: relative;\n  max-width: 1040px;\n  margin: 0 auto;\n  padding: 104px 32px 96px;\n}\n.hb-kd2-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 40px;\n}\n.hb-kd2-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  color: #5d5a55;\n  font-size: 13px;\n  font-weight: 500;\n  letter-spacing: .08em;\n  text-transform: uppercase;\n}\n.hb-kd2-eyebrow::before {\n  content: \"\";\n  width: 28px;\n  height: 1px;\n  background: var(--hb-kd2-accent);\n}\n.hb-kd2-count {\n  color: #8a867f;\n  font-size: 13px;\n  font-variant-numeric: tabular-nums;\n  letter-spacing: .04em;\n}\n.hb-kd2-count b { color: #17161a; font-weight: 600; }\n.hb-kd2-stage { display: grid; }\n.hb-kd2-slide {\n  grid-area: 1 / 1;\n  margin: 0;\n  opacity: 0;\n  filter: blur(12px);\n  transform: translate3d(0, 10px, 0) scale(.985);\n  transition: opacity .7s ease, filter .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .9s;\n  visibility: hidden;\n}\n.hb-kd2-slide[data-active=\"true\"] {\n  opacity: 1;\n  filter: blur(0);\n  transform: none;\n  visibility: visible;\n  transition: opacity .7s ease .15s, filter .8s ease .1s, transform .9s cubic-bezier(.2, .8, .2, 1) .1s, visibility 0s linear 0s;\n}\n.hb-kd2-mark {\n  display: block;\n  width: 44px;\n  height: 34px;\n  margin-bottom: 20px;\n  color: var(--hb-kd2-accent);\n}\n.hb-kd2-quote {\n  margin: 0;\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  font-size: clamp(28px, 5.2cqi, 54px);\n  font-weight: 400;\n  line-height: 1.12;\n  letter-spacing: -.015em;\n  color: #17161a;\n  text-wrap: balance;\n}\n.hb-kd2-metric {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin-top: 28px;\n  padding: 6px 12px;\n  border: 1px solid color-mix(in srgb, var(--hb-kd2-accent) 30%, transparent);\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-kd2-accent) 8%, #fff);\n  color: color-mix(in srgb, var(--hb-kd2-accent) 70%, #17161a);\n  font-size: 13px;\n  font-weight: 600;\n}\n.hb-kd2-metric svg { width: 14px; height: 14px; }\n.hb-kd2-bottom {\n  display: flex;\n  align-items: flex-end;\n  justify-content: space-between;\n  gap: 32px;\n  margin-top: 48px;\n  padding-top: 28px;\n  border-top: 1px solid rgba(23, 22, 26, .1);\n}\n.hb-kd2-authors { display: grid; min-width: 0; }\n.hb-kd2-author {\n  grid-area: 1 / 1;\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  opacity: 0;\n  transform: translate3d(0, 6px, 0);\n  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kd2-author[data-active=\"true\"] { opacity: 1; transform: none; transition-delay: .2s; }\n.hb-kd2-face {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border-radius: 50%;\n  color: #fff;\n  font-size: 15px;\n  font-weight: 600;\n  box-shadow: 0 0 0 3px #f7f5ef, 0 0 0 4px rgba(23, 22, 26, .12);\n}\n.hb-kd2-name { display: block; font-size: 16px; font-weight: 600; font-style: normal; color: #17161a; }\n.hb-kd2-role { display: block; margin-top: 2px; font-size: 14px; color: #6b6760; }\n.hb-kd2-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }\n.hb-kd2-dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.hb-kd2-dot {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 34px;\n  height: 34px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  border-radius: 50%;\n  background: transparent;\n  color: #fff;\n  font: inherit;\n  font-size: 11px;\n  font-weight: 600;\n  cursor: pointer;\n  -webkit-tap-highlight-color: transparent;\n}\n.hb-kd2-dot-face {\n  display: grid;\n  place-items: center;\n  width: 26px;\n  height: 26px;\n  border-radius: 50%;\n  filter: grayscale(1) contrast(.9);\n  opacity: .55;\n  transition: filter .3s ease, opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kd2-dot:hover .hb-kd2-dot-face { filter: none; opacity: .9; transform: scale(1.06); }\n.hb-kd2-dot[aria-current=\"true\"] .hb-kd2-dot-face { filter: none; opacity: 1; transform: scale(1.08); }\n.hb-kd2-ring { position: absolute; inset: 0; width: 34px; height: 34px; transform: rotate(-90deg); pointer-events: none; }\n.hb-kd2-ring circle { fill: none; stroke-width: 2; }\n.hb-kd2-ring-bg { stroke: transparent; }\n.hb-kd2-dot[aria-current=\"true\"] .hb-kd2-ring-bg { stroke: rgba(23, 22, 26, .12); }\n.hb-kd2-ring-fg { stroke: var(--hb-kd2-accent); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }\n.hb-kd2-dot[aria-current=\"true\"] .hb-kd2-ring-fg { stroke-dashoffset: 0; }\n.hb-kd2[data-play=\"true\"] .hb-kd2-dot[aria-current=\"true\"] .hb-kd2-ring-fg { animation: hb-kd2-fill var(--hb-kd2-int) linear forwards; }\n.hb-kd2[data-play=\"true\"][data-paused=\"true\"] .hb-kd2-ring-fg { animation-play-state: paused; }\n@keyframes hb-kd2-fill { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }\n.hb-kd2-dot:focus-visible { outline: 2px solid var(--hb-kd2-accent); outline-offset: 2px; }\n.hb-kd2-hint { color: #8a867f; font-size: 12px; }\n@container (max-width: 640px) {\n  .hb-kd2-in { padding: 72px 20px 64px; }\n  .hb-kd2-top { margin-bottom: 28px; }\n  .hb-kd2-bottom { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 36px; }\n  .hb-kd2-nav { align-items: flex-start; }\n  .hb-kd2-hint { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kd2-slide, .hb-kd2-slide[data-active=\"true\"], .hb-kd2-author, .hb-kd2-author[data-active=\"true\"], .hb-kd2-dot-face { transition: none; filter: none; transform: none; }\n  .hb-kd2-ring-fg { animation: none !important; }\n}\n`;\n\nconst defaultQuotes: SpotlightQuote[] = [\n  {\n    quote: \"We moved our entire billing stack in a weekend. Six months later, nobody on the team remembers what the old dashboards looked like.\",\n    name: \"Elena Marchetti\",\n    role: \"Head of Finance Operations\",\n    company: \"Fernhill\",\n    metric: \"Month-end close in 2 days, down from 9\",\n  },\n  {\n    quote: \"Ledgerly is the rare tool that made our accountants and our engineers happy at the same time. That has never happened before.\",\n    name: \"Marcus Webb\",\n    role: \"VP Engineering\",\n    company: \"Halcyon Health\",\n    metric: \"38 hours saved every month\",\n  },\n  {\n    quote: \"Revenue recognition used to be a spreadsheet with a prayer attached. Now it is a report I can send to the board without rechecking it.\",\n    name: \"Aiko Tanaka\",\n    role: \"Chief Financial Officer\",\n    company: \"Quartzline\",\n    metric: \"Zero audit adjustments in FY25\",\n  },\n  {\n    quote: \"Their team answered our migration questions faster than our own Slack channel did. The product is great, the people are better.\",\n    name: \"Samuel Osei\",\n    role: \"Controller\",\n    company: \"Driftwood Supply\",\n    metric: \"Live across 4 entities in 3 weeks\",\n  },\n];\n\nconst faces = [\n  \"linear-gradient(135deg, #ff7a45, #e8366d)\",\n  \"linear-gradient(135deg, #3b82f6, #14b8a6)\",\n  \"linear-gradient(135deg, #8b5cf6, #ec4899)\",\n  \"linear-gradient(135deg, #f59e0b, #65a30d)\",\n  \"linear-gradient(135deg, #0ea5e9, #6366f1)\",\n  \"linear-gradient(135deg, #f43f5e, #f59e0b)\",\n];\n\nfunction initialsOf(name: string) {\n  return name\n    .split(/\\s+/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((part) => part[0]?.toUpperCase() ?? \"\")\n    .join(\"\");\n}\n\nexport function ProofSpotlightQuote({\n  eyebrow = \"Customer stories\",\n  quotes = defaultQuotes,\n  interval = 6,\n  autoPlay = true,\n  defaultIndex = 0,\n  onIndexChange,\n  accent = \"#ff5a36\",\n  className = \"\",\n  style,\n  onMouseEnter,\n  onMouseLeave,\n  onFocus,\n  onBlur,\n  ...rest\n}: ProofSpotlightQuoteProps) {\n  const uid = React.useId();\n  const count = quotes.length;\n  const [index, setIndex] = React.useState(() => Math.max(0, Math.min(count - 1, defaultIndex)));\n  const [hovered, setHovered] = React.useState(false);\n  const [focused, setFocused] = React.useState(false);\n  const dotsRef = React.useRef<HTMLUListElement>(null);\n  const active = count > 0 ? Math.min(index, count - 1) : 0;\n  const playing = autoPlay && count > 1;\n  const paused = hovered || focused;\n\n  const go = React.useCallback(\n    (next: number) => {\n      if (count === 0) return;\n      const value = ((next % count) + count) % count;\n      setIndex(value);\n      onIndexChange?.(value);\n    },\n    [count, onIndexChange],\n  );\n\n  const onKeyDown = (e: React.KeyboardEvent<HTMLUListElement>) => {\n    let next = -1;\n    if (e.key === \"ArrowRight\" || e.key === \"ArrowDown\") next = active + 1;\n    else if (e.key === \"ArrowLeft\" || e.key === \"ArrowUp\") next = active - 1;\n    else if (e.key === \"Home\") next = 0;\n    else if (e.key === \"End\") next = count - 1;\n    if (next === -1) return;\n    e.preventDefault();\n    const value = ((next % count) + count) % count;\n    go(value);\n    const buttons = dotsRef.current?.querySelectorAll<HTMLButtonElement>(\"button\");\n    buttons?.[value]?.focus();\n  };\n\n  const vars = { \"--hb-kd2-accent\": accent, \"--hb-kd2-int\": `${Math.max(2, interval)}s`, ...style } as React.CSSProperties;\n\n  return (\n    <section\n      className={`hb-kd2 ${className}`}\n      style={vars}\n      data-play={playing ? \"true\" : \"false\"}\n      data-paused={paused ? \"true\" : \"false\"}\n      aria-roledescription=\"carousel\"\n      aria-label={eyebrow || \"Customer quotes\"}\n      onMouseEnter={(e) => {\n        setHovered(true);\n        onMouseEnter?.(e);\n      }}\n      onMouseLeave={(e) => {\n        setHovered(false);\n        onMouseLeave?.(e);\n      }}\n      onFocus={(e) => {\n        setFocused(true);\n        onFocus?.(e);\n      }}\n      onBlur={(e) => {\n        if (!e.currentTarget.contains(e.relatedTarget as Node | null)) setFocused(false);\n        onBlur?.(e);\n      }}\n      {...rest}\n    >\n      <style href=\"hb-proof-spotlight-quote\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kd2-in\">\n        <div className=\"hb-kd2-top\">\n          {eyebrow ? <span className=\"hb-kd2-eyebrow\">{eyebrow}</span> : <span />}\n          {count > 1 && (\n            <span className=\"hb-kd2-count\" aria-hidden=\"true\">\n              <b>{String(active + 1).padStart(2, \"0\")}</b> / {String(count).padStart(2, \"0\")}\n            </span>\n          )}\n        </div>\n        <div className=\"hb-kd2-stage\" aria-live={playing && !paused ? \"off\" : \"polite\"}>\n          {quotes.map((q, i) => (\n            <figure\n              key={`${q.name}-${i}`}\n              id={`${uid}-s${i}`}\n              className=\"hb-kd2-slide\"\n              data-active={i === active ? \"true\" : \"false\"}\n              aria-hidden={i !== active}\n              role=\"group\"\n              aria-roledescription=\"slide\"\n              aria-label={`${i + 1} of ${count}`}\n            >\n              <svg className=\"hb-kd2-mark\" viewBox=\"0 0 44 34\" fill=\"currentColor\" aria-hidden=\"true\">\n                <path d=\"M0 34V20.6C0 9.4 5.6 2.5 16.8 0l2 4.4C12.6 6.3 9.6 10 9.4 15.6H18V34H0zm26 0V20.6C26 9.4 31.6 2.5 42.8 0l2 4.4c-6.2 1.9-9.2 5.6-9.4 11.2H44V34H26z\" />\n              </svg>\n              <blockquote className=\"hb-kd2-quote\">{q.quote}</blockquote>\n              {q.metric && (\n                <span className=\"hb-kd2-metric\">\n                  <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                    <path d=\"M2 11.5l4-4 3 3 5-6\" />\n                    <path d=\"M10.5 4.5H14V8\" />\n                  </svg>\n                  {q.metric}\n                </span>\n              )}\n            </figure>\n          ))}\n        </div>\n        <div className=\"hb-kd2-bottom\">\n          <div className=\"hb-kd2-authors\">\n            {quotes.map((q, i) => (\n              <div key={`${q.name}-a${i}`} className=\"hb-kd2-author\" data-active={i === active ? \"true\" : \"false\"} aria-hidden={i !== active}>\n                <span className=\"hb-kd2-face\" style={{ background: faces[i % faces.length] }} aria-hidden=\"true\">\n                  {initialsOf(q.name)}\n                </span>\n                <span>\n                  <cite className=\"hb-kd2-name\">{q.name}</cite>\n                  <span className=\"hb-kd2-role\">\n                    {q.role}, {q.company}\n                  </span>\n                </span>\n              </div>\n            ))}\n          </div>\n          {count > 1 && (\n            <div className=\"hb-kd2-nav\">\n              <ul className=\"hb-kd2-dots\" ref={dotsRef} onKeyDown={onKeyDown} aria-label=\"Choose a quote\">\n                {quotes.map((q, i) => (\n                  <li key={`${q.name}-d${i}`}>\n                    <button\n                      type=\"button\"\n                      className=\"hb-kd2-dot\"\n                      aria-current={i === active ? \"true\" : undefined}\n                      aria-controls={`${uid}-s${i}`}\n                      aria-label={`Quote from ${q.name}, ${q.company}`}\n                      tabIndex={i === active ? 0 : -1}\n                      onClick={() => go(i)}\n                    >\n                      <span className=\"hb-kd2-dot-face\" style={{ background: faces[i % faces.length] }} aria-hidden=\"true\">\n                        {initialsOf(q.name)}\n                      </span>\n                      <svg className=\"hb-kd2-ring\" viewBox=\"0 0 34 34\" aria-hidden=\"true\">\n                        <circle className=\"hb-kd2-ring-bg\" cx=\"17\" cy=\"17\" r=\"16\" pathLength={100} />\n                        <circle\n                          key={i === active ? `on-${active}` : \"off\"}\n                          className=\"hb-kd2-ring-fg\"\n                          cx=\"17\"\n                          cy=\"17\"\n                          r=\"16\"\n                          pathLength={100}\n                          onAnimationEnd={i === active ? () => go(active + 1) : undefined}\n                        />\n                      </svg>\n                    </button>\n                  </li>\n                ))}\n              </ul>\n              <span className=\"hb-kd2-hint\">{playing ? \"Hover to pause\" : \"Use arrow keys to browse\"}</span>\n            </div>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}