{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navbar-split-logo",
  "type": "registry:component",
  "title": "Navbar Split Logo",
  "description": "A fashion header with the logo centered between two link groups. Hovering a link draws a fine line from the logo out to it and turns the star mark toward that side, and the bag count pops when it changes.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "navigation",
    "navbar",
    "centered logo",
    "fashion",
    "ecommerce",
    "hover line",
    "header"
  ],
  "docs": "https://hyperblur.dev/effects/navbar-split-logo",
  "files": [
    {
      "path": "registry/hyperblur/navbar-split-logo.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/navbar-split-logo.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface NavbarSplitLogoLink {\n  label: string;\n  href: string;\n}\n\nexport interface NavbarSplitLogoProps extends Omit<React.HTMLAttributes<HTMLElement>, \"children\"> {\n  brand?: string;\n  left?: NavbarSplitLogoLink[];\n  right?: NavbarSplitLogoLink[];\n  activeHref?: string;\n  bagCount?: number;\n  onBagClick?: () => void;\n  featured?: { eyebrow: string; title: string; href: string } | null;\n  accent?: string;\n  showBackdrop?: boolean;\n}\n\nconst css = `\n.hb-xi10 {\n  --hb-xi10-accent: #c9a77c;\n  --hb-xi10-ink: #ece5d8;\n  --hb-xi10-ease: cubic-bezier(.65,0,.35,1);\n  --hb-xi10-out: cubic-bezier(.22,1,.36,1);\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  background: #0f0d0b;\n  color: var(--hb-xi10-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-xi10 *, .hb-xi10 *::before, .hb-xi10 *::after { box-sizing: border-box; }\n.hb-xi10-bar { position: relative; z-index: 2; border-bottom: 1px solid rgba(236,229,216,.1); background: #0f0d0b; }\n.hb-xi10-row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1240px; height: 84px; margin: 0 auto; padding: 0 32px; }\n.hb-xi10-side { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }\n.hb-xi10-side[data-side=\"right\"] { justify-content: flex-end; }\n.hb-xi10-link {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 40px;\n  padding: 0 12px;\n  color: rgba(236,229,216,.62);\n  font-size: 12px;\n  font-weight: 600;\n  letter-spacing: .16em;\n  text-transform: uppercase;\n  text-decoration: none;\n  white-space: nowrap;\n  border-radius: 6px;\n  background: none;\n  border: 0;\n  margin: 0;\n  font-family: inherit;\n  cursor: pointer;\n  transition: color .35s ease, letter-spacing .5s var(--hb-xi10-out);\n}\n.hb-xi10-link:hover, .hb-xi10-link:focus-visible { color: var(--hb-xi10-ink); letter-spacing: .22em; }\n.hb-xi10-link[aria-current=\"page\"] { color: var(--hb-xi10-ink); }\n.hb-xi10-link[aria-current=\"page\"]::before { content: \"\"; width: 5px; height: 5px; border-radius: 50%; background: var(--hb-xi10-accent); }\n.hb-xi10-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hb-xi10-accent); color: #1a140d; font-size: 11px; font-weight: 700; letter-spacing: 0; animation: hb-xi10-bump .5s var(--hb-xi10-out); }\n.hb-xi10-logo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 28px; color: var(--hb-xi10-ink); text-decoration: none; border-radius: 8px; }\n.hb-xi10-mark { width: 26px; height: 26px; color: var(--hb-xi10-accent); transition: transform .8s var(--hb-xi10-out); }\n.hb-xi10[data-side=\"left\"] .hb-xi10-mark { transform: rotate(-45deg); }\n.hb-xi10[data-side=\"right\"] .hb-xi10-mark { transform: rotate(45deg); }\n.hb-xi10-mark path { fill: currentColor; }\n.hb-xi10-word { font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif)); font-size: 17px; font-weight: 600; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; line-height: 1; }\n.hb-xi10-wire {\n  position: absolute;\n  top: 50%;\n  height: 1px;\n  left: var(--hb-xi10-wl, 50%);\n  width: var(--hb-xi10-ww, 0px);\n  pointer-events: none;\n  background: linear-gradient(90deg, rgba(201,167,124,0), var(--hb-xi10-accent));\n  transform: scaleX(0);\n  transform-origin: 100% 50%;\n  transition: transform .55s var(--hb-xi10-ease);\n}\n.hb-xi10-wire[data-side=\"right\"] { background: linear-gradient(270deg, rgba(201,167,124,0), var(--hb-xi10-accent)); transform-origin: 0 50%; }\n.hb-xi10-wire[data-on=\"true\"] { transform: scaleX(1); transition: transform .7s var(--hb-xi10-out); }\n.hb-xi10-wire::after { content: \"\"; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--hb-xi10-accent); box-shadow: 0 0 10px var(--hb-xi10-accent); }\n.hb-xi10-wire[data-side=\"left\"]::after { left: 0; }\n.hb-xi10-wire[data-side=\"right\"]::after { right: 0; }\n.hb-xi10-ib { display: none; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--hb-xi10-ink); cursor: pointer; }\n.hb-xi10-ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }\n.hb-xi10-ib i { position: relative; display: block; width: 20px; height: 10px; font-style: normal; }\n.hb-xi10-ib i::before, .hb-xi10-ib i::after { content: \"\"; position: absolute; left: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--hb-xi10-out), width .5s var(--hb-xi10-out), top .5s var(--hb-xi10-out); }\n.hb-xi10-ib i::before { top: 0; width: 20px; }\n.hb-xi10-ib i::after { top: 8.5px; width: 12px; }\n.hb-xi10-ib[aria-expanded=\"true\"] i::before { top: 4.25px; transform: rotate(45deg); }\n.hb-xi10-ib[aria-expanded=\"true\"] i::after { top: 4.25px; width: 20px; transform: rotate(-45deg); }\n.hb-xi10-bag { position: relative; }\n.hb-xi10-bag .hb-xi10-count { position: absolute; top: 3px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px #0f0d0b; }\n.hb-xi10-sheet { display: none; }\n.hb-xi10 a:focus-visible, .hb-xi10 button:focus-visible { outline: 1.5px solid var(--hb-xi10-accent); outline-offset: 3px; }\n.hb-xi10-stage { position: relative; height: 620px; overflow: hidden; }\n.hb-xi10-ed { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 100%; }\n.hb-xi10-pic { position: relative; overflow: hidden; }\n.hb-xi10-pic::after { content: \"\"; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,13,11,.75)); }\n.hb-xi10-cap { position: absolute; left: 32px; bottom: 120px; z-index: 1; }\n.hb-xi10-cap small { display: block; color: var(--hb-xi10-accent); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }\n.hb-xi10-cap b { display: block; margin-top: 10px; font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif)); font-size: clamp(30px, 4.4cqi, 54px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }\n.hb-xi10-cap span { display: inline-block; margin-top: 16px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }\n@keyframes hb-xi10-bump { 0% { transform: scale(.6); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }\n@keyframes hb-xi10-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }\n@container (max-width: 860px) {\n  .hb-xi10-row { grid-template-columns: 1fr auto 1fr; height: 64px; padding: 0 12px; }\n  .hb-xi10-row > .hb-xi10-side, .hb-xi10-wire { display: none; }\n  .hb-xi10-ib { display: grid; }\n  .hb-xi10-ib.hb-xi10-bag { justify-self: end; }\n  .hb-xi10-logo { grid-column: 2; flex-direction: row; gap: 10px; padding: 0; }\n  .hb-xi10-mark { width: 20px; height: 20px; }\n  .hb-xi10-word { font-size: 14px; letter-spacing: .34em; margin-right: -.34em; }\n  .hb-xi10-sheet[data-open=\"true\"] { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 18px 20px 22px; border-bottom: 1px solid rgba(236,229,216,.1); background: #12100d; }\n  .hb-xi10-sheet a { display: block; padding: 11px 0; border-bottom: 1px solid rgba(236,229,216,.07); color: var(--hb-xi10-ink); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; animation: hb-xi10-rise .5s var(--hb-xi10-out) both; }\n  .hb-xi10-sheet a[aria-current=\"page\"] { color: var(--hb-xi10-accent); }\n  .hb-xi10-feat { grid-column: 1 / -1; display: flex !important; align-items: flex-end; height: 130px; margin-top: 16px; padding: 16px !important; border: 0 !important; border-radius: 4px; background: linear-gradient(160deg, #8a6a4a, #2b2018 70%); letter-spacing: 0 !important; text-transform: none !important; }\n  .hb-xi10-feat small { display: block; color: var(--hb-xi10-accent); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }\n  .hb-xi10-feat b { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }\n  .hb-xi10-ed { grid-template-columns: 1fr; }\n  .hb-xi10-ed .hb-xi10-pic + .hb-xi10-pic { display: none; }\n  .hb-xi10-cap { left: 20px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-xi10 *, .hb-xi10 *::before, .hb-xi10 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultLeft: NavbarSplitLogoLink[] = [\n  { label: \"Women\", href: \"#women\" },\n  { label: \"Men\", href: \"#men\" },\n  { label: \"Home\", href: \"#home\" },\n];\n\nconst defaultRight: NavbarSplitLogoLink[] = [\n  { label: \"Journal\", href: \"#journal\" },\n  { label: \"Stores\", href: \"#stores\" },\n  { label: \"Account\", href: \"#account\" },\n];\n\nexport function NavbarSplitLogo({\n  brand = \"Aster\",\n  left = defaultLeft,\n  right = defaultRight,\n  activeHref = \"#women\",\n  bagCount = 2,\n  onBagClick,\n  featured = { eyebrow: \"Winter 26\", title: \"Quiet wool, made in Porto\", href: \"#\" },\n  accent = \"#c9a77c\",\n  showBackdrop = true,\n  className = \"\",\n  style,\n  ...rest\n}: NavbarSplitLogoProps) {\n  const uid = React.useId();\n  const rootRef = React.useRef<HTMLElement>(null);\n  const rowRef = React.useRef<HTMLDivElement>(null);\n  const logoRef = React.useRef<HTMLAnchorElement>(null);\n  const wireL = React.useRef<HTMLSpanElement>(null);\n  const wireR = React.useRef<HTMLSpanElement>(null);\n  const [open, setOpen] = React.useState(false);\n\n  const aim = (el: HTMLElement | null, side: \"left\" | \"right\" | null) => {\n    const root = rootRef.current;\n    const row = rowRef.current;\n    const logo = logoRef.current;\n    if (!root || !row || !logo) return;\n    root.dataset.side = side ?? \"\";\n    [wireL.current, wireR.current].forEach((w) => {\n      if (w) w.dataset.on = \"false\";\n    });\n    if (!el || !side) return;\n    const rr = row.getBoundingClientRect();\n    const lr = logo.getBoundingClientRect();\n    const er = el.getBoundingClientRect();\n    const wire = side === \"left\" ? wireL.current : wireR.current;\n    if (!wire) return;\n    const start = side === \"left\" ? er.right + 6 - rr.left : lr.right - 8 - rr.left;\n    const end = side === \"left\" ? lr.left + 8 - rr.left : er.left - 6 - rr.left;\n    wire.style.setProperty(\"--hb-xi10-wl\", `${start.toFixed(1)}px`);\n    wire.style.setProperty(\"--hb-xi10-ww\", `${Math.max(0, end - start).toFixed(1)}px`);\n    wire.dataset.on = \"true\";\n  };\n\n  const bag = (\n    <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n      <path d=\"M4.5 6.5h11l-.8 10h-9.4zM7.5 8V5.5a2.5 2.5 0 0 1 5 0V8\" />\n    </svg>\n  );\n\n  const renderSide = (list: NavbarSplitLogoLink[], side: \"left\" | \"right\", withBag: boolean) => (\n    <ul className=\"hb-xi10-side\" data-side={side}>\n      {list.map((link) => (\n        <li key={link.label}>\n          <a\n            href={link.href}\n            className=\"hb-xi10-link\"\n            aria-current={link.href === activeHref ? \"page\" : undefined}\n            onPointerEnter={(e) => aim(e.currentTarget, side)}\n            onPointerLeave={() => aim(null, null)}\n            onFocus={(e) => aim(e.currentTarget, side)}\n            onBlur={() => aim(null, null)}\n          >\n            {link.label}\n          </a>\n        </li>\n      ))}\n      {withBag && (\n        <li>\n          <button\n            type=\"button\"\n            className=\"hb-xi10-link\"\n            aria-label={`Bag, ${bagCount} items`}\n            onClick={onBagClick}\n            onPointerEnter={(e) => aim(e.currentTarget, side)}\n            onPointerLeave={() => aim(null, null)}\n            onFocus={(e) => aim(e.currentTarget, side)}\n            onBlur={() => aim(null, null)}\n          >\n            Bag\n            {bagCount > 0 && (\n              <span key={bagCount} className=\"hb-xi10-count\" aria-hidden=\"true\">\n                {bagCount}\n              </span>\n            )}\n          </button>\n        </li>\n      )}\n    </ul>\n  );\n\n  const all = [...left, ...right];\n\n  return (\n    <header\n      ref={rootRef}\n      className={`hb-xi10 ${className}`}\n      style={{ \"--hb-xi10-accent\": accent, ...style } as React.CSSProperties}\n      onKeyDown={(e) => {\n        if (e.key === \"Escape\" && open) setOpen(false);\n      }}\n      {...rest}\n    >\n      <style href=\"hb-navbar-split-logo\" precedence=\"default\">\n        {css}\n      </style>\n      <div className=\"hb-xi10-bar\">\n        <nav ref={rowRef} className=\"hb-xi10-row\" aria-label=\"Main\">\n          {renderSide(left, \"left\", false)}\n          <button\n            type=\"button\"\n            className=\"hb-xi10-ib\"\n            aria-label={open ? \"Close menu\" : \"Open menu\"}\n            aria-expanded={open}\n            aria-controls={`${uid}-sheet`}\n            onClick={() => setOpen((v) => !v)}\n          >\n            <i aria-hidden=\"true\" />\n          </button>\n          <a ref={logoRef} href=\"#\" className=\"hb-xi10-logo\" aria-label={`${brand} home`}>\n            <svg className=\"hb-xi10-mark\" viewBox=\"0 0 26 26\" aria-hidden=\"true\">\n              <path d=\"M13 0l3 8.5L24.5 5 19.6 13l4.9 8-8.5-3.5L13 26l-3-8.5L1.5 21l4.9-8L1.5 5 10 8.5z\" />\n            </svg>\n            <span className=\"hb-xi10-word\">{brand}</span>\n          </a>\n          {renderSide(right, \"right\", true)}\n          <button type=\"button\" className=\"hb-xi10-ib hb-xi10-bag\" aria-label={`Bag, ${bagCount} items`} onClick={onBagClick}>\n            {bag}\n            {bagCount > 0 && (\n              <span key={bagCount} className=\"hb-xi10-count\" aria-hidden=\"true\">\n                {bagCount}\n              </span>\n            )}\n          </button>\n          <span ref={wireL} className=\"hb-xi10-wire\" data-side=\"left\" data-on=\"false\" aria-hidden=\"true\" />\n          <span ref={wireR} className=\"hb-xi10-wire\" data-side=\"right\" data-on=\"false\" aria-hidden=\"true\" />\n        </nav>\n        <div id={`${uid}-sheet`} className=\"hb-xi10-sheet\" data-open={open ? \"true\" : \"false\"}>\n          {all.map((link, i) => (\n            <a\n              key={link.label}\n              href={link.href}\n              aria-current={link.href === activeHref ? \"page\" : undefined}\n              style={{ animationDelay: `${(i * 0.04).toFixed(2)}s` }}\n              onClick={() => setOpen(false)}\n            >\n              {link.label}\n            </a>\n          ))}\n          {featured && (\n            <a href={featured.href} className=\"hb-xi10-feat\" onClick={() => setOpen(false)}>\n              <span>\n                <small>{featured.eyebrow}</small>\n                <b>{featured.title}</b>\n              </span>\n            </a>\n          )}\n        </div>\n      </div>\n      {showBackdrop && (\n        <div className=\"hb-xi10-stage\" aria-hidden=\"true\">\n          <div className=\"hb-xi10-ed\">\n            <div className=\"hb-xi10-pic\" style={{ background: \"radial-gradient(70% 60% at 50% 35%, #b08a63, transparent 70%), linear-gradient(170deg, #5a4331, #1c1611)\" }}>\n              <div className=\"hb-xi10-cap\">\n                <small>{featured?.eyebrow ?? \"Winter 26\"}</small>\n                <b>{featured?.title ?? \"Quiet wool, made in Porto\"}</b>\n                <span>Shop women</span>\n              </div>\n            </div>\n            <div className=\"hb-xi10-pic\" style={{ background: \"radial-gradient(60% 50% at 45% 40%, #7d8a86, transparent 70%), linear-gradient(190deg, #3a4442, #121614)\" }}>\n              <div className=\"hb-xi10-cap\">\n                <small>The overcoat edit</small>\n                <b>Cut long, worn for decades</b>\n                <span>Shop men</span>\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n    </header>\n  );\n}\n"
    }
  ]
}