The AI revolution mirrors the green transition