{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "about-story",
  "type": "registry:component",
  "title": "About Story",
  "description": "A company story with a large serif statement, a row of key facts, a five-step timeline whose line draws down as it enters view, and a founder note card.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "about",
    "about",
    "story",
    "timeline",
    "company",
    "founder",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/about-story",
  "files": [
    {
      "path": "registry/hyperblur/about-story.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/about-story.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AboutStoryMilestone {\n  year: string;\n  title: string;\n  text: string;\n}\n\nexport interface AboutStoryFact {\n  label: string;\n  value: string;\n}\n\nexport interface AboutStoryNote {\n  text: string;\n  name: string;\n  role: string;\n}\n\nexport interface AboutStoryProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  statement?: string;\n  highlight?: string;\n  facts?: AboutStoryFact[];\n  milestones?: AboutStoryMilestone[];\n  note?: AboutStoryNote | null;\n  accent?: string;\n}\n\nconst css = `\n.hb-kd8 {\n  --hb-kd8-accent: #f5a524;\n  box-sizing: border-box;\n  container-type: inline-size;\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kd8 *, .hb-kd8 *::before, .hb-kd8 *::after { box-sizing: border-box; }\n.hb-kd8::before {\n  content: \"\";\n  position: absolute;\n  right: -10%;\n  top: -30%;\n  width: 70%;\n  height: 80%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-kd8-accent) 12%, transparent), transparent);\n  pointer-events: none;\n}\n.hb-kd8-in {\n  position: relative;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 96px 32px 112px;\n}\n.hb-kd8-eyebrow {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  margin: 0;\n  color: #8f8f8f;\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 12px;\n  letter-spacing: .12em;\n  text-transform: uppercase;\n}\n.hb-kd8-eyebrow::after { content: \"\"; flex: 1; max-width: 120px; height: 1px; background: rgba(255, 255, 255, .14); }\n.hb-kd8-statement {\n  margin: 28px 0 0;\n  max-width: 980px;\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  font-size: clamp(34px, 6.2cqi, 74px);\n  font-weight: 400;\n  line-height: 1.04;\n  letter-spacing: -.02em;\n  color: #f4f1ea;\n  text-wrap: balance;\n}\n.hb-kd8-hl {\n  font-style: normal;\n    color: var(--hb-kd8-accent);\n  background: linear-gradient(90deg, var(--hb-kd8-accent), color-mix(in srgb, var(--hb-kd8-accent) 55%, #fff));\n  -webkit-background-clip: text;\n  background-clip: text;\n  -webkit-text-fill-color: transparent;\n}\n.hb-kd8-facts {\n  display: grid;\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n  margin: 48px 0 0;\n  padding: 0;\n  border-top: 1px solid rgba(255, 255, 255, .08);\n  border-bottom: 1px solid rgba(255, 255, 255, .08);\n}\n.hb-kd8-fact { padding: 20px 20px 20px 0; }\n.hb-kd8-fact + .hb-kd8-fact { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .08); }\n.hb-kd8-fact dt { color: #8f8f8f; font-size: 12.5px; }\n.hb-kd8-fact dd { margin: 6px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }\n.hb-kd8-grid {\n  display: grid;\n  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);\n  gap: 64px;\n  align-items: start;\n  margin-top: 64px;\n}\n.hb-kd8-tlwrap { position: relative; padding-left: 40px; }\n.hb-kd8-tl { margin: 0; padding: 0; list-style: none; }\n.hb-kd8-track, .hb-kd8-fill {\n  position: absolute;\n  left: 7px;\n  top: 8px;\n  bottom: 8px;\n  width: 2px;\n  border-radius: 2px;\n}\n.hb-kd8-track { background: rgba(255, 255, 255, .08); }\n.hb-kd8-fill {\n  background: linear-gradient(180deg, var(--hb-kd8-accent), color-mix(in srgb, var(--hb-kd8-accent) 30%, transparent));\n  box-shadow: 0 0 14px color-mix(in srgb, var(--hb-kd8-accent) 60%, transparent);\n  transform-origin: top;\n  transform: scaleY(1);\n  transition: transform 1.8s cubic-bezier(.5, 0, .2, 1);\n}\n.hb-kd8-step { position: relative; padding-bottom: 36px; }\n.hb-kd8-step:last-child { padding-bottom: 0; }\n.hb-kd8-dot {\n  position: absolute;\n  left: -40px;\n  top: 2px;\n  width: 16px;\n  height: 16px;\n  border: 2px solid var(--hb-kd8-accent);\n  border-radius: 50%;\n  background: #0a0a0a;\n  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .4s ease;\n  transition-delay: var(--hb-kd8-d, 0s);\n}\n.hb-kd8-step[data-now=\"true\"] .hb-kd8-dot { background: var(--hb-kd8-accent); }\n.hb-kd8-step[data-now=\"true\"] .hb-kd8-dot::after {\n  content: \"\";\n  position: absolute;\n  inset: -6px;\n  border-radius: 50%;\n  border: 1px solid var(--hb-kd8-accent);\n  animation: hb-kd8-pulse 2.4s ease-out infinite;\n}\n@keyframes hb-kd8-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }\n.hb-kd8-body { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--hb-kd8-d, 0s); }\n.hb-kd8-year {\n  display: inline-block;\n  color: var(--hb-kd8-accent);\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 12.5px;\n  font-weight: 500;\n  letter-spacing: .04em;\n}\n.hb-kd8-step-title { margin: 6px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }\n.hb-kd8-step-text { margin: 8px 0 0; max-width: 520px; color: #9a9a9a; font-size: 15px; line-height: 1.6; }\n.hb-kd8[data-armed=\"true\"] .hb-kd8-fill { transform: scaleY(0); }\n.hb-kd8[data-armed=\"true\"] .hb-kd8-dot { transform: scale(0); }\n.hb-kd8[data-armed=\"true\"] .hb-kd8-body { opacity: 0; transform: translate3d(0, 12px, 0); }\n.hb-kd8[data-armed=\"true\"][data-inview=\"true\"] .hb-kd8-fill { transform: scaleY(1); }\n.hb-kd8[data-armed=\"true\"][data-inview=\"true\"] .hb-kd8-dot { transform: scale(1); }\n.hb-kd8[data-armed=\"true\"][data-inview=\"true\"] .hb-kd8-body { opacity: 1; transform: none; }\n.hb-kd8-note {\n  position: sticky;\n  top: 32px;\n  margin: 0;\n  padding: 32px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 24px;\n  background:\n    radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--hb-kd8-accent) 12%, transparent), transparent 70%),\n    linear-gradient(180deg, #151413, #0f0f0e);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .8);\n}\n.hb-kd8-note-label {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  color: #a1a1a1;\n  font-size: 12.5px;\n  font-weight: 500;\n}\n.hb-kd8-note-label svg { width: 14px; height: 14px; color: var(--hb-kd8-accent); }\n.hb-kd8-note-text {\n  margin: 18px 0 0;\n  color: #e4e1da;\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  font-size: clamp(20px, 2.3cqi, 25px);\n  line-height: 1.35;\n}\n.hb-kd8-sign {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  margin-top: 28px;\n  padding-top: 22px;\n  border-top: 1px dashed rgba(255, 255, 255, .12);\n}\n.hb-kd8-av {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border-radius: 50%;\n  background: linear-gradient(135deg, var(--hb-kd8-accent), #e8366d);\n  color: #0a0a0a;\n  font-size: 14px;\n  font-weight: 700;\n}\n.hb-kd8-name {\n  display: block;\n  color: #f4f1ea;\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  font-size: 24px;\n    line-height: 1.1;\n}\n.hb-kd8-role { display: block; margin-top: 3px; color: #8f8f8f; font-size: 13px; }\n@container (max-width: 860px) {\n  .hb-kd8-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }\n  .hb-kd8-note { position: static; }\n  .hb-kd8-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-kd8-fact:nth-child(3) { padding-left: 0; border-left: 0; }\n  .hb-kd8-fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }\n}\n@container (max-width: 520px) {\n  .hb-kd8-in { padding: 72px 20px 80px; }\n  .hb-kd8-facts { margin-top: 36px; }\n  .hb-kd8-fact dd { font-size: 17px; }\n  .hb-kd8-grid { margin-top: 48px; }\n  .hb-kd8-tlwrap { padding-left: 32px; }\n  .hb-kd8-dot { left: -32px; }\n  .hb-kd8-note { padding: 24px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kd8-fill, .hb-kd8-dot, .hb-kd8-body { transition: none !important; }\n  .hb-kd8-step[data-now=\"true\"] .hb-kd8-dot::after { animation: none; }\n}\n`;\n\nconst defaultMilestones: AboutStoryMilestone[] = [\n  { year: \"2019\", title: \"A spreadsheet that got out of hand\", text: \"Two operations leads at a Lisbon logistics firm build a shared tracker to stop losing shipments between email threads.\" },\n  { year: \"2020\", title: \"First 100 customers\", text: \"Word spreads between freight forwarders. We quit our jobs, raise a small angel round and ship the first real version.\" },\n  { year: \"2022\", title: \"Series A and a second home\", text: \"We open an office in Toronto to be closer to North American carriers and grow the team to 30 people.\" },\n  { year: \"2024\", title: \"One million shipments a month\", text: \"Carriers in 41 countries now run their daily dispatch on Harbor, from two-truck family firms to national fleets.\" },\n  { year: \"Today\", title: \"Building the operating system for freight\", text: \"64 people, profitable, and still answering support tickets ourselves every Friday afternoon.\" },\n];\n\nconst defaultFacts: AboutStoryFact[] = [\n  { label: \"Founded\", value: \"2019, Lisbon\" },\n  { label: \"Team\", value: \"64 people\" },\n  { label: \"Countries served\", value: \"41\" },\n  { label: \"Shipments tracked\", value: \"1.2M a month\" },\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\nfunction renderStatement(statement: string, highlight?: string) {\n  if (!highlight) return statement;\n  const at = statement.indexOf(highlight);\n  if (at === -1) return statement;\n  return (\n    <>\n      {statement.slice(0, at)}\n      <em className=\"hb-kd8-hl\">{highlight}</em>\n      {statement.slice(at + highlight.length)}\n    </>\n  );\n}\n\nexport function AboutStory({\n  eyebrow = \"Our story\",\n  statement = \"We started Harbor because moving freight should feel as simple as sending an email, and for most of the world it still does not.\",\n  highlight = \"as simple as sending an email\",\n  facts = defaultFacts,\n  milestones = defaultMilestones,\n  note = {\n    text: \"We are not trying to be the biggest company in logistics. We want to be the one dispatchers trust at 6am, when a truck is late and the phone will not stop ringing.\",\n    name: \"Beatriz Couto\",\n    role: \"Co-founder and CEO\",\n  },\n  accent = \"#f5a524\",\n  className = \"\",\n  style,\n  ...rest\n}: AboutStoryProps) {\n  const uid = React.useId();\n  const rootRef = React.useRef<HTMLElement>(null);\n  const timelineRef = React.useRef<HTMLDivElement>(null);\n\n  React.useEffect(() => {\n    const root = rootRef.current;\n    const timeline = timelineRef.current;\n    if (!root || !timeline) return;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    if (typeof IntersectionObserver === \"undefined\") return;\n    root.dataset.armed = \"true\";\n    const io = new IntersectionObserver(\n      (entries) => {\n        if (entries.some((entry) => entry.isIntersecting)) {\n          root.dataset.inview = \"true\";\n          io.disconnect();\n        }\n      },\n      { threshold: 0.12 },\n    );\n    io.observe(timeline);\n    return () => {\n      io.disconnect();\n      delete root.dataset.armed;\n      delete root.dataset.inview;\n    };\n  }, []);\n\n  const vars = { \"--hb-kd8-accent\": accent, ...style } as React.CSSProperties;\n  const step = milestones.length > 1 ? 1.6 / (milestones.length - 1) : 0;\n\n  return (\n    <section ref={rootRef} className={`hb-kd8 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-about-story\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kd8-in\">\n        {eyebrow && <p className=\"hb-kd8-eyebrow\">{eyebrow}</p>}\n        <h2 id={`${uid}-t`} className=\"hb-kd8-statement\">{renderStatement(statement, highlight)}</h2>\n        {facts.length > 0 && (\n          <dl className=\"hb-kd8-facts\">\n            {facts.map((fact) => (\n              <div key={fact.label} className=\"hb-kd8-fact\">\n                <dt>{fact.label}</dt>\n                <dd>{fact.value}</dd>\n              </div>\n            ))}\n          </dl>\n        )}\n        <div className=\"hb-kd8-grid\">\n          <div ref={timelineRef} className=\"hb-kd8-tlwrap\">\n            <span className=\"hb-kd8-track\" aria-hidden=\"true\" />\n            <span className=\"hb-kd8-fill\" aria-hidden=\"true\" />\n            <ol className=\"hb-kd8-tl\" aria-label=\"Milestones\">\n              {milestones.map((m, i) => (\n                <li\n                  key={`${m.year}-${i}`}\n                  className=\"hb-kd8-step\"\n                  data-now={i === milestones.length - 1 ? \"true\" : \"false\"}\n                  style={{ \"--hb-kd8-d\": `${(0.15 + i * step).toFixed(2)}s` } as React.CSSProperties}\n                >\n                  <span className=\"hb-kd8-dot\" aria-hidden=\"true\" />\n                  <div className=\"hb-kd8-body\">\n                    <span className=\"hb-kd8-year\">{m.year}</span>\n                    <h3 className=\"hb-kd8-step-title\">{m.title}</h3>\n                    <p className=\"hb-kd8-step-text\">{m.text}</p>\n                  </div>\n                </li>\n              ))}\n            </ol>\n          </div>\n          {note && (\n            <figure className=\"hb-kd8-note\">\n              <span className=\"hb-kd8-note-label\">\n                <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M10.5 2.5l3 3L6 13H3v-3l7.5-7.5z\" />\n                </svg>\n                A note from the founder\n              </span>\n              <blockquote className=\"hb-kd8-note-text\">{note.text}</blockquote>\n              <figcaption className=\"hb-kd8-sign\">\n                <span className=\"hb-kd8-av\" aria-hidden=\"true\">{initialsOf(note.name)}</span>\n                <span>\n                  <cite className=\"hb-kd8-name\">{note.name}</cite>\n                  <span className=\"hb-kd8-role\">{note.role}</span>\n                </span>\n              </figcaption>\n            </figure>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}