{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "nautilus-hero",
  "type": "registry:block",
  "title": "Nautilus Hero",
  "description": "Hero Section built with Nautilus (spiral image carousel): a studio's projects ride a spiral beside the headline. A take on the spiral gallery (spiral carousel). A hero for an architecture studio: the headline, two calls to action and the project now showing on the left, and on the right a Nautilus spiral of the studio's work. It unfurls from its tail on load, then moves one project to the front every few seconds; a click on any card winds it forward and the caption follows.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "hero-sections",
    "hero",
    "spiral-gallery"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/hero-sections/nautilus-hero",
  "registryDependencies": [
    "https://keyframeui.com/r/nautilus.json"
  ],
  "files": [
    {
      "path": "components/nautilus-hero.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 * the links and the projects on the spiral. The front card is\n * the project named under the buttons; it moves on by itself\n * every few seconds, and a click on any card winds it forward.\n * ─────────────────────────────────────────────────────────── */\n\n/** The one accent, hot orange: the primary button and focus rings, and (AA-dark for small text) the project counter. */\nconst ACCENT = \"#ff5a1f\";\nconst ACCENT_DARK = \"#ff7a45\";\nconst ACCENT_TEXT = \"#d93f06\";\n\nconst BRAND = { name: \"Lath\", href: \"#\" };\nconst NAV_LINKS = [\n  { label: \"Work\", href: \"#work\" },\n  { label: \"Studio\", href: \"#studio\" },\n  { label: \"Journal\", href: \"#journal\" },\n];\nconst NAV_CTA = { label: \"Start a project\", href: \"#contact\" };\n\nconst EYEBROW = \"Architecture and interiors · Lisbon & Oslo\";\nconst HEADLINE = \"Houses built around the afternoon light.\";\nconst SUBLINE =\n  \"Lath is a studio of nine architects. We design homes, small hotels and the rooms inside them, from the first site visit to the last door handle.\";\nconst PRIMARY_CTA = { label: \"Start a project\", href: \"#contact\" };\nconst SECONDARY_CTA = { label: \"See all work\", href: \"#work\" };\nconst NOW_SHOWING = \"Now showing\";\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\", place: \"Comporta\", year: \"2025\" },\n  { src: photo(\"1706541972715-41ea84cf1d1e\"), alt: \"An empty room where two arched lattice windows pour golden light across a patterned floor\", name: \"Lattice Room\", place: \"Seville\", year: \"2024\" },\n  { src: photo(\"1567016376408-0226e4d0c1ea\"), alt: \"A white arched opening onto a minimal white room with a dark grey sofa\", name: \"Arco Flat\", place: \"Lisbon\", year: \"2025\" },\n  { src: photo(\"1762755647813-017e128a4ba0\"), alt: \"A monstera in a terracotta pot against a textured orange wall\", name: \"Hotel Sal\", place: \"Tavira\", year: \"2023\" },\n  { src: photo(\"1672865362636-2a1c08284ede\"), alt: \"A curving white stair wall with a small plant on the steps\", name: \"Curve House\", place: \"Bergen\", year: \"2024\" },\n  { src: photo(\"1754390755142-3b4b9ffbd1f3\"), alt: \"A raw concrete room with high steel windows, a deep red curtain and round poufs\", name: \"Foundry Loft\", place: \"Oslo\", year: \"2023\" },\n  { src: photo(\"1576500762874-720db275b3f9\"), alt: \"A sunlit white wall with plants in terracotta pots above tiled steps\", name: \"Terraço House\", place: \"Porto\", year: \"2024\" },\n  { src: photo(\"1681157998340-6d848679b149\"), alt: \"A pointed sandstone arch with a tiled border opening onto a receding arcade\", name: \"Arcade Library\", place: \"Marrakech\", year: \"2025\" },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nfunction Arrow({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" className={className} aria-hidden>\n      <path d=\"M3 8h9.5M8.5 4l4 4-4 4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n    </svg>\n  );\n}\n\nfunction LathMark({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" className={className} aria-hidden>\n      <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"3\" fill=\"currentColor\" />\n      <path d=\"M8 6.5v11M12 6.5v11M16 6.5v11\" stroke=\"white\" strokeWidth=\"1.6\" strokeLinecap=\"round\" className=\"dark:stroke-zinc-950\" />\n    </svg>\n  );\n}\n\nconst pad = (n: number) => String(n).padStart(2, \"0\");\n\nexport function NautilusHero() {\n  const [index, setIndex] = React.useState(0);\n  const project = PROJECTS[index];\n\n  return (\n    <section\n      style={{ \"--accent\": ACCENT, \"--accent-dark\": ACCENT_DARK, \"--accent-text\": ACCENT_TEXT } as React.CSSProperties}\n      className=\"relative overflow-x-clip bg-white text-zinc-950 dark:bg-zinc-950 dark:text-white\"\n    >\n      <header className=\"border-b border-zinc-950/[0.07] dark:border-white/[0.08]\">\n        <div className=\"mx-auto flex h-16 max-w-6xl items-center justify-between gap-6 px-6\">\n          <a\n            href={BRAND.href}\n            className=\"flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-tight focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) dark:focus-visible:outline-(--accent-dark)\"\n          >\n            <LathMark className=\"size-6\" />\n            {BRAND.name}\n          </a>\n          <nav aria-label=\"Main\" className=\"hidden items-center gap-8 text-sm text-zinc-600 md:flex dark:text-zinc-400\">\n            {NAV_LINKS.map((link) => (\n              <a\n                key={link.label}\n                href={link.href}\n                className=\"rounded-sm transition-colors duration-150 hover:text-zinc-950 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) dark:hover:text-white dark:focus-visible:outline-(--accent-dark)\"\n              >\n                {link.label}\n              </a>\n            ))}\n          </nav>\n          <a\n            href={NAV_CTA.href}\n            className=\"flex h-9 items-center rounded-full bg-zinc-950 px-4 text-[13px] font-semibold text-white transition-colors duration-150 hover:bg-zinc-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus-visible:outline-(--accent-dark)\"\n          >\n            {NAV_CTA.label}\n          </a>\n        </div>\n      </header>\n\n      <div className=\"mx-auto grid max-w-6xl grid-cols-1 items-center gap-6 px-6 pt-12 pb-14 sm:pt-16 lg:grid-cols-[minmax(0,26rem)_minmax(0,1fr)] lg:gap-10 lg:pt-10 lg:pb-12\">\n        <div>\n          <p className=\"text-[13px] font-medium text-zinc-500 dark:text-zinc-400\">{EYEBROW}</p>\n          <h1 className=\"mt-4 text-balance text-[2.5rem] leading-[1.04] font-semibold tracking-[-0.04em] sm:text-[3.25rem] lg:text-[3.5rem]\">\n            {HEADLINE}\n          </h1>\n          <p className=\"mt-5 max-w-md text-pretty text-base leading-relaxed text-zinc-600 dark:text-zinc-400\">{SUBLINE}</p>\n          <div className=\"mt-8 flex flex-wrap items-center gap-3\">\n            <a\n              href={PRIMARY_CTA.href}\n              className=\"inline-flex h-11 items-center gap-2 rounded-full bg-(--accent) px-5 text-sm font-semibold text-zinc-950 transition-[transform,filter] duration-150 hover:brightness-110 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) active:scale-[0.97] dark:bg-(--accent-dark) dark:text-zinc-950 dark:focus-visible:outline-(--accent-dark)\"\n            >\n              {PRIMARY_CTA.label}\n              <Arrow className=\"size-4\" />\n            </a>\n            <a\n              href={SECONDARY_CTA.href}\n              className=\"inline-flex h-11 items-center rounded-full border border-zinc-950/10 px-5 text-sm font-semibold transition-colors duration-150 hover:border-zinc-950/25 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) dark:border-white/15 dark:hover:border-white/30 dark:focus-visible:outline-(--accent-dark)\"\n            >\n              {SECONDARY_CTA.label}\n            </a>\n          </div>\n          <div className=\"mt-10 hidden border-t border-zinc-950/[0.07] pt-5 lg:block dark:border-white/[0.08]\">\n            <p className=\"text-xs text-zinc-500 dark:text-zinc-400\">\n              {NOW_SHOWING}{\" \"}\n              <span className=\"font-medium text-(--accent-text) tabular-nums dark:text-(--accent-dark)\">\n                {pad(index + 1)}/{pad(PROJECTS.length)}\n              </span>\n            </p>\n            <p className=\"mt-1.5 text-sm font-semibold tracking-[-0.01em]\">\n              {project.name} <span className=\"font-normal text-zinc-500 dark:text-zinc-400\">· {project.place}, {project.year}</span>\n            </p>\n          </div>\n        </div>\n\n        <Nautilus\n          items={PROJECTS}\n          index={index}\n          onIndexChange={(i) => setIndex(i)}\n          label=\"Lath projects\"\n          className=\"-mx-6 h-[22rem] w-auto sm:h-[28rem] lg:mx-0 lg:h-[clamp(26rem,calc(100svh-11rem),36rem)] lg:w-full lg:[--nautilus-align:end]\"\n        />\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}