{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "rating-laurel",
  "title": "Rating Laurel",
  "description": "A gold laurel wreath frames a 4.96 rating above scrolling review cards.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/rating-laurel/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/HankenGrotesk\";\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport type React from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  spring,\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 { fontFamily } = loadFont(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst { fontFamily: serif } = loadSerif(\"italic\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\nconst manrope = loadManrope(\"normal\", {\n  weights: [\"600\"],\n  subsets: [\"latin\"],\n});\n\nexport interface RatingReview {\n  quote: string;\n  name: string;\n  city: string;\n  date?: string;\n  hue?: number;\n}\n\nexport interface RatingCategory {\n  label: string;\n  score: number;\n  icon: \"docs\" | \"motion\" | \"setup\" | \"support\" | \"value\";\n}\n\nexport interface RatingLaurelProps {\n  rating?: number;\n  title?: string;\n  subtitle?: string;\n  reviews?: RatingReview[];\n  reviewCount?: number;\n  categories?: RatingCategory[];\n  device?: \"web\" | \"phone\";\n  accent?: string;\n  speed?: number;\n  theme?: \"light\" | \"dark\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst DEFAULT_REVIEWS: RatingReview[] = [\n  {\n    quote:\n      \"We shipped our launch video the same afternoon we installed it. The transitions feel hand-tuned, and owning the code meant we could tweak every spring.\",\n    name: \"Maya Chen\",\n    city: \"Portland, Oregon\",\n    date: \"March 2026\",\n    hue: 18,\n  },\n  {\n    quote:\n      \"I’m not a motion designer and it didn’t matter. Picked three scenes, dropped in our screenshots, rendered. It looked like a studio made it.\",\n    name: \"Leo Park\",\n    city: \"Seoul, South Korea\",\n    date: \"March 2026\",\n    hue: 210,\n  },\n  {\n    quote:\n      \"Every component tells you when to use it and when not to. Saved me a full week of keyframing for our Kitebase launch.\",\n    name: \"Priya Raman\",\n    city: \"Austin, Texas\",\n    date: \"February 2026\",\n    hue: 300,\n  },\n  {\n    quote:\n      \"Finally, Remotion components that look like current product UI instead of a slideshow. The counter alone got us forty replies.\",\n    name: \"Jonas Weber\",\n    city: \"Berlin, Germany\",\n    date: \"February 2026\",\n    hue: 150,\n  },\n  {\n    quote:\n      \"Our whole team edits the video in code review now. Fernway’s launch went from a two-week project to a Friday afternoon.\",\n    name: \"Ana Souza\",\n    city: \"Lisbon, Portugal\",\n    date: \"January 2026\",\n    hue: 260,\n  },\n];\n\nconst DEFAULT_CATEGORIES: RatingCategory[] = [\n  { label: \"Docs\", score: 4.9, icon: \"docs\" },\n  { label: \"Motion\", score: 5.0, icon: \"motion\" },\n  { label: \"Setup\", score: 4.9, icon: \"setup\" },\n  { label: \"Support\", score: 4.8, icon: \"support\" },\n  { label: \"Value\", score: 5.0, icon: \"value\" },\n];\n\nconst ICONS: Record<RatingCategory[\"icon\"], string> = {\n  docs: \"M6 3.5h8.5L18 7v13.5H6zM14 3.5V7.5h4M9 12h6M9 15.5h6\",\n  motion: \"M3.5 12h4l2.5-6 4 12 2.5-6h4\",\n  setup: \"M5 7h14M5 12h14M5 17h14M9 5v4M15 10v4M8 15v4\",\n  support: \"M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z\",\n  value: \"M12 3.5l8.5 8.5-8.5 8.5L3.5 12zM12 8.5v7M8.5 12h7\",\n};\n\nconst STAR =\n  \"M12 2.6l2.85 6.05 6.62.78-4.9 4.53 1.3 6.54L12 17.2l-5.87 3.3 1.3-6.54-4.9-4.53 6.62-.78z\";\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 SW = 393;\nconst SH = 852;\nconst BEZEL = 11;\nconst BW = SW + BEZEL * 2;\nconst BH = SH + BEZEL * 2;\n\nconst clamp = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst MOVE = Easing.bezier(0.65, 0, 0.35, 1);\nconst CAM = Easing.bezier(0.87, 0, 0.13, 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 BEAT = {\n  laurel: 4,\n  number: 10,\n  title: 36,\n  sub: 42,\n  camFrom: 60,\n  camTo: 108,\n  categories: 72,\n  cards: 84,\n  glideFrom: 108,\n  glideTo: 250,\n  cta: 96,\n};\n\nconst LIGHT = {\n  page: \"#FFFFFF\",\n  ink: \"#1C1C1E\",\n  muted: \"#6B6B70\",\n  hair: \"rgba(20,20,30,0.08)\",\n  pill: \"#F2F2F3\",\n  window:\n    \"0 0 0 1px rgba(16,20,40,0.06), 0 2px 4px rgba(16,20,40,0.04), 0 30px 80px -24px rgba(16,24,64,0.32)\",\n  leafLit: \"#4A4A50\",\n  leafShade: \"#141416\",\n  vein: \"#FFFFFF\",\n  over: \"#FFFFFF\",\n  overMuted: \"rgba(255,255,255,0.72)\",\n};\nconst DARK: typeof LIGHT = {\n  page: \"#111215\",\n  ink: \"#F2F1EE\",\n  muted: \"#9C9CA3\",\n  hair: \"rgba(255,255,255,0.08)\",\n  pill: \"#1F2024\",\n  window:\n    \"0 0 0 1px rgba(255,255,255,0.09), inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 80px -20px rgba(0,0,0,0.7)\",\n  leafLit: \"#F2F1EE\",\n  leafShade: \"#A9A7A2\",\n  vein: \"#111215\",\n  over: \"#FFFFFF\",\n  overMuted: \"rgba(255,255,255,0.68)\",\n};\ntype Palette = typeof LIGHT;\n\nconst P0 = [44, 112];\nconst P1 = [2, 78];\nconst P2 = [30, 8];\nconst LIGHT_DIR = [-0.45, -0.9];\nconst LEAVES = Array.from({ length: 8 }, (_, i) => {\n  const tip = i === 7;\n  const t = tip ? 1 : 0.1 + i * 0.122;\n  const u = 1 - t;\n  const x = u * u * P0[0] + 2 * u * t * P1[0] + t * t * P2[0];\n  const y = u * u * P0[1] + 2 * u * t * P1[1] + t * t * P2[1];\n  const dx = 2 * u * (P1[0] - P0[0]) + 2 * t * (P2[0] - P1[0]);\n  const dy = 2 * u * (P1[1] - P0[1]) + 2 * t * (P2[1] - P1[1]);\n  const tangent = (Math.atan2(dy, dx) * 180) / Math.PI;\n  const angle = tangent + (tip ? 0 : i % 2 === 0 ? -40 : 40);\n  const a = (angle * Math.PI) / 180;\n  const upperLit = Math.sin(a) * LIGHT_DIR[0] - Math.cos(a) * LIGHT_DIR[1] > 0;\n  return { x, y, angle, len: tip ? 22 : 31 - t * 11, upperLit };\n});\n\nfunction halfLeaf(len: number, side: number) {\n  const w = len * 0.42 * side;\n  return `M0 0C${len * 0.24} ${w * 1.2} ${len * 0.78} ${w} ${len} 0Z`;\n}\n\nfunction Laurel({\n  h,\n  f,\n  at,\n  fps,\n  mirror,\n  c,\n}: {\n  h: number;\n  f: number;\n  at: number;\n  fps: number;\n  mirror?: boolean;\n  c: Palette;\n}) {\n  const stem = interpolate(f, [at, at + 22], [0, 1], {\n    ...clamp,\n    easing: ENTER,\n  });\n  return (\n    <svg\n      width={h * 0.5}\n      height={h}\n      viewBox=\"0 0 60 120\"\n      style={{\n        overflow: \"visible\",\n        transform: mirror ? \"scaleX(-1)\" : undefined,\n      }}\n    >\n      <path\n        d={`M${P0[0] + 10} ${P0[1] - 3}C${P0[0] + 8} ${P0[1] + 6} ${P0[0] + 1} ${P0[1] + 4} ${P0[0]} ${P0[1]}Q${P1[0]} ${P1[1]} ${P2[0]} ${P2[1]}`}\n        fill=\"none\"\n        stroke={c.leafShade}\n        strokeWidth={2.2}\n        strokeLinecap=\"round\"\n        pathLength={1}\n        strokeDasharray={1}\n        strokeDashoffset={1 - stem}\n      />\n      {LEAVES.map((leaf, i) => {\n        const g = spring({\n          frame: f - at - 3 - i * 2.4,\n          fps,\n          config: CHIP,\n        });\n        const k = 0.3 + 0.7 * g;\n        const L = leaf.len;\n        return (\n          <g\n            key={`${leaf.x}-${leaf.y}`}\n            opacity={Math.min(1, g * 2)}\n            transform={`translate(${leaf.x} ${leaf.y}) rotate(${leaf.angle}) scale(${k})`}\n          >\n            <path\n              d={halfLeaf(L, -1)}\n              fill={leaf.upperLit ? c.leafLit : c.leafShade}\n            />\n            <path\n              d={halfLeaf(L, 1)}\n              fill={leaf.upperLit ? c.leafShade : c.leafLit}\n            />\n            <path\n              d={`M2 0L${L * 0.86} 0`}\n              stroke={c.vein}\n              strokeOpacity={0.35}\n              strokeWidth={0.6}\n              strokeLinecap=\"round\"\n            />\n          </g>\n        );\n      })}\n    </svg>\n  );\n}\n\nfunction RollingNumber({\n  text,\n  f,\n  at,\n  size,\n  color,\n}: {\n  text: string;\n  f: number;\n  at: number;\n  size: number;\n  color: string;\n}) {\n  const lh = size * 1.1;\n  const travel = lh * 0.3;\n  let di = -1;\n  return (\n    <div\n      style={{\n        display: \"flex\",\n        fontSize: size,\n        fontWeight: 300,\n        letterSpacing: \"-0.045em\",\n        fontVariantNumeric: \"tabular-nums\",\n        color,\n        lineHeight: `${lh}px`,\n      }}\n    >\n      {text.split(\"\").map((ch, i) => {\n        if (!/\\d/.test(ch)) return <span key={`c${i}`}>{ch}</span>;\n        di += 1;\n        const steps = 3 + di * 2;\n        const target = Number(ch);\n        let t = at + di * 4;\n        let k = 0;\n        let s = 1;\n        for (let j = 1; j <= steps; j++) {\n          const gap = 1 + j * 1.1;\n          if (f < Math.round(t)) break;\n          k = j;\n          const t0 = Math.round(t);\n          s = interpolate(\n            f,\n            [t0, t0 + Math.min(4, Math.round(gap) + 1)],\n            [0, 1],\n            { ...clamp, easing: ENTER },\n          );\n          t += gap;\n        }\n        const val = (n: number) => (((target - steps + n) % 10) + 10) % 10;\n        const glyph = (n: number, y: number, o: number) => (\n          <span\n            style={{\n              position: \"absolute\",\n              inset: 0,\n              textAlign: \"center\",\n              opacity: o,\n              transform: `translateY(${y}px)`,\n            }}\n          >\n            {val(n)}\n          </span>\n        );\n        return (\n          <span\n            key={`d${i}`}\n            style={{\n              position: \"relative\",\n              height: lh,\n              display: \"inline-block\",\n              overflow: \"hidden\",\n            }}\n          >\n            <span style={{ visibility: \"hidden\" }}>{ch}</span>\n            {k > 0 && s < 1\n              ? glyph(k - 1, -s * travel, Math.max(0, 1 - s * 2.5))\n              : null}\n            {glyph(k, (1 - s) * travel, k > 0 ? Math.min(1, s * 1.25) : 1)}\n          </span>\n        );\n      })}\n    </div>\n  );\n}\n\nfunction Stars({\n  size,\n  color,\n  gap = 1,\n}: {\n  size: number;\n  color: string;\n  gap?: number;\n}) {\n  return (\n    <div style={{ display: \"flex\", gap }}>\n      {[0, 1, 2, 3, 4].map((i) => (\n        <svg key={i} width={size} height={size} viewBox=\"0 0 24 24\">\n          <path d={STAR} fill={color} />\n        </svg>\n      ))}\n    </div>\n  );\n}\n\nfunction RichText({ text, color }: { text: string; color: string }) {\n  return (\n    <>\n      {text.split(\"**\").map((part, i) => (\n        <span key={`${i}${part}`} style={i % 2 === 1 ? { color } : undefined}>\n          {part}\n        </span>\n      ))}\n    </>\n  );\n}\n\nfunction Avatar({\n  name,\n  hue,\n  size,\n  dark,\n}: {\n  name: string;\n  hue: number;\n  size: number;\n  dark: boolean;\n}) {\n  const initials = name\n    .split(\" \")\n    .map((p) => p[0])\n    .join(\"\")\n    .slice(0, 2);\n  return (\n    <div\n      style={{\n        width: size,\n        height: size,\n        borderRadius: size / 2,\n        flexShrink: 0,\n        background: dark ? `hsl(${hue} 14% 24%)` : `hsl(${hue} 30% 92%)`,\n        color: dark ? `hsl(${hue} 30% 82%)` : `hsl(${hue} 30% 32%)`,\n        fontSize: size * 0.38,\n        fontWeight: 400,\n        display: \"flex\",\n        alignItems: \"center\",\n        justifyContent: \"center\",\n        boxShadow: `inset 0 0 0 1px ${dark ? \"rgba(255,255,255,0.1)\" : \"rgba(0,0,0,0.06)\"}`,\n      }}\n    >\n      {initials}\n    </div>\n  );\n}\n\nfunction ReviewCard({\n  review,\n  c,\n  w,\n  u,\n  lines,\n  dark,\n}: {\n  review: RatingReview;\n  c: Palette;\n  w: number;\n  u: number;\n  lines: number;\n  dark: boolean;\n}) {\n  return (\n    <div style={{ width: w, flexShrink: 0, boxSizing: \"border-box\" }}>\n      <div style={{ display: \"flex\", alignItems: \"center\", gap: 12 * u }}>\n        <Avatar\n          name={review.name}\n          hue={review.hue ?? 200}\n          size={40 * u}\n          dark={dark}\n        />\n        <div>\n          <div style={{ fontSize: 17 * u, fontWeight: 400, color: c.ink }}>\n            {review.name}\n          </div>\n          <div style={{ fontSize: 15 * u, color: c.muted, marginTop: 1 }}>\n            {review.city}\n          </div>\n        </div>\n      </div>\n      <div\n        style={{\n          display: \"flex\",\n          alignItems: \"center\",\n          gap: 8 * u,\n          marginTop: 12 * u,\n          fontSize: 15 * u,\n          color: c.muted,\n        }}\n      >\n        <Stars size={11 * u} color={c.ink} gap={1} />\n        <span>{review.date ?? \"March 2026\"}</span>\n      </div>\n      <div\n        style={{\n          marginTop: 8 * u,\n          fontSize: 16 * u,\n          lineHeight: 1.5,\n          color: c.ink,\n          height: 16 * u * 1.5 * lines,\n          overflow: \"hidden\",\n          display: \"-webkit-box\",\n          WebkitLineClamp: lines,\n          WebkitBoxOrient: \"vertical\",\n          textWrap: \"pretty\",\n        }}\n      >\n        {review.quote}\n      </div>\n    </div>\n  );\n}\n\nconst Icon = ({\n  d,\n  size,\n  color,\n}: {\n  d: string;\n  size: number;\n  color: string;\n}) => (\n  <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\">\n    <path\n      d={d}\n      stroke={color}\n      strokeWidth={1.5}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    />\n  </svg>\n);\n\nfunction RemocnLogo({ fontSize, color }: { fontSize: number; color: string }) {\n  return (\n    <div\n      style={{\n        display: \"flex\",\n        alignItems: \"baseline\",\n        color,\n        fontFamily: manrope.fontFamily,\n        fontWeight: 600,\n        fontSize,\n        letterSpacing: \"-0.025em\",\n        lineHeight: 1,\n      }}\n    >\n      <svg\n        viewBox=\"0 0 124.06 134.26\"\n        style={{ height: \"0.76em\", width: \"auto\" }}\n        aria-hidden\n      >\n        <path fill=\"currentColor\" d={REMOCN_R_PATH} />\n      </svg>\n      <span style={{ marginLeft: \"0.04em\" }}>emocn</span>\n    </div>\n  );\n}\n\nfunction StatusBar({ color }: { color: string }) {\n  return (\n    <div\n      style={{\n        position: \"absolute\",\n        top: 0,\n        left: 0,\n        right: 0,\n        height: 54,\n        display: \"flex\",\n        alignItems: \"center\",\n        justifyContent: \"space-between\",\n        padding: \"6px 34px 0 52px\",\n        boxSizing: \"border-box\",\n        zIndex: 8,\n      }}\n    >\n      <span style={{ fontSize: 17, fontWeight: 400, color }}>9:41</span>\n      <div style={{ display: \"flex\", gap: 6, alignItems: \"center\" }}>\n        <svg width=\"18\" height=\"12\" viewBox=\"0 0 18 12\">\n          {[0, 1, 2, 3].map((i) => (\n            <rect\n              key={i}\n              x={i * 4.6}\n              y={9 - i * 3}\n              width={3.2}\n              height={3 + i * 3}\n              rx={0.8}\n              fill={color}\n            />\n          ))}\n        </svg>\n        <div\n          style={{\n            width: 25,\n            height: 12,\n            borderRadius: 3.5,\n            border: `1px solid ${color}`,\n            padding: 1.5,\n            boxSizing: \"border-box\",\n          }}\n        >\n          <div\n            style={{\n              width: \"80%\",\n              height: \"100%\",\n              borderRadius: 2,\n              background: color,\n            }}\n          />\n        </div>\n      </div>\n    </div>\n  );\n}\n\nfunction Phone({\n  children,\n  dark,\n}: {\n  children: React.ReactNode;\n  dark: boolean;\n}) {\n  const btn = (side: \"left\" | \"right\", top: number, h: number) => (\n    <div\n      style={{\n        position: \"absolute\",\n        [side]: -3,\n        top,\n        width: 4,\n        height: h,\n        borderRadius: 2,\n        background: \"#3A3A3D\",\n      }}\n    />\n  );\n  return (\n    <div style={{ position: \"relative\", width: BW, height: BH }}>\n      {btn(\"left\", 150, 32)}\n      {btn(\"left\", 210, 62)}\n      {btn(\"left\", 284, 62)}\n      {btn(\"right\", 236, 98)}\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          borderRadius: 66,\n          background: \"#0B0B0C\",\n          boxShadow: `inset 0 0 0 1.5px #6E6E73, inset 0 0 0 3px #1C1C1E, ${dark ? \"0 50px 100px -20px rgba(0,0,0,0.7)\" : \"0 2px 6px rgba(16,20,40,0.12), 0 50px 100px -30px rgba(16,24,64,0.45)\"}`,\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: BEZEL,\n          top: BEZEL,\n          width: SW,\n          height: SH,\n          borderRadius: 55,\n          overflow: \"hidden\",\n        }}\n      >\n        {children}\n        <div\n          style={{\n            position: \"absolute\",\n            top: 11,\n            left: (SW - 126) / 2,\n            width: 126,\n            height: 37,\n            borderRadius: 19,\n            background: \"#000\",\n            zIndex: 20,\n          }}\n        />\n        <div\n          style={{\n            position: \"absolute\",\n            bottom: 8,\n            left: (SW - 134) / 2,\n            width: 134,\n            height: 5,\n            borderRadius: 3,\n            background: dark ? \"#fff\" : \"#111\",\n            zIndex: 20,\n          }}\n        />\n      </div>\n    </div>\n  );\n}\n\nexport function RatingLaurel({\n  rating = 4.96,\n  title = \"Loved by builders\",\n  subtitle = \"remocn is in the **top 5%** of launch tools, based on ratings, reviews, and reliability\",\n  reviews = DEFAULT_REVIEWS,\n  reviewCount = 298,\n  categories = DEFAULT_CATEGORIES,\n  device = \"web\",\n  accent = \"#3B5BFD\",\n  speed = 1,\n  theme = \"light\",\n  ground,\n  groundParams,\n}: RatingLaurelProps) {\n  const frame = useCurrentFrame();\n  const { fps, width, height } = useVideoConfig();\n  const f = frame * speed;\n  const dark = theme === \"dark\";\n  const c = dark ? DARK : LIGHT;\n  const tall = height > width;\n  const phone = device === \"phone\" || tall;\n\n  const sp = (at: number, config: typeof CARD) =>\n    spring({ frame: f - at, fps, config });\n  const fadeUp = (at: number, dy = 14): React.CSSProperties => {\n    const v = interpolate(f, [at, at + 14], [0, 1], {\n      ...clamp,\n      easing: ENTER,\n    });\n    return {\n      opacity: v,\n      transform: `translateY(${(1 - v) * dy}px)`,\n    };\n  };\n\n  const groundEl = (\n    <>\n      <GshGround\n        preset={ground ?? (dark ? \"earthshine\" : \"paper-crease\")}\n        params={groundParams}\n        timeOffset={5}\n        timeScale={0.35}\n      />\n      {dark ? (\n        <AbsoluteFill\n          style={{\n            background:\n              \"radial-gradient(80% 70% at 40% 40%, rgba(3,5,12,0.5), rgba(3,5,12,0) 100%)\",\n          }}\n        />\n      ) : null}\n    </>\n  );\n\n  const hero = (scale: number) => (\n    <div\n      style={{\n        display: \"flex\",\n        flexDirection: \"column\",\n        alignItems: \"center\",\n        textAlign: \"center\",\n      }}\n    >\n      <div style={{ display: \"flex\", alignItems: \"center\", gap: 10 * scale }}>\n        <Laurel h={104 * scale} f={f} at={BEAT.laurel} fps={fps} c={c} />\n        <RollingNumber\n          text={rating.toFixed(2)}\n          f={f}\n          at={BEAT.number}\n          size={92 * scale}\n          color={c.ink}\n        />\n        <Laurel h={104 * scale} f={f} at={BEAT.laurel} fps={fps} c={c} mirror />\n      </div>\n      <div\n        style={{\n          marginTop: 6 * scale,\n          fontSize: 26 * scale,\n          fontWeight: 400,\n          letterSpacing: \"-0.02em\",\n          color: c.ink,\n          ...fadeUp(BEAT.title),\n        }}\n      >\n        {title}\n      </div>\n      <div\n        style={{\n          marginTop: 6 * scale,\n          maxWidth: 420 * scale,\n          fontSize: 17 * scale,\n          lineHeight: 1.45,\n          color: c.muted,\n          textWrap: \"balance\",\n          ...fadeUp(BEAT.sub, 10),\n        }}\n      >\n        <RichText text={subtitle} color={c.ink} />\n      </div>\n    </div>\n  );\n\n  if (phone) {\n    const u = 1;\n    const cardW = 300;\n    const step = cardW + 28;\n    const glide = interpolate(\n      f,\n      [BEAT.glideFrom, BEAT.glideTo],\n      [0, step * 2],\n      {\n        ...clamp,\n        easing: MOVE,\n      },\n    );\n    const pk = tall ? (height * 0.6) / BH : (height * 0.9) / BH;\n    const phoneC = tall\n      ? { x: width / 2, y: height * 0.37 }\n      : { x: width * 0.7, y: height / 2 };\n    const rise = sp(0, HEAVY);\n    const s = width / (tall ? 1080 : 1280);\n    const lineIn = (d: number) =>\n      interpolate(f, [18 + d, 34 + d], [0, 1], { ...clamp, easing: ENTER });\n    const barIn = sp(BEAT.cta, CARD);\n    return (\n      <AbsoluteFill style={{ fontFamily, overflow: \"hidden\" }}>\n        {groundEl}\n        <div\n          style={{\n            position: \"absolute\",\n            left: phoneC.x - BW / 2,\n            top: phoneC.y - BH / 2,\n            width: BW,\n            height: BH,\n            transform: `translateY(${(1 - rise) * height * 0.7}px) scale(${pk * (1 + 0.02 * (f / 270))})`,\n          }}\n        >\n          <Phone dark={dark}>\n            <div style={{ position: \"absolute\", inset: 0, background: c.page }}>\n              <StatusBar color={c.ink} />\n              <div\n                style={{\n                  position: \"absolute\",\n                  top: 58,\n                  left: 20,\n                  right: 20,\n                  height: 40,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  gap: 22,\n                }}\n              >\n                <Icon d=\"M19 12H5M11 5l-7 7 7 7\" size={22} color={c.ink} />\n                <div style={{ flex: 1 }} />\n                <Icon\n                  d=\"M12 3v12M7 8l5-5 5 5M5 13v7h14v-7\"\n                  size={20}\n                  color={c.ink}\n                />\n                <Icon\n                  d=\"M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z\"\n                  size={21}\n                  color={c.ink}\n                />\n              </div>\n              <div\n                style={{ position: \"absolute\", top: 104, left: 0, right: 0 }}\n              >\n                {hero(0.8)}\n              </div>\n              <div\n                style={{\n                  position: \"absolute\",\n                  top: 330,\n                  left: 22,\n                  right: 22,\n                  display: \"flex\",\n                  borderTop: `1px solid ${c.hair}`,\n                  borderBottom: `1px solid ${c.hair}`,\n                  padding: \"12px 0\",\n                  ...fadeUp(BEAT.categories - 4, 0),\n                }}\n              >\n                {categories.slice(0, 4).map((cat, i) => {\n                  const v = sp(BEAT.categories + i * 3, CHIP);\n                  return (\n                    <div\n                      key={cat.label}\n                      style={{\n                        flex: 1,\n                        paddingLeft: i === 0 ? 0 : 10,\n                        borderLeft: i === 0 ? \"none\" : `1px solid ${c.hair}`,\n                        opacity: Math.min(1, v * 1.5),\n                        transform: `translateY(${(1 - v) * 10}px)`,\n                      }}\n                    >\n                      <div style={{ fontSize: 13, color: c.muted }}>\n                        {cat.label}\n                      </div>\n                      <div\n                        style={{\n                          fontSize: 17,\n                          color: c.ink,\n                          fontVariantNumeric: \"tabular-nums\",\n                          marginTop: 2,\n                        }}\n                      >\n                        {cat.score.toFixed(1)}\n                      </div>\n                    </div>\n                  );\n                })}\n              </div>\n              <div\n                style={{\n                  position: \"absolute\",\n                  top: 430,\n                  left: 22,\n                  display: \"flex\",\n                  gap: 28,\n                  transform: `translateX(${-glide}px)`,\n                }}\n              >\n                {[...reviews, ...reviews].map((r, i) => {\n                  const v = sp(BEAT.cards + Math.min(i, 4) * 3, CARD);\n                  return (\n                    <div\n                      key={`${r.name}-${i < reviews.length ? \"a\" : \"b\"}`}\n                      style={{\n                        opacity: Math.min(1, v * 1.4),\n                        transform: `translateX(${(1 - v) * 48}px)`,\n                      }}\n                    >\n                      <ReviewCard\n                        review={r}\n                        c={c}\n                        w={cardW}\n                        u={u * 0.92}\n                        lines={5}\n                        dark={dark}\n                      />\n                    </div>\n                  );\n                })}\n              </div>\n              <div\n                style={{\n                  position: \"absolute\",\n                  top: 618,\n                  left: 22,\n                  right: 22,\n                  height: 48,\n                  borderRadius: 12,\n                  background: c.pill,\n                  color: c.ink,\n                  fontSize: 16,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  justifyContent: \"center\",\n                  ...fadeUp(BEAT.cta + 6, 8),\n                }}\n              >\n                Show all {reviewCount} reviews\n              </div>\n              <div\n                style={{\n                  position: \"absolute\",\n                  bottom: 0,\n                  left: 0,\n                  right: 0,\n                  height: 112,\n                  background: c.page,\n                  borderTop: `1px solid ${c.hair}`,\n                  display: \"flex\",\n                  alignItems: \"flex-start\",\n                  justifyContent: \"space-between\",\n                  padding: \"18px 22px 0\",\n                  boxSizing: \"border-box\",\n                  transform: `translateY(${(1 - barIn) * 112}px)`,\n                }}\n              >\n                <div style={{ color: c.ink }}>\n                  <div style={{ fontSize: 18, fontWeight: 400 }}>Free</div>\n                  <div style={{ fontSize: 13, color: c.muted, marginTop: 3 }}>\n                    MIT licensed · own the code\n                  </div>\n                </div>\n                <div\n                  style={{\n                    width: 140,\n                    height: 48,\n                    borderRadius: 12,\n                    background: accent,\n                    color: \"#fff\",\n                    fontSize: 16,\n                    fontWeight: 400,\n                    display: \"flex\",\n                    alignItems: \"center\",\n                    justifyContent: \"center\",\n                    boxShadow:\n                      \"inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.12)\",\n                  }}\n                >\n                  Install\n                </div>\n              </div>\n            </div>\n          </Phone>\n        </div>\n        <div\n          style={{\n            position: \"absolute\",\n            ...(tall\n              ? { left: 90 * s, right: 90 * s, top: height * 0.72 }\n              : { left: 96 * s, width: 470 * s, top: height / 2 - 120 * s }),\n            color: dark ? c.ink : \"#15161B\",\n            textAlign: tall ? \"center\" : \"left\",\n          }}\n        >\n          <div\n            style={{\n              fontSize: (tall ? 26 : 20) * s,\n              color: dark ? c.muted : \"#4F5260\",\n              fontVariantNumeric: \"tabular-nums\",\n              ...{\n                opacity: lineIn(0),\n                transform: `translateY(${(1 - lineIn(0)) * 10}px)`,\n              },\n            }}\n          >\n            {reviewCount} reviews\n          </div>\n          <div style={{ overflow: \"hidden\", paddingBottom: 8 * s }}>\n            <div\n              style={{\n                marginTop: 10 * s,\n                fontSize: (tall ? 84 : 62) * s,\n                fontWeight: 300,\n                lineHeight: 1.04,\n                letterSpacing: \"-0.04em\",\n                textWrap: \"balance\",\n                transform: `translateY(${(1 - lineIn(4)) * 105}%)`,\n              }}\n            >\n              Rated {rating.toFixed(2)} by the people who{\" \"}\n              <span\n                style={{\n                  fontFamily: serif,\n                  fontStyle: \"italic\",\n                  letterSpacing: \"-0.02em\",\n                }}\n              >\n                ship\n              </span>{\" \"}\n              with it.\n            </div>\n          </div>\n        </div>\n      </AbsoluteFill>\n    );\n  }\n\n  const cardW = 270;\n  const step = cardW + 40;\n  const glide = interpolate(f, [BEAT.glideFrom, BEAT.glideTo], [0, step * 2], {\n    ...clamp,\n    easing: MOVE,\n  });\n  const winW = 1000;\n  const winH = 640;\n  const winX = (1280 - winW) / 2;\n  const winY = (720 - winH) / 2;\n  const cam = interpolate(f, [BEAT.camFrom, BEAT.camTo], [0, 1], {\n    ...clamp,\n    easing: CAM,\n  });\n  const zoom = 1.8 - 0.8 * cam;\n  const focusY = winY + 215;\n  const ty = (1 - cam) * (360 - focusY);\n  const winIn = sp(0, HEAVY);\n  const push = 1 + 0.02 * interpolate(f, [BEAT.camTo, 270], [0, 1], clamp);\n  const s = width / 1280;\n  return (\n    <AbsoluteFill style={{ fontFamily, overflow: \"hidden\" }}>\n      {groundEl}\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          top: 0,\n          width: 1280,\n          height: 720,\n          transform: `scale(${s})`,\n          transformOrigin: \"0 0\",\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            transform: `translateY(${ty + (1 - winIn) * 30}px) scale(${zoom * push})`,\n            transformOrigin: `640px ${focusY}px`,\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              left: winX,\n              top: winY,\n              width: winW,\n              height: winH,\n              borderRadius: 18,\n              background: c.page,\n              boxShadow: c.window,\n              overflow: \"hidden\",\n            }}\n          >\n            <div\n              style={{\n                position: \"absolute\",\n                top: 0,\n                left: 0,\n                right: 0,\n                height: 60,\n                borderBottom: `1px solid ${c.hair}`,\n                display: \"flex\",\n                alignItems: \"center\",\n                padding: \"0 32px\",\n                opacity: interpolate(\n                  f,\n                  [BEAT.camFrom + 10, BEAT.camTo],\n                  [0, 1],\n                  {\n                    ...clamp,\n                    easing: ENTER,\n                  },\n                ),\n              }}\n            >\n              <div style={{ flex: 1 }}>\n                <RemocnLogo fontSize={22} color={c.ink} />\n              </div>\n              <div style={{ display: \"flex\", gap: 28, fontSize: 16 }}>\n                {[\"Components\", \"Templates\", \"Reviews\"].map((t, i) => (\n                  <span key={t} style={{ color: i === 2 ? c.ink : c.muted }}>\n                    {t}\n                  </span>\n                ))}\n              </div>\n              <div\n                style={{ flex: 1, display: \"flex\", justifyContent: \"flex-end\" }}\n              >\n                <div\n                  style={{\n                    height: 36,\n                    padding: \"0 16px\",\n                    borderRadius: 10,\n                    background: accent,\n                    color: \"#fff\",\n                    fontSize: 16,\n                    display: \"flex\",\n                    alignItems: \"center\",\n                    boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.2)\",\n                  }}\n                >\n                  Install\n                </div>\n              </div>\n            </div>\n            <div style={{ position: \"absolute\", top: 84, left: 0, right: 0 }}>\n              {hero(1)}\n            </div>\n            <div\n              style={{\n                position: \"absolute\",\n                top: 318,\n                left: 80,\n                right: 80,\n                display: \"flex\",\n                borderTop: `1px solid ${c.hair}`,\n                borderBottom: `1px solid ${c.hair}`,\n                padding: \"16px 0\",\n                ...fadeUp(BEAT.categories - 4, 0),\n              }}\n            >\n              {categories.map((cat, i) => {\n                const v = sp(BEAT.categories + i * 3, CHIP);\n                return (\n                  <div\n                    key={cat.label}\n                    style={{\n                      flex: 1,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      gap: 12,\n                      paddingLeft: i === 0 ? 0 : 20,\n                      borderLeft: i === 0 ? \"none\" : `1px solid ${c.hair}`,\n                      opacity: Math.min(1, v * 1.5),\n                      transform: `translateY(${(1 - v) * 10}px)`,\n                    }}\n                  >\n                    <Icon d={ICONS[cat.icon]} size={24} color={c.ink} />\n                    <div>\n                      <div style={{ fontSize: 16, color: c.muted }}>\n                        {cat.label}\n                      </div>\n                      <div\n                        style={{\n                          fontSize: 20,\n                          color: c.ink,\n                          fontVariantNumeric: \"tabular-nums\",\n                        }}\n                      >\n                        {cat.score.toFixed(1)}\n                      </div>\n                    </div>\n                  </div>\n                );\n              })}\n            </div>\n            <div\n              style={{\n                position: \"absolute\",\n                top: 428,\n                left: 0,\n                right: 0,\n                paddingLeft: 80,\n                maskImage:\n                  \"linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent)\",\n              }}\n            >\n              <div\n                style={{\n                  display: \"flex\",\n                  gap: 40,\n                  transform: `translateX(${-glide}px)`,\n                }}\n              >\n                {[...reviews, ...reviews].map((r, i) => {\n                  const v = sp(BEAT.cards + Math.min(i, 4) * 3, CARD);\n                  return (\n                    <div\n                      key={`${r.name}-${i < reviews.length ? \"a\" : \"b\"}`}\n                      style={{\n                        opacity: Math.min(1, v * 1.4),\n                        transform: `translateX(${(1 - v) * 48}px)`,\n                      }}\n                    >\n                      <ReviewCard\n                        review={r}\n                        c={c}\n                        w={cardW}\n                        u={1}\n                        lines={4}\n                        dark={dark}\n                      />\n                    </div>\n                  );\n                })}\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/rating-laurel.tsx"
    }
  ],
  "type": "registry:component"
}
