digraph distributed_hub {
  bgcolor="#1a1a2e"
  rankdir=TB
  node [fontname="Helvetica" fontsize=10 style=filled shape=box]
  edge [color="#888888" fontname="Helvetica" fontsize=9 fontcolor="#aaaaaa"]

  label=<<B><FONT COLOR="#cccccc" POINT-SIZE="14">distributed hub replication model</FONT></B>>
  labelloc=t

  subgraph cluster_model {
    label="LOCAL FIBER, STANDARDIZED PROCESS, LOCAL PRODUCTS" fontcolor="#cccccc" fontsize=11 fontname="Helvetica Bold"
    color="#555555" style=dashed

    subgraph cluster_local_in {
      label="LOCAL INPUTS" fontcolor="#4CAF50" fontsize=10 fontname="Helvetica Bold"
      color="#4CAF50" style=dashed

      farm1 [label="local hemp farm" fillcolor="#2E7D32" fontcolor="white"]
      farm2 [label="nettle foraging\ncommunity land" fillcolor="#388E3C" fontcolor="white"]
      farm3 [label="sawmill refuse\nlocal timber" fillcolor="#4E342E" fontcolor="white"]
    }

    subgraph cluster_standard {
      label="STANDARDIZED PROCESSING" fontcolor="#2196F3" fontsize=10 fontname="Helvetica Bold"
      color="#2196F3" style=dashed

      process [label="7-station factory\nstandard equipment\nstandard recipes\nstandard quality checks" fillcolor="#1565C0" fontcolor="white"]
    }

    subgraph cluster_local_out {
      label="LOCAL PRODUCTS" fontcolor="#FF9800" fontsize=10 fontname="Helvetica Bold"
      color="#FF9800" style=dashed

      market [label="local farm market\ndirect to consumer" fillcolor="#E65100" fontcolor="white"]
      coop [label="food co-ops\nzero waste shops" fillcolor="#F57C00" fontcolor="white"]
      school [label="schools &amp; community\neducation programs" fillcolor="#FF9800" fontcolor="white"]
    }
  }

  farm1 -> process
  farm2 -> process
  farm3 -> process
  process -> market
  process -> coop
  process -> school

  subgraph cluster_hubs {
    label="HUB NETWORK" fontcolor="#8E24AA" fontsize=11 fontname="Helvetica Bold"
    color="#8E24AA" style=dashed

    hub1 [label="Hub A\nrural village\nhemp focus" fillcolor="#6A1B9A" fontcolor="white"]
    hub2 [label="Hub B\ncoastal town\nnettle focus" fillcolor="#7B1FA2" fontcolor="white"]
    hub3 [label="Hub C\nforest region\nwood refuse focus" fillcolor="#8E24AA" fontcolor="white"]
    hub4 [label="Hub D\nyour community\n?" fillcolor="#9C27B0" fontcolor="white"]
  }

  hub1 -> hub2 -> hub3 -> hub4 [style=dashed color="#8E24AA" label="shared\nknowledge"]

  replicate [label="each hub adapts\nfiber sources to local ecology\nproducts to local demand\npricing to local economy" fillcolor="#263238" fontcolor="#CDDC39" shape=note fontsize=9]
}
