digraph thermal_recovery {
    bgcolor="transparent"
    rankdir=LR
    pad=0.5
    nodesep=0.8
    ranksep=1.0

    node [
        fontname="Helvetica"
        fontsize=12
        style="filled"
        penwidth=2
        shape=box
        width=2.0
        height=0.9
    ]

    edge [
        fontname="Helvetica"
        fontsize=10
        penwidth=3
    ]

    label="THERMAL RECOVERY\nburn the sin, fully combust the gases"
    labelloc=t
    fontname="Helvetica"
    fontsize=16
    fontcolor="#E65100"

    waste_plastic [
        label="NON-RECYCLABLE\nPLASTIC\n\ndegraded · contaminated\nmixed · single-use"
        fillcolor="#F44336"
        fontcolor="white"
        color="#B71C1C"
    ]

    combustion [
        label="PRIMARY\nCOMBUSTION\n\nhigh temperature\ncontrolled burn"
        fillcolor="#FF9800"
        fontcolor="white"
        color="#E65100"
        shape=diamond
        width=2.2
        height=1.4
    ]

    secondary [
        label="SECONDARY\nCOMBUSTION\n\nfully burn sin gases\ndioxins · furans\nfluorine · chlorine"
        fillcolor="#FF5722"
        fontcolor="white"
        color="#BF360C"
        shape=diamond
        width=2.2
        height=1.4
    ]

    // Outputs
    heat [
        label="THERMAL\nENERGY\n\nheating · electricity\ngreenhouse · workshop"
        fillcolor="#4CAF50"
        fontcolor="white"
        color="#2E7D32"
    ]

    ash [
        label="INERT ASH\n\nmineral content\nreturns to earth\ncycle closes"
        fillcolor="#795548"
        fontcolor="white"
        color="#4E342E"
    ]

    clean_exhaust [
        label="CLEAN\nEXHAUST\n\nCO2 + H2O\nmonitored\nfiltered"
        fillcolor="#90A4AE"
        fontcolor="white"
        color="#546E7A"
    ]

    waste_plastic -> combustion [
        label="petroleum energy\nlocked inside"
        color="#FF9800"
        fontcolor="#E65100"
    ]

    combustion -> secondary [
        label="sin gases\nmust not escape"
        color="#FF5722"
        fontcolor="#BF360C"
    ]

    combustion -> heat [
        label="capture\nheat"
        color="#4CAF50"
        fontcolor="#2E7D32"
    ]

    secondary -> clean_exhaust [
        label="fully\ncombust"
        color="#4CAF50"
        fontcolor="#2E7D32"
    ]

    secondary -> ash [
        label="mineral\nresidue"
        color="#795548"
        fontcolor="#4E342E"
    ]

    // vs just dumping
    dump [
        label="ALTERNATIVE:\ndo nothing\n\nlandfill 1000 years\nmicroplastics forever\npoison groundwater"
        fillcolor="#B71C1C"
        fontcolor="white"
        color="#7f0000"
        style="filled,dashed"
    ]

    waste_plastic -> dump [
        label="the current\n'plan'"
        color="#B71C1C"
        fontcolor="#7f0000"
        style=dashed
        penwidth=1.5
    ]
}
