{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"scanner-light-bar-sweep-text-reveal","type":"registry:block","title":"Scanner Light Bar Sweep","description":"","dependencies":[],"files":[{"path":"components/we-inc/scanner-light-bar-sweep-text-reveal.tsx","type":"registry:component","content":"import { useEffect, useRef, useState } from \"react\";\n\nconst HEADLINE = \"Every page, read once and kept for good.\";\n\nexport default function ScannerLightBarSweepTextReveal() {\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=\"slb-root px-5 py-20 sm:px-10 sm:py-24\">\n      <style>{`\n        .slb-root { background: radial-gradient(90% 80% at 50% 0%, #23282c 0%, #16191c 60%, #111315 100%); color: #e7ece9; }\n        .slb-plate { position: relative; display: grid; padding: 28px 22px; border-radius: 14px;\n          background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }\n        .slb-plate > * { grid-area: 1 / 1; }\n        .slb-h { font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif; font-weight: 650;\n          font-size: clamp(2rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; margin: 0; }\n        .slb-ghost { color: transparent; -webkit-text-stroke: 1px rgba(159,227,208,.16); }\n        .slb-lit { animation: slb-clip 7s cubic-bezier(.45,.05,.35,1) infinite both; }\n        @keyframes slb-clip {\n          0% { clip-path: inset(0 0 100% 0); opacity: 1 } 22% { clip-path: inset(0 0 0 0); opacity: 1 }\n          88% { clip-path: inset(0 0 0 0); opacity: 1 } 97%, 100% { clip-path: inset(0 0 0 0); opacity: 0 } }\n        .slb-track { position: relative; pointer-events: none; animation: slb-move 7s cubic-bezier(.45,.05,.35,1) infinite both; }\n        .slb-bar { position: absolute; left: -22px; right: -22px; top: -1px; height: 2px; background: #c9f5e8;\n          box-shadow: 0 0 6px 1px rgba(159,227,208,.9), 0 0 28px 6px rgba(159,227,208,.35); }\n        .slb-bar::before { content: \"\"; position: absolute; left: 0; right: 0; bottom: 2px; height: 70px;\n          background: linear-gradient(0deg, rgba(159,227,208,.16), transparent); }\n        @keyframes slb-move {\n          0% { transform: translateY(0); opacity: 0 } 3% { opacity: 1 } 22% { transform: translateY(100%); opacity: 1 }\n          27%, 100% { transform: translateY(100%); opacity: 0 } }\n        .slb-root[data-paused] .slb-lit, .slb-root[data-paused] .slb-track { animation-play-state: paused; }\n        @media (prefers-reduced-motion: reduce) { .slb-lit { animation: none; } .slb-track { display: none; } }\n      `}</style>\n      <div className=\"mx-auto max-w-4xl\">\n        <p className=\"font-mono text-xs uppercase tracking-[0.25em] text-[#9fe3d0]\">Northlight Archiving</p>\n        <h1 className=\"slb-h mt-6\">\n          <span className=\"sr-only\">{HEADLINE}</span>\n          <span className=\"slb-plate\" aria-hidden=\"true\">\n            <span className=\"slb-ghost\">{HEADLINE}</span>\n            <span className=\"slb-lit\">{HEADLINE}</span>\n            <span className=\"slb-track\"><span className=\"slb-bar\" /></span>\n          </span>\n        </h1>\n        <p className=\"mt-7 max-w-xl text-base leading-relaxed text-[#b4bdb9] sm:text-lg\">\n          Deeds, letters and ledgers digitised on site, indexed by hand, and returned to you the same week.\n        </p>\n        <a href=\"#\" className=\"mt-8 inline-flex min-h-[44px] items-center rounded-md bg-[#9fe3d0] px-6 text-sm font-semibold text-[#0f1513] transition hover:bg-[#c9f5e8] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#9fe3d0] focus-visible:ring-offset-2 focus-visible:ring-offset-[#16191c]\">\n          Arrange a collection\n        </a>\n      </div>\n    </section>\n  );\n}\n"}]}
