{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "nautilus-portfolio",
  "type": "registry:block",
  "title": "Nautilus Portfolio",
  "description": "Portfolio Section built with Nautilus (spiral image carousel): point at a project and the spiral winds it forward. A take on the spiral gallery (spiral carousel). A selected-work section where the list and the pictures are one control. Point at a project in the numbered list, or Tab to it, and the Nautilus spiral beside it winds that project to the front; let the spiral run and the highlighted row follows it down the list.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "portfolio-sections",
    "portfolio",
    "spiral-gallery"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/portfolio-sections/nautilus-portfolio",
  "registryDependencies": [
    "https://keyframeui.com/r/nautilus.json"
  ],
  "files": [
    {
      "path": "components/nautilus-portfolio.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Nautilus } from \"@/components/ui/nautilus\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the copy\n * and the projects. The list and the spiral are one control:\n * point at a project (or focus it with Tab) and the spiral winds\n * it to the front; let the spiral run and the list follows it.\n * ─────────────────────────────────────────────────────────── */\n\n/** Violet: the eyebrow, the current row's number and focus rings. */\nconst ACCENT = \"#7c3aed\";\nconst ACCENT_DARK = \"#a78bfa\";\n\nconst EYEBROW = \"Selected work\";\nconst HEADLINE = \"Eight projects, 2023 to 2025.\";\nconst SUBLINE = \"Three houses, three interiors, a hotel and a library. Each one started with where the sun is at four in the afternoon.\";\nconst ALL_WORK = { label: \"All 31 projects\", href: \"#work\" };\n/** ms the pointer rests on a row before the spiral winds to it, so a sweep down the list does nothing. */\nconst INTENT = 120;\n\nconst photo = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=960&h=1200&q=80`;\n\nconst PROJECTS = [\n  { src: photo(\"1727786467215-116f0dbb9696\"), alt: \"White stairs turning between vivid green walls\", name: \"Casa Verde\", kind: \"House\", place: \"Comporta\", year: \"2025\", href: \"#casa-verde\" },\n  { src: photo(\"1706541972715-41ea84cf1d1e\"), alt: \"An empty room where two arched lattice windows pour golden light across a patterned floor\", name: \"Lattice Room\", kind: \"Interior\", place: \"Seville\", year: \"2024\", href: \"#lattice-room\" },\n  { src: photo(\"1567016376408-0226e4d0c1ea\"), alt: \"A white arched opening onto a minimal white room with a dark grey sofa\", name: \"Arco Flat\", kind: \"Interior\", place: \"Lisbon\", year: \"2025\", href: \"#arco-flat\" },\n  { src: photo(\"1762755647813-017e128a4ba0\"), alt: \"A monstera in a terracotta pot against a textured orange wall\", name: \"Hotel Sal\", kind: \"Hotel\", place: \"Tavira\", year: \"2023\", href: \"#hotel-sal\" },\n  { src: photo(\"1672865362636-2a1c08284ede\"), alt: \"A curving white stair wall with a small plant on the steps\", name: \"Curve House\", kind: \"House\", place: \"Bergen\", year: \"2024\", href: \"#curve-house\" },\n  { src: photo(\"1754390755142-3b4b9ffbd1f3\"), alt: \"A raw concrete room with high steel windows, a deep red curtain and round poufs\", name: \"Foundry Loft\", kind: \"Interior\", place: \"Oslo\", year: \"2023\", href: \"#foundry-loft\" },\n  { src: photo(\"1576500762874-720db275b3f9\"), alt: \"A sunlit white wall with plants in terracotta pots above tiled steps\", name: \"Terraço House\", kind: \"House\", place: \"Porto\", year: \"2024\", href: \"#terraco-house\" },\n  { src: photo(\"1681157998340-6d848679b149\"), alt: \"A pointed sandstone arch with a tiled border opening onto a receding arcade\", name: \"Arcade Library\", kind: \"Library\", place: \"Marrakech\", year: \"2025\", href: \"#arcade-library\" },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nconst pad = (n: number) => String(n).padStart(2, \"0\");\n\nexport function NautilusPortfolio() {\n  const [index, setIndex] = React.useState(0);\n  // While the pointer or focus is on the list, the spiral holds the project it shows.\n  const [hovering, setHovering] = React.useState(false);\n  const [focusing, setFocusing] = React.useState(false);\n  const holding = hovering || focusing;\n  const intent = React.useRef<number | undefined>(undefined);\n\n  React.useEffect(() => () => window.clearTimeout(intent.current), []);\n\n  const point = (i: number) => {\n    window.clearTimeout(intent.current);\n    intent.current = window.setTimeout(() => setIndex(i), INTENT);\n  };\n\n  return (\n    <section\n      style={{ \"--accent\": ACCENT, \"--accent-dark\": ACCENT_DARK } as React.CSSProperties}\n      className=\"overflow-x-clip bg-white text-zinc-950 dark:bg-zinc-950 dark:text-white\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 sm:py-24\">\n        <div className=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n          <div className=\"max-w-xl\">\n            <p className=\"text-[13px] font-medium text-(--accent) dark:text-(--accent-dark)\">{EYEBROW}</p>\n            <h2 className=\"mt-3 text-balance text-[2rem] leading-[1.08] font-semibold tracking-[-0.035em] sm:text-[2.75rem]\">{HEADLINE}</h2>\n            <p className=\"mt-4 max-w-md text-pretty text-base leading-relaxed text-zinc-600 dark:text-zinc-400\">{SUBLINE}</p>\n          </div>\n          <a\n            href={ALL_WORK.href}\n            className=\"inline-flex shrink-0 items-center gap-1.5 self-start rounded-sm text-sm font-semibold underline decoration-zinc-950/20 underline-offset-4 transition-colors duration-150 hover:decoration-current focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) sm:self-auto dark:decoration-white/25 dark:focus-visible:outline-(--accent-dark)\"\n          >\n            {ALL_WORK.label}\n          </a>\n        </div>\n\n        <div className=\"mt-10 grid grid-cols-1 items-center gap-6 lg:mt-12 lg:grid-cols-[minmax(0,1fr)_minmax(0,24rem)] lg:gap-12\">\n          <Nautilus\n            items={PROJECTS}\n            index={index}\n            onIndexChange={(i) => setIndex(i)}\n            side=\"right\"\n            interval={3.4}\n            paused={holding}\n            label=\"Selected work\"\n            className=\"-mx-6 h-[22rem] w-auto sm:h-[28rem] lg:mx-0 lg:h-[34rem] lg:w-full lg:[--nautilus-align:start]\"\n          />\n\n          <ol\n            className=\"border-t border-zinc-950/[0.08] dark:border-white/[0.1]\"\n            onPointerEnter={(e) => e.pointerType === \"mouse\" && setHovering(true)}\n            onPointerLeave={() => {\n              window.clearTimeout(intent.current);\n              setHovering(false);\n            }}\n            onFocus={() => setFocusing(true)}\n            onBlur={(e) => !e.currentTarget.contains(e.relatedTarget as Node | null) && setFocusing(false)}\n          >\n            {PROJECTS.map((p, i) => {\n              const on = i === index;\n              return (\n                <li key={p.name} className=\"border-b border-zinc-950/[0.08] dark:border-white/[0.1]\">\n                  <a\n                    href={p.href}\n                    aria-current={on ? \"true\" : undefined}\n                    onPointerEnter={(e) => e.pointerType === \"mouse\" && point(i)}\n                    onFocus={() => setIndex(i)}\n                    className=\"group grid grid-cols-[2.25rem_minmax(0,1fr)_auto] items-baseline gap-x-2 rounded-sm py-3.5 outline-offset-2 focus-visible:outline-2 focus-visible:outline-(--accent) dark:focus-visible:outline-(--accent-dark)\"\n                  >\n                    <span\n                      className={`font-mono text-xs tabular-nums transition-colors duration-200 ${on ? \"text-(--accent) dark:text-(--accent-dark)\" : \"text-zinc-500 dark:text-zinc-400\"}`}\n                    >\n                      {pad(i + 1)}\n                    </span>\n                    <span className=\"min-w-0\">\n                      <span\n                        className={`block truncate text-base font-semibold tracking-[-0.015em] transition-colors duration-200 ${on ? \"\" : \"text-zinc-500 group-hover:text-zinc-950 dark:text-zinc-400 dark:group-hover:text-white\"}`}\n                      >\n                        {p.name}\n                      </span>\n                      <span className=\"block truncate text-[13px] text-zinc-500 dark:text-zinc-400\">\n                        {p.kind} · {p.place}\n                      </span>\n                    </span>\n                    <span className=\"text-[13px] text-zinc-500 tabular-nums dark:text-zinc-400\">{p.year}</span>\n                  </a>\n                </li>\n              );\n            })}\n          </ol>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}