{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cinema-title-card",
  "type": "registry:component",
  "title": "Cinema Title Card",
  "description": "An opening title card with anamorphic letterbox bars that close in, a slow push-in on a dusk desert road and a title that settles from wide tracking. A compressed billing block and the release line sit inside the bottom bar.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "cinematic",
    "cinematic",
    "letterbox",
    "title card",
    "push-in",
    "film",
    "hero"
  ],
  "docs": "https://hyperblur.dev/effects/cinema-title-card",
  "files": [
    {
      "path": "registry/hyperblur/cinema-title-card.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/cinema-title-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface CinemaTitleCardAction {\n  label: string;\n  href: string;\n}\n\nexport interface CinemaTitleCardProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  presenter?: string;\n  title?: string;\n  tagline?: string;\n  release?: string;\n  billing?: string;\n  aspect?: number;\n  pushDuration?: number;\n  primaryCta?: CinemaTitleCardAction | null;\n  secondaryCta?: CinemaTitleCardAction | null;\n  accent?: string;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vc1 {\n  --hb-vc1-accent: #ffb35c;\n  --hb-vc1-push: 16s;\n  position: relative;\n  box-sizing: border-box;\n  display: grid;\n  place-items: center;\n  width: 100%;\n  min-height: 580px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #050505;\n  color: #f4efe6;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vc1 *, .hb-vc1 *::before, .hb-vc1 *::after { box-sizing: border-box; }\n.hb-vc1-scene {\n  position: absolute;\n  inset: 0;\n  z-index: 0;\n  transform-origin: 50% 62%;\n  animation: hb-vc1-push var(--hb-vc1-push) cubic-bezier(.33, 0, .2, 1) infinite alternate;\n}\n.hb-vc1-scene svg { display: block; width: 100%; height: 100%; }\n@keyframes hb-vc1-push {\n  from { transform: scale(1); }\n  to { transform: scale(1.14) translate3d(0, -1.2%, 0); }\n}\n.hb-vc1-car {\n  animation: hb-vc1-car 9s cubic-bezier(.45, 0, .55, 1) infinite;\n  transform-box: view-box;\n}\n@keyframes hb-vc1-car {\n  0% { transform: translate(0, 0) scale(1); opacity: 0; }\n  12% { opacity: 1; }\n  100% { transform: translate(-6px, -38px) scale(.35); opacity: 0; }\n}\n.hb-vc1-vignette {\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  pointer-events: none;\n  background:\n    radial-gradient(120% 90% at 50% 55%, transparent 40%, rgba(0, 0, 0, .78) 100%),\n    linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, transparent 62%, rgba(0, 0, 0, .55));\n}\n.hb-vc1-bar {\n  position: absolute;\n  left: 0;\n  right: 0;\n  z-index: 3;\n  height: max(9%, calc(50% - 50cqi / var(--hb-vc1-ar, 2.39)));\n  background: #000;\n  animation: hb-vc1-bar 1.6s cubic-bezier(.7, 0, .2, 1) both;\n}\n.hb-vc1-bar[data-edge=\"top\"] { top: 0; transform-origin: top; }\n.hb-vc1-bar[data-edge=\"bottom\"] { bottom: 0; transform-origin: bottom; }\n@keyframes hb-vc1-bar {\n  from { transform: scaleY(0); }\n  to { transform: scaleY(1); }\n}\n.hb-vc1-bar-row {\n  position: absolute;\n  left: clamp(16px, 4cqi, 48px);\n  right: clamp(16px, 4cqi, 48px);\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  color: rgba(244, 239, 230, .44);\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 10.5px;\n  letter-spacing: .16em;\n  text-transform: uppercase;\n  white-space: nowrap;\n}\n.hb-vc1-bar[data-edge=\"top\"] .hb-vc1-bar-row { bottom: 12px; }\n.hb-vc1-bar[data-edge=\"bottom\"] .hb-vc1-bar-row { top: 12px; }\n.hb-vc1-rec { display: inline-flex; align-items: center; gap: 8px; }\n.hb-vc1-rec::before {\n  content: \"\";\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: var(--hb-vc1-accent);\n  box-shadow: 0 0 10px var(--hb-vc1-accent);\n}\n.hb-vc1-copy {\n  position: relative;\n  z-index: 2;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  max-width: 860px;\n  padding: 120px clamp(20px, 5cqi, 64px);\n  text-align: center;\n}\n.hb-vc1-presenter {\n  margin: 0 0 18px;\n  color: rgba(244, 239, 230, .7);\n  font-size: clamp(10px, 1.25cqi, 12.5px);\n  font-weight: 500;\n  letter-spacing: .5em;\n  text-transform: uppercase;\n  animation: hb-vc1-fade 2.2s 1.1s ease both;\n}\n.hb-vc1-title {\n  margin: 0;\n  color: #fbf6ec;\n  font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif));\n  font-size: clamp(38px, 9.6cqi, 124px);\n  font-weight: 600;\n  line-height: .92;\n  letter-spacing: .14em;\n  text-transform: uppercase;\n  text-shadow: 0 0 40px rgba(255, 196, 120, .18), 0 2px 0 rgba(0, 0, 0, .35);\n  animation: hb-vc1-title 3.4s 1.4s cubic-bezier(.16, .8, .2, 1) both;\n}\n@keyframes hb-vc1-title {\n  from { opacity: 0; letter-spacing: .42em; filter: blur(10px); }\n  45% { opacity: 1; }\n  to { opacity: 1; letter-spacing: .14em; filter: blur(0); }\n}\n.hb-vc1-rule {\n  width: min(240px, 40%);\n  height: 1px;\n  margin: 26px 0 18px;\n  background: linear-gradient(90deg, transparent, var(--hb-vc1-accent), transparent);\n  animation: hb-vc1-rule 1.8s 2.8s cubic-bezier(.2, .8, .2, 1) both;\n}\n@keyframes hb-vc1-rule {\n  from { transform: scaleX(0); opacity: 0; }\n  to { transform: scaleX(1); opacity: 1; }\n}\n.hb-vc1-tagline {\n  margin: 0;\n  color: rgba(244, 239, 230, .78);\n  font-size: clamp(14px, 1.9cqi, 19px);\n  font-weight: 400;\n  letter-spacing: .02em;\n  animation: hb-vc1-fade 1.8s 3.1s ease both;\n}\n.hb-vc1-actions {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  gap: 12px;\n  margin-top: 30px;\n  animation: hb-vc1-fade 1.4s 3.5s ease both;\n}\n@keyframes hb-vc1-fade {\n  from { opacity: 0; transform: translate3d(0, 8px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vc1-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  height: 44px;\n  padding: 0 20px;\n  border-radius: 999px;\n  border: 1px solid rgba(244, 239, 230, .2);\n  background: rgba(10, 10, 10, .4);\n  color: #f4efe6;\n  font: inherit;\n  font-size: 14px;\n  font-weight: 550;\n  letter-spacing: .01em;\n  text-decoration: none;\n  white-space: nowrap;\n  backdrop-filter: blur(8px);\n  transition: background .3s ease, border-color .3s ease, transform .2s ease;\n}\n.hb-vc1-btn:hover { background: rgba(244, 239, 230, .1); border-color: rgba(244, 239, 230, .4); }\n.hb-vc1-btn:active { transform: scale(.97); }\n.hb-vc1-btn[data-primary] {\n  border-color: transparent;\n  background: #f4efe6;\n  color: #0b0906;\n  box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--hb-vc1-accent) 70%, transparent);\n}\n.hb-vc1-btn[data-primary]:hover { background: #ffffff; }\n.hb-vc1-btn:focus-visible { outline: 2px solid var(--hb-vc1-accent); outline-offset: 3px; }\n.hb-vc1-play {\n  display: grid;\n  place-items: center;\n  width: 22px;\n  height: 22px;\n  border-radius: 50%;\n  background: #0b0906;\n  color: #f4efe6;\n}\n.hb-vc1-billing {\n  display: block;\n  max-width: 640px;\n  margin: 0 auto;\n  color: rgba(244, 239, 230, .38);\n  font-size: 9px;\n  line-height: 1.35;\n  letter-spacing: .08em;\n  text-align: center;\n  text-transform: uppercase;\n  white-space: normal;\n  transform: scaleX(.82);\n}\n.hb-vc1-bill-row { top: auto !important; bottom: 14px; justify-content: center !important; }\n@container (max-width: 560px) {\n  .hb-vc1-billing { display: none; }\n  .hb-vc1-copy { padding-top: 90px; padding-bottom: 90px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vc1-scene, .hb-vc1-car, .hb-vc1-bar, .hb-vc1-presenter, .hb-vc1-title, .hb-vc1-rule, .hb-vc1-tagline, .hb-vc1-actions { animation: none; }\n  .hb-vc1-btn { transition: none; }\n}\n`;\n\nfunction stars() {\n  const out: { x: string; y: string; r: string; o: string }[] = [];\n  for (let i = 0; i < 70; i++) {\n    const h = (Math.imul(i + 11, 2654435761) >>> 0) % 100000;\n    const h2 = (Math.imul(i + 97, 2246822519) >>> 0) % 100000;\n    out.push({\n      x: ((h / 100000) * 1600).toFixed(1),\n      y: ((h2 / 100000) * 420).toFixed(1),\n      r: (0.4 + ((h >>> 3) % 10) / 12).toFixed(2),\n      o: (0.25 + ((h2 >>> 2) % 60) / 100).toFixed(2),\n    });\n  }\n  return out;\n}\n\nconst starField = stars();\n\nexport function CinemaTitleCard({\n  presenter = \"Halden Pictures presents\",\n  title = \"The Long Quiet\",\n  tagline = \"Some roads only run in one direction.\",\n  release = \"In theaters March 14\",\n  billing = \"Halden Pictures in association with North Ridge Films a Mira Okafor film The Long Quiet starring Jonah Vale Ines Carvalho Teo Lindqvist music by Arvo Ness edited by Dana Whitlock director of photography Sun-Hee Park produced by Lior Adler Maya Brandt written and directed by Mira Okafor\",\n  aspect = 2.39,\n  pushDuration = 16,\n  primaryCta = { label: \"Watch the trailer\", href: \"#\" },\n  secondaryCta = { label: \"Get tickets\", href: \"#\" },\n  accent = \"#ffb35c\",\n  headingAs = \"h1\",\n  className,\n  style,\n  ...rest\n}: CinemaTitleCardProps) {\n  const Heading = headingAs;\n  const uid = React.useId().replace(/[^a-zA-Z0-9]/g, \"\");\n  const vars = {\n    \"--hb-vc1-accent\": accent,\n    \"--hb-vc1-ar\": String(aspect),\n    \"--hb-vc1-push\": `${pushDuration}s`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <section className={[\"hb-vc1\", className].filter(Boolean).join(\" \")} style={vars} {...rest}>\n      <style href=\"hb-cinema-title-card\" precedence=\"default\">{css}</style>\n      <div className=\"hb-vc1-scene\" aria-hidden=\"true\">\n        <svg viewBox=\"0 0 1600 900\" preserveAspectRatio=\"xMidYMid slice\">\n          <defs>\n            <linearGradient id={`hb-vc1-sky-${uid}`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n              <stop offset=\"0\" stopColor=\"#060a14\" />\n              <stop offset=\".45\" stopColor=\"#14213a\" />\n              <stop offset=\".7\" stopColor=\"#5a3a3a\" />\n              <stop offset=\".82\" stopColor=\"#d9884a\" />\n              <stop offset=\"1\" stopColor=\"#2a1610\" />\n            </linearGradient>\n            <radialGradient id={`hb-vc1-sun-${uid}`} cx=\".5\" cy=\".5\" r=\".5\">\n              <stop offset=\"0\" stopColor=\"#ffe1b0\" />\n              <stop offset=\".35\" stopColor=\"#ffb35c\" stopOpacity=\".85\" />\n              <stop offset=\"1\" stopColor=\"#ff7a3c\" stopOpacity=\"0\" />\n            </radialGradient>\n            <linearGradient id={`hb-vc1-road-${uid}`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n              <stop offset=\"0\" stopColor=\"#3a2a24\" />\n              <stop offset=\"1\" stopColor=\"#0c0907\" />\n            </linearGradient>\n          </defs>\n          <rect width=\"1600\" height=\"900\" fill={`url(#hb-vc1-sky-${uid})`} />\n          {starField.map((s, i) => (\n            <circle key={i} cx={s.x} cy={s.y} r={s.r} fill=\"#fff\" opacity={s.o} />\n          ))}\n          <circle cx=\"800\" cy=\"640\" r=\"260\" fill={`url(#hb-vc1-sun-${uid})`} />\n          <path d=\"M0 640 L180 590 L320 612 L470 560 L610 600 L760 575 L900 604 L1050 552 L1210 596 L1380 566 L1600 610 L1600 900 L0 900Z\" fill=\"#2b1b1b\" opacity=\".9\" />\n          <path d=\"M0 668 L140 640 L300 660 L520 628 L700 652 L800 646 L940 650 L1140 626 L1320 656 L1600 640 L1600 900 L0 900Z\" fill=\"#160e0d\" />\n          <path d=\"M0 900 L770 664 L830 664 L1600 900Z\" fill={`url(#hb-vc1-road-${uid})`} />\n          <path d=\"M799 668 L801 668 L812 900 L788 900Z\" fill=\"#e8b46a\" opacity=\".55\" />\n          <g className=\"hb-vc1-car\" style={{ transformOrigin: \"800px 820px\" }}>\n            <circle cx=\"770\" cy=\"820\" r=\"5\" fill=\"#fff4dc\" />\n            <circle cx=\"830\" cy=\"820\" r=\"5\" fill=\"#fff4dc\" />\n            <ellipse cx=\"800\" cy=\"820\" rx=\"120\" ry=\"16\" fill=\"#ffd9a0\" opacity=\".16\" />\n          </g>\n        </svg>\n      </div>\n      <div className=\"hb-vc1-vignette\" aria-hidden=\"true\" />\n      <div className=\"hb-vc1-bar\" data-edge=\"top\">\n        <div className=\"hb-vc1-bar-row\" aria-hidden=\"true\">\n          <span className=\"hb-vc1-rec\">Scope {aspect.toFixed(2)} : 1</span>\n          <span>Reel 1 · 00:00:14:08</span>\n        </div>\n      </div>\n      <div className=\"hb-vc1-bar\" data-edge=\"bottom\">\n        <div className=\"hb-vc1-bar-row\">\n          <span>{release}</span>\n          <span aria-hidden=\"true\">Rated PG-13</span>\n        </div>\n        {billing ? (\n          <div className=\"hb-vc1-bar-row hb-vc1-bill-row\">\n            <span className=\"hb-vc1-billing\">{billing}</span>\n          </div>\n        ) : null}\n      </div>\n      <div className=\"hb-vc1-copy\">\n        {presenter ? <p className=\"hb-vc1-presenter\">{presenter}</p> : null}\n        <Heading className=\"hb-vc1-title\">{title}</Heading>\n        <div className=\"hb-vc1-rule\" aria-hidden=\"true\" />\n        {tagline ? <p className=\"hb-vc1-tagline\">{tagline}</p> : null}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-vc1-actions\">\n            {primaryCta ? (\n              <a className=\"hb-vc1-btn\" data-primary=\"\" href={primaryCta.href}>\n                <span className=\"hb-vc1-play\" aria-hidden=\"true\">\n                  <svg width=\"8\" height=\"9\" viewBox=\"0 0 8 9\"><path d=\"M0 0 L8 4.5 L0 9Z\" fill=\"currentColor\" /></svg>\n                </span>\n                {primaryCta.label}\n              </a>\n            ) : null}\n            {secondaryCta ? (\n              <a className=\"hb-vc1-btn\" href={secondaryCta.href}>{secondaryCta.label}</a>\n            ) : null}\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}