{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "beam-sweep",
  "title": "Beam Sweep",
  "description": "A beam of light sweeps across and reveals the next headline over a glowing horizon.",
  "dependencies": [
    "remotion",
    "@remotion/google-fonts",
    "@remotion/transitions"
  ],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/beam-sweep/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadGeist } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadHanken } from \"@remotion/google-fonts/HankenGrotesk\";\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport {\n  linearTiming,\n  type TransitionPresentation,\n  type TransitionPresentationComponentProps,\n  TransitionSeries,\n} from \"@remotion/transitions\";\nimport type React from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  Img,\n  interpolate,\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 geist = loadGeist(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst hanken = loadHanken(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst serif = loadSerif(\"normal\", { weights: [\"400\"], subsets: [\"latin\"] });\nconst serifItalic = loadSerif(\"italic\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\n\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\nexport type BeamSweepProps = {\n  beam?: GshPresetId;\n  beamParams?: Partial<GradientParams>;\n  angle?: number;\n  burn?: string;\n  edge?: string;\n  light?: boolean;\n};\n\nexport const beamSweepDefaults: Required<Omit<BeamSweepProps, \"beamParams\">> & {\n  beamParams: Partial<GradientParams>;\n} = {\n  beam: \"flood\",\n  beamParams: {\n    colors: [\"#eef5ff\", \"#8fbaff\", \"#2f68ff\", \"#1238c4\"],\n    background: \"#0a2b9e\",\n    speed: 1.2,\n  },\n  angle: 34,\n  burn: \"#2f6bff\",\n  edge: \"#d9e8ff\",\n  light: false,\n};\n\nconst LEAD_EASE = Easing.bezier(0.45, 0, 0.55, 1);\nconst TRAIL_EASE = Easing.bezier(0.5, 0, 0.35, 1);\nconst LEAD_SOFT = 0.24;\nconst TRAIL_SOFT = 0.34;\n\nfunction sweep(p: number) {\n  const lead = interpolate(p, [0, 0.56], [-0.06, 1 + LEAD_SOFT + 0.04], {\n    ...CLAMP,\n    easing: LEAD_EASE,\n  });\n  const trail = interpolate(p, [0.38, 1], [-TRAIL_SOFT - 0.04, 1.06], {\n    ...CLAMP,\n    easing: TRAIL_EASE,\n  });\n  return { lead, trail };\n}\n\nconst pct = (v: number) => `${(v * 100).toFixed(2)}%`;\n\nconst BeamSweepPresentation: React.FC<\n  TransitionPresentationComponentProps<BeamSweepProps>\n> = ({\n  children,\n  presentationProgress,\n  presentationDirection,\n  passedProps,\n}) => {\n  const props = {\n    ...beamSweepDefaults,\n    ...passedProps,\n    beamParams: passedProps.beamParams ?? beamSweepDefaults.beamParams,\n  };\n  const { width: W, height: H } = useVideoConfig();\n  const p = presentationProgress;\n  const cssAngle = `${90 + props.angle}deg`;\n  const { lead, trail } = sweep(p);\n\n  if (presentationDirection === \"exiting\") {\n    const k = interpolate(p, [0.02, 0.42], [0, 1], {\n      ...CLAMP,\n      easing: Easing.bezier(0.55, 0, 1, 0.45),\n    });\n    const push = interpolate(p, [0, 0.5], [1, 1.045], {\n      ...CLAMP,\n      easing: Easing.bezier(0.55, 0, 1, 0.45),\n    });\n    const aMask = `linear-gradient(${cssAngle}, transparent ${pct(lead - LEAD_SOFT)}, #000 ${pct(lead - LEAD_SOFT * 0.35)})`;\n    return (\n      <AbsoluteFill\n        style={{\n          maskImage: aMask,\n          WebkitMaskImage: aMask,\n          transform: `scale(${push})`,\n          filter: `brightness(${(1 + k * (props.light ? 0.25 : 1.3)).toFixed(3)}) saturate(${(1 + k * 0.5).toFixed(3)}) blur(${(k * 4).toFixed(2)}px)`,\n        }}\n      >\n        {children}\n        <AbsoluteFill\n          style={{\n            backgroundColor: props.burn,\n            mixBlendMode: props.light ? \"multiply\" : \"screen\",\n            opacity: k * (props.light ? 0.35 : 0.75),\n          }}\n        />\n      </AbsoluteFill>\n    );\n  }\n\n  const bMask = `linear-gradient(${cssAngle}, #000 ${pct(trail)}, transparent ${pct(trail + TRAIL_SOFT)})`;\n  const beamMask = `linear-gradient(${cssAngle}, transparent ${pct(trail)}, #000 ${pct(trail + TRAIL_SOFT)}, #000 ${pct(lead - LEAD_SOFT)}, transparent ${pct(lead)})`;\n  const hot = `linear-gradient(${cssAngle}, transparent ${pct(lead - LEAD_SOFT * 0.9)}, ${props.edge} ${pct(lead - LEAD_SOFT * 0.45)}, transparent ${pct(lead - 0.02)})`;\n  const span = Math.hypot(W, H) * 1.15;\n  const active = p > 0 && p < 1;\n  return (\n    <AbsoluteFill>\n      <AbsoluteFill\n        style={{\n          maskImage: p >= 1 ? undefined : bMask,\n          WebkitMaskImage: p >= 1 ? undefined : bMask,\n        }}\n      >\n        {children}\n      </AbsoluteFill>\n      {active ? (\n        <AbsoluteFill\n          style={{\n            maskImage: beamMask,\n            WebkitMaskImage: beamMask,\n            overflow: \"hidden\",\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              left: (W - span) / 2,\n              top: (H - span) / 2,\n              width: span,\n              height: span,\n              transform: `rotate(${props.angle}deg)`,\n            }}\n          >\n            <GshGround\n              preset={props.beam}\n              params={props.beamParams}\n              timeOffset={3}\n              timeScale={2.2}\n              resolution={0.35}\n            />\n          </div>\n          <AbsoluteFill\n            style={{\n              background: hot,\n              mixBlendMode: props.light ? \"normal\" : \"screen\",\n              opacity: props.light ? 0.9 : 0.75,\n            }}\n          />\n        </AbsoluteFill>\n      ) : null}\n    </AbsoluteFill>\n  );\n};\n\nexport function beamSweep(\n  props: BeamSweepProps = {},\n): TransitionPresentation<BeamSweepProps> {\n  return { component: BeamSweepPresentation, props };\n}\n\ntype Theme = \"dark\" | \"light\";\n\nconst UI = {\n  dark: {\n    app: \"#0c0d10\",\n    panel: \"#121318\",\n    raised: \"#191b21\",\n    line: \"rgba(255,255,255,0.07)\",\n    ink: \"#eceef3\",\n    muted: \"rgba(236,238,243,0.55)\",\n    faint: \"rgba(236,238,243,0.32)\",\n    page: \"#f4f1ea\",\n    pageInk: \"#17140f\",\n    pageMuted: \"rgba(23,20,15,0.56)\",\n    accent: \"#3B5BFD\",\n    highlight: \"inset 0 1px 0 rgba(255,255,255,0.06)\",\n    heroInk: \"#f3f6ff\",\n    heroMuted: \"rgba(220,230,255,0.6)\",\n    ground: \"earthshine\" as GshPresetId,\n    groundParams: undefined as Partial<GradientParams> | undefined,\n  },\n  light: {\n    app: \"#f3f3f1\",\n    panel: \"#fbfbfa\",\n    raised: \"#ffffff\",\n    line: \"rgba(16,18,24,0.08)\",\n    ink: \"#15171c\",\n    muted: \"rgba(21,23,28,0.56)\",\n    faint: \"rgba(21,23,28,0.34)\",\n    page: \"#121317\",\n    pageInk: \"#f4f2ee\",\n    pageMuted: \"rgba(244,242,238,0.6)\",\n    accent: \"#3B5BFD\",\n    highlight: \"inset 0 1px 0 rgba(255,255,255,0.9)\",\n    heroInk: \"#101320\",\n    heroMuted: \"rgba(16,19,32,0.58)\",\n    ground: \"paper-crease\" as GshPresetId,\n    groundParams: {\n      colors: [\"#7f9bff\", \"#b3c3ff\", \"#dde3fb\", \"#f1f2f8\"],\n      background: \"#eef0f6\",\n    } as Partial<GradientParams> | undefined,\n  },\n};\n\nconst A_BEATS = { tilesIn: -6, press: 24, progress: 27 };\nconst B_BEATS = { lineIn: 12, subIn: 20 };\n\nfunction Icon({ d, size, color }: { d: string; size: number; color: string }) {\n  return (\n    <svg\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={1.5}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      aria-hidden\n    >\n      <path d={d} />\n    </svg>\n  );\n}\n\nconst ICONS = {\n  chevron: \"M7 10l5 5 5-5\",\n  plus: \"M12 5v14M5 12h14\",\n  send: \"M12 19V5M6 11l6-6 6 6\",\n  globe:\n    \"M12 3a9 9 0 100 18 9 9 0 000-18zM3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z\",\n  spark: \"M12 4v4M12 16v4M4 12h4M16 12h4M6.5 6.5l2.5 2.5M15 15l2.5 2.5\",\n  check: \"M5 12.5l4.5 4.5L19 7.5\",\n  undo: \"M9 14L4 9l5-5M4 9h10a6 6 0 010 12h-3\",\n};\n\nfunction BuilderScene({\n  theme,\n  images,\n  title,\n}: {\n  theme: Theme;\n  images: string[];\n  title: [string, string];\n}) {\n  const frame = useCurrentFrame();\n  const { width: W, height: H, fps } = useVideoConfig();\n  const c = UI[theme];\n  const tall = H > W;\n  const u = (tall ? W / 720 : H / 720) * 1.12;\n  const press = spring({\n    frame: frame - A_BEATS.press,\n    fps,\n    config: { mass: 0.5, damping: 12, stiffness: 200 },\n  });\n  const pressScale =\n    frame < A_BEATS.press ? 1 : 1 - Math.sin(press * Math.PI) * 0.06;\n  const published = frame >= A_BEATS.press + 3;\n  const bar = interpolate(\n    frame,\n    [A_BEATS.progress, A_BEATS.progress + 36],\n    [0, 1],\n    {\n      ...CLAMP,\n      easing: Easing.bezier(0.65, 0, 0.35, 1),\n    },\n  );\n  const push = interpolate(frame, [0, 66], [1, 1.03], CLAMP);\n  const tile = (i: number) =>\n    spring({\n      frame: frame - A_BEATS.tilesIn - i * 3,\n      fps,\n      config: { mass: 0.8, damping: 18, stiffness: 160 },\n    });\n  const topH = 52 * u;\n  const chatW = tall ? 0 : W * 0.27;\n  const label: React.CSSProperties = {\n    fontFamily: geist.fontFamily,\n    fontWeight: 400,\n    fontSize: 15 * u,\n    color: c.ink,\n    letterSpacing: \"-0.005em\",\n  };\n  return (\n    <AbsoluteFill\n      style={{ backgroundColor: c.app, transform: `scale(${push})` }}\n    >\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          right: 0,\n          top: 0,\n          height: topH,\n          display: \"flex\",\n          alignItems: \"center\",\n          padding: `0 ${18 * u}px`,\n          gap: 14 * u,\n          borderBottom: `1px solid ${c.line}`,\n          ...label,\n        }}\n      >\n        <div\n          style={{\n            width: 26 * u,\n            height: 26 * u,\n            borderRadius: 7 * u,\n            background: `linear-gradient(140deg, #5b78ff, ${c.accent})`,\n          }}\n        />\n        <span>Lumen</span>\n        <span style={{ color: c.faint }}>/</span>\n        <span style={{ color: c.muted }}>launch-site</span>\n        <Icon d={ICONS.chevron} size={14 * u} color={c.faint} />\n        <div style={{ flex: 1 }} />\n        {tall ? null : (\n          <div\n            style={{\n              display: \"flex\",\n              padding: 3 * u,\n              borderRadius: 9 * u,\n              background: c.raised,\n              border: `1px solid ${c.line}`,\n              gap: 2 * u,\n              fontSize: 13 * u,\n            }}\n          >\n            <span\n              style={{\n                padding: `${4 * u}px ${12 * u}px`,\n                borderRadius: 6 * u,\n                background: c.panel,\n                boxShadow: c.highlight,\n              }}\n            >\n              Preview\n            </span>\n            <span style={{ padding: `${4 * u}px ${12 * u}px`, color: c.muted }}>\n              Edit\n            </span>\n          </div>\n        )}\n        {tall ? null : (\n          <div\n            style={{\n              display: \"flex\",\n              alignItems: \"center\",\n              gap: 8 * u,\n              padding: `${6 * u}px ${14 * u}px`,\n              borderRadius: 999,\n              border: `1px solid ${c.line}`,\n              color: c.muted,\n              fontSize: 13 * u,\n              minWidth: 200 * u,\n            }}\n          >\n            <Icon d={ICONS.globe} size={14 * u} color={c.faint} />\n            lumen.app\n          </div>\n        )}\n        <div style={{ flex: 1 }} />\n        <Icon d={ICONS.undo} size={17 * u} color={c.faint} />\n        <div\n          style={{\n            display: \"flex\",\n            alignItems: \"center\",\n            gap: 7 * u,\n            padding: `${7 * u}px ${16 * u}px`,\n            borderRadius: 999,\n            background: published ? c.accent : c.ink,\n            color: published ? \"#fff\" : c.app,\n            fontSize: 14 * u,\n            transform: `scale(${pressScale})`,\n            boxShadow: published\n              ? `0 0 0 ${4 * u}px rgba(59,91,253,0.22)`\n              : \"none\",\n          }}\n        >\n          {published ? (\n            <Icon d={ICONS.check} size={14 * u} color=\"#fff\" />\n          ) : null}\n          {published ? \"Publishing\" : \"Publish\"}\n        </div>\n        <div\n          style={{\n            position: \"absolute\",\n            left: 0,\n            bottom: -1,\n            height: 2 * u,\n            width: `${bar * 100}%`,\n            background: `linear-gradient(90deg, transparent, ${c.accent})`,\n          }}\n        />\n      </div>\n      {tall ? null : (\n        <div\n          style={{\n            position: \"absolute\",\n            left: 0,\n            top: topH,\n            bottom: 0,\n            width: chatW,\n            borderRight: `1px solid ${c.line}`,\n            background: c.panel,\n            padding: 18 * u,\n            display: \"flex\",\n            flexDirection: \"column\",\n            gap: 14 * u,\n            ...label,\n            fontSize: 14 * u,\n          }}\n        >\n          <div\n            style={{\n              alignSelf: \"flex-end\",\n              maxWidth: \"86%\",\n              padding: `${10 * u}px ${13 * u}px`,\n              borderRadius: 12 * u,\n              background: c.raised,\n              border: `1px solid ${c.line}`,\n              boxShadow: c.highlight,\n              lineHeight: 1.4,\n            }}\n          >\n            Make the hero calmer and add the product shots.\n          </div>\n          <div style={{ color: c.faint, fontSize: 13 * u }}>Thought for 6s</div>\n          {[\n            \"Rewrote hero.tsx\",\n            \"Added 2 product images\",\n            \"Tuned type scale\",\n          ].map((t, i) => (\n            <div\n              key={t}\n              style={{\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 9 * u,\n                color: c.muted,\n                opacity: interpolate(frame, [i * 3, i * 3 + 9], [0, 1], CLAMP),\n              }}\n            >\n              <Icon d={ICONS.check} size={15 * u} color={c.accent} />\n              {t}\n            </div>\n          ))}\n          <div style={{ flex: 1 }} />\n          <div style={{ display: \"flex\", gap: 8 * u, flexWrap: \"wrap\" }}>\n            {[\"Add pricing\", \"Dark mode\"].map((t) => (\n              <div\n                key={t}\n                style={{\n                  padding: `${5 * u}px ${11 * u}px`,\n                  borderRadius: 999,\n                  border: `1px solid ${c.line}`,\n                  color: c.muted,\n                  fontSize: 12.5 * u,\n                }}\n              >\n                {t}\n              </div>\n            ))}\n          </div>\n          <div\n            style={{\n              borderRadius: 14 * u,\n              border: `1px solid ${c.line}`,\n              background: c.raised,\n              boxShadow: `${c.highlight}, 0 ${8 * u}px ${24 * u}px rgba(0,0,0,0.18)`,\n              padding: 12 * u,\n              display: \"flex\",\n              flexDirection: \"column\",\n              gap: 16 * u,\n            }}\n          >\n            <span style={{ color: c.faint }}>Ask for a change…</span>\n            <div style={{ display: \"flex\", alignItems: \"center\", gap: 10 * u }}>\n              <Icon d={ICONS.plus} size={16 * u} color={c.muted} />\n              <span style={{ color: c.muted, fontSize: 13 * u }}>Build</span>\n              <Icon d={ICONS.chevron} size={12 * u} color={c.faint} />\n              <div style={{ flex: 1 }} />\n              <div\n                style={{\n                  width: 28 * u,\n                  height: 28 * u,\n                  borderRadius: 8 * u,\n                  background: c.accent,\n                  display: \"grid\",\n                  placeItems: \"center\",\n                }}\n              >\n                <Icon d={ICONS.send} size={15 * u} color=\"#fff\" />\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n      <div\n        style={{\n          position: \"absolute\",\n          left: chatW + (tall ? 28 : 24) * u,\n          right: (tall ? 28 : 24) * u,\n          top: topH + 22 * u,\n          bottom: 22 * u,\n          borderRadius: 12 * u,\n          background: c.page,\n          overflow: \"hidden\",\n          boxShadow: `0 0 0 1px ${c.line}, 0 ${12 * u}px ${36 * u}px rgba(0,0,0,0.28), 0 ${2 * u}px ${6 * u}px rgba(0,0,0,0.18)`,\n          padding: `${22 * u}px ${36 * u}px`,\n          display: \"flex\",\n          flexDirection: \"column\",\n          gap: 26 * u,\n        }}\n      >\n        <div\n          style={{\n            display: \"flex\",\n            alignItems: \"center\",\n            gap: 22 * u,\n            fontFamily: geist.fontFamily,\n            fontWeight: 400,\n            fontSize: 13 * u,\n            color: c.pageMuted,\n          }}\n        >\n          <span\n            style={{\n              fontFamily: serif.fontFamily,\n              fontSize: 22 * u,\n              color: c.pageInk,\n              marginRight: \"auto\",\n            }}\n          >\n            Lumen\n          </span>\n          {tall ? null : <span>Product</span>}\n          {tall ? null : <span>Stories</span>}\n          <span>Pricing</span>\n          <span\n            style={{\n              padding: `${6 * u}px ${13 * u}px`,\n              borderRadius: 999,\n              background: c.pageInk,\n              color: c.page,\n            }}\n          >\n            Get early access\n          </span>\n        </div>\n        <div\n          style={{\n            fontFamily: serif.fontFamily,\n            fontWeight: 400,\n            fontSize: (tall ? 78 : 58) * u,\n            lineHeight: 1,\n            letterSpacing: \"-0.02em\",\n            color: c.pageInk,\n          }}\n        >\n          {title[0]}\n          <br />\n          <span\n            style={{ fontFamily: serifItalic.fontFamily, fontStyle: \"italic\" }}\n          >\n            {title[1]}\n          </span>\n        </div>\n        <div\n          style={{\n            display: \"flex\",\n            flexDirection: tall ? \"column\" : \"row\",\n            gap: 14 * u,\n            flex: 1,\n            minHeight: 0,\n          }}\n        >\n          {images.slice(0, 3).map((src, i) => {\n            const s = tile(i);\n            return (\n              <div\n                key={src}\n                style={{\n                  flex: i === 0 ? 1.4 : 1,\n                  borderRadius: 10 * u,\n                  overflow: \"hidden\",\n                  position: \"relative\",\n                  transform: `translateY(${(1 - s) * 30 * u}px)`,\n                  opacity: Math.min(1, s * 1.6),\n                }}\n              >\n                <Img\n                  src={src}\n                  style={{ width: \"100%\", height: \"100%\", objectFit: \"cover\" }}\n                />\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n\nfunction RiseLine({\n  text,\n  at,\n  style,\n}: {\n  text: string;\n  at: number;\n  style: React.CSSProperties;\n}) {\n  const frame = useCurrentFrame();\n  const { fps } = useVideoConfig();\n  const words = text.split(\" \");\n  return (\n    <div style={style}>\n      {words.map((w, i) => {\n        const s = spring({\n          frame: frame - at - i * 2,\n          fps,\n          config: { mass: 0.8, damping: 20, stiffness: 150 },\n        });\n        return (\n          <span\n            key={`${w}-${i}`}\n            style={{\n              display: \"inline-block\",\n              overflow: \"hidden\",\n              paddingBottom: \"0.12em\",\n              marginBottom: \"-0.12em\",\n              verticalAlign: \"bottom\",\n            }}\n          >\n            <span\n              style={{\n                display: \"inline-block\",\n                transform: `translateY(${(1 - s) * 100}%)`,\n                filter: `blur(${(Math.max(0, 1 - s) * 5).toFixed(2)}px)`,\n              }}\n            >\n              {w}\n              {i < words.length - 1 ? \" \" : \"\"}\n            </span>\n          </span>\n        );\n      })}\n    </div>\n  );\n}\n\nfunction StatementScene({\n  theme,\n  line,\n  sub,\n  ground,\n  groundParams,\n}: {\n  theme: Theme;\n  line: string;\n  sub: string;\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}) {\n  const frame = useCurrentFrame();\n  const { width: W, height: H, durationInFrames } = useVideoConfig();\n  const c = UI[theme];\n  const tall = H > W;\n  const size = tall ? W * 0.1 : Math.min(W * 0.066, H * 0.12);\n  const push = interpolate(frame, [0, durationInFrames], [1, 1.035], CLAMP);\n  return (\n    <AbsoluteFill>\n      <GshGround\n        preset={ground ?? c.ground}\n        params={groundParams ?? c.groundParams}\n        timeOffset={2}\n        timeScale={0.6}\n      />\n      <AbsoluteFill\n        style={{\n          justifyContent: \"center\",\n          alignItems: \"center\",\n          transform: `scale(${push})`,\n          paddingBottom: tall ? H * 0.16 : H * 0.2,\n          gap: size * 0.42,\n        }}\n      >\n        <RiseLine\n          text={line}\n          at={B_BEATS.lineIn}\n          style={{\n            fontFamily: hanken.fontFamily,\n            fontWeight: 300,\n            fontSize: size,\n            letterSpacing: \"-0.04em\",\n            lineHeight: 1.04,\n            color: c.heroInk,\n            textAlign: \"center\",\n            textWrap: \"balance\",\n            maxWidth: W * (tall ? 0.86 : 0.8),\n          }}\n        />\n        <RiseLine\n          text={sub}\n          at={B_BEATS.subIn}\n          style={{\n            fontFamily: hanken.fontFamily,\n            fontWeight: 400,\n            fontSize: size * 0.34,\n            letterSpacing: \"-0.01em\",\n            color: c.heroMuted,\n            textAlign: \"center\",\n            maxWidth: W * 0.8,\n          }}\n        />\n      </AbsoluteFill>\n    </AbsoluteFill>\n  );\n}\n\nexport type BeamSweepDemoProps = {\n  theme?: Theme;\n  images?: string[];\n  pageTitle?: [string, string];\n  line?: string;\n  sub?: string;\n  beam?: BeamSweepProps;\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n  sceneA?: number;\n  sceneB?: number;\n  transition?: number;\n};\n\nexport const BEAM_SWEEP_DEMO = { sceneA: 66, sceneB: 72, transition: 30 };\n\nconst LIGHT_BEAM: BeamSweepProps = {\n  beam: \"flood\",\n  beamParams: {\n    colors: [\"#ffffff\", \"#d6e5ff\", \"#7fa6ff\", \"#3b5bfd\"],\n    background: \"#b9d0ff\",\n    speed: 1.2,\n  },\n  burn: \"#9cbcff\",\n  edge: \"#ffffff\",\n  light: true,\n};\n\nexport function BeamSweepDemo({\n  theme = \"dark\",\n  images = [\n    staticFile(\"templates/product-showcase/sculpture.jpg\"),\n    staticFile(\"templates/launch-anything/horizon.jpg\"),\n    staticFile(\"templates/product-showcase/workbench.jpg\"),\n  ],\n  pageTitle = [\"Your next launch,\", \"already in motion.\"],\n  line = \"Just describe the launch.\",\n  sub = \"Every scene is cut to your product.\",\n  beam,\n  ground,\n  groundParams,\n  sceneA = BEAM_SWEEP_DEMO.sceneA,\n  sceneB = BEAM_SWEEP_DEMO.sceneB,\n  transition = BEAM_SWEEP_DEMO.transition,\n}: BeamSweepDemoProps) {\n  const presentation = beamSweep({\n    ...(theme === \"light\" ? LIGHT_BEAM : {}),\n    ...beam,\n  });\n  return (\n    <AbsoluteFill style={{ backgroundColor: UI[theme].app }}>\n      <TransitionSeries>\n        <TransitionSeries.Sequence durationInFrames={sceneA}>\n          <BuilderScene theme={theme} images={images} title={pageTitle} />\n        </TransitionSeries.Sequence>\n        <TransitionSeries.Transition\n          presentation={presentation}\n          timing={linearTiming({ durationInFrames: transition })}\n        />\n        <TransitionSeries.Sequence durationInFrames={sceneB}>\n          <StatementScene\n            theme={theme}\n            line={line}\n            sub={sub}\n            ground={ground}\n            groundParams={groundParams}\n          />\n        </TransitionSeries.Sequence>\n      </TransitionSeries>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/beam-sweep.tsx"
    }
  ],
  "type": "registry:component"
}
