{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-kinetic",
  "type": "registry:component",
  "title": "Hero Kinetic",
  "description": "A poster-scale typographic hero with three lines that each move differently: letters pump like an equalizer, an outlined line slides as a marquee and a color wave runs through the last line, whose letters flip on hover.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "kinetic",
    "typography",
    "studio",
    "marquee",
    "poster"
  ],
  "docs": "https://hyperblur.dev/effects/hero-kinetic",
  "files": [
    {
      "path": "registry/hyperblur/hero-kinetic.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-kinetic.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroKineticAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroKineticProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  lines?: [string, string, string];\n  subtitle?: string;\n  meta?: string[];\n  primaryCta?: HeroKineticAction | null;\n  secondaryCta?: HeroKineticAction | null;\n  accent?: string;\n  speed?: number;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vb4 {\n  --hb-vb4-accent: #c8ff3d;\n  --hb-vb4-sp: 1;\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  min-height: 620px;\n  padding: 22px clamp(18px, 4cqi, 44px) 30px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #0b0b0b;\n  color: #f2f2ee;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vb4 *, .hb-vb4 *::before, .hb-vb4 *::after { box-sizing: border-box; }\n.hb-vb4-meta {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: space-between;\n  gap: 8px 20px;\n  margin: 0;\n  padding: 0 0 14px;\n  border-bottom: 1px solid rgba(242, 242, 238, .12);\n  color: rgba(242, 242, 238, .55);\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 11px;\n  letter-spacing: .06em;\n  text-transform: uppercase;\n  list-style: none;\n}\n.hb-vb4-meta li:first-child { color: #f2f2ee; }\n.hb-vb4-meta li:first-child::before {\n  content: \"\";\n  display: inline-block;\n  width: 7px;\n  height: 7px;\n  margin-right: 8px;\n  border-radius: 50%;\n  background: var(--hb-vb4-accent);\n  box-shadow: 0 0 10px var(--hb-vb4-accent);\n  vertical-align: 1px;\n}\n.hb-vb4-title {\n  display: flex;\n  flex-direction: column;\n  margin: 18px 0 0;\n  font-family: var(--font-grotesk, inherit);\n  font-size: clamp(64px, 15.5cqi, 200px);\n  font-weight: 700;\n  line-height: .84;\n  letter-spacing: -.055em;\n  text-transform: uppercase;\n}\n.hb-vb4-row { display: flex; align-items: flex-end; height: .88em; white-space: nowrap; }\n.hb-vb4-row[data-mode=\"wave\"] .hb-vb4-ch {\n  display: inline-block;\n  transform-origin: 50% 100%;\n  animation: hb-vb4-eq calc(2.4s / var(--hb-vb4-sp)) cubic-bezier(.65, 0, .35, 1) infinite;\n  animation-delay: calc(var(--hb-vb4-i) * 110ms);\n}\n@keyframes hb-vb4-eq {\n  0%, 100% { transform: scaleY(1); }\n  45% { transform: scaleY(.42); }\n  60% { transform: scaleY(1.06); }\n}\n.hb-vb4-row[data-mode=\"slide\"] { position: relative; overflow: hidden; margin: 0 calc(clamp(18px, 4cqi, 44px) * -1); }\n.hb-vb4-track {\n  display: flex;\n  flex: none;\n  animation: hb-vb4-slide calc(16s / var(--hb-vb4-sp)) linear infinite;\n}\n.hb-vb4-track span {\n  flex: none;\n  padding-right: .3em;\n  color: transparent;\n  -webkit-text-stroke: 1.5px rgba(242, 242, 238, .7);\n}\n.hb-vb4-track span:nth-child(odd) { -webkit-text-stroke-color: var(--hb-vb4-accent); }\n@keyframes hb-vb4-slide {\n  from { transform: translate3d(0, 0, 0); }\n  to { transform: translate3d(-50%, 0, 0); }\n}\n.hb-vb4-row[data-mode=\"sweep\"] { perspective: 600px; }\n.hb-vb4-row[data-mode=\"sweep\"] .hb-vb4-ch {\n  display: inline-block;\n  animation: hb-vb4-sweep calc(3.6s / var(--hb-vb4-sp)) cubic-bezier(.65, 0, .35, 1) infinite;\n  animation-delay: calc(var(--hb-vb4-i) * 90ms);\n  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);\n}\n.hb-vb4-row[data-mode=\"sweep\"] .hb-vb4-ch:hover { transform: rotateX(360deg); }\n@keyframes hb-vb4-sweep {\n  0%, 30%, 100% { color: #f2f2ee; }\n  12% { color: var(--hb-vb4-accent); }\n}\n.hb-vb4-in { animation: hb-vb4-rise 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--hb-vb4-d, 0ms); }\n.hb-vb4-row.hb-vb4-in { animation-name: hb-vb4-mask; }\n@keyframes hb-vb4-rise {\n  from { opacity: 0; transform: translate3d(0, 12px, 0); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-vb4-mask {\n  from { clip-path: inset(100% -10% -20% -10%); transform: translate3d(0, .2em, 0); }\n  to { clip-path: inset(-30% -10% -20% -10%); transform: none; }\n}\n.hb-vb4-foot {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) auto;\n  align-items: end;\n  gap: 20px 40px;\n  margin-top: auto;\n  padding-top: 28px;\n}\n.hb-vb4-sub {\n  max-width: 440px;\n  margin: 0;\n  color: rgba(242, 242, 238, .62);\n  font-size: clamp(14.5px, 1.6cqi, 16.5px);\n  line-height: 1.5;\n}\n.hb-vb4-actions { display: flex; flex-wrap: wrap; gap: 10px; }\n.hb-vb4-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  min-height: 48px;\n  padding: 0 22px;\n  border: 1px solid rgba(242, 242, 238, .2);\n  border-radius: 999px;\n  color: #f2f2ee;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 600;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-vb4-btn:hover { border-color: #f2f2ee; transform: translateY(-1px); }\n.hb-vb4-btn:active { transform: scale(.98); }\n.hb-vb4-btn:focus-visible { outline: 2px solid var(--hb-vb4-accent); outline-offset: 3px; }\n.hb-vb4-btn[data-primary] { border-color: var(--hb-vb4-accent); background: var(--hb-vb4-accent); color: #0b0b0b; }\n.hb-vb4-btn[data-primary]:hover { background: #f2f2ee; border-color: #f2f2ee; }\n.hb-vb4-arrow {\n  display: grid;\n  place-items: center;\n  width: 26px;\n  height: 26px;\n  margin-right: -10px;\n  border-radius: 50%;\n  background: #0b0b0b;\n  color: var(--hb-vb4-accent);\n  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);\n}\n.hb-vb4-btn:hover .hb-vb4-arrow { transform: rotate(-45deg); }\n.hb-vb4-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@container (max-width: 620px) {\n  .hb-vb4-foot { grid-template-columns: 1fr; }\n  .hb-vb4-meta li:nth-child(n + 3) { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vb4-row[data-mode] .hb-vb4-ch, .hb-vb4-track, .hb-vb4-in { animation: none; }\n  .hb-vb4-btn, .hb-vb4-arrow, .hb-vb4-row[data-mode=\"sweep\"] .hb-vb4-ch { transition: none; }\n}\n`;\n\nconst defaultLines: [string, string, string] = [\"Motion\", \"is the\", \"message\"];\nconst defaultMeta = [\"Kinetik Studio\", \"Type in motion since 2014\", \"Berlin / Remote\", \"Open for Q1 2027\"];\nconst defaultPrimary: HeroKineticAction = { label: \"Start a project\", href: \"#\" };\nconst defaultSecondary: HeroKineticAction = { label: \"Showreel 2026\", href: \"#\" };\n\nfunction d(ms: number) {\n  return { \"--hb-vb4-d\": `${ms}ms` } as React.CSSProperties;\n}\n\nfunction Letters({ text }: { text: string }) {\n  return (\n    <>\n      {Array.from(text).map((ch, i) => (\n        <span key={i} className=\"hb-vb4-ch\" style={{ \"--hb-vb4-i\": i } as React.CSSProperties}>\n          {ch === \" \" ? \" \" : ch}\n        </span>\n      ))}\n    </>\n  );\n}\n\nexport function HeroKinetic({\n  lines = defaultLines,\n  subtitle = \"We design identities that refuse to sit still: type systems, motion languages and launch films for brands that live on screens.\",\n  meta = defaultMeta,\n  primaryCta = defaultPrimary,\n  secondaryCta = defaultSecondary,\n  accent = \"#c8ff3d\",\n  speed = 1,\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  ...rest\n}: HeroKineticProps) {\n  const Heading = headingAs;\n  const vars = { \"--hb-vb4-accent\": accent, \"--hb-vb4-sp\": Math.max(speed, 0.1), ...style } as React.CSSProperties;\n  const repeat = Array.from({ length: 6 }, () => lines[1]);\n\n  return (\n    <section className={`hb-vb4 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-hero-kinetic\" precedence=\"default\">{css}</style>\n      {meta.length ? (\n        <ul className=\"hb-vb4-meta hb-vb4-in\" style={d(0)}>\n          {meta.map((item) => (\n            <li key={item}>{item}</li>\n          ))}\n        </ul>\n      ) : null}\n      <Heading className=\"hb-vb4-title\">\n        <span className=\"hb-vb4-sr\">{lines.join(\" \")}</span>\n        <span className=\"hb-vb4-row hb-vb4-in\" data-mode=\"wave\" style={d(120)} aria-hidden=\"true\">\n          <Letters text={lines[0]} />\n        </span>\n        <span className=\"hb-vb4-row hb-vb4-in\" data-mode=\"slide\" style={d(240)} aria-hidden=\"true\">\n          <span className=\"hb-vb4-track\">\n            {repeat.concat(repeat).map((word, i) => (\n              <span key={i}>{word}</span>\n            ))}\n          </span>\n        </span>\n        <span className=\"hb-vb4-row hb-vb4-in\" data-mode=\"sweep\" style={d(360)} aria-hidden=\"true\">\n          <Letters text={lines[2]} />\n        </span>\n      </Heading>\n      <div className=\"hb-vb4-foot hb-vb4-in\" style={d(520)}>\n        {subtitle ? <p className=\"hb-vb4-sub\">{subtitle}</p> : <span />}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-vb4-actions\">\n            {secondaryCta ? (\n              <a className=\"hb-vb4-btn\" href={secondaryCta.href}>\n                {secondaryCta.label}\n              </a>\n            ) : null}\n            {primaryCta ? (\n              <a className=\"hb-vb4-btn\" data-primary=\"\" href={primaryCta.href}>\n                {primaryCta.label}\n                <span className=\"hb-vb4-arrow\" aria-hidden=\"true\">\n                  <svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                    <path d=\"M5 12h14M13 6l6 6-6 6\" />\n                  </svg>\n                </span>\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}