{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-07",
  "type": "registry:block",
  "description": "Dot-matrix world map with dashed arcs from headquarters to offices and a city headcount strip below.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/location/location-07.tsx",
      "content": "const hq = { city: \"Designali\", x: 270, y: 150 }\n\nconst offices = [\n  { city: \"Central America\", x: 225, y: 215, team: 18 },\n  { city: \"South America\", x: 340, y: 300, team: 26 },\n  { city: \"Europe\", x: 470, y: 125, team: 41 },\n  { city: \"Africa\", x: 510, y: 225, team: 12 },\n  { city: \"Middle East\", x: 640, y: 190, team: 9 },\n  { city: \"South Asia\", x: 705, y: 215, team: 55 },\n  { city: \"East Asia\", x: 885, y: 160, team: 22 },\n  { city: \"Oceania\", x: 905, y: 330, team: 14 },\n]\n\n// Very rough continent ellipses used to mask a dot grid.\nconst land = [\n  { cx: 230, cy: 140, rx: 110, ry: 70 },\n  { cx: 340, cy: 290, rx: 50, ry: 80 },\n  { cx: 520, cy: 130, rx: 70, ry: 45 },\n  { cx: 530, cy: 250, rx: 60, ry: 80 },\n  { cx: 720, cy: 150, rx: 170, ry: 70 },\n  { cx: 900, cy: 320, rx: 50, ry: 30 },\n]\n\nfunction isLand(x: number, y: number) {\n  return land.some(\n    (l) => ((x - l.cx) / l.rx) ** 2 + ((y - l.cy) / l.ry) ** 2 <= 1\n  )\n}\n\nconst dots: { x: number; y: number }[] = []\nfor (let x = 10; x < 1000; x += 14) {\n  for (let y = 40; y < 400; y += 14) {\n    if (isLand(x, y)) dots.push({ x, y })\n  }\n}\n\nfunction arc(x: number, y: number) {\n  const mx = (hq.x + x) / 2\n  const my = Math.min(hq.y, y) - Math.abs(x - hq.x) * 0.25 - 20\n  return `M${hq.x} ${hq.y} Q ${mx} ${my} ${x} ${y}`\n}\n\nexport default function Location07() {\n  const total = offices.reduce((sum, o) => sum + o.team, 0) + 120\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"mx-auto max-w-2xl text-center\">\n          <p className=\"text-xs font-medium tracking-widest text-muted-foreground uppercase\">\n            Remote by design\n          </p>\n          <h2 className=\"mt-3 text-4xl font-semibold tracking-tight md:text-5xl\">\n            One studio, clients worldwide\n          </h2>\n          <p className=\"mt-4 text-muted-foreground\">\n            Designali is a remote design and development studio with {total}+\n            projects shipped for clients around the world.\n          </p>\n        </div>\n\n        <div className=\"mt-12 border bg-muted/30\">\n          <svg viewBox=\"0 0 1000 420\" className=\"h-auto w-full\" role=\"img\" aria-label=\"World map of Designali client regions\">\n            <g className=\"fill-foreground/15\">\n              {dots.map((d) => (\n                <circle key={`${d.x}-${d.y}`} cx={d.x} cy={d.y} r=\"2.6\" />\n              ))}\n            </g>\n            <g fill=\"none\" className=\"stroke-primary/60\" strokeWidth=\"1.5\" strokeDasharray=\"4 4\">\n              {offices.map((o) => (\n                <path key={o.city} d={arc(o.x, o.y)} />\n              ))}\n            </g>\n            {offices.map((o) => (\n              <g key={o.city}>\n                <circle cx={o.x} cy={o.y} r=\"10\" className=\"fill-primary/15\" />\n                <circle cx={o.x} cy={o.y} r=\"4.5\" className=\"fill-primary\" />\n              </g>\n            ))}\n            <circle cx={hq.x} cy={hq.y} r=\"18\" className=\"fill-primary/20\" />\n            <circle cx={hq.x} cy={hq.y} r=\"7\" className=\"fill-primary stroke-background\" strokeWidth=\"2\" />\n          </svg>\n        </div>\n\n        <ul className=\"grid grid-cols-2 border-x border-b sm:grid-cols-3 lg:grid-cols-9\">\n          <li className=\"border-e border-b bg-primary p-4 text-primary-foreground lg:border-b-0\">\n            <p className=\"text-sm font-medium\">{hq.city}</p>\n            <p className=\"text-xs opacity-80\">Remote studio &middot; 120</p>\n          </li>\n          {offices.map((o) => (\n            <li key={o.city} className=\"border-e border-b p-4 lg:border-b-0 lg:last:border-e-0\">\n              <p className=\"text-sm font-medium\">{o.city}</p>\n              <p className=\"text-xs text-muted-foreground\">{o.team} projects</p>\n            </li>\n          ))}\n        </ul>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "820px"
  },
  "categories": [
    "location"
  ]
}