{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "liquid-word",
  "title": "Liquid Word",
  "description": "A word melts into a gradient pool, then a new word rises out of it.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "files": [
    {
      "path": "registry/remocn/liquid-word/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Sora\";\nimport { useId } from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\n\nconst { fontFamily: display } = loadFont(\"normal\", {\n  weights: [\"500\"],\n  subsets: [\"latin\"],\n});\n\nexport interface LiquidWordProps {\n  /** The word that melts. */\n  from?: string;\n  /** The word that re-forms out of the pool, crisp and kerned. */\n  to?: string;\n  /** Kept for the shared draft API; the molten liquid takes the \"swirl\" palette. */\n  accent?: string;\n  theme?: \"dark\" | \"light\";\n  speed?: number;\n}\n\n/**\n * Beat sheet (30fps, speed 1):\n *   0–14   \"draft\" holds, crisp ink.\n *  12–54   it melts: the swirl gradient floods the letters, edges go soft\n *          and wobble (goo + turbulence), the letters sag and drip.\n *  50–72   the letters slump into one pool along the baseline.\n *  66–98   \"shipped\" rises out of the pool letter by letter, centre first.\n *  86–112  the liquid sets: wobble and blur run out, the gradient cools\n *          to solid ink.\n * 112–     \"shipped\" holds, crisp and kerned.\n */\nconst MELT_AT = 12;\nconst POOL_AT = 50;\nconst POOL_END = 72;\nconst RISE_AT = 66;\nconst SET_AT = 86;\nconst CRISP_AT = 112;\n\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\nconst IN_OUT = Easing.bezier(0.45, 0, 0.55, 1);\nconst GRAVITY = Easing.bezier(0.55, 0, 0.85, 0.6);\nconst RISE = Easing.bezier(0.2, 1.08, 0.35, 1);\nconst SETTLE = Easing.bezier(0.33, 0, 0.2, 1);\n\n/** Sora 500 advance widths (per mille) for ASCII 32–126. */\nconst ADV = [\n  222, 303, 452, 702, 652, 864, 702, 264, 382, 382, 568, 592, 266, 506, 266,\n  365, 750, 423, 623, 620, 652, 630, 668, 585, 647, 668, 266, 266, 592, 590,\n  592, 556, 1124, 765, 684, 797, 788, 598, 560, 832, 803, 320, 641, 703, 549,\n  937, 858, 865, 649, 865, 710, 682, 602, 785, 719, 1052, 705, 654, 652, 382,\n  365, 382, 587, 581, 300, 581, 694, 608, 694, 616, 380, 679, 644, 317, 324,\n  595, 296, 973, 644, 678, 694, 694, 414, 543, 429, 634, 572, 873, 574, 555,\n  493, 382, 375, 382, 511,\n];\n/** Sora 500 pair kerning (harfbuzz), per mille: \"Ta-35\" = T then a. */\nconst KERN = new Map(\n  [\n    \",C-35 ,G-35 ,O-35 ,Q-35 ,S-13 ,T-77 ,U-25 ,V-54 ,W-43 ,Y-80 ,c-13\",\n    \",d-13 ,e-13 ,g-13 ,o-13 ,q-13 ,u-17 ,v-37 ,w-37 ,y-37 -A-10 -C-4\",\n    \"-G-4 -J10 -O-4 -Q-4 -S-9 -T-59 -V-32 -W-23 -X-26 -Y-37 -Z-23 -j-7\",\n    \"-u-1 -v-11 -w-11 -x-27 -y-11 .C-35 .G-35 .O-35 .Q-35 .S-13 .T-77\",\n    \".U-25 .V-54 .W-43 .Y-80 .c-13 .d-13 .e-13 .g-13 .o-13 .q-13 .u-17\",\n    \".v-37 .w-37 .y-37 ?,-15 ?--2 ?.-15 A--10 A?-33 AA11 AC-25 AG-25\",\n    \"AJ-2 AO-25 AQ-25 AS-5 AT-59 AU-25 AV-44 AW-32 AX-2 AY-63 Ac-7 Ad-7\",\n    \"Ae-7 Af-5 Ag-7 Al-6 Ao-7 Aq-7 As-2 At-7 Au-7 Av-13 Aw-13 Ay-13 Az-9\",\n    \"B,-12 B--4 B.-12 B?-7 BA-11 BC-4 BG-4 BO-4 BQ-4 BS-7 BT-14 BU-2\",\n    \"BV-12 BW-10 BX-22 BY-28 BZ-16 Bc-4 Bd-4 Be-4 Bg-4 Bo-4 Bq-4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 ny-4 o,-13 o.-13 o?-18\",\n    \"ov-11 ow-11 ox-12 oy-11 oz-5 p,-13 p.-13 p?-18 pv-11 pw-11 px-12\",\n    \"py-11 pz-5 q?-9 qj15 r,-61 r--9 r.-61 r?11 ra-2 rc-5 rd-5 re-5 rf3\",\n    \"rg-5 rj7 ro-5 rq-5 rt11 rv18 rw18 rx6 ry18 s,-9 s.-9 s?-23 sv-4\",\n    \"sw-4 sx-5 sy-4 t--19 t?-4 ta-2 tc-3 td-3 te-3 tg-3 tj4 to-3 tq-3\",\n    \"ts-4 tx1 u?-15 v,-37 v--11 v.-37 v?-6 va-5 vc-11 vd-11 ve-11 vg-11\",\n    \"vj6 vo-11 vq-11 vs-4 vt10 vz-5 w,-37 w--11 w.-37 w?-6 wa-5 wc-11\",\n    \"wd-11 we-11 wg-11 wj6 wo-11 wq-11 ws-4 wt10 wz-5 x--27 x?-23 xa-10\",\n    \"xc-12 xd-12 xe-12 xg-12 xj2 xo-12 xq-12 xs-7 xt-4 xu-12 xz-8 y,-37\",\n    \"y--11 y.-37 y?-6 ya-5 yc-11 yd-11 ye-11 yg-11 yj6 yo-11 yq-11 ys-4\",\n    \"yt10 yz-5 z?-10 zc-5 zd-5 ze-5 zg-5 zo-5 zq-5\",\n  ]\n    .join(\" \")\n    .split(\" \")\n    .map((p) => [p.slice(0, 2), Number(p.slice(2)) / 1000] as const),\n);\nconst TRACK = -0.02;\nconst ASC = 0.75;\n\nfunction code(ch: string) {\n  const c = ch.charCodeAt(0);\n  return c >= 32 && c < 127 ? c - 32 : 65;\n}\n\ninterface Letter {\n  ch: string;\n  x: number;\n  adv: number;\n}\n\nfunction layout(word: string) {\n  const chars = Array.from(word);\n  const letters: Letter[] = [];\n  let x = 0;\n  chars.forEach((ch, i) => {\n    if (i > 0) x += (KERN.get(chars[i - 1] + ch) ?? 0) + TRACK;\n    const adv = ADV[code(ch)] / 1000;\n    letters.push({ ch, x, adv });\n    x += adv;\n  });\n  return { letters, total: x };\n}\n\n/** Where a glyph meets the baseline (em from its pen position): drips hang there. */\nconst FEET: Record<string, number[]> = {\n  a: [0.24, 0.5],\n  b: [0.14, 0.42],\n  c: [0.34],\n  d: [0.3, 0.58],\n  e: [0.34],\n  f: [0.17],\n  h: [0.13, 0.53],\n  i: [0.16],\n  k: [0.13, 0.5],\n  l: [0.15],\n  m: [0.13, 0.49, 0.85],\n  n: [0.13, 0.53],\n  o: [0.34],\n  p: [0.13, 0.42],\n  r: [0.13],\n  s: [0.27],\n  t: [0.22],\n  u: [0.13, 0.52],\n  x: [0.1, 0.48],\n  z: [0.24],\n};\n\nfunction hash(i: number, salt: number) {\n  const s = Math.sin(i * 127.1 + salt * 311.7) * 43758.5453;\n  return s - Math.floor(s);\n}\n\n// gradients.sh \"swirl\" (bg #07060a). Hot at the top, cooling toward the drip\n// tips. The light stage drops the palest stop so the liquid keeps its edge.\nconst THEMES = {\n  dark: {\n    stage: \"#0A0A0B\",\n    ink: \"#F3F2EF\",\n    hot: \"#ffe2c4\",\n    liquid: [\"#ffe2c4\", \"#ff9a4d\", \"#d2456b\", \"#8a3070\"],\n    grain: 0.06,\n  },\n  light: {\n    stage: \"#F5F4F0\",\n    ink: \"#121214\",\n    hot: \"#ffb877\",\n    liquid: [\"#ff9a4d\", \"#e8644e\", \"#d2456b\", \"#3a1f6b\"],\n    grain: 0.04,\n  },\n} as const;\n\nfunction Grain({ opacity }: { opacity: number }) {\n  const id = `g${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n  return (\n    <svg\n      width=\"100%\"\n      height=\"100%\"\n      style={{ position: \"absolute\", inset: 0, opacity, pointerEvents: \"none\" }}\n      aria-hidden\n    >\n      <filter id={id}>\n        <feTurbulence\n          type=\"fractalNoise\"\n          baseFrequency=\"0.9\"\n          numOctaves={2}\n          seed={5}\n          stitchTiles=\"stitch\"\n        />\n        <feColorMatrix values=\"0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0\" />\n      </filter>\n      <rect width=\"100%\" height=\"100%\" filter={`url(#${id})`} />\n    </svg>\n  );\n}\n\nexport function LiquidWord({\n  from = \"draft\",\n  to = \"shipped\",\n  theme = \"dark\",\n  speed = 1,\n}: LiquidWordProps) {\n  const t = useCurrentFrame() * speed;\n  const { width: W, height: H } = useVideoConfig();\n  const c = THEMES[theme];\n  const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n\n  const A = layout(from);\n  const B = layout(to);\n  // Each word fits on its own; the pool sits on one shared baseline.\n  const fit = (total: number) =>\n    Math.min((W * 0.82) / Math.max(total, 1), (H * 0.36) / ASC);\n  const fsA = fit(A.total);\n  const fsB = fit(B.total);\n  const fs = (fsA + fsB) / 2;\n  const baseline = H / 2 + 0.36 * fs;\n  const leftA = (W - A.total * fsA) / 2;\n  const leftB = (W - B.total * fsB) / 2;\n\n  // Liquid state, 0 = crisp ink, 1 = fully molten.\n  const melt = interpolate(t, [MELT_AT, MELT_AT + 26], [0, 1], {\n    ...CLAMP,\n    easing: IN_OUT,\n  });\n  const set = interpolate(t, [SET_AT, CRISP_AT], [0, 1], {\n    ...CLAMP,\n    easing: SETTLE,\n  });\n  const molten = melt * (1 - set);\n  const heat =\n    interpolate(t, [MELT_AT, MELT_AT + 16], [0, 1], CLAMP) *\n    (1 - interpolate(t, [SET_AT + 6, CRISP_AT], [0, 1], CLAMP));\n  const pool = interpolate(t, [POOL_AT, POOL_END], [0, 1], {\n    ...CLAMP,\n    easing: IN_OUT,\n  });\n  const liquid = t >= MELT_AT && t < CRISP_AT;\n\n  const blur = molten * 0.055 * fs;\n  const disp = molten * 0.13 * fs;\n  const freqX = (1.3 / fs) * (1 + 0.12 * Math.sin(t * 0.07));\n  const freqY = (2.4 / fs) * (1 + 0.12 * Math.cos(t * 0.055));\n\n  // Old word: sags, leans and drips, then slumps into the pool.\n  const shapesA = A.letters.map((l, i) => {\n    const mid = leftA + (l.x + l.adv / 2) * fsA;\n    const toCentre = (W / 2 - mid) * 0.38 * pool;\n    const sag = melt * (0.9 + 0.08 * hash(i, 1));\n    const sy = (1 - 0.1 * sag) * (1 - 0.9 * pool);\n    const sx = 1 + 0.06 * sag + 0.35 * pool;\n    const lean = (hash(i, 2) - 0.5) * 10 * melt * (1 - pool);\n    return {\n      key: `a${i}`,\n      ch: l.ch,\n      fs: fsA,\n      transform: `translate(${mid + toCentre} ${baseline}) skewX(${lean}) scale(${sx} ${sy}) translate(${(-l.adv * fsA) / 2} 0)`,\n      visible: pool < 0.97,\n    };\n  });\n\n  const drips = A.letters.flatMap((l, i) =>\n    (FEET[l.ch] ?? [l.adv / 2]).map((foot, j) => {\n      const n = i * 4 + j;\n      const start = MELT_AT + 8 + i * 3 + hash(n, 3) * 8;\n      const grow = GRAVITY(interpolate(t, [start, POOL_AT + 6], [0, 1], CLAMP));\n      const len = (0.22 + 0.5 * hash(n, 4)) * fsA * grow * (1 - pool);\n      const w = (0.075 + 0.035 * hash(n, 5)) * fsA;\n      const mid = leftA + (l.x + l.adv / 2) * fsA;\n      const x = leftA + (l.x + foot) * fsA + (W / 2 - mid) * 0.38 * pool;\n      return { key: `d${n}`, x, w, len };\n    }),\n  );\n\n  // New word: rises out of the pool, centre letters first.\n  const nB = B.letters.length;\n  const shapesB = B.letters.map((l, i) => {\n    const mid = leftB + (l.x + l.adv / 2) * fsB;\n    const order = Math.abs(i - (nB - 1) / 2);\n    const at = RISE_AT + order * 3;\n    const k = interpolate(t, [at, at + 20], [0, 1], CLAMP);\n    const e = RISE(k);\n    const fromCentre = (W / 2 - mid) * 0.38 * (1 - e);\n    const sy = 0.1 + 0.9 * e;\n    const sx = 1.35 - 0.35 * e;\n    return {\n      key: `b${i}`,\n      ch: l.ch,\n      fs: fsB,\n      transform: `translate(${mid + fromCentre} ${baseline}) scale(${sx} ${sy}) translate(${(-l.adv * fsB) / 2} 0)`,\n      visible: t >= at,\n    };\n  });\n\n  // The pool: a flat puddle along the baseline between the two words.\n  const poolOpen =\n    pool * (1 - interpolate(t, [RISE_AT + 8, SET_AT + 6], [0, 1], CLAMP));\n  const poolW = Math.max(A.total, B.total) * fs * 0.42 * poolOpen;\n  const poolH = 0.1 * fs * poolOpen;\n\n  const fieldTop = baseline - ASC * fs;\n  const fieldBottom = baseline + 0.75 * fs;\n  const hotX =\n    W * (0.32 + 0.36 * interpolate(t, [MELT_AT, CRISP_AT], [0, 1], CLAMP));\n\n  const textProps = {\n    fontFamily: display,\n    fontWeight: 500,\n    style: { fontKerning: \"none\" as const },\n  };\n\n  return (\n    <AbsoluteFill style={{ background: c.stage, overflow: \"hidden\" }}>\n      <svg\n        width={W}\n        height={H}\n        viewBox={`0 0 ${W} ${H}`}\n        style={{ position: \"absolute\", inset: 0 }}\n        role=\"img\"\n        aria-label={t < POOL_END ? from : to}\n      >\n        {liquid ? (\n          <>\n            <defs>\n              <filter\n                id={`${uid}-goo`}\n                x={0}\n                y={0}\n                width={W}\n                height={H}\n                filterUnits=\"userSpaceOnUse\"\n                colorInterpolationFilters=\"sRGB\"\n              >\n                <feTurbulence\n                  type=\"fractalNoise\"\n                  baseFrequency={`${freqX} ${freqY}`}\n                  numOctaves={2}\n                  seed={7}\n                  result=\"noise\"\n                />\n                <feDisplacementMap\n                  in=\"SourceGraphic\"\n                  in2=\"noise\"\n                  scale={disp}\n                  xChannelSelector=\"R\"\n                  yChannelSelector=\"G\"\n                  result=\"wobble\"\n                />\n                <feGaussianBlur in=\"wobble\" stdDeviation={blur} result=\"soft\" />\n                <feColorMatrix\n                  in=\"soft\"\n                  mode=\"matrix\"\n                  values=\"1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 22 -10\"\n                />\n              </filter>\n              <mask\n                id={`${uid}-m`}\n                maskUnits=\"userSpaceOnUse\"\n                x={0}\n                y={0}\n                width={W}\n                height={H}\n              >\n                <g filter={`url(#${uid}-goo)`}>\n                  {shapesA.map((s) =>\n                    s.visible ? (\n                      <text\n                        key={s.key}\n                        transform={s.transform}\n                        fill=\"#fff\"\n                        fontSize={s.fs}\n                        {...textProps}\n                      >\n                        {s.ch}\n                      </text>\n                    ) : null,\n                  )}\n                  {drips.map((d) =>\n                    d.len > 0.5 ? (\n                      <g key={d.key}>\n                        <rect\n                          x={d.x - d.w / 2}\n                          y={baseline - 0.12 * fs}\n                          width={d.w}\n                          height={0.12 * fs + d.len}\n                          rx={d.w / 2}\n                          fill=\"#fff\"\n                        />\n                        <circle\n                          cx={d.x}\n                          cy={baseline + d.len - d.w * 0.2}\n                          r={d.w * 0.78}\n                          fill=\"#fff\"\n                        />\n                      </g>\n                    ) : null,\n                  )}\n                  {poolOpen > 0.01 ? (\n                    <ellipse\n                      cx={W / 2}\n                      cy={baseline - poolH * 0.4}\n                      rx={poolW}\n                      ry={poolH}\n                      fill=\"#fff\"\n                    />\n                  ) : null}\n                  {shapesB.map((s) =>\n                    s.visible ? (\n                      <text\n                        key={s.key}\n                        transform={s.transform}\n                        fill=\"#fff\"\n                        fontSize={s.fs}\n                        {...textProps}\n                      >\n                        {s.ch}\n                      </text>\n                    ) : null,\n                  )}\n                </g>\n              </mask>\n              <linearGradient\n                id={`${uid}-liquid`}\n                gradientUnits=\"userSpaceOnUse\"\n                x1={0}\n                y1={fieldTop}\n                x2={0}\n                y2={fieldBottom}\n              >\n                {c.liquid.map((col, i) => (\n                  <stop\n                    key={col}\n                    offset={[0, 0.4, 0.68, 1][i]}\n                    stopColor={col}\n                  />\n                ))}\n              </linearGradient>\n              <radialGradient\n                id={`${uid}-hot`}\n                gradientUnits=\"userSpaceOnUse\"\n                cx={hotX}\n                cy={baseline - 0.5 * fs}\n                r={0.9 * fs}\n              >\n                <stop offset=\"0\" stopColor={c.hot} stopOpacity={0.85} />\n                <stop offset=\"1\" stopColor={c.hot} stopOpacity={0} />\n              </radialGradient>\n            </defs>\n            <g mask={`url(#${uid}-m)`}>\n              <rect width={W} height={H} fill={c.ink} />\n              <g opacity={heat}>\n                <rect width={W} height={H} fill={`url(#${uid}-liquid)`} />\n                <rect width={W} height={H} fill={`url(#${uid}-hot)`} />\n              </g>\n            </g>\n          </>\n        ) : (\n          (t < MELT_AT ? A : B).letters.map((l, i) => (\n            <text\n              key={`${i}-${l.ch}`}\n              x={\n                (t < MELT_AT ? leftA : leftB) + l.x * (t < MELT_AT ? fsA : fsB)\n              }\n              y={baseline}\n              fill={c.ink}\n              fontSize={t < MELT_AT ? fsA : fsB}\n              {...textProps}\n            >\n              {l.ch}\n            </text>\n          ))\n        )}\n      </svg>\n      <Grain opacity={c.grain} />\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/liquid-word.tsx"
    }
  ],
  "type": "registry:component"
}
