{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"dawn-blur-fade-word-by-word-reveal","type":"registry:block","title":"Dawn Blur Fade Word by Word","description":"","dependencies":[],"files":[{"path":"components/we-inc/dawn-blur-fade-word-by-word-reveal.tsx","type":"registry:component","content":"import { useEffect, useRef, useState, type CSSProperties } from \"react\";\n\nconst HEADLINE = \"Arrive before the light does, and leave a little lighter.\";\nconst SUBLINE = \"Sunrise sessions on the east dock, six mornings a week.\";\n\nexport default function DawnBlurFadeWordByWordReveal() {\n  const rootRef = useRef<HTMLElement>(null);\n  const [paused, setPaused] = useState(false);\n\n  useEffect(() => {\n    const el = rootRef.current;\n    if (!el) return;\n    const io = new IntersectionObserver(([e]) => setPaused(!e.isIntersecting));\n    io.observe(el);\n    return () => io.disconnect();\n  }, []);\n\n  const words = HEADLINE.split(\" \");\n\n  return (\n    <section ref={rootRef} data-paused={paused || undefined} className=\"bfw-root relative overflow-hidden px-5 py-24 text-center sm:px-10 sm:py-28\">\n      <style>{`\n        .bfw-root { color: #1d2433; background:\n          radial-gradient(60% 55% at 50% 108%, rgba(255,196,150,.85), transparent 70%),\n          radial-gradient(80% 60% at 15% 0%, rgba(201,214,232,.9), transparent 70%),\n          linear-gradient(180deg, #dfe5ee 0%, #f1e2d6 62%, #f6d7c0 100%); }\n        .bfw-h { font-family: Georgia, \"Iowan Old Style\", \"Times New Roman\", serif; font-weight: 400;\n          font-size: clamp(2rem, 5.6vw, 4.1rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 auto; max-width: 15em; }\n        .bfw-w { display: inline-block; white-space: pre; will-change: filter, opacity, transform;\n          animation: bfw-in 9s cubic-bezier(.22,.8,.3,1) infinite both; animation-delay: calc(var(--i) * 85ms); }\n        @keyframes bfw-in {\n          0% { opacity: 0; filter: blur(14px); transform: translateY(.28em) }\n          11%, 86% { opacity: 1; filter: blur(0); transform: none }\n          95%, 100% { opacity: 0; filter: blur(10px); transform: translateY(-.12em) } }\n        .bfw-sub { animation: bfw-in 9s cubic-bezier(.22,.8,.3,1) infinite both; animation-delay: 900ms; }\n        .bfw-root[data-paused] .bfw-w, .bfw-root[data-paused] .bfw-sub { animation-play-state: paused; }\n        @media (prefers-reduced-motion: reduce) { .bfw-w, .bfw-sub { animation: none; } }\n      `}</style>\n      <div className=\"relative mx-auto max-w-4xl\">\n        <p className=\"text-sm font-semibold uppercase tracking-[0.24em] text-[#7a4a33]\">Low Tide Yoga</p>\n        <h1 className=\"bfw-h mt-6\">\n          <span className=\"sr-only\">{HEADLINE}</span>\n          <span aria-hidden=\"true\">\n            {words.map((w, i) => (\n              <span key={i} className=\"bfw-w\" style={{ \"--i\": i } as CSSProperties}>\n                {i < words.length - 1 ? `${w} ` : w}\n              </span>\n            ))}\n          </span>\n        </h1>\n        <p className=\"bfw-sub mx-auto mt-6 max-w-lg text-base leading-relaxed text-[#444b5a] sm:text-lg\">{SUBLINE}</p>\n        <a href=\"#\" className=\"mt-9 inline-flex min-h-[44px] items-center rounded-full bg-[#1d2433] px-7 text-sm font-semibold text-[#f6efe8] transition hover:bg-[#2c364b] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1d2433] focus-visible:ring-offset-2 focus-visible:ring-offset-[#f1e2d6]\">\n          Book a first morning\n        </a>\n      </div>\n    </section>\n  );\n}\n"}]}
