{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-swiss",
  "type": "registry:component",
  "title": "Hero Swiss",
  "description": "A minimal editorial hero on paper with a visible twelve-column grid, a huge tight headline that rises line by line, a single accent dot and a numbered index of services. Light by default, with a dark variant.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "editorial",
    "minimal",
    "grid",
    "studio",
    "typography"
  ],
  "docs": "https://hyperblur.dev/effects/hero-swiss",
  "files": [
    {
      "path": "registry/hyperblur/hero-swiss.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-swiss.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroSwissLink {\n  label: string;\n  href: string;\n}\n\nexport interface HeroSwissProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  lines?: string[];\n  subtitle?: string;\n  meta?: string[];\n  services?: HeroSwissLink[];\n  cta?: HeroSwissLink | null;\n  footnote?: string;\n  accent?: string;\n  appearance?: \"light\" | \"dark\";\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vb12 {\n  --hb-vb12-accent: #ff3b1f;\n  --hb-vb12-bg: #f3f1ec;\n  --hb-vb12-ink: #111111;\n  --hb-vb12-mute: rgba(17, 17, 17, .55);\n  --hb-vb12-rule: rgba(17, 17, 17, .14);\n  --hb-vb12-col: rgba(17, 17, 17, .045);\n  position: relative;\n  box-sizing: border-box;\n  display: grid;\n  grid-template-columns: repeat(12, minmax(0, 1fr));\n  grid-template-rows: auto 1fr auto auto;\n  column-gap: clamp(10px, 1.8cqi, 20px);\n  width: 100%;\n  min-height: 620px;\n  padding: 22px clamp(18px, 4cqi, 44px) 18px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: var(--hb-vb12-bg);\n  color: var(--hb-vb12-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vb12[data-appearance=\"dark\"] {\n  --hb-vb12-bg: #0c0c0c;\n  --hb-vb12-ink: #ededed;\n  --hb-vb12-mute: rgba(237, 237, 237, .55);\n  --hb-vb12-rule: rgba(237, 237, 237, .14);\n  --hb-vb12-col: rgba(237, 237, 237, .04);\n}\n.hb-vb12 *, .hb-vb12 *::before, .hb-vb12 *::after { box-sizing: border-box; }\n.hb-vb12-cols {\n  position: absolute;\n  inset: 0 clamp(18px, 4cqi, 44px);\n  z-index: -1;\n  display: grid;\n  grid-template-columns: repeat(12, minmax(0, 1fr));\n  column-gap: clamp(10px, 1.8cqi, 20px);\n  pointer-events: none;\n}\n.hb-vb12-cols span { background: var(--hb-vb12-col); transform-origin: 50% 0; animation: hb-vb12-drop 1.2s cubic-bezier(.76, 0, .24, 1) both; animation-delay: calc(var(--hb-vb12-i) * 40ms); }\n@keyframes hb-vb12-drop {\n  from { transform: scaleY(0); }\n  to { transform: scaleY(1); }\n}\n.hb-vb12-meta {\n  grid-column: 1 / -1;\n  display: grid;\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n  gap: 12px;\n  margin: 0;\n  padding: 0 0 12px;\n  border-bottom: 1px solid var(--hb-vb12-ink);\n  font-size: 12px;\n  font-weight: 500;\n  list-style: none;\n}\n.hb-vb12-meta li:last-child { justify-self: end; }\n.hb-vb12-title {\n  grid-column: 1 / span 10;\n  grid-row: 2;\n  align-self: center;\n  margin: 28px 0 24px;\n  font-size: clamp(48px, 10.4cqi, 136px);\n  font-weight: 600;\n  line-height: .9;\n  letter-spacing: -.06em;\n}\n.hb-vb12-line { display: block; overflow: hidden; padding-bottom: .06em; }\n.hb-vb12-line > span { display: inline-block; animation: hb-vb12-rise 1.1s cubic-bezier(.76, 0, .24, 1) both; animation-delay: calc(300ms + var(--hb-vb12-i) * 110ms); }\n@keyframes hb-vb12-rise {\n  from { transform: translate3d(0, 105%, 0); }\n  to { transform: none; }\n}\n.hb-vb12-line[data-indent] { padding-left: 8.33%; }\n.hb-vb12-line:last-child > span::after {\n  content: \"\";\n  display: inline-block;\n  width: .18em;\n  height: .18em;\n  margin-left: .04em;\n  border-radius: 50%;\n  background: var(--hb-vb12-accent);\n}\n.hb-vb12-mark {\n  grid-column: 11 / span 2;\n  grid-row: 2;\n  align-self: start;\n  justify-self: end;\n  width: clamp(44px, 9cqi, 96px);\n  aspect-ratio: 1;\n  margin-top: 30px;\n  border-radius: 50%;\n  background: var(--hb-vb12-accent);\n  animation: hb-vb12-grow 1.2s cubic-bezier(.34, 1.56, .64, 1) .9s both;\n}\n@keyframes hb-vb12-grow {\n  from { transform: scale(0); }\n  to { transform: none; }\n}\n.hb-vb12-sub {\n  grid-column: 1 / span 4;\n  grid-row: 3;\n  align-self: end;\n  margin: 0;\n  color: var(--hb-vb12-mute);\n  font-size: 14px;\n  line-height: 1.5;\n}\n.hb-vb12-sub::before { content: \"\"; display: block; width: 24px; height: 2px; margin-bottom: 12px; background: var(--hb-vb12-ink); }\n.hb-vb12-list { grid-column: 6 / span 4; grid-row: 3; align-self: end; margin: 0; padding: 0; list-style: none; counter-reset: hb-vb12-n; }\n.hb-vb12-item a {\n  position: relative;\n  display: grid;\n  grid-template-columns: 32px 1fr auto;\n  align-items: center;\n  padding: 8px 0;\n  border-top: 1px solid var(--hb-vb12-rule);\n  color: inherit;\n  font-size: 14px;\n  font-weight: 500;\n  text-decoration: none;\n}\n.hb-vb12-item a::before { counter-increment: hb-vb12-n; content: counter(hb-vb12-n, decimal-leading-zero); color: var(--hb-vb12-mute); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; }\n.hb-vb12-item a::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: -1px;\n  width: 100%;\n  height: 1px;\n  background: var(--hb-vb12-ink);\n  transform: scaleX(0);\n  transform-origin: 0 50%;\n  transition: transform .5s cubic-bezier(.76, 0, .24, 1);\n}\n.hb-vb12-item a:hover::after, .hb-vb12-item a:focus-visible::after { transform: scaleX(1); }\n.hb-vb12-item a:focus-visible { outline: 2px solid var(--hb-vb12-accent); outline-offset: 2px; }\n.hb-vb12-item svg { opacity: 0; transform: translate3d(-6px, 0, 0); transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1); }\n.hb-vb12-item a:hover svg, .hb-vb12-item a:focus-visible svg { opacity: 1; transform: none; }\n.hb-vb12-cta {\n  grid-column: 10 / span 3;\n  grid-row: 3;\n  align-self: end;\n  justify-self: end;\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 0 0 4px;\n  border-bottom: 2px solid var(--hb-vb12-ink);\n  color: inherit;\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -.01em;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: color .3s ease, border-color .3s ease;\n}\n.hb-vb12-cta:hover { color: var(--hb-vb12-accent); border-color: var(--hb-vb12-accent); }\n.hb-vb12-cta:focus-visible { outline: 2px solid var(--hb-vb12-accent); outline-offset: 4px; }\n.hb-vb12-cta svg { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }\n.hb-vb12-cta:hover svg { transform: translate3d(3px, -3px, 0); }\n.hb-vb12-foot {\n  grid-column: 1 / -1;\n  display: flex;\n  justify-content: space-between;\n  margin-top: 22px;\n  padding-top: 10px;\n  border-top: 1px solid var(--hb-vb12-rule);\n  color: var(--hb-vb12-mute);\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 10.5px;\n  letter-spacing: .04em;\n  text-transform: uppercase;\n}\n.hb-vb12-in { animation: hb-vb12-fade .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--hb-vb12-d, 0ms); }\n@keyframes hb-vb12-fade {\n  from { opacity: 0; transform: translate3d(0, 8px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb12-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@container (max-width: 720px) {\n  .hb-vb12-title { grid-column: 1 / -1; }\n  .hb-vb12-mark { display: none; }\n  .hb-vb12-meta { grid-template-columns: 1fr 1fr; }\n  .hb-vb12-meta li:nth-child(2), .hb-vb12-meta li:nth-child(3) { display: none; }\n  .hb-vb12-sub, .hb-vb12-list { grid-column: 1 / -1; margin-bottom: 20px; }\n  .hb-vb12-cta { grid-column: 1 / -1; justify-self: start; }\n  .hb-vb12-line[data-indent] { padding-left: 0; }\n  .hb-vb12-title, .hb-vb12-sub, .hb-vb12-list, .hb-vb12-cta { grid-row: auto; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vb12-cols span, .hb-vb12-line > span, .hb-vb12-mark, .hb-vb12-in { animation: none; }\n  .hb-vb12-item a::after, .hb-vb12-item svg, .hb-vb12-cta, .hb-vb12-cta svg { transition: none; }\n}\n`;\n\nconst defaultLines = [\"We make\", \"quiet things\", \"that last\"];\nconst defaultMeta = [\"Studio Brandt\", \"No. 07 / Autumn 2026\", \"Identity and wayfinding\", \"Zurich, CH\"];\nconst defaultServices: HeroSwissLink[] = [\n  { label: \"Identity systems\", href: \"#\" },\n  { label: \"Digital products\", href: \"#\" },\n  { label: \"Wayfinding\", href: \"#\" },\n  { label: \"Editorial design\", href: \"#\" },\n];\nconst defaultCta: HeroSwissLink = { label: \"Start a conversation\", href: \"#\" };\n\nfunction d(ms: number) {\n  return { \"--hb-vb12-d\": `${ms}ms` } as React.CSSProperties;\n}\n\nexport function HeroSwiss({\n  lines = defaultLines,\n  subtitle = \"An independent practice of six designers. We build brand systems for museums, transit networks and companies that plan in decades.\",\n  meta = defaultMeta,\n  services = defaultServices,\n  cta = defaultCta,\n  footnote = \"47.3769 N, 8.5417 E\",\n  accent = \"#ff3b1f\",\n  appearance = \"light\",\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  ...rest\n}: HeroSwissProps) {\n  const Heading = headingAs;\n  const vars = { \"--hb-vb12-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-vb12 ${className}`} style={vars} data-appearance={appearance} {...rest}>\n      <style href=\"hb-hero-swiss\" precedence=\"default\">{css}</style>\n      <div className=\"hb-vb12-cols\" aria-hidden=\"true\">\n        {Array.from({ length: 12 }, (_, i) => (\n          <span key={i} style={{ \"--hb-vb12-i\": i } as React.CSSProperties} />\n        ))}\n      </div>\n      {meta.length ? (\n        <ul className=\"hb-vb12-meta hb-vb12-in\" style={d(100)}>\n          {meta.map((item) => (\n            <li key={item}>{item}</li>\n          ))}\n        </ul>\n      ) : null}\n      <Heading className=\"hb-vb12-title\">\n        <span className=\"hb-vb12-sr\">{lines.join(\" \")}</span>\n        {lines.map((line, i) => (\n          <span key={i} className=\"hb-vb12-line\" data-indent={i === 1 ? \"\" : undefined} aria-hidden=\"true\">\n            <span style={{ \"--hb-vb12-i\": i } as React.CSSProperties}>{line}</span>\n          </span>\n        ))}\n      </Heading>\n      <span className=\"hb-vb12-mark\" aria-hidden=\"true\" />\n      {subtitle ? (\n        <p className=\"hb-vb12-sub hb-vb12-in\" style={d(700)}>\n          {subtitle}\n        </p>\n      ) : null}\n      {services.length ? (\n        <ul className=\"hb-vb12-list hb-vb12-in\" style={d(800)}>\n          {services.map((service) => (\n            <li key={service.label} className=\"hb-vb12-item\">\n              <a href={service.href}>\n                {service.label}\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M5 12h14M13 6l6 6-6 6\" />\n                </svg>\n              </a>\n            </li>\n          ))}\n        </ul>\n      ) : null}\n      {cta ? (\n        <a className=\"hb-vb12-cta hb-vb12-in\" style={d(900)} href={cta.href}>\n          {cta.label}\n          <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n            <path d=\"M7 17L17 7M9 7h8v8\" />\n          </svg>\n        </a>\n      ) : null}\n      <div className=\"hb-vb12-foot hb-vb12-in\" style={d(1000)} aria-hidden=\"true\">\n        <span>Scroll</span>\n        <span>{footnote}</span>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}