{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "send-fountain",
  "title": "Send Fountain",
  "description": "A launch board dashboard fills with a video, signup bars, a metric and asset tiles.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/send-fountain/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadGeistMono } from \"@remotion/google-fonts/GeistMono\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport { loadFont as loadOnest } from \"@remotion/google-fonts/Onest\";\nimport type { ReactNode } from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  Img,\n  interpolate,\n  random,\n  spring,\n  staticFile,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst onest = loadOnest(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst mono = loadGeistMono(\"normal\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\nloadManrope(\"normal\", { weights: [\"600\"], subsets: [\"latin\"] });\n\nconst REMOCN_R_PATH =\n  \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst MOVE = Easing.bezier(0.65, 0, 0.35, 1);\nconst SWAY = Easing.bezier(0.45, 0, 0.55, 1);\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\n\nconst B = {\n  bar: -6,\n  cursor: -4,\n  press: 14,\n  flip: 16,\n  eject: [19, 24, 28, 32, 35, 38],\n  rise: 22,\n  riseEnd: 76,\n  snap: 68,\n  chrome: 72,\n  avatars: 80,\n  data: 86,\n  live: 100,\n  end: 144,\n};\n\nexport const SEND_FOUNTAIN_DURATION = B.end;\n\nconst ramp = (f: number, start: number, dur: number, easing = ENTER) =>\n  interpolate(f, [start, start + dur], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing,\n  });\n\nconst mix = (a: number, b: number, t: number) => a + (b - a) * t;\n\ntype CardId = \"chart\" | \"hero\" | \"stat\" | \"icon\" | \"sketch\" | \"cover\";\nconst ORDER: CardId[] = [\"chart\", \"hero\", \"stat\", \"icon\", \"sketch\", \"cover\"];\n\ninterface Box {\n  x: number;\n  y: number;\n  w: number;\n  h: number;\n}\ninterface Cloud {\n  x: number;\n  y: number;\n  s: number;\n  r: number;\n}\n\ninterface Layout {\n  stageW: number;\n  stageH: number;\n  u: number;\n  bar: { cx: number; cy: number; w: number; h: number; btn: number };\n  rise: number;\n  win: Box;\n  top: number;\n  slots: Record<CardId, Box>;\n  cloud: Record<CardId, Cloud>;\n}\n\nconst LANDSCAPE: Layout = {\n  stageW: 1280,\n  stageH: 720,\n  u: 1,\n  bar: { cx: 640, cy: 390, w: 780, h: 92, btn: 62 },\n  rise: 520,\n  win: { x: 140, y: 76, w: 1000, h: 584 },\n  top: 48,\n  slots: {\n    hero: { x: 14, y: 62, w: 470, h: 300 },\n    stat: { x: 14, y: 376, w: 470, h: 194 },\n    chart: { x: 498, y: 62, w: 488, h: 236 },\n    icon: { x: 498, y: 312, w: 154, h: 258 },\n    sketch: { x: 665, y: 312, w: 154, h: 258 },\n    cover: { x: 832, y: 312, w: 154, h: 258 },\n  },\n  cloud: {\n    chart: { x: 500, y: 200, s: 0.72, r: -5 },\n    hero: { x: 820, y: 210, s: 0.62, r: 4 },\n    stat: { x: 610, y: 370, s: 0.66, r: 3 },\n    icon: { x: 905, y: 420, s: 0.88, r: -7 },\n    sketch: { x: 360, y: 440, s: 0.85, r: 6 },\n    cover: { x: 735, y: 545, s: 0.82, r: -3 },\n  },\n};\n\nconst PORTRAIT: Layout = {\n  stageW: 1080,\n  stageH: 1920,\n  u: 1.7,\n  bar: { cx: 540, cy: 1080, w: 940, h: 132, btn: 92 },\n  rise: 1000,\n  win: { x: 70, y: 250, w: 940, h: 1420 },\n  top: 82,\n  slots: {\n    hero: { x: 20, y: 100, w: 900, h: 500 },\n    chart: { x: 20, y: 620, w: 900, h: 340 },\n    stat: { x: 20, y: 980, w: 440, h: 420 },\n    icon: { x: 480, y: 980, w: 210, h: 236 },\n    sketch: { x: 710, y: 980, w: 210, h: 236 },\n    cover: { x: 480, y: 1236, w: 440, h: 164 },\n  },\n  cloud: {\n    chart: { x: 390, y: 330, s: 0.74, r: -5 },\n    hero: { x: 720, y: 600, s: 0.56, r: 4 },\n    stat: { x: 330, y: 820, s: 0.72, r: 3 },\n    icon: { x: 820, y: 960, s: 0.95, r: -7 },\n    sketch: { x: 250, y: 1200, s: 0.95, r: 6 },\n    cover: { x: 640, y: 1330, s: 0.8, r: -3 },\n  },\n};\n\ninterface Tokens {\n  dark: boolean;\n  ink: string;\n  soft: string;\n  muted: string;\n  hair: string;\n  win: string;\n  card: string;\n  bar: string;\n  btn: string;\n  arrow: string;\n  shadow: string;\n  far: string;\n}\n\nconst tokens = (dark: boolean): Tokens =>\n  dark\n    ? {\n        dark,\n        ink: \"#eef4f3\",\n        soft: \"rgba(232,242,240,0.7)\",\n        muted: \"rgba(232,242,240,0.46)\",\n        hair: \"rgba(255,255,255,0.09)\",\n        win: \"linear-gradient(180deg, rgba(22,29,30,0.94) 0%, rgba(11,15,16,0.96) 100%)\",\n        card: \"linear-gradient(180deg, #1b2324 0%, #121819 100%)\",\n        bar: \"linear-gradient(180deg, rgba(28,36,37,0.9) 0%, rgba(15,20,21,0.94) 100%)\",\n        btn: \"#f2f5f4\",\n        arrow: \"#0b0f10\",\n        shadow: \"2,10,12\",\n        far: \"rgba(2,8,9,0.55)\",\n      }\n    : {\n        dark,\n        ink: \"#121716\",\n        soft: \"rgba(18,23,22,0.68)\",\n        muted: \"rgba(18,23,22,0.46)\",\n        hair: \"rgba(18,30,28,0.1)\",\n        win: \"linear-gradient(180deg, #fbfcfb 0%, #f4f6f5 100%)\",\n        card: \"linear-gradient(180deg, #ffffff 0%, #f9faf9 100%)\",\n        bar: \"linear-gradient(180deg, #ffffff 0%, #f8faf9 100%)\",\n        btn: \"#121616\",\n        arrow: \"#ffffff\",\n        shadow: \"30,60,56\",\n        far: \"rgba(30,60,56,0.18)\",\n      };\n\nconst surfaceShadow = (t: Tokens, lift: number) =>\n  t.dark\n    ? `inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 4px rgba(0,0,0,0.3), 0 ${12 + 22 * lift}px ${30 + 40 * lift}px rgba(${t.shadow},0.45), 0 ${40 + 50 * lift}px ${90 + 60 * lift}px rgba(${t.shadow},0.5)`\n    : `inset 0 1px 0 #fff, 0 1px 2px rgba(${t.shadow},0.08), 0 ${12 + 20 * lift}px ${28 + 36 * lift}px rgba(${t.shadow},0.12), 0 ${36 + 44 * lift}px ${80 + 60 * lift}px rgba(${t.shadow},0.14)`;\n\nfunction RemocnR({ height, color }: { height: number; color: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 124.06 134.26\"\n      height={height}\n      width={(height * 124.06) / 134.26}\n      style={{ display: \"block\" }}\n      aria-hidden\n    >\n      <path fill={color} d={REMOCN_R_PATH} />\n    </svg>\n  );\n}\n\nfunction CardShell({\n  w,\n  h,\n  t,\n  u,\n  bg,\n  children,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n  bg?: string;\n  children: ReactNode;\n}) {\n  return (\n    <div\n      style={{\n        position: \"relative\",\n        width: w,\n        height: h,\n        borderRadius: 14 * u,\n        background: bg ?? t.card,\n        border: `1px solid ${t.hair}`,\n        overflow: \"hidden\",\n      }}\n    >\n      {children}\n    </div>\n  );\n}\n\nfunction ChartCard({\n  w,\n  h,\n  t,\n  u,\n  accent,\n  grow,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n  accent: string;\n  grow: number;\n}) {\n  const bars = Array.from({ length: 16 }, (_, i) => {\n    const a = 0.28 + 0.55 * random(`sf-bar-a-${i}`) + i * 0.012;\n    const b = Math.min(0.96, a + 0.06 + 0.16 * random(`sf-bar-b-${i}`));\n    return { id: `bar-${i}`, v: mix(a, b, grow), last: i === 15 };\n  });\n  const pad = 18 * u;\n  return (\n    <CardShell\n      w={w}\n      h={h}\n      t={t}\n      u={u}\n      bg=\"linear-gradient(180deg, #171c22 0%, #0f1318 100%)\"\n    >\n      <div\n        style={{\n          position: \"absolute\",\n          inset: pad,\n          display: \"flex\",\n          flexDirection: \"column\",\n          gap: 10 * u,\n        }}\n      >\n        <div\n          style={{\n            display: \"flex\",\n            alignItems: \"baseline\",\n            justifyContent: \"space-between\",\n          }}\n        >\n          <div style={{ fontSize: 19 * u, color: \"#eef1f6\" }}>Signups</div>\n          <div\n            style={{\n              fontFamily: mono.fontFamily,\n              fontSize: 16 * u,\n              color: \"rgba(238,241,246,0.5)\",\n            }}\n          >\n            last 16 days\n          </div>\n        </div>\n        <div\n          style={{\n            flex: 1,\n            display: \"flex\",\n            alignItems: \"flex-end\",\n            gap: 6 * u,\n            borderBottom: \"1px solid rgba(255,255,255,0.1)\",\n            paddingBottom: 2,\n          }}\n        >\n          {bars.map((b) => (\n            <div\n              key={b.id}\n              style={{\n                flex: 1,\n                height: `${b.v * 100}%`,\n                borderRadius: `${3 * u}px ${3 * u}px 1px 1px`,\n                background: b.last\n                  ? accent\n                  : \"linear-gradient(180deg, #a3adff 0%, #6c78f0 100%)\",\n                opacity: b.last ? 1 : 0.92,\n              }}\n            />\n          ))}\n        </div>\n        <div\n          style={{\n            display: \"flex\",\n            alignItems: \"center\",\n            gap: 8 * u,\n            fontSize: 16 * u,\n            color: \"rgba(238,241,246,0.6)\",\n          }}\n        >\n          <div\n            style={{\n              width: 8 * u,\n              height: 8 * u,\n              borderRadius: 99,\n              background: \"#8f9bff\",\n            }}\n          />\n          New accounts\n          <div\n            style={{\n              width: 8 * u,\n              height: 8 * u,\n              borderRadius: 99,\n              background: accent,\n              marginLeft: 10 * u,\n            }}\n          />\n          Today\n        </div>\n      </div>\n    </CardShell>\n  );\n}\n\nfunction HeroCard({\n  w,\n  h,\n  t,\n  u,\n  src,\n  title,\n  progress,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n  src: string;\n  title: string;\n  progress: number;\n}) {\n  const pad = 18 * u;\n  return (\n    <CardShell w={w} h={h} t={t} u={u}>\n      <Img\n        src={src}\n        alt=\"\"\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          width: \"100%\",\n          height: \"100%\",\n          objectFit: \"cover\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          background:\n            \"linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62) 100%)\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: pad,\n          right: pad,\n          bottom: pad,\n          display: \"flex\",\n          alignItems: \"center\",\n          gap: 14 * u,\n          color: \"#fff\",\n        }}\n      >\n        <div\n          style={{\n            width: 42 * u,\n            height: 42 * u,\n            borderRadius: 99,\n            background: \"rgba(255,255,255,0.2)\",\n            border: \"1px solid rgba(255,255,255,0.35)\",\n            display: \"flex\",\n            alignItems: \"center\",\n            justifyContent: \"center\",\n            flexShrink: 0,\n          }}\n        >\n          <svg viewBox=\"0 0 24 24\" width={18 * u} height={18 * u} aria-hidden>\n            <path d=\"M8 5.5v13l10.5-6.5z\" fill=\"#fff\" />\n          </svg>\n        </div>\n        <div style={{ flex: 1, display: \"flex\", flexDirection: \"column\" }}>\n          <div\n            style={{\n              display: \"flex\",\n              justifyContent: \"space-between\",\n              fontSize: 19 * u,\n            }}\n          >\n            <span>{title}</span>\n            <span\n              style={{\n                fontFamily: mono.fontFamily,\n                fontSize: 16 * u,\n                opacity: 0.75,\n              }}\n            >\n              0:42\n            </span>\n          </div>\n          <div\n            style={{\n              marginTop: 9 * u,\n              height: 3 * u,\n              borderRadius: 9,\n              background: \"rgba(255,255,255,0.28)\",\n              overflow: \"hidden\",\n            }}\n          >\n            <div\n              style={{\n                width: `${progress * 100}%`,\n                height: \"100%\",\n                background: \"#fff\",\n              }}\n            />\n          </div>\n        </div>\n      </div>\n    </CardShell>\n  );\n}\n\nfunction StatCard({\n  w,\n  h,\n  t,\n  u,\n  accent,\n  value,\n  label,\n  delta,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n  accent: string;\n  value: string;\n  label: string;\n  delta: string;\n}) {\n  const pad = 20 * u;\n  const pts = Array.from({ length: 12 }, (_, i) => {\n    const y = 0.75 - i * 0.045 - 0.18 * random(`sf-spark-${i}`);\n    return `${(i / 11) * 100},${Math.max(0.05, y) * 40}`;\n  }).join(\" \");\n  const tall = h > w * 0.7;\n  const big = tall ? w * 0.2 : Math.min(h * 0.36, w * 0.17);\n  const spark = (sw: number, sh: number) => (\n    <svg\n      viewBox=\"0 0 100 40\"\n      preserveAspectRatio=\"none\"\n      width={sw}\n      height={sh}\n      style={{ overflow: \"visible\", display: \"block\" }}\n      aria-hidden\n    >\n      <polygon\n        points={`0,40 ${pts} 100,40`}\n        fill={`color-mix(in oklab, ${accent} ${tall ? 16 : 0}%, transparent)`}\n      />\n      <polyline\n        points={pts}\n        fill=\"none\"\n        stroke={accent}\n        strokeWidth={2}\n        vectorEffect=\"non-scaling-stroke\"\n        strokeLinejoin=\"round\"\n        strokeLinecap=\"round\"\n      />\n    </svg>\n  );\n  return (\n    <CardShell w={w} h={h} t={t} u={u}>\n      <div\n        style={{\n          position: \"absolute\",\n          inset: pad,\n          display: \"flex\",\n          flexDirection: \"column\",\n          justifyContent: \"space-between\",\n        }}\n      >\n        <div\n          style={{\n            display: \"flex\",\n            justifyContent: \"space-between\",\n            alignItems: \"center\",\n          }}\n        >\n          <div\n            style={{\n              fontSize: 16 * u,\n              color: t.soft,\n            }}\n          >\n            {label}\n          </div>\n          <div\n            style={{\n              fontSize: 16 * u,\n              color: accent,\n              padding: `${3 * u}px ${10 * u}px`,\n              borderRadius: 99,\n              background: `color-mix(in oklab, ${accent} 14%, transparent)`,\n            }}\n          >\n            {delta}\n          </div>\n        </div>\n        {tall ? spark(w - pad * 2, h * 0.34) : null}\n        <div\n          style={{\n            display: \"flex\",\n            alignItems: \"flex-end\",\n            justifyContent: \"space-between\",\n            gap: 16 * u,\n          }}\n        >\n          <div\n            style={{\n              fontSize: big,\n              fontWeight: 300,\n              letterSpacing: \"-0.04em\",\n              lineHeight: 0.9,\n              color: t.ink,\n              fontVariantNumeric: \"tabular-nums\",\n            }}\n          >\n            {value}\n          </div>\n          {tall ? null : spark(Math.min(w * 0.32, 180 * u), big * 0.6)}\n        </div>\n      </div>\n    </CardShell>\n  );\n}\n\nfunction IconCard({\n  w,\n  h,\n  t,\n  u,\n  accent,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n  accent: string;\n}) {\n  const tile = Math.min(w * 0.5, h * 0.4);\n  return (\n    <CardShell w={w} h={h} t={t} u={u}>\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          display: \"flex\",\n          flexDirection: \"column\",\n          alignItems: \"center\",\n          justifyContent: \"center\",\n          gap: 14 * u,\n        }}\n      >\n        <div\n          style={{\n            width: tile,\n            height: tile,\n            borderRadius: tile * 0.26,\n            background: `linear-gradient(160deg, color-mix(in oklab, ${accent} 70%, white) 0%, ${accent} 55%, color-mix(in oklab, ${accent} 70%, black) 100%)`,\n            boxShadow: `inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 24px color-mix(in oklab, ${accent} 40%, transparent)`,\n            display: \"flex\",\n            alignItems: \"center\",\n            justifyContent: \"center\",\n          }}\n        >\n          <RemocnR height={tile * 0.48} color=\"#fff\" />\n        </div>\n        <div style={{ textAlign: \"center\" }}>\n          <div style={{ fontSize: 17 * u, color: t.ink }}>App icon</div>\n          <div\n            style={{\n              fontFamily: mono.fontFamily,\n              fontSize: 16 * u,\n              color: t.muted,\n              marginTop: 3 * u,\n            }}\n          >\n            1024 px\n          </div>\n        </div>\n      </div>\n    </CardShell>\n  );\n}\n\nfunction SketchCard({\n  w,\n  h,\n  t,\n  u,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n}) {\n  const j = (k: string, a = 3) => (random(`sf-sk-${k}`) - 0.5) * a;\n  const line = (x1: number, y1: number, x2: number, y2: number, k: string) =>\n    `M ${x1 + j(`${k}a`)} ${y1 + j(`${k}b`)} Q ${(x1 + x2) / 2 + j(`${k}c`, 5)} ${(y1 + y2) / 2 + j(`${k}d`, 5)} ${x2 + j(`${k}e`)} ${y2 + j(`${k}f`)}`;\n  const paths = [\n    line(12, 12, 88, 13, \"t\"),\n    line(88, 13, 87, 88, \"r\"),\n    line(87, 88, 13, 87, \"b\"),\n    line(13, 87, 12, 12, \"l\"),\n    line(12, 24, 88, 25, \"h\"),\n    line(20, 34, 80, 34, \"i1\"),\n    line(80, 34, 80, 58, \"i2\"),\n    line(80, 58, 20, 58, \"i3\"),\n    line(20, 58, 20, 34, \"i4\"),\n    line(20, 34, 80, 58, \"x1\"),\n    line(80, 34, 20, 58, \"x2\"),\n    line(20, 67, 70, 67, \"c1\"),\n    line(20, 75, 56, 75, \"c2\"),\n  ];\n  return (\n    <CardShell\n      w={w}\n      h={h}\n      t={t}\n      u={u}\n      bg=\"linear-gradient(180deg, #ecebe6 0%, #e2e0da 100%)\"\n    >\n      <svg\n        viewBox=\"0 0 100 100\"\n        preserveAspectRatio=\"none\"\n        style={{\n          position: \"absolute\",\n          left: \"10%\",\n          top: \"8%\",\n          width: \"80%\",\n          height: \"66%\",\n        }}\n        aria-hidden\n      >\n        {paths.map((d) => (\n          <path\n            key={d}\n            d={d}\n            fill=\"none\"\n            stroke=\"#3b3a36\"\n            strokeWidth={1.6}\n            vectorEffect=\"non-scaling-stroke\"\n            strokeLinecap=\"round\"\n          />\n        ))}\n        <circle\n          cx={30}\n          cy={18.5}\n          r={2.2}\n          fill=\"none\"\n          stroke=\"#3b3a36\"\n          strokeWidth={1.4}\n          vectorEffect=\"non-scaling-stroke\"\n        />\n      </svg>\n      <div\n        style={{\n          position: \"absolute\",\n          left: 14 * u,\n          right: 14 * u,\n          bottom: 14 * u,\n          fontSize: 17 * u,\n          color: \"#2b2a27\",\n        }}\n      >\n        Wireframe\n      </div>\n    </CardShell>\n  );\n}\n\nfunction CoverCard({\n  w,\n  h,\n  t,\n  u,\n  src,\n}: {\n  w: number;\n  h: number;\n  t: Tokens;\n  u: number;\n  src: string;\n}) {\n  return (\n    <CardShell w={w} h={h} t={t} u={u}>\n      <Img\n        src={src}\n        alt=\"\"\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          width: \"100%\",\n          height: \"100%\",\n          objectFit: \"cover\",\n          objectPosition: \"72% 50%\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          background:\n            \"linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%)\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: 14 * u,\n          bottom: 14 * u,\n          fontSize: 17 * u,\n          color: \"#fff\",\n        }}\n      >\n        Cover\n      </div>\n    </CardShell>\n  );\n}\n\nfunction Cursor({ size }: { size: number }) {\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      width={size}\n      height={size}\n      style={{\n        display: \"block\",\n        filter: \"drop-shadow(0 3px 5px rgba(0,0,0,0.35))\",\n      }}\n      aria-hidden\n    >\n      <path\n        d=\"M5 3.2v15.6l4.3-4.1 2.7 6.1 2.6-1.1-2.7-6h6z\"\n        fill=\"#0d0f10\"\n        stroke=\"#fff\"\n        strokeWidth={1.4}\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\nconst AVATARS = [\n  { id: \"m\", initial: \"M\", color: \"#f3b04d\", card: 0 },\n  { id: \"j\", initial: \"J\", color: \"#56cdb4\", card: 1 },\n  { id: \"k\", initial: \"K\", color: \"#a493ff\", card: 2 },\n];\n\nexport interface SendFountainProps {\n  theme?: \"dark\" | \"light\";\n  accent?: string;\n  prompt?: string;\n  appTitle?: string;\n  heroTitle?: string;\n  stat?: number;\n  statLabel?: string;\n  statDelta?: string;\n  images?: string[];\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst LIGHT_GROUND: Partial<GradientParams> = {\n  kind: \"mist\",\n  background: \"#eef4f1\",\n  colors: [\"#ffffff\", \"#e2f3ec\", \"#bfe7dc\", \"#7fcabd\"],\n  blur: 0.7,\n  warp: 0.5,\n  grain: 0.2,\n  seed: 31,\n};\n\nexport function SendFountain({\n  theme = \"dark\",\n  accent = \"#ff5a1f\",\n  prompt = \"Build a launch dashboard for the v2 release\",\n  appTitle = \"Launch board\",\n  heroTitle = \"Launch film\",\n  stat = 47200,\n  statLabel = \"Weekly active\",\n  statDelta = \"+18%\",\n  images = [\n    staticFile(\"templates/launch-anything/horizon.jpg\"),\n    staticFile(\"templates/product-showcase/sculpture.jpg\"),\n  ],\n  ground,\n  groundParams,\n}: SendFountainProps) {\n  const frame = useCurrentFrame();\n  const { width, height, fps } = useVideoConfig();\n  const dark = theme === \"dark\";\n  const t = tokens(dark);\n  const portrait = height > width * 1.2;\n  const L = portrait ? PORTRAIT : LANDSCAPE;\n  const { u } = L;\n  const sc = width / L.stageW;\n\n  const camT = ramp(frame, B.rise, B.riseEnd - B.rise, MOVE);\n  const camY = camT * L.rise;\n  const push = 1 + 0.03 * ramp(frame, B.snap, B.end - B.snap, SWAY);\n  const open = ramp(frame, -4, 40, MOVE);\n  const zoom = mix(1.22, 1, open);\n\n  const barIn = spring({ frame: frame - B.bar, fps, config: HEAVY });\n  const barY = L.bar.cy + camY + mix(60 * u, 0, barIn);\n  const btnX = L.bar.cx + L.bar.w / 2 - L.bar.h / 2 + 0;\n  const btnY = barY;\n\n  const curIn = spring({\n    frame: frame - B.cursor,\n    fps,\n    config: HEAVY,\n    durationInFrames: 20,\n  });\n  const press = ramp(frame, B.press, 3) * (1 - ramp(frame, B.press + 3, 6));\n  const flip = ramp(frame, B.flip, 4);\n  const flash = ramp(frame, B.flip, 3) * (1 - ramp(frame, B.flip + 4, 14));\n  const release = spring({ frame: frame - B.press - 4, fps, config: CHIP });\n  const btnScale = 1 - 0.12 * press + 0.06 * Math.sin(Math.PI * release) * flip;\n  const curX = mix(btnX + 190 * u, btnX + 8 * u, curIn);\n  const curY = mix(btnY + 150 * u, btnY + 10 * u, curIn) + 3 * u * press;\n  const caretOn = Math.floor(frame / 9) % 2 === 0 && frame < B.press;\n\n  const winX = L.win.x;\n  const winY = L.win.y;\n  const chromeIn = ramp(frame, B.chrome, 16);\n  const liveIn = spring({ frame: frame - B.live, fps, config: CHIP });\n  const dataT = ramp(frame, B.data, 30, MOVE);\n  const statValue = Math.round(mix(stat, stat + 312, dataT));\n  const heroProg = 0.18 + 0.2 * ramp(frame, B.snap, B.end - B.snap, SWAY);\n\n  const cardPos = (id: CardId, i: number, f: number) => {\n    const e = B.eject[i];\n    const c = L.cloud[id];\n    const slot = L.slots[id];\n    const sx = btnX;\n    const sy = L.bar.cy + ramp(e, B.rise, B.riseEnd - B.rise, MOVE) * L.rise;\n    const p = spring({ frame: f - e, fps, config: CARD });\n    const ps = spring({ frame: f - e, fps, config: CHIP });\n    const cx = sx + (c.x - sx) * 0.2;\n    const cy = Math.min(sy, c.y) - 170 * u;\n    const bz = (a: number, m: number, b: number, k: number) =>\n      (1 - k) * (1 - k) * a + 2 * (1 - k) * k * m + k * k * b;\n    const drift = 22 * u * ramp(f, e + 8, B.snap - e, SWAY);\n    let x = bz(sx, cx, c.x, p);\n    let y = bz(sy, cy, c.y, p) - drift;\n    let s = mix(0.16, c.s, ps);\n    let r = mix(i % 2 === 0 ? -22 : 22, c.r, p);\n    const q = spring({ frame: f - B.snap - i * 2, fps, config: CARD });\n    const tx = winX + slot.x + slot.w / 2;\n    const ty = winY + slot.y + slot.h / 2;\n    x = mix(x, tx, q);\n    y = mix(y, ty, q);\n    s = mix(s, 1, q);\n    r = mix(r, 0, q);\n    return { x, y, s, r, q, on: f >= e };\n  };\n\n  const resolvedGround: GshPresetId | undefined =\n    ground ?? (dark ? \"riptide\" : undefined);\n  const resolvedParams = groundParams ?? (dark ? undefined : LIGHT_GROUND);\n\n  const renderCard = (id: CardId, w: number, h: number) => {\n    switch (id) {\n      case \"chart\":\n        return (\n          <ChartCard w={w} h={h} t={t} u={u} accent={accent} grow={dataT} />\n        );\n      case \"hero\":\n        return (\n          <HeroCard\n            w={w}\n            h={h}\n            t={t}\n            u={u}\n            src={images[0]}\n            title={heroTitle}\n            progress={heroProg}\n          />\n        );\n      case \"stat\":\n        return (\n          <StatCard\n            w={w}\n            h={h}\n            t={t}\n            u={u}\n            accent={accent}\n            value={statValue.toLocaleString(\"en-US\")}\n            label={statLabel}\n            delta={statDelta}\n          />\n        );\n      case \"icon\":\n        return <IconCard w={w} h={h} t={t} u={u} accent={accent} />;\n      case \"sketch\":\n        return <SketchCard w={w} h={h} t={t} u={u} />;\n      default:\n        return (\n          <CoverCard w={w} h={h} t={t} u={u} src={images[1] ?? images[0]} />\n        );\n    }\n  };\n\n  const topH = L.top;\n  const avSize = 30 * u;\n  const avRight = winX + L.win.w - (16 + 84 + 14 + 66 + 16) * u - avSize / 2;\n  const avSlotX = (k: number) => avRight - (2 - k) * avSize * 0.72;\n  const avSlotY = winY + topH / 2;\n\n  return (\n    <AbsoluteFill style={{ fontFamily: onest.fontFamily, overflow: \"hidden\" }}>\n      <AbsoluteFill\n        style={{\n          transform: `translateY(${camT * 0.08 * height}px) scale(1.24)`,\n        }}\n      >\n        <GshGround\n          preset={resolvedGround}\n          params={resolvedParams}\n          timeOffset={3}\n          timeScale={0.6}\n        />\n      </AbsoluteFill>\n      <AbsoluteFill\n        style={{\n          background: dark\n            ? `linear-gradient(180deg, rgba(2,8,9,${0.15 + 0.35 * camT}) 0%, rgba(2,8,9,0) 60%)`\n            : `linear-gradient(180deg, rgba(255,255,255,${0.1 + 0.25 * camT}) 0%, rgba(255,255,255,0) 60%)`,\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          top: 0,\n          width: L.stageW,\n          height: L.stageH,\n          transform: `scale(${sc})`,\n          transformOrigin: \"0 0\",\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            transform: `scale(${zoom})`,\n            transformOrigin: `${L.bar.cx + L.bar.w * 0.2}px ${L.bar.cy}px`,\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              inset: 0,\n              transform: `scale(${push})`,\n              transformOrigin: `${L.stageW / 2}px ${winY + L.win.h / 2}px`,\n            }}\n          >\n            <div\n              style={{\n                position: \"absolute\",\n                left: winX,\n                top: winY,\n                width: L.win.w,\n                height: L.win.h,\n                borderRadius: 20 * u,\n                background: t.win,\n                border: `1px solid ${t.hair}`,\n                boxShadow: surfaceShadow(t, 1),\n                opacity: chromeIn,\n                transform: `scale(${mix(1.04, 1, chromeIn)})`,\n                filter: chromeIn < 1 ? `blur(${(1 - chromeIn) * 8}px)` : \"\",\n              }}\n            >\n              <div\n                style={{\n                  position: \"absolute\",\n                  left: 0,\n                  right: 0,\n                  top: 0,\n                  height: topH,\n                  borderBottom: `1px solid ${t.hair}`,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  padding: `0 ${16 * u}px`,\n                  gap: 14 * u,\n                }}\n              >\n                <div style={{ display: \"flex\", gap: 7 * u }}>\n                  {[\"a\", \"b\", \"c\"].map((k) => (\n                    <div\n                      key={k}\n                      style={{\n                        width: 11 * u,\n                        height: 11 * u,\n                        borderRadius: 99,\n                        border: `1px solid ${t.hair}`,\n                        background: dark\n                          ? \"rgba(255,255,255,0.08)\"\n                          : \"rgba(18,23,22,0.08)\",\n                      }}\n                    />\n                  ))}\n                </div>\n                <div\n                  style={{\n                    display: \"flex\",\n                    alignItems: \"center\",\n                    gap: 10 * u,\n                    marginLeft: 6 * u,\n                  }}\n                >\n                  <div\n                    style={{\n                      width: 24 * u,\n                      height: 24 * u,\n                      borderRadius: 7 * u,\n                      background: accent,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                    }}\n                  >\n                    <RemocnR height={12 * u} color=\"#fff\" />\n                  </div>\n                  <span style={{ fontSize: 17 * u, color: t.ink }}>\n                    {appTitle}\n                  </span>\n                  {portrait ? null : (\n                    <span\n                      style={{\n                        fontFamily: mono.fontFamily,\n                        fontSize: 16 * u,\n                        color: t.muted,\n                      }}\n                    >\n                      / v2\n                    </span>\n                  )}\n                </div>\n                {!portrait ? (\n                  <div\n                    style={{\n                      marginLeft: \"auto\",\n                      marginRight: \"auto\",\n                      display: \"flex\",\n                      padding: 3,\n                      borderRadius: 9,\n                      border: `1px solid ${t.hair}`,\n                      fontSize: 16,\n                      color: t.muted,\n                    }}\n                  >\n                    <div style={{ padding: \"3px 12px\" }}>Preview</div>\n                    <div\n                      style={{\n                        padding: \"3px 12px\",\n                        borderRadius: 6,\n                        color: t.ink,\n                        background: dark\n                          ? \"rgba(255,255,255,0.08)\"\n                          : \"rgba(18,23,22,0.06)\",\n                      }}\n                    >\n                      Board\n                    </div>\n                  </div>\n                ) : (\n                  <div style={{ marginLeft: \"auto\" }} />\n                )}\n                <div\n                  style={{\n                    display: \"flex\",\n                    alignItems: \"center\",\n                    gap: 6 * u,\n                    fontSize: 16 * u,\n                    color: dark ? \"#7af0c6\" : \"#118a63\",\n                    padding: `${3 * u}px ${10 * u}px`,\n                    borderRadius: 99,\n                    background: dark\n                      ? \"rgba(122,240,198,0.12)\"\n                      : \"rgba(17,138,99,0.1)\",\n                    transform: `scale(${liveIn})`,\n                    opacity: Math.min(1, liveIn * 2),\n                  }}\n                >\n                  <div\n                    style={{\n                      width: 7 * u,\n                      height: 7 * u,\n                      borderRadius: 99,\n                      background: \"currentColor\",\n                    }}\n                  />\n                  Live\n                </div>\n                <div\n                  style={{\n                    fontSize: 16 * u,\n                    color: \"#fff\",\n                    background: accent,\n                    padding: `${5 * u}px ${14 * u}px`,\n                    borderRadius: 8 * u,\n                    boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.3)\",\n                  }}\n                >\n                  Publish\n                </div>\n              </div>\n            </div>\n\n            <div\n              style={{\n                position: \"absolute\",\n                left: L.bar.cx - L.bar.w / 2,\n                top: barY - L.bar.h / 2,\n                width: L.bar.w,\n                height: L.bar.h,\n                borderRadius: L.bar.h / 2,\n                background: t.bar,\n                border: `1px solid ${t.hair}`,\n                boxShadow: surfaceShadow(t, 0.4),\n                display: \"flex\",\n                alignItems: \"center\",\n                padding: `0 ${(L.bar.h - L.bar.btn) / 2}px 0 ${24 * u}px`,\n                gap: 16 * u,\n                opacity: barIn,\n              }}\n            >\n              <svg\n                viewBox=\"0 0 24 24\"\n                width={22 * u}\n                height={22 * u}\n                aria-hidden\n                style={{ flexShrink: 0 }}\n              >\n                <path\n                  d=\"M12 5v14M5 12h14\"\n                  stroke={t.muted}\n                  strokeWidth={1.5}\n                  strokeLinecap=\"round\"\n                />\n              </svg>\n              <div\n                style={{\n                  flex: 1,\n                  fontSize: 23 * u,\n                  color: t.ink,\n                  whiteSpace: \"nowrap\",\n                  overflow: \"hidden\",\n                  display: \"flex\",\n                  alignItems: \"center\",\n                }}\n              >\n                {prompt}\n                <span\n                  style={{\n                    display: \"inline-block\",\n                    width: 2 * u,\n                    height: 24 * u,\n                    marginLeft: 3 * u,\n                    background: accent,\n                    opacity: caretOn ? 1 : 0,\n                  }}\n                />\n              </div>\n              <div\n                style={{\n                  width: L.bar.btn,\n                  height: L.bar.btn,\n                  flexShrink: 0,\n                  borderRadius: L.bar.btn * 0.3,\n                  background: flip > 0 ? accent : t.btn,\n                  transform: `scale(${btnScale})`,\n                  boxShadow: `0 0 0 ${flash * 18 * u}px color-mix(in oklab, ${accent} ${Math.round(flash * 30)}%, transparent), 0 ${8 * u}px ${20 * u}px color-mix(in oklab, ${flip > 0 ? accent : \"#000\"} ${30 + 20 * flip}%, transparent)`,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  justifyContent: \"center\",\n                }}\n              >\n                <svg\n                  viewBox=\"0 0 24 24\"\n                  width={L.bar.btn * 0.46}\n                  height={L.bar.btn * 0.46}\n                  aria-hidden\n                >\n                  <path\n                    d=\"M12 19V5M6 11l6-6 6 6\"\n                    fill=\"none\"\n                    stroke={flip > 0 ? \"#fff\" : t.arrow}\n                    strokeWidth={2}\n                    strokeLinecap=\"round\"\n                    strokeLinejoin=\"round\"\n                  />\n                </svg>\n              </div>\n            </div>\n\n            <svg\n              width={0}\n              height={0}\n              style={{ position: \"absolute\" }}\n              aria-hidden\n            >\n              <defs>\n                {ORDER.map((id, i) => {\n                  const a = cardPos(id, i, frame);\n                  const b = cardPos(id, i, frame - 1);\n                  const vx = Math.abs(a.x - b.x);\n                  const vy = Math.abs(a.y - b.y);\n                  return (\n                    <filter\n                      key={id}\n                      id={`sf-mb-${id}`}\n                      x=\"-20%\"\n                      y=\"-30%\"\n                      width=\"140%\"\n                      height=\"160%\"\n                    >\n                      <feGaussianBlur\n                        stdDeviation={`${Math.min(10, vx * 0.08)} ${Math.min(14, vy * 0.08)}`}\n                      />\n                    </filter>\n                  );\n                })}\n              </defs>\n            </svg>\n\n            {ORDER.map((id, i) => {\n              const pos = cardPos(id, i, frame);\n              if (!pos.on) return <div key={id} />;\n              const prev = cardPos(id, i, frame - 1);\n              const speed = Math.hypot(pos.x - prev.x, pos.y - prev.y);\n              const slot = L.slots[id];\n              const lift = 1 - pos.q;\n              return (\n                <div\n                  key={id}\n                  style={{\n                    position: \"absolute\",\n                    left: pos.x - slot.w / 2,\n                    top: pos.y - slot.h / 2,\n                    width: slot.w,\n                    height: slot.h,\n                    transform: `rotate(${pos.r}deg) scale(${pos.s})`,\n                    borderRadius: 14 * u,\n                    boxShadow:\n                      lift > 0.02\n                        ? `0 ${20 * lift * u}px ${44 * lift * u}px ${t.far}`\n                        : \"none\",\n                    filter: speed > 6 ? `url(#sf-mb-${id})` : undefined,\n                  }}\n                >\n                  {renderCard(id, slot.w, slot.h)}\n                </div>\n              );\n            })}\n\n            {AVATARS.map((a, k) => {\n              const id = ORDER[a.card];\n              const pos = cardPos(id, a.card, frame);\n              const slot = L.slots[id];\n              const pop = spring({\n                frame: frame - B.eject[a.card] - 5,\n                fps,\n                config: CHIP,\n              });\n              const go = spring({\n                frame: frame - B.avatars - k * 3,\n                fps,\n                config: CARD,\n              });\n              const ox = (slot.w / 2) * pos.s - 6 * u;\n              const oy = (-slot.h / 2) * pos.s + 6 * u;\n              const rad = (pos.r * Math.PI) / 180;\n              const rx = ox * Math.cos(rad) - oy * Math.sin(rad);\n              const ry = ox * Math.sin(rad) + oy * Math.cos(rad);\n              const x = mix(pos.x + rx, avSlotX(k), go);\n              const y = mix(pos.y + ry, avSlotY, go);\n              return (\n                <div\n                  key={a.id}\n                  style={{\n                    position: \"absolute\",\n                    left: x - avSize / 2,\n                    top: y - avSize / 2,\n                    width: avSize,\n                    height: avSize,\n                    borderRadius: 99,\n                    background: a.color,\n                    border: `${2 * u}px solid ${dark ? \"#121819\" : \"#ffffff\"}`,\n                    color: \"#14110c\",\n                    fontSize: 14 * u,\n                    display: \"flex\",\n                    alignItems: \"center\",\n                    justifyContent: \"center\",\n                    transform: `scale(${pos.on ? pop : 0})`,\n                    zIndex: 5 - k,\n                  }}\n                >\n                  {a.initial}\n                </div>\n              );\n            })}\n\n            <div\n              style={{\n                position: \"absolute\",\n                left: curX,\n                top: curY,\n                transform: `scale(${1 - 0.1 * press})`,\n                transformOrigin: \"4px 3px\",\n                opacity: ramp(frame, B.cursor, 6),\n              }}\n            >\n              <Cursor size={30 * u} />\n            </div>\n          </div>\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n\nexport default SendFountain;\n",
      "type": "registry:component",
      "target": "components/remocn/send-fountain.tsx"
    }
  ],
  "type": "registry:component"
}
