{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "how-dashed-path",
  "type": "registry:component",
  "title": "Dashed Path Steps",
  "description": "Four numbered cards on paper, joined by a marching dashed route. A dot travels the path and each card lights up as the dot reaches it; on narrow screens the route turns vertical.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "how-it-works",
    "how it works",
    "steps",
    "path",
    "timeline",
    "motion",
    "light"
  ],
  "docs": "https://hyperblur.dev/effects/how-dashed-path",
  "files": [
    {
      "path": "registry/hyperblur/how-dashed-path.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/how-dashed-path.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HowDashedStep {\n  title: string;\n  description: string;\n  meta?: string;\n}\n\nexport interface HowDashedPathProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  steps?: HowDashedStep[];\n  cta?: { label: string; href: string };\n  duration?: number;\n  accent?: string;\n}\n\nconst defaultSteps: HowDashedStep[] = [\n  { title: \"Tell us about your space\", description: \"Answer six quick questions about rooms, light and the way you live.\", meta: \"3 minutes\" },\n  { title: \"Meet your designer\", description: \"A video call with one of our 140 interior designers, matched to your style.\", meta: \"Within 48 hours\" },\n  { title: \"Review two concepts\", description: \"Moodboards, floor plans and a shoppable list you can tweak line by line.\", meta: \"Day 7\" },\n  { title: \"Everything arrives\", description: \"We order, track and coordinate delivery. You unpack and enjoy the room.\", meta: \"Week 3\" },\n];\n\nconst css = `\n.hb-yj6 {\n  --hb-yj6-accent: #e0613a;\n  --hb-yj6-ink: #1f1d19;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #f7f5ef;\n  color: var(--hb-yj6-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-yj6 *, .hb-yj6 *::before, .hb-yj6 *::after { box-sizing: border-box; }\n.hb-yj6::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background:\n    radial-gradient(35% 45% at 12% 85%, color-mix(in srgb, var(--hb-yj6-accent) 10%, transparent), transparent 70%),\n    radial-gradient(30% 40% at 92% 10%, rgba(47, 92, 160, .07), transparent 70%);\n  pointer-events: none;\n}\n.hb-yj6-inner { max-width: 1120px; margin: 0 auto; padding: 72px 20px; }\n@container (min-width: 860px) { .hb-yj6-inner { padding: 100px 32px 108px; } }\n.hb-yj6-head {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: flex-end;\n  justify-content: space-between;\n  gap: 18px 40px;\n  margin-bottom: 40px;\n}\n.hb-yj6-eyebrow {\n  display: inline-block;\n  margin: 0 0 14px;\n  padding: 5px 11px;\n  border: 1px solid rgba(31, 29, 25, .12);\n  border-radius: 999px;\n  color: #6f6a60;\n  font-size: 12.5px;\n  font-weight: 500;\n}\n.hb-yj6-title {\n  margin: 0;\n  max-width: 600px;\n  font-size: clamp(30px, 4.8cqw, 48px);\n  line-height: 1.04;\n  letter-spacing: -.035em;\n  font-weight: 650;\n  text-wrap: balance;\n}\n.hb-yj6-sub { margin: 14px 0 0; max-width: 500px; color: #6f6a60; font-size: 16px; line-height: 1.6; }\n.hb-yj6-cta {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 44px;\n  padding: 0 20px;\n  border-radius: 999px;\n  background: var(--hb-yj6-ink);\n  color: #f7f5ef;\n  font-size: 14px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: transform .2s ease, background .2s ease;\n}\n.hb-yj6-cta:hover { transform: translateY(-1px); background: #000; }\n.hb-yj6-cta:focus-visible { outline: 2px solid var(--hb-yj6-accent); outline-offset: 3px; }\n.hb-yj6-stage { position: relative; display: grid; gap: 18px; padding-left: 42px; }\n.hb-yj6-svg { display: none; }\n.hb-yj6-vline {\n  position: absolute;\n  left: 15px;\n  top: 20px;\n  bottom: 20px;\n  width: 2px;\n  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--hb-yj6-ink) 30%, transparent) 0 6px, transparent 6px 12px);\n  background-size: 2px 12px;\n  animation: hb-yj6-vmarch 1s linear infinite;\n}\n.hb-yj6-vdot {\n  position: absolute;\n  left: 9px;\n  top: 20px;\n  width: 14px;\n  height: 14px;\n  border-radius: 50%;\n  background: var(--hb-yj6-accent);\n  box-shadow: 0 0 0 5px color-mix(in srgb, var(--hb-yj6-accent) 20%, transparent);\n  animation: hb-yj6-vtravel var(--hb-yj6-dur) cubic-bezier(.6, 0, .4, 1) infinite;\n}\n.hb-yj6-card {\n  position: relative;\n  z-index: 1;\n  padding: 22px;\n  border: 1px solid rgba(31, 29, 25, .1);\n  border-radius: 18px;\n  background: #fffdf8;\n  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(31, 29, 25, .05), 0 18px 40px -26px rgba(31, 29, 25, .35);\n  animation: hb-yj6-glow var(--hb-yj6-dur) ease-in-out infinite;\n  animation-delay: calc(var(--hb-yj6-i) * var(--hb-yj6-dur) / 4);\n}\n.hb-yj6-badge {\n  display: inline-grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  border-radius: 12px;\n  background: var(--hb-yj6-ink);\n  color: #f7f5ef;\n  font-size: 15px;\n  font-weight: 650;\n  font-variant-numeric: tabular-nums;\n  animation: hb-yj6-badge var(--hb-yj6-dur) ease-in-out infinite;\n  animation-delay: inherit;\n}\n.hb-yj6-card h3 { margin: 16px 0 0; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; font-weight: 620; }\n.hb-yj6-card p { margin: 8px 0 0; color: #6f6a60; font-size: 14.5px; line-height: 1.55; }\n.hb-yj6-meta {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  margin-top: 14px;\n  color: #8a8478;\n  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;\n  letter-spacing: .04em;\n  text-transform: uppercase;\n}\n.hb-yj6-meta::before { content: \"\"; width: 6px; height: 6px; border-radius: 50%; background: var(--hb-yj6-accent); }\n@container (min-width: 860px) {\n  .hb-yj6-stage { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; }\n  .hb-yj6-vline, .hb-yj6-vdot { display: none; }\n  .hb-yj6-svg { display: block; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 1000 / 130; overflow: visible; margin-bottom: 4px; }\n  .hb-yj6-card:nth-of-type(even) { margin-top: 36px; }\n}\n.hb-yj6-path-bg { fill: none; stroke: color-mix(in srgb, var(--hb-yj6-ink) 12%, transparent); stroke-width: 10; stroke-linecap: round; }\n.hb-yj6-path {\n  fill: none;\n  stroke: color-mix(in srgb, var(--hb-yj6-ink) 45%, transparent);\n  stroke-width: 2;\n  stroke-dasharray: 7 9;\n  stroke-linecap: round;\n  animation: hb-yj6-march 1.2s linear infinite;\n}\n.hb-yj6-trail { fill: none; stroke: var(--hb-yj6-accent); stroke-width: 2.5; stroke-linecap: round; opacity: .9; }\n@keyframes hb-yj6-march { to { stroke-dashoffset: -32; } }\n@keyframes hb-yj6-vmarch { to { background-position: 0 12px; } }\n@keyframes hb-yj6-vtravel {\n  0% { top: 20px; }\n  75%, 100% { top: calc(100% - 34px); }\n}\n@keyframes hb-yj6-glow {\n  0%, 26%, 100% { border-color: rgba(31, 29, 25, .1); transform: translateY(0); }\n  4%, 20% { border-color: color-mix(in srgb, var(--hb-yj6-accent) 55%, transparent); transform: translateY(-4px); }\n}\n@keyframes hb-yj6-badge {\n  0%, 26%, 100% { background: var(--hb-yj6-ink); }\n  4%, 20% { background: var(--hb-yj6-accent); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-yj6 *, .hb-yj6 *::before, .hb-yj6 *::after { animation: none !important; transition: none !important; }\n  .hb-yj6-vdot, .hb-yj6-mover { display: none; }\n}\n`;\n\nconst POINTS = [\n  { x: 125, y: 28 },\n  { x: 375, y: 100 },\n  { x: 625, y: 28 },\n  { x: 875, y: 100 },\n];\n\nconst PATH = \"M 125 28 C 250 28, 250 100, 375 100 S 500 28, 625 28 S 750 100, 875 100\";\n\nexport function HowDashedPath({\n  eyebrow = \"How it works\",\n  title = \"A finished room in three weeks, not three months\",\n  subtitle = \"One designer, one plan and one delivery date. You stay in charge of every decision.\",\n  steps = defaultSteps,\n  cta = { label: \"Book a free call\", href: \"#\" },\n  duration = 8,\n  accent = \"#e0613a\",\n  className,\n  style,\n  ...rest\n}: HowDashedPathProps) {\n  const rawId = React.useId();\n  const pathId = `hb-yj6-p${rawId.replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n  const shown = steps.slice(0, 4);\n  const dur = Math.max(2, duration);\n\n  return (\n    <section\n      className={[\"hb-yj6\", className].filter(Boolean).join(\" \")}\n      style={{ \"--hb-yj6-accent\": accent, \"--hb-yj6-dur\": `${dur}s`, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-how-dashed-path\" precedence=\"default\">{css}</style>\n      <div className=\"hb-yj6-inner\">\n        <div className=\"hb-yj6-head\">\n          <div>\n            {eyebrow ? <p className=\"hb-yj6-eyebrow\">{eyebrow}</p> : null}\n            <h2 className=\"hb-yj6-title\">{title}</h2>\n            {subtitle ? <p className=\"hb-yj6-sub\">{subtitle}</p> : null}\n          </div>\n          {cta ? (\n            <a className=\"hb-yj6-cta\" href={cta.href}>\n              {cta.label}\n              <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                <path d=\"M3 8h10m-4-4 4 4-4 4\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n            </a>\n          ) : null}\n        </div>\n        <div className=\"hb-yj6-stage\" role=\"list\">\n          <svg className=\"hb-yj6-svg\" viewBox=\"0 0 1000 130\" preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\">\n            <path id={pathId} className=\"hb-yj6-path-bg\" d={PATH} />\n            <path className=\"hb-yj6-path\" d={PATH} />\n            {POINTS.map((p, i) => (\n              <g key={i}>\n                <circle cx={p.x} cy={p.y} r=\"13\" fill=\"#fffdf8\" stroke=\"currentColor\" strokeOpacity=\".18\" strokeWidth=\"1.5\" />\n                <text x={p.x} y={p.y + 4} textAnchor=\"middle\" fontSize=\"11\" fontWeight=\"600\" fill=\"currentColor\" opacity=\".6\">\n                  {String(i + 1).padStart(2, \"0\")}\n                </text>\n              </g>\n            ))}\n            <g className=\"hb-yj6-mover\">\n              <circle r=\"16\" fill={accent} opacity=\".18\">\n                <animateMotion dur={`${dur}s`} repeatCount=\"indefinite\" keyPoints=\"0;1;1\" keyTimes=\"0;0.75;1\" calcMode=\"linear\">\n                  <mpath href={`#${pathId}`} />\n                </animateMotion>\n              </circle>\n              <circle r=\"8\" fill={accent} stroke=\"#fffdf8\" strokeWidth=\"3\">\n                <animateMotion dur={`${dur}s`} repeatCount=\"indefinite\" keyPoints=\"0;1;1\" keyTimes=\"0;0.75;1\" calcMode=\"linear\">\n                  <mpath href={`#${pathId}`} />\n                </animateMotion>\n              </circle>\n            </g>\n          </svg>\n          <span className=\"hb-yj6-vline\" aria-hidden=\"true\" />\n          <span className=\"hb-yj6-vdot\" aria-hidden=\"true\" />\n          {shown.map((s, i) => (\n            <div role=\"listitem\" key={s.title + i} className=\"hb-yj6-card\" style={{ \"--hb-yj6-i\": i } as React.CSSProperties}>\n              <span className=\"hb-yj6-badge\">{i + 1}</span>\n              <h3>{s.title}</h3>\n              <p>{s.description}</p>\n              {s.meta ? <span className=\"hb-yj6-meta\">{s.meta}</span> : null}\n            </div>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}