{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "about-mission-split",
  "type": "registry:component",
  "title": "About Mission Split",
  "description": "A huge mission statement on the left that reveals word by word with highlighted words, and three numbered principle cards on the right whose metrics count up when they scroll into view.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "about",
    "about",
    "mission",
    "principles",
    "count up",
    "statement",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/about-mission-split",
  "files": [
    {
      "path": "registry/hyperblur/about-mission-split.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/about-mission-split.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AboutMissionPrinciple {\n  title: string;\n  text: string;\n  value: number;\n  suffix?: string;\n  prefix?: string;\n  label: string;\n}\n\nexport interface AboutMissionSplitProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  statement?: string;\n  highlight?: string[];\n  signature?: string;\n  principles?: AboutMissionPrinciple[];\n  cta?: { label: string; href: string };\n  accent?: string;\n}\n\nconst defaultPrinciples: AboutMissionPrinciple[] = [\n  { title: \"Measure what matters\", text: \"Every feature ships with a number we promise to move. If it does not move, we remove the feature.\", value: 41, suffix: \"%\", label: \"less energy per kWh billed\" },\n  { title: \"Build for the grid of 2040\", text: \"Our models assume half of all homes will sell power back. We design for that world today.\", value: 1.8, suffix: \"M\", label: \"homes on the platform\" },\n  { title: \"Stay boring with money\", text: \"Profitable since year three. No growth at any cost, no surprise price changes, ever.\", value: 12, prefix: \"$\", suffix: \"M\", label: \"returned to customers in 2025\" },\n];\n\nconst css = `\n@keyframes hb-yg3-word {\n  from { opacity: 0; transform: translateY(0.4em); filter: blur(6px); }\n  to { opacity: 1; transform: none; filter: blur(0); }\n}\n@keyframes hb-yg3-card {\n  from { opacity: 0; transform: translateX(24px); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-yg3-sweep {\n  from { transform: scaleX(0); }\n  to { transform: scaleX(1); }\n}\n.hb-yg3 {\n  --hb-yg3-accent: #10b981;\n  position: relative;\n  box-sizing: border-box;\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-yg3 *, .hb-yg3 *::before, .hb-yg3 *::after { box-sizing: border-box; }\n.hb-yg3-bg {\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background:\n    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 64px,\n    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--hb-yg3-accent) 14%, transparent), transparent 70%);\n  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);\n  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);\n}\n.hb-yg3-in {\n  position: relative;\n  display: grid;\n  gap: 48px;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 96px 24px;\n}\n@container (min-width: 820px) {\n  .hb-yg3-in { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }\n}\n.hb-yg3-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  color: #8f8f8f;\n  font-size: 13px;\n  font-weight: 500;\n}\n.hb-yg3-eyebrow i {\n  width: 8px;\n  height: 8px;\n  border-radius: 2px;\n  background: var(--hb-yg3-accent);\n  box-shadow: 0 0 12px var(--hb-yg3-accent);\n}\n.hb-yg3-statement {\n  margin: 20px 0 0;\n  font-size: clamp(34px, 5.4cqw, 62px);\n  font-weight: 600;\n  line-height: 1.04;\n  letter-spacing: -0.045em;\n  text-wrap: balance;\n}\n.hb-yg3-w {\n  display: inline-block;\n  animation: hb-yg3-word 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-yg3-w[data-hl=\"true\"] {\n  color: var(--hb-yg3-accent);\n  text-shadow: 0 0 40px color-mix(in srgb, var(--hb-yg3-accent) 40%, transparent);\n}\n.hb-yg3-sign {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  margin-top: 32px;\n  color: #a1a1a1;\n  font-size: 14px;\n}\n.hb-yg3-sign::before {\n  content: \"\";\n  width: 40px;\n  height: 1px;\n  background: rgba(255, 255, 255, 0.2);\n}\n.hb-yg3-cta {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin-top: 28px;\n  padding: 0 18px;\n  height: 42px;\n  border-radius: 999px;\n  background: #ededed;\n  color: #0a0a0a;\n  font-size: 14px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: transform 0.2s ease, background 0.2s ease;\n}\n.hb-yg3-cta:hover { background: #fff; transform: translateY(-1px); }\n.hb-yg3-cta:focus-visible { outline: 2px solid var(--hb-yg3-accent); outline-offset: 3px; }\n.hb-yg3-cta svg { transition: transform 0.2s ease; }\n.hb-yg3-cta:hover svg { transform: translateX(3px); }\n.hb-yg3-list {\n  display: grid;\n  gap: 12px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n.hb-yg3-card {\n  position: relative;\n  display: grid;\n  grid-template-columns: auto 1fr;\n  gap: 18px;\n  padding: 22px;\n  overflow: hidden;\n  border: 1px solid rgba(255, 255, 255, 0.08);\n  border-radius: 18px;\n  background: linear-gradient(180deg, #131313, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);\n  animation: hb-yg3-card 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n  transition: border-color 0.3s ease, background 0.3s ease;\n}\n.hb-yg3-card:hover {\n  border-color: color-mix(in srgb, var(--hb-yg3-accent) 40%, transparent);\n  background: linear-gradient(180deg, #151715, #0f110f);\n}\n.hb-yg3-card::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  height: 2px;\n  background: linear-gradient(90deg, var(--hb-yg3-accent), transparent);\n  transform-origin: left;\n  animation: hb-yg3-sweep 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n  animation-delay: inherit;\n}\n.hb-yg3-num {\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border: 1px solid color-mix(in srgb, var(--hb-yg3-accent) 35%, transparent);\n  border-radius: 12px;\n  background: color-mix(in srgb, var(--hb-yg3-accent) 10%, transparent);\n  color: var(--hb-yg3-accent);\n  font-family: ui-monospace, \"Geist Mono\", SFMono-Regular, Menlo, monospace;\n  font-size: 14px;\n  font-weight: 600;\n}\n.hb-yg3-card h3 {\n  margin: 0;\n  font-size: 17px;\n  font-weight: 600;\n  letter-spacing: -0.01em;\n}\n.hb-yg3-card p {\n  margin: 6px 0 0;\n  color: #8f8f8f;\n  font-size: 14px;\n  line-height: 1.55;\n}\n.hb-yg3-metric {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: baseline;\n  gap: 4px 10px;\n  margin-top: 14px;\n}\n.hb-yg3-metric strong {\n  font-size: 26px;\n  font-weight: 650;\n  letter-spacing: -0.03em;\n  font-variant-numeric: tabular-nums;\n}\n.hb-yg3-metric span { color: #8f8f8f; font-size: 12.5px; }\n@media (prefers-reduced-motion: reduce) {\n  .hb-yg3-w, .hb-yg3-card, .hb-yg3-card::after { animation: none; }\n  .hb-yg3-card, .hb-yg3-cta, .hb-yg3-cta svg { transition: none; }\n}\n`;\n\nfunction decimals(n: number) {\n  const s = String(n);\n  const i = s.indexOf(\".\");\n  return i < 0 ? 0 : s.length - i - 1;\n}\n\nexport function AboutMissionSplit({\n  eyebrow = \"Our mission\",\n  statement = \"We exist to make clean energy the cheapest, simplest choice for every home on the planet.\",\n  highlight = [\"cheapest,\", \"simplest\"],\n  signature = \"Ingrid Solberg, founder of Fjordlight\",\n  principles = defaultPrinciples,\n  cta = { label: \"Read the 2025 impact report\", href: \"#impact\" },\n  accent = \"#10b981\",\n  className = \"\",\n  style,\n  ...rest\n}: AboutMissionSplitProps) {\n  const listRef = React.useRef<HTMLUListElement>(null);\n  const [t, setT] = React.useState(1);\n\n  React.useEffect(() => {\n    const el = listRef.current;\n    if (!el) return;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    let raf = 0;\n    const io = new IntersectionObserver((entries) => {\n      if (!entries.some((e) => e.isIntersecting)) return;\n      io.disconnect();\n      const start = performance.now();\n      const tick = (now: number) => {\n        const k = Math.min((now - start) / 1600, 1);\n        setT(1 - Math.pow(1 - k, 3));\n        if (k < 1) raf = requestAnimationFrame(tick);\n      };\n      raf = requestAnimationFrame(tick);\n    }, { threshold: 0.3 });\n    io.observe(el);\n    return () => {\n      io.disconnect();\n      cancelAnimationFrame(raf);\n    };\n  }, []);\n\n  const words = statement.split(\" \");\n\n  return (\n    <section className={`hb-yg3 ${className}`} style={{ \"--hb-yg3-accent\": accent, ...style } as React.CSSProperties} {...rest}>\n      <style href=\"hb-about-mission-split\" precedence=\"default\">{css}</style>\n      <div className=\"hb-yg3-bg\" aria-hidden=\"true\" />\n      <div className=\"hb-yg3-in\">\n        <div>\n          <span className=\"hb-yg3-eyebrow\"><i aria-hidden=\"true\" />{eyebrow}</span>\n          <h2 className=\"hb-yg3-statement\" aria-label={statement}>\n            {words.map((w, i) => (\n              <React.Fragment key={i}>\n                <span\n                  className=\"hb-yg3-w\"\n                  aria-hidden=\"true\"\n                  data-hl={highlight.includes(w)}\n                  style={{ animationDelay: `${(i * 0.05).toFixed(2)}s` }}\n                >\n                  {w}\n                </span>\n                {i < words.length - 1 ? \" \" : \"\"}\n              </React.Fragment>\n            ))}\n          </h2>\n          {signature && <p className=\"hb-yg3-sign\">{signature}</p>}\n          {cta && (\n            <a className=\"hb-yg3-cta\" href={cta.href}>\n              {cta.label}\n              <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" aria-hidden=\"true\"><path d=\"M5 12h14M13 6l6 6-6 6\" /></svg>\n            </a>\n          )}\n        </div>\n        <ul ref={listRef} className=\"hb-yg3-list\">\n          {principles.map((p, i) => {\n            const d = decimals(p.value);\n            return (\n              <li key={p.title} className=\"hb-yg3-card\" style={{ animationDelay: `${(0.3 + i * 0.12).toFixed(2)}s` }}>\n                <span className=\"hb-yg3-num\" aria-hidden=\"true\">{String(i + 1).padStart(2, \"0\")}</span>\n                <div>\n                  <h3>{p.title}</h3>\n                  <p>{p.text}</p>\n                  <div className=\"hb-yg3-metric\">\n                    <strong aria-label={`${p.prefix ?? \"\"}${p.value}${p.suffix ?? \"\"}`}>\n                      {p.prefix}{(p.value * t).toFixed(d)}{p.suffix}\n                    </strong>\n                    <span>{p.label}</span>\n                  </div>\n                </div>\n              </li>\n            );\n          })}\n        </ul>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}