{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "intro-wordmark",
  "title": "Intro Wordmark",
  "description": "A story's name as the page loads: it fades in mid-screen, then moves up to the top centre, difference-blended over the pictures. Hides on wide screens once the reader scrolls away. No dependencies.",
  "files": [
    {
      "path": "registry/mewo/ui/intro-wordmark.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport type IntroWordmarkStage = \"hidden\" | \"center\" | \"top\"\n\nexport interface IntroWordmarkProps extends React.ComponentProps<\"p\"> {\n  /** \"hidden\" before the intro, \"center\" while the page loads (mid-screen), \"top\" once it has moved up. */\n  stage?: IntroWordmarkStage\n  /** At the very top of the page. Scrolled away, it hides on wide screens (a CornerWordmark takes over), while\n   * phones keep it. */\n  atTop?: boolean\n}\n\n/**\n * A story's name as the page loads: it fades in mid-screen, then moves up to the top centre. White and\n * difference-blended, so it reads over light and dark pictures alike; give it no positioned wrapper, or it blends\n * with nothing. Hidden from screen readers: the page's own heading names the story.\n */\nexport function IntroWordmark({ stage = \"top\", atTop = true, className, children = \"Atlas\", ...props }: IntroWordmarkProps) {\n  const shown = stage !== \"hidden\" && atTop\n  return (\n    <p\n      aria-hidden=\"true\"\n      data-slot=\"intro-wordmark\"\n      data-stage={stage}\n      className={cn(\"[--story-u:min(2.6667cqw,12px)] min-[901px]:[--story-u:0.625cqw] min-[901px]:@max-[900px]:[--story-u:min(2.6667cqw,12px)] text-[length:var(--story-u)]\", \n        \"pointer-events-none fixed left-1/2 z-[100] -translate-x-1/2 font-heading text-[length:calc(var(--story-u)*4.3)] leading-none tracking-[-0.02em] whitespace-nowrap text-white mix-blend-difference max-[900px]:text-[length:calc(var(--story-u)*2)] motion-reduce:transition-none\",\n        stage !== \"top\"\n          ? \"top-[calc(50%-calc(var(--story-u)*2))] [transition:opacity_0.6s_ease] max-[900px]:top-[calc(50%-calc(var(--story-u)*1.2))]\"\n          : shown\n            ? \"top-[5cqh] [transition:opacity_0.2s_ease,top_0.6s_cubic-bezier(0.455,0.03,0.515,0.955),visibility_0s] max-[900px]:top-[calc(var(--story-u)*2.6)]\"\n            : \"top-[5cqh] [transition:opacity_0.2s_ease,top_0.6s_cubic-bezier(0.455,0.03,0.515,0.955),visibility_0s_linear_0.2s] max-[900px]:top-[calc(var(--story-u)*2.6)]\",\n        shown ? \"visible opacity-100\" : \"invisible opacity-0\",\n        stage !== \"hidden\" && \"max-[900px]:visible max-[900px]:opacity-100\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n    </p>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "added": "2026-10-27",
    "unlisted": true
  },
  "categories": [
    "text",
    "header"
  ],
  "type": "registry:ui"
}