{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "landing-confirmed",
  "title": "Landing Confirmed",
  "description": "A descent counts down then a big gradient 'SHIPPED.' lands over a serif 'Nailed the landing.'.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "files": [
    {
      "path": "registry/remocn/landing-confirmed/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport { loadFont } from \"@remotion/google-fonts/SpaceGrotesk\";\nimport type React from \"react\";\nimport { useId } from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\n\nconst { fontFamily: sans } = loadFont(\"normal\", {\n  weights: [\"400\", \"500\"],\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\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\n/** Full logo as on remocn.dev: R mark (0.76em tall, baseline-aligned) + \"emocn\" in Manrope 600. */\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\nexport interface LandingConfirmedProps {\n  /** Altitude the descent starts from, in metres. */\n  from?: number;\n  /** The slam at touchdown. Two words read best (one per line). */\n  confirm?: string;\n  /** The first resolve line, set big in caps. */\n  title?: string;\n  /** The second resolve line, set in a serif italic. */\n  subtitle?: string;\n  /** Replaces the remocn logo under the resolve. */\n  logo?: React.ReactNode;\n  /** Gauge marker and small marks. */\n  accent?: string;\n  theme?: \"dark\" | \"light\";\n  speed?: number;\n}\n\n// Beat sheet (30fps, speed 1):\n//   0–50    altitude counts down fast from 1,200 m; the gauge marker rides the\n//           vertical scale down to the pad line; velocity bleeds off top right\n//   50      0 m: hard stop with a kick, the pad line lights; holds 6 frames\n//   56–57   two-frame \"aurora\" flash\n//   58      TOUCHDOWN / CONFIRMED slams in; the aurora glows up from the pad\n//   88–102  it shrinks up into a label; SHIPPED. slams, \"Nailed the landing.\"\n//           and the logo rise in under it\n//   104–    poster hold\nconst DESCENT = 50;\nconst FLASH_AT = DESCENT + 6;\nconst SLAM_AT = FLASH_AT + 2;\nconst RESOLVE_AT = SLAM_AT + 30;\n\nconst OUT = Easing.bezier(0.22, 1, 0.36, 1);\nconst MOVE = Easing.bezier(0.7, 0, 0.2, 1);\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\n// gradients.sh \"aurora\": bg #03050b, #a0f0c8 #3fb5a3 #5147b6 #b25c9c.\nconst AURORA = [\"#A0F0C8\", \"#3FB5A3\", \"#5147B6\", \"#B25C9C\"] as const;\n\nconst THEMES = {\n  dark: {\n    stage: \"#03050B\",\n    ink: \"#F1F4F2\",\n    dim: \"#737A7A\",\n    faint: \"#22282B\",\n    glowOp: 0.95,\n    titleFill: `linear-gradient(100deg, #EFFFF7 0%, ${AURORA[0]} 38%, ${AURORA[1]} 70%, #9C93F0 100%)`,\n    flash: `radial-gradient(120% 100% at 50% 100%, #F2FFF8 0%, ${AURORA[0]} 30%, ${AURORA[1]} 58%, ${AURORA[2]} 85%, ${AURORA[3]} 100%)`,\n    grain: 0.06,\n  },\n  light: {\n    stage: \"#F5F4F0\",\n    ink: \"#111315\",\n    dim: \"#7D7C77\",\n    faint: \"#D8D6CF\",\n    glowOp: 0.6,\n    titleFill: `linear-gradient(100deg, #1F7A6C 0%, ${AURORA[1]} 35%, ${AURORA[2]} 72%, ${AURORA[3]} 100%)`,\n    flash: `radial-gradient(120% 100% at 50% 100%, #FFFFFF 0%, ${AURORA[0]} 40%, ${AURORA[1]} 75%, ${AURORA[2]} 100%)`,\n    grain: 0.04,\n  },\n} as const;\n\nfunction ramp(t: number, from: number, len: number) {\n  return interpolate(t, [from, from + len], [0, 1], CLAMP);\n}\n\nfunction kick(d: number, len: number) {\n  if (d < 0 || d > len + 1) return 0;\n  if (d < 1) return d;\n  const k = 1 - (d - 1) / len;\n  return k * k;\n}\n\nfunction Grain({ opacity }: { opacity: number }) {\n  const id = `g${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n  return (\n    <svg\n      width=\"100%\"\n      height=\"100%\"\n      style={{ position: \"absolute\", inset: 0, opacity }}\n      aria-hidden\n    >\n      <filter id={id}>\n        <feTurbulence\n          type=\"fractalNoise\"\n          baseFrequency=\"0.9\"\n          numOctaves={2}\n          seed={21}\n          stitchTiles=\"stitch\"\n        />\n        <feColorMatrix values=\"0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0\" />\n      </filter>\n      <rect width=\"100%\" height=\"100%\" filter={`url(#${id})`} />\n    </svg>\n  );\n}\n\nexport function LandingConfirmed({\n  from = 1200,\n  confirm = \"Touchdown confirmed\",\n  title = \"Shipped.\",\n  subtitle = \"Nailed the landing.\",\n  logo,\n  accent = \"#3B5BFD\",\n  theme = \"dark\",\n  speed = 1,\n}: LandingConfirmedProps) {\n  const t = useCurrentFrame() * speed;\n  const { width: W, height: H } = useVideoConfig();\n  const c = THEMES[theme];\n  const u = Math.min(W / 1280, H / 720);\n\n  // ── Descent ───────────────────────────────────────────────────────────────\n  // Fast off the top, still moving when it hits the pad: a hard stop.\n  const p = ramp(t, 0, DESCENT);\n  const frac = (1 - p) * (1 - 0.55 * p);\n  const alt = Math.max(0, Math.round(from * frac));\n  const landed = t >= DESCENT;\n  const vel = landed ? 0 : 2 + 238 * (1 - p) ** 1.4;\n\n  // ── Layout ────────────────────────────────────────────────────────────────\n  const padY = H - 110 * u;\n  const gaugeX = 118 * u;\n  const gaugeTop = 92 * u;\n  const markerY = interpolate(frac, [0, 1], [padY, gaugeTop]);\n  const numFs = 290 * u;\n  const numCX = W * 0.54;\n  const numCY = H * 0.47;\n  const margin = 56 * u;\n\n  const intro = OUT(ramp(t, -4, 10));\n  const stopKick = kick(t - DESCENT, 7);\n  const flash = t >= FLASH_AT && t < FLASH_AT + 2;\n  const glow = OUT(ramp(t, FLASH_AT, 18));\n\n  const slam = OUT(ramp(t, SLAM_AT - 1, 8));\n  const slamHit = kick(t - SLAM_AT - 4, 8);\n  const resolve = MOVE(ramp(t, RESOLVE_AT, 14));\n  const exit = Easing.bezier(0.55, 0, 1, 0.45)(ramp(t, RESOLVE_AT, 6));\n  const labelIn = OUT(ramp(t, RESOLVE_AT + 6, 10));\n  const titleIn = OUT(ramp(t, RESOLVE_AT + 5, 9));\n  const titleHit = kick(t - RESOLVE_AT - 8, 8);\n  const subIn = OUT(ramp(t, RESOLVE_AT + 9, 12));\n  const logoIn = OUT(ramp(t, RESOLVE_AT + 14, 12));\n  const descentOut = landed ? 1 - ramp(t, FLASH_AT, 1) : 1;\n  const gaugeOut = 1 - ramp(t, SLAM_AT, 10);\n\n  const words = confirm.split(\" \");\n  const confirmA = words.slice(0, Math.ceil(words.length / 2)).join(\" \");\n  const confirmB = words.slice(Math.ceil(words.length / 2)).join(\" \");\n\n  const drift = ramp(t, FLASH_AT, 120);\n  const aurora = [\n    ...AURORA.map(\n      (col, i) =>\n        `radial-gradient(42% 30% at ${14 + i * 24 + drift * (i % 2 ? -4 : 4)}% ${(padY / H) * 100 + 2}%, color-mix(in oklab, ${col} 70%, transparent) 0%, transparent 72%)`,\n    ),\n    `linear-gradient(180deg, transparent 55%, color-mix(in oklab, ${AURORA[1]} 18%, transparent) ${(padY / H) * 100}%, transparent 100%)`,\n  ].join(\", \");\n\n  const small: React.CSSProperties = {\n    fontFamily: sans,\n    fontWeight: 400,\n    fontSize: 15 * u,\n    letterSpacing: \"0.14em\",\n    textTransform: \"uppercase\",\n    color: c.dim,\n    whiteSpace: \"nowrap\",\n    lineHeight: 1,\n    fontVariantNumeric: \"tabular-nums\",\n  };\n\n  const ticks: number[] = [];\n  for (let m = 0; m <= from; m += from / 12) ticks.push(m);\n\n  return (\n    <AbsoluteFill style={{ background: c.stage, overflow: \"hidden\" }}>\n      {/* Aurora from the pad. */}\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          background: aurora,\n          opacity: c.glowOp * glow,\n          transform: `translateY(${(1 - glow) * 80 * u}px)`,\n        }}\n      />\n      <Grain opacity={c.grain} />\n\n      {/* Gauge. */}\n      <div style={{ opacity: intro * gaugeOut }}>\n        <div\n          style={{\n            position: \"absolute\",\n            left: gaugeX,\n            top: gaugeTop,\n            width: 2 * u,\n            height: padY - gaugeTop,\n            background: c.faint,\n          }}\n        />\n        <div\n          style={{\n            position: \"absolute\",\n            left: gaugeX,\n            top: markerY,\n            width: 3 * u,\n            height: padY - markerY,\n            background: c.ink,\n          }}\n        />\n        {ticks.map((m, i) => {\n          const y = interpolate(m / from, [0, 1], [padY, gaugeTop]);\n          const major = i % 3 === 0;\n          return (\n            <div key={m}>\n              <div\n                style={{\n                  position: \"absolute\",\n                  left: gaugeX - (major ? 14 : 8) * u,\n                  top: y - 0.5 * u,\n                  width: (major ? 14 : 8) * u,\n                  height: 1.5 * u,\n                  background: y >= markerY ? c.ink : c.dim,\n                }}\n              />\n              {major ? (\n                <div\n                  style={{\n                    ...small,\n                    position: \"absolute\",\n                    right: W - gaugeX + 24 * u,\n                    top: y - 7 * u,\n                    letterSpacing: \"0.04em\",\n                  }}\n                >\n                  {Math.round(m)}\n                </div>\n              ) : null}\n            </div>\n          );\n        })}\n        {/* Marker. */}\n        <div\n          style={{\n            position: \"absolute\",\n            left: gaugeX + 10 * u,\n            top: markerY - 1.5 * u,\n            width: 40 * u,\n            height: 3 * u,\n            background: accent,\n          }}\n        />\n        <div\n          style={{\n            position: \"absolute\",\n            left: gaugeX + 10 * u,\n            top: markerY - 7 * u,\n            width: 0,\n            height: 0,\n            borderTop: `${7 * u}px solid transparent`,\n            borderBottom: `${7 * u}px solid transparent`,\n            borderRight: `${10 * u}px solid ${accent}`,\n            transform: `translateX(${-10 * u}px)`,\n          }}\n        />\n      </div>\n\n      {/* Pad line. */}\n      <div\n        style={{\n          position: \"absolute\",\n          left: margin,\n          right: margin,\n          top: padY,\n          height: 2 * u,\n          background: landed ? c.ink : c.faint,\n          opacity: intro * (1 - resolve * 0.6),\n        }}\n      />\n\n      {/* Telemetry. */}\n      <div\n        style={{\n          ...small,\n          position: \"absolute\",\n          left: margin,\n          top: margin - 6 * u,\n          opacity: intro * gaugeOut,\n        }}\n      >\n        Descent{\" \"}\n        <span style={{ color: c.ink }}>\n          {landed ? \"Complete\" : \"Landing burn\"}\n        </span>\n      </div>\n      <div\n        style={{\n          ...small,\n          position: \"absolute\",\n          right: margin,\n          top: margin - 6 * u,\n          textAlign: \"right\",\n          opacity: intro * gaugeOut,\n        }}\n      >\n        Vel <span style={{ color: c.ink }}>{vel.toFixed(1)}</span> m/s\n      </div>\n\n      {/* Altitude. */}\n      <div\n        style={{\n          position: \"absolute\",\n          left: numCX,\n          top: numCY,\n          opacity: intro * descentOut,\n          transform: `translate(-50%, -50%) translateY(${(1 - intro) * -40 * u}px) scale(${1 + 0.05 * stopKick})`,\n        }}\n      >\n        <div\n          style={{\n            ...small,\n            fontSize: 18 * u,\n            marginBottom: 6 * u,\n            marginLeft: 8 * u,\n          }}\n        >\n          Altitude\n        </div>\n        <div\n          style={{\n            display: \"flex\",\n            alignItems: \"baseline\",\n            fontFamily: sans,\n            fontWeight: 500,\n            fontSize: numFs,\n            lineHeight: 1,\n            letterSpacing: \"-0.04em\",\n            fontVariantNumeric: \"tabular-nums\",\n            color: c.ink,\n            whiteSpace: \"nowrap\",\n          }}\n        >\n          {alt.toLocaleString(\"en-US\")}\n          <span\n            style={{\n              fontSize: numFs * 0.3,\n              letterSpacing: 0,\n              marginLeft: 0.04 * numFs,\n              color: c.dim,\n              fontWeight: 400,\n            }}\n          >\n            m\n          </span>\n        </div>\n      </div>\n\n      {/* TOUCHDOWN CONFIRMED: slams, then lifts away as the label fades in. */}\n      {t >= SLAM_AT - 1 && exit < 1 ? (\n        <div\n          style={{\n            position: \"absolute\",\n            left: 0,\n            right: 0,\n            top: H * 0.47,\n            display: \"flex\",\n            flexDirection: \"column\",\n            alignItems: \"center\",\n            fontFamily: sans,\n            fontWeight: 500,\n            fontSize: 148 * u,\n            letterSpacing: \"-0.035em\",\n            lineHeight: 0.96,\n            textTransform: \"uppercase\",\n            color: c.ink,\n            whiteSpace: \"nowrap\",\n            transform: `translateY(-50%) translateY(${-exit * 110 * u}px) scale(${(1.22 - 0.22 * slam) * (1 + 0.02 * slamHit) * (1 - 0.12 * exit)})`,\n            opacity: ramp(slam, 0, 0.2) * (1 - exit),\n          }}\n        >\n          <span>{confirmA}</span>\n          <span>{confirmB}</span>\n        </div>\n      ) : null}\n      <div\n        style={{\n          ...small,\n          position: \"absolute\",\n          left: 0,\n          right: 0,\n          top: 86 * u,\n          textAlign: \"center\",\n          fontSize: 20 * u,\n          letterSpacing: \"0.18em\",\n          opacity: labelIn,\n          transform: `translateY(${(1 - labelIn) * 14 * u}px)`,\n        }}\n      >\n        {confirm}\n      </div>\n\n      {/* Resolve. */}\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          right: 0,\n          top: H * 0.45,\n          display: \"flex\",\n          flexDirection: \"column\",\n          alignItems: \"center\",\n          transform: \"translateY(-50%)\",\n        }}\n      >\n        <div\n          style={{\n            fontFamily: sans,\n            fontWeight: 500,\n            fontSize: 196 * u,\n            lineHeight: 1,\n            letterSpacing: \"-0.045em\",\n            textTransform: \"uppercase\",\n            whiteSpace: \"nowrap\",\n            paddingRight: \"0.02em\",\n            backgroundImage: c.titleFill,\n            WebkitBackgroundClip: \"text\",\n            backgroundClip: \"text\",\n            color: \"transparent\",\n            opacity: ramp(titleIn, 0, 0.25),\n            transform: `scale(${(1.2 - 0.2 * titleIn) * (1 + 0.02 * titleHit)})`,\n          }}\n        >\n          {title}\n        </div>\n        <div\n          style={{\n            fontFamily: serif,\n            fontStyle: \"italic\",\n            fontWeight: 400,\n            fontSize: 84 * u,\n            lineHeight: 1.1,\n            letterSpacing: \"-0.01em\",\n            color: c.ink,\n            whiteSpace: \"nowrap\",\n            marginTop: 4 * u,\n            opacity: subIn,\n            transform: `translateY(${(1 - subIn) * 28 * u}px)`,\n          }}\n        >\n          {subtitle}\n        </div>\n      </div>\n\n      {/* Logo on the pad. */}\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          right: 0,\n          top: padY + 28 * u,\n          display: \"flex\",\n          justifyContent: \"center\",\n          opacity: logoIn,\n          transform: `translateY(${(1 - logoIn) * 18 * u}px)`,\n        }}\n      >\n        {logo ?? <RemocnLogo fontSize={40 * u} color={c.ink} />}\n      </div>\n\n      {flash ? (\n        <div style={{ position: \"absolute\", inset: 0, background: c.flash }} />\n      ) : null}\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/landing-confirmed.tsx"
    }
  ],
  "type": "registry:component"
}
