I’m a little confused.
You are updating the fields only on the home page. This is the only location where they can be used either to filter or display the values.
But you’re doing a query for pages based on a field that is not edited on the page.
If you want to do a query on an acf field then the field must exist on every page and edited for each page.