{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"hairline-rule-line-rise-text-reveal","type":"registry:block","title":"Hairline Rule Line Rise","description":"","dependencies":[],"files":[{"path":"components/we-inc/hairline-rule-line-rise-text-reveal.tsx","type":"registry:component","content":"import { useEffect, useRef, useState, type CSSProperties } from \"react\";\n\nconst LINES = [\"We draw buildings\", \"that settle quietly\", \"into their streets.\"];\n\nexport default function HairlineRuleLineRiseTextReveal() {\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  return (\n    <section ref={rootRef} data-paused={paused || undefined} className=\"hlu-root px-5 py-20 sm:px-10 sm:py-24\">\n      <style>{`\n        .hlu-root { background: #ffffff; color: #0f172a; }\n        .hlu-h { font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif; font-weight: 500;\n          font-size: clamp(2.1rem, 6.6vw, 4.9rem); line-height: 1.08; letter-spacing: -.04em; margin: 0; }\n        .hlu-line { position: relative; display: block; overflow: hidden; padding: .04em 0 .1em; }\n        .hlu-line::after { content: \"\"; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #94a3b8;\n          transform-origin: 0 50%; animation: hlu-rule 8s cubic-bezier(.65,0,.25,1) infinite both; animation-delay: calc(var(--i) * 160ms); }\n        .hlu-text { display: block; animation: hlu-rise 8s cubic-bezier(.2,.75,.25,1) infinite both; animation-delay: calc(var(--i) * 160ms); }\n        @keyframes hlu-rule { 0% { transform: scaleX(0) } 7%, 90% { transform: scaleX(1) } 98%, 100% { transform: scaleX(0); transform-origin: 100% 50% } }\n        @keyframes hlu-rise { 0%, 5% { transform: translateY(105%) } 15%, 86% { transform: none } 93%, 100% { transform: translateY(105%) } }\n        .hlu-root[data-paused] .hlu-text, .hlu-root[data-paused] .hlu-line::after { animation-play-state: paused; }\n        @media (prefers-reduced-motion: reduce) { .hlu-text, .hlu-line::after { animation: none; } }\n      `}</style>\n      <div className=\"mx-auto grid max-w-5xl gap-10 lg:grid-cols-[1fr_260px] lg:items-end\">\n        <div>\n          <p className=\"text-xs font-semibold uppercase tracking-[0.22em] text-slate-600\">Nordquist Architects</p>\n          <h1 className=\"hlu-h mt-6\">\n            {LINES.map((line, i) => (\n              <span key={line} className=\"hlu-line\" style={{ \"--i\": i } as CSSProperties}>\n                <span className=\"hlu-text\">{line}</span>\n              </span>\n            ))}\n          </h1>\n        </div>\n        <div>\n          <p className=\"text-base leading-relaxed text-slate-600\">\n            Houses, libraries and small civic halls in timber and brick, designed to sit well beside what was there first.\n          </p>\n          <a href=\"#\" className=\"mt-6 inline-flex min-h-[44px] items-center gap-2 border-b border-slate-900 text-sm font-semibold text-slate-900 transition hover:border-slate-500 hover:text-slate-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900 focus-visible:ring-offset-4\">\n            View selected work\n          </a>\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}
