{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"pottery-footer-scattered-letters-gather-into-wordmark","type":"registry:block","title":"Pottery Footer With Gathering Wordmark","description":"","dependencies":[],"files":[{"path":"components/we-inc/pottery-footer-scattered-letters-gather-into-wordmark.tsx","type":"registry:component","content":"import { useEffect, useRef } from \"react\";\nimport type { CSSProperties } from \"react\";\n\nconst THRESHOLD = 0.2; // share of the wordmark that must be visible before the letters gather\n\n// Same markup, styles and script as the plain HTML version.\nconst STYLES = `\n/* Change these: background, text, muted text, rule colour, accent (links' focus ring and highlights). */\n  .w4spr { --w4spr-bg: #e9ddcb; --w4spr-ink: #3a2c21; --w4spr-muted: #5d4c3d; --w4spr-line: #cdbca5; --w4spr-accent: #8a4826; }\n  .w4spr { position: relative; overflow: hidden; background: var(--w4spr-bg); color: var(--w4spr-ink); font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif; padding: 72px clamp(20px, 4vw, 56px) 24px; }\n  .w4spr *, .w4spr *::before, .w4spr *::after { box-sizing: border-box; }\n  .w4spr-in { max-width: 1240px; margin: 0 auto; }\n  .w4spr-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }\n  .w4spr-brand { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }\n  .w4spr-blurb { margin: 12px 0 0; max-width: 32ch; font-size: 15px; line-height: 1.6; color: var(--w4spr-muted); }\n  .w4spr-addr { margin: 16px 0 0; font-style: normal; font-size: 14px; line-height: 1.65; color: var(--w4spr-muted); }\n  .w4spr-col h2 { margin: 0 0 6px; font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--w4spr-muted); }\n  .w4spr-col ul, .w4spr-legal ul { list-style: none; margin: 0; padding: 0; }\n  .w4spr-col a, .w4spr-legal a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; text-decoration: none; font-size: 15px; border-radius: 3px; }\n  .w4spr-col a:hover, .w4spr-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }\n  .w4spr a:focus-visible { outline: 2px solid var(--w4spr-accent); outline-offset: 3px; }\n  .w4spr-big { container-type: inline-size; margin: 56px 0 0; }\n  .w4spr-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; margin-top: 24px; padding-top: 6px; border-top: 1px solid var(--w4spr-line); font-size: 13px; color: var(--w4spr-muted); }\n  .w4spr-legal p { margin: 10px 0; }\n  .w4spr-legal ul { display: flex; flex-wrap: wrap; gap: 0 20px; }\n  .w4spr-legal a { font-size: 13px; }\n  .w4spr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n  @media (max-width: 760px) {\n    .w4spr { padding-top: 56px; }\n    .w4spr-top { grid-template-columns: 1fr 1fr; gap: 24px 20px; }\n    .w4spr-lead { grid-column: 1 / -1; }\n  }\n  /* Change these: wordmark size, how far apart the letters start (em per letter from the centre), gathering speed. */\n  .w4spr { --w4spr-size: 15.6cqi; --w4spr-spread: .34em; --w4spr-speed: 1.3s; }\n  .w4spr-rule { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--w4spr-line); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--w4spr-muted); }\n  .w4spr-word { margin: 0; overflow: hidden; white-space: nowrap; text-align: center; font-family: \"Bodoni 72\", Didot, \"Bodoni MT\", \"Hoefler Text\", Georgia, serif; font-weight: 400; font-size: var(--w4spr-size); line-height: 1; letter-spacing: .015em; }\n  .w4spr-l { display: inline-block; transition: transform var(--w4spr-speed) cubic-bezier(.2, .75, .15, 1), opacity 1s ease; }\n  .w4spr-l:nth-child(4) { color: var(--w4spr-accent); }\n  .w4spr[data-arm]:not([data-in]) .w4spr-l { transform: translateX(calc((var(--i) - 3.5) * var(--w4spr-spread))); opacity: 0; }\n  @media (prefers-reduced-motion: reduce) { .w4spr-l { transition: none; transform: none !important; opacity: 1 !important; } }\n`;\n\nexport default function PotteryFooterScatteredLettersGather() {\n  const ref = useRef<HTMLElement>(null);\n  useEffect(() => {\n    const root: any = ref.current;\n    if (!root) return;\n    if (matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    var target = root.querySelector(\".w4spr-word\");\n    root.setAttribute(\"data-arm\", \"\");\n    var io = new IntersectionObserver(function (en) {\n      if (en[0].isIntersecting) root.setAttribute(\"data-in\", \"\");\n      else root.removeAttribute(\"data-in\");\n    }, { threshold: THRESHOLD });\n    io.observe(target);\n    return function () { io.disconnect(); };\n  }, []);\n\n  return (\n    <footer className=\"w4spr\" ref={ref}>\n      <style>{STYLES}</style>\n      <div className=\"w4spr-in\">\n        <div className=\"w4spr-top\">\n          <div className=\"w4spr-lead\">\n            <p className=\"w4spr-brand\">Kiln Row Pottery</p>\n            <p className=\"w4spr-blurb\">\n              Thrown stoneware for everyday tables, glazed in ash and iron, fired in our gas kiln each Friday.\n            </p>\n            <address className=\"w4spr-addr\">\n              5 Kiln Row, St Ives TR26 1PB\n              <br />\n              Shop open Wednesday to Saturday\n              <br />\n              01736 811 902\n            </address>\n          </div>\n          <div className=\"w4spr-col\">\n            <h2>Shop</h2>\n            <ul>\n              <li>\n                <a href=\"#\">Mugs and cups</a>\n              </li>\n              <li>\n                <a href=\"#\">Plates</a>\n              </li>\n              <li>\n                <a href=\"#\">Serving bowls</a>\n              </li>\n              <li>\n                <a href=\"#\">Seconds shelf</a>\n              </li>\n            </ul>\n          </div>\n          <div className=\"w4spr-col\">\n            <h2>Learn</h2>\n            <ul>\n              <li>\n                <a href=\"#\">Taster sessions</a>\n              </li>\n              <li>\n                <a href=\"#\">Six-week course</a>\n              </li>\n              <li>\n                <a href=\"#\">Studio membership</a>\n              </li>\n            </ul>\n          </div>\n          <div className=\"w4spr-col\">\n            <h2>Studio</h2>\n            <ul>\n              <li>\n                <a href=\"#\">Our clay</a>\n              </li>\n              <li>\n                <a href=\"#\">Commissions</a>\n              </li>\n              <li>\n                <a href=\"#\">Stockists</a>\n              </li>\n            </ul>\n          </div>\n        </div>\n        <div className=\"w4spr-big\">\n          <p className=\"w4spr-rule\">\n            <span>Est. on Kiln Row</span>\n            <span>Next firing Friday</span>\n          </p>\n          <p className=\"w4spr-word\" aria-hidden=\"true\">\n            {\"KILN ROW\".split(\"\").map((c, i) => (\n              <span key={i} className=\"w4spr-l\" style={{ \"--i\": i } as CSSProperties}>{c === \" \" ? \"\\u00a0\" : c}</span>\n            ))}\n          </p>\n        </div>\n        <div className=\"w4spr-legal\">\n          <p>\n            © 2026 Kiln Row Pottery. Each piece is made by hand and varies a little.\n          </p>\n          <ul>\n            <li>\n              <a href=\"#\">Privacy</a>\n            </li>\n            <li>\n              <a href=\"#\">Shipping</a>\n            </li>\n            <li>\n              <a href=\"#\">Care of glazes</a>\n            </li>\n          </ul>\n        </div>\n      </div>\n    </footer>\n  );\n}\n"}]}
