{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"brand-wheel","type":"registry:component","title":"Brand Wheel","description":"Rotating logos text: a lead word and a wheel of brand pills that rolls through the platforms you ship to, blurred rows above and below, then a cursor clicks the last one. Motion measured frame by frame from a recording.","dependencies":["remotion","@remotion/google-fonts"],"docs":"Needs a Remotion project. If a frame renders black, the component is drawing on a transparent layer: put a background behind it, e.g. <AbsoluteFill style={{ background: \"#faf9f6\" }}><Component /></AbsoluteFill>. Pass mode=\"dark\" for dark frames.","registryDependencies":["https://kuchi.kalarislabs.com/r/kuchi-ui.json"],"files":[{"path":"components/kuchi/brand-wheel/index.tsx","type":"registry:component","target":"components/kuchi/brand-wheel/index.tsx","content":"/*! Portions Copyright (c) 2026 Sri Nath (snap-cn). MIT License. See THIRD_PARTY_LICENSES. */\n\"use client\";\r\n\r\nimport { loadFont } from \"@remotion/google-fonts/InterTight\";\r\nimport {\r\n  AbsoluteFill,\r\n  getRemotionEnvironment,\r\n  useCurrentFrame,\r\n  useVideoConfig,\r\n} from \"remotion\";\r\nimport {\r\n  resolveFont,\r\n  type KuchiTheme,\r\n  useKuchiTheme,\r\n  withAlpha,\r\n} from \"@/lib/kuchi-ui\";\r\nimport {\r\n  BRANDS,\r\n  type BrandMark,\r\n  brandKey,\r\n  CURSOR,\r\n  ENTER,\r\n  FADE,\r\n  FIRST,\r\n  FIRST_REST,\r\n  INK,\r\n  PITCH,\r\n  REF_H,\r\n  REF_W,\r\n  STEP,\r\n  STEP_FRAMES,\r\n  STOP_EARLY,\r\n  SWAP,\r\n} from \"./data\";\r\n\r\n/**\r\n * A lead word and a wheel of brand pills that rolls through where you ship.\r\n *\r\n * \"launch on\" holds the left of the line; the pill to its\r\n * right is one row of a column whose other rows sit above and below it, blurred\r\n * and fading. The column rolls a row every two thirds of a second, never quite\r\n * stopping, draws in as a cursor glides up, and freezes on the last brand just\r\n * as the cursor clicks it. A ring answers the click, then the line slides away.\r\n *\r\n * Every number in `./data` was recovered frame by frame from a recording and is\r\n * in that recording's pixels — the 57.45px pitch, the step curve that creeps\r\n * through the slot and rushes between rows, the moment focus changes hands, the\r\n * fade with distance, the cursor's glide. The constants below are the same\r\n * frame's geometry: the scene is laid out at 712 × 402 and scaled by height.\r\n *\r\n * The recording is set in SF Pro, which no render farm has. Inter Tight is the\r\n * nearest face a Remotion bundle can load — fingerprinted on five words against\r\n * the reference's ink, 2.9% RMS with -0.012em of tracking — and each size below\r\n * is fitted to the reference's ink height, not to a nominal point size.\r\n */\r\n\r\nconst { fontFamily: SANS } = loadFont(\"normal\", {\r\n  weights: [\"400\", \"500\"],\r\n  subsets: [\"latin\"],\r\n});\r\n\r\n/* ── The lockup, in reference px ─────────────────────────────────────────── */\r\n\r\n/** The slot's middle. Pill borders measured at 177.55 and 215.30. */\r\nconst ROW_Y = 196.43;\r\n/** Centre of the whole lockup, lead.s left edge to pill's right (504.6). */\r\nconst ROW_X = 360.875;\r\nconst PILL_H = 38.75;\r\n/** Border to brand box, and label's box to border, at the widest label. */\r\nconst PILL_PAD_L = 6.5;\r\nconst PILL_PAD_R = 12.86;\r\nconst MARK_H = 28;\r\nconst MARK_GAP = 10.73;\r\nconst LABEL = 22.8;\r\nconst LEAD = 30.65;\r\nconst TRACK = \"-0.032em\";\r\nconst LEAD_GAP = 20.05;\r\n/**\r\n * Baselines, as nudges off flex centring: the lead's ink sits on 206.65 and\r\n * the label's on 204.9, neither of which is where centring a line box puts it.\r\n */\r\nconst LEAD_NUDGE = 0.31;\r\nconst LABEL_NUDGE = 0.75;\r\n\r\n/** Rows out of focus. */\r\nconst BLUR = 2.4;\r\nconst DIM = 0.42;\r\n\r\n/* ── Timing, in reference frames at 30fps, relative to the stop ──────────── */\r\n\r\n/** The wheel draws in under the approaching cursor. */\r\nconst SHRINK = 0.93;\r\nconst SHRINK_AT: readonly [number, number] = [-33.6, -9.6];\r\nconst CURSOR_IN: readonly [number, number] = [-34.6, -19.6];\r\n/** Click: the cursor presses to 0.9 and lets go. */\r\nconst PRESS: readonly [number, number, number, number] = [-2.6, -0.6, 4.4, 7.4];\r\n/** The ring that answers the click: grows to 12.5px and fades out by +17.4. */\r\nconst RING_AT = 0.4;\r\nconst RING_W = 12.5;\r\nconst RING_FADE: readonly [number, number] = [3.4, 17.4];\r\nconst RING_ALPHA = 0.06;\r\n/** The line leaves on an ease-in slide, fading over its last five frames. */\r\nconst EXIT_AT = 2.4;\r\nconst EXIT_FADE: readonly [number, number] = [20.4, 25.4];\r\n\r\ntype Table = readonly (readonly [number, number])[];\r\n\r\nfunction read(table: Table, v: number): number {\r\n  const first = table[0];\r\n  const last = table[table.length - 1];\r\n  if (!first || !last) return 0;\r\n  if (v <= first[0]) return first[1];\r\n  if (v >= last[0]) return last[1];\r\n  for (let i = 1; i < table.length; i++) {\r\n    const hi = table[i];\r\n    const lo = table[i - 1];\r\n    if (hi && lo && v <= hi[0]) {\r\n      return lo[1] + ((hi[1] - lo[1]) * (v - lo[0])) / (hi[0] - lo[0]);\r\n    }\r\n  }\r\n  return last[1];\r\n}\r\n\r\nconst clamp01 = (v: number) => Math.min(1, Math.max(0, v));\r\nconst ramp = (v: number, a: number, b: number) => clamp01((v - a) / (b - a));\r\nconst smooth = (v: number) => v * v * (3 - 2 * v);\r\n\r\n/** The reference frame the strip freezes on, for a reel of `n`. */\r\nexport const stopFrame = (n: number) =>\r\n  FIRST_REST + STEP_FRAMES * Math.max(0, n - 2) - STOP_EARLY;\r\n\r\n/** Frames at 30fps for a reel of `n`: the roll, the click, the exit. */\r\nexport const brandWheelDuration = (n: number) =>\r\n  Math.ceil(stopFrame(n) + EXIT_FADE[1]);\r\n\r\n/** Rows travelled at reference frame `f`, for a reel of `n`. */\r\nexport function rollAt(f: number, n: number): number {\r\n  if (n < 2) return 0;\r\n  const g = Math.min(f, stopFrame(n));\r\n  if (g < FIRST_REST) return read(FIRST, g);\r\n  const k = (g - FIRST_REST) / STEP_FRAMES;\r\n  const whole = Math.floor(k);\r\n  const u = (k - whole) * STEP_FRAMES;\r\n  const i = Math.floor(u);\r\n  const a = STEP[i] ?? 1;\r\n  const b = STEP[i + 1] ?? 1;\r\n  return Math.min(n - 1, 1 + whole + a + (b - a) * (u - i));\r\n}\r\n\r\n/** The row in focus: it changes hands before the midpoint, at `SWAP`. */\r\nexport const focusAt = (q: number, n: number) =>\r\n  Math.min(n - 1, Math.floor(q + 1 - SWAP));\r\n\r\n/** Interpolates a (t, x, y) track. */\r\nfunction track(v: number): readonly [number, number] {\r\n  const first = CURSOR[0]!;\r\n  const last = CURSOR[CURSOR.length - 1]!;\r\n  if (v <= first[0]) return [first[1], first[2]];\r\n  for (let i = 1; i < CURSOR.length; i++) {\r\n    const hi = CURSOR[i]!;\r\n    const lo = CURSOR[i - 1]!;\r\n    if (v <= hi[0]) {\r\n      const k = (v - lo[0]) / (hi[0] - lo[0]);\r\n      return [lo[1] + (hi[1] - lo[1]) * k, lo[2] + (hi[2] - lo[2]) * k];\r\n    }\r\n  }\r\n  return [last[1], last[2]];\r\n}\r\n\r\nfunction Mark({\r\n  mark,\r\n  label,\r\n  ink,\r\n  card,\r\n  u,\r\n}: {\r\n  mark?: BrandMark;\r\n  label: string;\r\n  ink: string;\r\n  card: string;\r\n  u: number;\r\n}) {\r\n  const box = {\r\n    width: (mark?.w ?? MARK_H) * u,\r\n    height: MARK_H * u,\r\n    flexShrink: 0,\r\n    display: \"flex\",\r\n    alignItems: \"center\",\r\n    justifyContent: \"center\",\r\n  } as const;\r\n  if (!mark) {\r\n    // A brand with no mark gets its initial on a disc, so any copy works.\r\n    return (\r\n      <div style={box}>\r\n        <svg width={24 * u} height={24 * u} viewBox=\"0 0 24 24\" aria-hidden>\r\n          <circle cx={12} cy={12} r={12} fill={ink} />\r\n          <text\r\n            x={12}\r\n            y={16.5}\r\n            textAnchor=\"middle\"\r\n            fontSize={13}\r\n            fontWeight={600}\r\n            fill={card}\r\n          >\r\n            {label.charAt(0).toUpperCase()}\r\n          </text>\r\n        </svg>\r\n      </div>\r\n    );\r\n  }\r\n  const id = `bw-${brandKey(label)}`;\r\n  return (\r\n    <div style={box}>\r\n      <svg\r\n        width={mark.ink[0] * u}\r\n        height={mark.ink[1] * u}\r\n        viewBox={mark.view ?? \"0 0 24 24\"}\r\n        preserveAspectRatio=\"none\"\r\n        aria-hidden\r\n      >\r\n        {mark.tile ? (\r\n          <>\r\n            <defs>\r\n              <radialGradient id={id} cx=\"0.3\" cy=\"1.07\" r=\"1.3\">\r\n                {mark.tile.map((c, i, all) => (\r\n                  <stop\r\n                    key={c}\r\n                    offset={0.05 + (0.85 * i) / (all.length - 1)}\r\n                    stopColor={c}\r\n                  />\r\n                ))}\r\n              </radialGradient>\r\n            </defs>\r\n            <rect width={24} height={24} rx={5} fill={`url(#${id})`} />\r\n          </>\r\n        ) : null}\r\n        {mark.paths.map((p) => (\r\n          <path\r\n            key={p.d.slice(0, 32)}\r\n            d={p.d}\r\n            transform={p.t}\r\n            fill={p.fill === INK ? ink : p.fill}\r\n          />\r\n        ))}\r\n      </svg>\r\n    </div>\r\n  );\r\n}\r\n\r\nexport interface BrandWheelProps {\r\n  /** The word that never changes. */\r\n  lead?: string;\r\n  /** The reel, comma separated, top to bottom. It comes to rest on the last. */\r\n  items?: string;\r\n  /** The lead word. Defaults to the theme's primary. */\r\n  accent?: string;\r\n  /** Glide a cursor onto the last pill and click it. */\r\n  cursor?: boolean;\r\n  speed?: number;\r\n  theme?: Partial<KuchiTheme>;\r\n  mode?: \"light\" | \"dark\";\r\n  fontFamily?: string;\r\n}\r\n\r\nexport function BrandWheel({\r\n  lead = \"launch on\",\r\n  items = \"X, YouTube, LinkedIn, Instagram, TikTok, Product Hunt\",\r\n  accent,\r\n  cursor = true,\r\n  speed = 1,\r\n  theme,\r\n  mode = \"light\",\r\n  fontFamily = \"Default\",\r\n}: BrandWheelProps) {\r\n  const frame = useCurrentFrame();\r\n  const { fps, width, height } = useVideoConfig();\r\n  const t = useKuchiTheme(theme, mode);\r\n  const face = resolveFont(fontFamily) ?? SANS;\r\n  const tint = accent ?? t.primary;\r\n\r\n  const reel = items\r\n    .split(\",\")\r\n    .map((s) => s.trim())\r\n    .filter(Boolean);\r\n  const n = reel.length;\r\n\r\n  const u = height / REF_H;\r\n  const ox = (width - REF_W * u) / 2;\r\n  const f = (frame * speed * 30) / fps;\r\n  const since = f - stopFrame(n);\r\n\r\n  const q = rollAt(f, n);\r\n  const focus = focusAt(q, n);\r\n\r\n  const slide = read(ENTER, f) - 0.0212 * Math.max(0, since - EXIT_AT) ** 2.24;\r\n  const gone = 1 - ramp(since, EXIT_FADE[0], EXIT_FADE[1]);\r\n  const shrink = 1 - (1 - SHRINK) * smooth(ramp(since, ...SHRINK_AT));\r\n  const ringW = RING_W * (1 - Math.exp(-Math.max(0, since - RING_AT) / 2.5));\r\n  const ringA =\r\n    since > RING_AT ? RING_ALPHA * (1 - ramp(since, ...RING_FADE)) : 0;\r\n\r\n  const wheelIn = ramp(f, -1, 3);\r\n\r\n  const [tx, ty] = track(since);\r\n  const press =\r\n    1 -\r\n    0.1 *\r\n      (smooth(ramp(since, PRESS[0], PRESS[1])) -\r\n        smooth(ramp(since, PRESS[2], PRESS[3])));\r\n\r\n  // Composite in the Player, re-rasterise in the render — see motion-quality.\r\n  const live = getRemotionEnvironment().isRendering\r\n    ? null\r\n    : ({ willChange: \"transform\" } as const);\r\n\r\n  const pill = (label: string, ring?: string) => (\r\n    <div\r\n      style={{\r\n        boxSizing: \"border-box\",\r\n        height: PILL_H * u,\r\n        display: \"flex\",\r\n        alignItems: \"center\",\r\n        gap: MARK_GAP * u,\r\n        paddingLeft: PILL_PAD_L * u,\r\n        paddingRight: PILL_PAD_R * u,\r\n        borderRadius: t.radius * u,\r\n        border: `${u}px solid ${t.border}`,\r\n        background: t.card,\r\n        boxShadow: ring,\r\n        color: t.cardForeground,\r\n      }}\r\n    >\r\n      <Mark\r\n        mark={BRANDS[brandKey(label)]}\r\n        label={label}\r\n        ink={t.cardForeground}\r\n        card={t.card}\r\n        u={u}\r\n      />\r\n      <span\r\n        style={{\r\n          fontSize: LABEL * u,\r\n          lineHeight: 1,\r\n          fontWeight: 500,\r\n          letterSpacing: TRACK,\r\n          transform: `translateY(${LABEL_NUDGE * u}px)`,\r\n        }}\r\n      >\r\n        {label}\r\n      </span>\r\n    </div>\r\n  );\r\n\r\n  return (\r\n    <AbsoluteFill style={{ backgroundColor: t.background }}>\r\n      <div\r\n        style={{\r\n          position: \"absolute\",\r\n          left: ox,\r\n          top: 0,\r\n          width: REF_W * u,\r\n          height: REF_H * u,\r\n          overflow: \"hidden\",\r\n          fontFamily: face,\r\n          fontWeight: 400,\r\n          textRendering: \"geometricPrecision\",\r\n          whiteSpace: \"nowrap\",\r\n        }}\r\n      >\r\n        <div\r\n          style={{\r\n            position: \"absolute\",\r\n            left: ROW_X * u,\r\n            top: (ROW_Y - PILL_H / 2) * u,\r\n            height: PILL_H * u,\r\n            display: \"flex\",\r\n            alignItems: \"center\",\r\n            opacity: gone,\r\n            transform: `translateX(calc(-50% + ${slide * u}px))`,\r\n            ...live,\r\n          }}\r\n        >\r\n          <div\r\n            style={{\r\n              marginRight: LEAD_GAP * u,\r\n              fontSize: LEAD * u,\r\n              lineHeight: 1,\r\n              letterSpacing: \"-0.024em\",\r\n              color: tint,\r\n              transform: `translateY(${LEAD_NUDGE * u}px)`,\r\n            }}\r\n          >\r\n            {lead}\r\n          </div>\r\n          {/* Every pill in one grid cell: the column is as wide as its widest\r\n              label, so every row is the same pill and any copy fits. */}\r\n          <div\r\n            style={{\r\n              display: \"grid\",\r\n              height: PILL_H * u,\r\n              opacity: wheelIn,\r\n              transform: `scale(${shrink})`,\r\n            }}\r\n          >\r\n            {reel.map((label, i) => {\r\n              const d = (i - q) * PITCH;\r\n              const vis = read(FADE, Math.abs(d * shrink));\r\n              const sharp = i === focus;\r\n              return (\r\n                <div\r\n                  key={`${i}-${label}`}\r\n                  style={{\r\n                    gridArea: \"1 / 1\",\r\n                    visibility: vis > 0 ? \"visible\" : \"hidden\",\r\n                    transform: `translateY(${d * u}px)`,\r\n                    opacity: vis * (sharp ? 1 : DIM),\r\n                    filter: sharp ? undefined : `blur(${BLUR * u}px)`,\r\n                    ...live,\r\n                  }}\r\n                >\r\n                  {pill(\r\n                    label,\r\n                    i === n - 1 && ringA > 0\r\n                      ? `0 0 0 ${ringW * u}px ${withAlpha(t.foreground, ringA)}`\r\n                      : undefined,\r\n                  )}\r\n                </div>\r\n              );\r\n            })}\r\n          </div>\r\n        </div>\r\n        {cursor && n > 1 ? (\r\n          <div\r\n            style={{\r\n              position: \"absolute\",\r\n              left: (tx - 1) * u,\r\n              top: (ty - 1) * u,\r\n              opacity: ramp(since, ...CURSOR_IN),\r\n              transform: `scale(${press})`,\r\n              transformOrigin: `${u}px ${u}px`,\r\n            }}\r\n          >\r\n            {/* A macOS arrow, its tip one unit in from the corner. */}\r\n            <svg\r\n              width={13 * u}\r\n              height={21 * u}\r\n              viewBox=\"-1 -1 13 21\"\r\n              aria-hidden\r\n            >\r\n              <path\r\n                d=\"M0 0V16.2L3.9 12.6L6.6 18.7L9.1 17.6L6.5 11.6H11.6Z\"\r\n                fill=\"#000000\"\r\n                stroke=\"#ffffff\"\r\n                strokeWidth={1}\r\n                strokeLinejoin=\"round\"\r\n              />\r\n            </svg>\r\n          </div>\r\n        ) : null}\r\n      </div>\r\n    </AbsoluteFill>\r\n  );\r\n}\r\n"},{"path":"components/kuchi/brand-wheel/data.ts","type":"registry:component","target":"components/kuchi/brand-wheel/data.ts","content":"/*! Portions Copyright (c) 2026 Sri Nath (snap-cn). MIT License. See THIRD_PARTY_LICENSES. */\n/**\r\n * Everything Brand Wheel knows about its own motion, measured.\r\n *\r\n * The numbers below were recovered from a 4.6 second, 712 × 402 screen capture,\r\n * every one of its 139 frames, and they are in that recording's own pixels and\r\n * its own 30fps frames. The scene scales them by height, so a render at the\r\n * reference's size is the reference's size and nothing resamples in between.\r\n */\r\n\r\nexport const REF_W = 712;\r\nexport const REF_H = 402;\r\n\r\n/**\r\n * Row to row, in px. Three rest crossings — 34.72, 54.35 and 74.76 — land\r\n * 57.78, 57.11 and 57.44 apart on the strip; this is their mean.\r\n */\r\nexport const PITCH = 57.45;\r\n\r\n/**\r\n * A step of the wheel, from one row resting in the slot to the next, as\r\n * (share of the 20 frames, share of the pitch).\r\n *\r\n * It is not an ease you can name. The strip never stops between rows: it\r\n * creeps through the slot at 1.35px a frame, speeds up to 9px a frame as the\r\n * next row comes in, and creeps again — which reads as a wheel with weight\r\n * rather than as a carousel with a timer. Read by cross-correlating the column's\r\n * vertical ink profile frame to frame (0.01px steps) and averaging the two\r\n * cycles the cursor does not touch; they agree to 0.46px.\r\n */\r\nexport const STEP: readonly number[] = [\r\n  0, 0.0264, 0.055, 0.0864, 0.122, 0.1636, 0.2147, 0.2838, 0.3991, 0.5496,\r\n  0.656, 0.7222, 0.771, 0.8107, 0.8452, 0.8759, 0.9042, 0.9293, 0.953, 0.9763,\r\n  1,\r\n];\r\n\r\n/** Frames per step. Swaps land on 22.5, 42.5, 62.5, 82.5 and 102.5. */\r\nexport const STEP_FRAMES = 20;\r\n\r\n/**\r\n * The first step, which starts from a standstill and so is not a `STEP`: the\r\n * first row holds the slot until frame 11.5, then the strip pulls away slowly\r\n * and catches the rhythm by the time the second row rests at 34.72.\r\n */\r\nexport const FIRST: readonly (readonly [number, number])[] = [\r\n  [11.5, 0],\r\n  [12, 0.0003],\r\n  [13, 0.0015],\r\n  [14, 0.0041],\r\n  [15, 0.0077],\r\n  [16, 0.0145],\r\n  [17, 0.0228],\r\n  [18, 0.0363],\r\n  [19, 0.054],\r\n  [20, 0.0788],\r\n  [21, 0.1178],\r\n  [22, 0.1899],\r\n  [23, 0.3876],\r\n  [24, 0.567],\r\n  [25, 0.6587],\r\n  [26, 0.7226],\r\n  [27, 0.7733],\r\n  [28, 0.815],\r\n  [29, 0.8507],\r\n  [30, 0.8826],\r\n  [31, 0.9114],\r\n  [32, 0.9365],\r\n  [33, 0.9596],\r\n  [34, 0.9823],\r\n  [34.72, 1],\r\n];\r\n\r\n/** The frame the second row comes to rest; every later row is 20 frames on. */\r\nexport const FIRST_REST = 34.72;\r\n\r\n/**\r\n * Where in a step the slot changes hands, as a share of the pitch.\r\n *\r\n * Not half. The incoming row takes the focus when it is still 0.64 of a pitch\r\n * out — between 0.319 and 0.388 on every swap in the recording — which is why\r\n * each new row arrives already sharp instead of popping in at the midpoint.\r\n */\r\nexport const SWAP = 0.36;\r\n\r\n/**\r\n * The strip freezes this many frames before the last row would rest, still\r\n * creeping at 1.15px a frame. Measured, and it is the beat that makes the stop\r\n * read as a click landing rather than as the wheel running out.\r\n */\r\nexport const STOP_EARLY = 1.12;\r\n\r\n/**\r\n * How visible a row is by its distance from the slot, in px, as (distance,\r\n * opacity). Read off the peak ink of every row in every frame of the Google\r\n * cycle and normalised to the row in the slot. It is a property of position,\r\n * not of focus: the row in the slot is faded by it too while it is arriving.\r\n */\r\nexport const FADE: readonly (readonly [number, number])[] = [\r\n  [0, 1],\r\n  [12, 1],\r\n  [21.4, 0.88],\r\n  [32.4, 0.81],\r\n  [41.7, 0.7],\r\n  [47, 0.61],\r\n  [53.9, 0.47],\r\n  [59.4, 0.36],\r\n  [67.2, 0.25],\r\n  [74.2, 0.14],\r\n  [82.6, 0.09],\r\n  [93.5, 0.04],\r\n  [105, 0],\r\n];\r\n\r\n/**\r\n * The lockup sliding into place, as (frame, px to the right of home). It is a\r\n * plain exponential settle — 0.8 of the remaining distance each frame.\r\n */\r\nexport const ENTER: readonly (readonly [number, number])[] = [\r\n  [0, 38],\r\n  [1, 31.5],\r\n  [2, 25],\r\n  [3, 20.5],\r\n  [4, 17],\r\n  [5, 14],\r\n  [6, 11.3],\r\n  [7, 9.2],\r\n  [8, 7.6],\r\n  [9, 6.2],\r\n  [10, 5],\r\n  [11, 4],\r\n  [12, 3.2],\r\n  [13, 2.5],\r\n  [14, 1.9],\r\n  [15, 1.4],\r\n  [16, 1],\r\n  [18, 0.45],\r\n  [21, 0],\r\n];\r\n\r\n/**\r\n * The cursor's tip, as (frames before the stop, x, y). It glides in from the\r\n * lower right, decelerating, and parks on the end of the pill a few frames\r\n * before the wheel stops under it.\r\n */\r\nexport const CURSOR: readonly (readonly [number, number, number])[] = [\r\n  [-40, 640, 343],\r\n  [-37, 606, 314],\r\n  [-34, 580, 292],\r\n  [-31.6, 557, 273],\r\n  [-30.6, 553, 267],\r\n  [-29.6, 548, 263],\r\n  [-28.6, 542, 258],\r\n  [-27.6, 536, 253],\r\n  [-26.6, 528.5, 248],\r\n  [-25.6, 522, 242.5],\r\n  [-24.6, 515.5, 237.5],\r\n  [-23.6, 509.5, 233],\r\n  [-22.6, 504.5, 229],\r\n  [-21.6, 500, 225.5],\r\n  [-20.6, 496.5, 222.5],\r\n  [-19.6, 493.5, 220],\r\n  [-18.6, 491, 218],\r\n  [-17.6, 488.5, 216.2],\r\n  [-16.6, 486.5, 214.6],\r\n  [-15.6, 484.5, 213.2],\r\n  [-14.6, 483, 212],\r\n  [-13.6, 481.6, 211],\r\n  [-12.6, 480.5, 210.2],\r\n  [-11.6, 479.6, 209.6],\r\n  [-10.6, 479, 209.1],\r\n  [-8.6, 478.4, 208.6],\r\n  [-6.6, 478, 208.4],\r\n];\r\n\r\n/**\r\n * Brand marks. Each sits in a box `w` wide and 28 tall at the reference's\r\n * scale — the box is what the label is spaced from, and it is not square:\r\n * YouTube's is 34, Meta's 31, which is why their labels start later in the\r\n * recording. `ink` is the drawn size inside it, centred. Paths are Simple\r\n * Icons (CC0) in their own 24-unit space unless `view` says otherwise.\r\n */\r\nexport interface BrandMark {\r\n  w: number;\r\n  ink: readonly [number, number];\r\n  view?: string;\r\n  paths: readonly { d: string; fill: string; t?: string }[];\r\n  /** A rounded gradient tile under the paths (Instagram). */\r\n  tile?: readonly string[];\r\n}\r\n\r\n/** Paints the ink colour, so a black mark survives `mode=\"dark\"`. */\r\nexport const INK = \"ink\";\r\n\r\nconst DISC = \"M12 0a12 12 0 1 1 0 24a12 12 0 1 1 0-24z\";\r\n\r\nexport const BRANDS: Record<string, BrandMark> = {\r\n  x: {\r\n    w: 28,\r\n    ink: [21, 21],\r\n    paths: [\r\n      {\r\n        fill: INK,\r\n        d: \"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z\",\r\n      },\r\n    ],\r\n  },\r\n  youtube: {\r\n    w: 30.7,\r\n    ink: [26.2, 20.8],\r\n    view: \"0 0 26.2 20.8\",\r\n    paths: [\r\n      {\r\n        fill: \"#cb1f1a\",\r\n        d: \"M5.4 0h15.4a5.4 5.4 0 0 1 5.4 5.4v10a5.4 5.4 0 0 1-5.4 5.4H5.4A5.4 5.4 0 0 1 0 15.4v-10A5.4 5.4 0 0 1 5.4 0z\",\r\n      },\r\n      { fill: \"#ffffff\", d: \"M10.3 6.3v8.2l7-4.1z\" },\r\n    ],\r\n  },\r\n  linkedin: {\r\n    w: 28,\r\n    ink: [23, 23],\r\n    paths: [\r\n      {\r\n        fill: \"#0a66c2\",\r\n        d: \"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\",\r\n      },\r\n    ],\r\n  },\r\n  instagram: {\r\n    w: 28,\r\n    ink: [24.2, 24.2],\r\n    tile: [\"#fdf497\", \"#fd5949\", \"#d6249f\", \"#285aeb\"],\r\n    paths: [\r\n      {\r\n        fill: \"#ffffff\",\r\n        t: \"translate(3.6 3.6) scale(0.7)\",\r\n        d: \"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\",\r\n      },\r\n    ],\r\n  },\r\n  tiktok: {\r\n    w: 28,\r\n    ink: [21, 23],\r\n    view: \"1.6 0 21 24\",\r\n    paths: [\r\n      {\r\n        fill: INK,\r\n        d: \"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z\",\r\n      },\r\n    ],\r\n  },\r\n  producthunt: {\r\n    w: 28,\r\n    ink: [24, 24],\r\n    paths: [\r\n      {\r\n        fill: \"#da552f\",\r\n        d: \"M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z\",\r\n      },\r\n    ],\r\n  },\r\n  google: {\r\n    w: 28,\r\n    ink: [26.6, 27.5],\r\n    view: \"0 0.95 24 22\",\r\n    paths: [\r\n      {\r\n        fill: \"#f4af44\",\r\n        d: \"M7.5137 4.8438L1.5645 15.1484A4.5 4.5 0 0 1 4 14.4297c2.5597-.0075 4.6248 2.1585 4.4941 4.7148l3.2168-5.5723-3.6094-6.25c-.4499-.7793-.6322-1.6394-.5878-2.4784z\",\r\n      },\r\n      {\r\n        fill: \"#1775b7\",\r\n        d: \"M23.4641 16.9287L15.4632 3.072C14.3586 1.1587 11.9121.5028 9.9988 1.6074S7.4295 5.1585 8.5341 7.0718l8.0009 13.8567c1.1046 1.9133 3.5511 2.5679 5.4644 1.4646 1.9134-1.1046 2.568-3.5511 1.4647-5.4644z\",\r\n      },\r\n      {\r\n        fill: \"#34b24a\",\r\n        d: \"M3.9998 22.9291C1.7908 22.9291 0 21.1383 0 18.9293s1.7908-3.9998 3.9998-3.9998 3.9998 1.7908 3.9998 3.9998-1.7908 3.9998-3.9998 3.9998z\",\r\n      },\r\n    ],\r\n  },\r\n  shopify: {\r\n    w: 28,\r\n    ink: [23.3, 30],\r\n    view: \"1.25 0 21.3 24\",\r\n    paths: [\r\n      {\r\n        fill: \"#95bf47\",\r\n        d: \"M11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z\",\r\n      },\r\n      {\r\n        fill: \"#5e8e3e\",\r\n        d: \"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023z\",\r\n      },\r\n    ],\r\n  },\r\n  meta: {\r\n    w: 31,\r\n    ink: [27.5, 18.5],\r\n    view: \"0 4.03 24 15.94\",\r\n    paths: [\r\n      {\r\n        fill: \"#3088e5\",\r\n        d: \"M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z\",\r\n      },\r\n    ],\r\n  },\r\n  stripe: {\r\n    w: 31.4,\r\n    ink: [28.6, 28.6],\r\n    paths: [\r\n      { fill: \"#625af4\", d: DISC },\r\n      {\r\n        fill: \"#ffffff\",\r\n        t: \"translate(4.6 4.6) scale(0.62)\",\r\n        d: \"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z\",\r\n      },\r\n    ],\r\n  },\r\n};\r\n\r\n/** `\"Product Hunt\"` → `producthunt`, so the copy and the lookup can differ. */\r\nexport const brandKey = (label: string) =>\r\n  label.toLowerCase().replace(/[^a-z0-9]/g, \"\");\r\n"}]}