magento2 – Help! Upgrading to 2.4.2p1 and contents of bin gone, site gone

I had 2.4.2 working fine and decided to update to 2.4.2.p1.

$ php composer.phar require magento/product-community-edition=2.4.2-p1 --no-update
Magento Open Source 2.4.2-p1 is trying to change the existing order of the required section.
Local order:
Magento Open Source 2.4.2-p1 order:
   ) but it will not be changed. Re-run using --use-default-magento-values or --interactive-magento-conflicts to override with the Magento order.
Updating composer.json for Magento Open Source 2.4.2-p1 ...
./composer.json has been updated

Then I thought I should do backups so did backups for –code and –DB

Then I ran $ PHP composer.phar update and it ran through a load of removing and upgrading and installing all the modules and extensions we have. All seemed fine except one patch from one extension (not sure it’s important but putting it here for sake of completeness)

Gathering patches for root package.
Removing package firebear/import-export so that it can be re-installed and re-patched.
  - Removing firebear/importexport (3.6.0-alpha.1)
Loading composer repositorIn LaminasDependencyPluginDependencyRewriterV2::onPrePoolCreate
Updating dependencies
Lock file operations: 3 installs, 83 updates, 2 removals
  - Removing xtento/customattributes (1.7.4)
Removing Xtento/Orderexport
Removing Xtento/Customattributes
  - Applying patches for firebear/importexport
    SUPPORT-10090.patch (SUPPORT-10090)
   Could not apply the patch! Skipping. The error was: Cannot apply patch SUPPORT-10090.patch

  Cannot apply patch SUPPORT-10090 (SUPPORT-10090.patch)!

update (--with WITH) (--prefer-source) (--prefer-dist) (--dry-run) (--dev) (--no-dev) (--lock) (--no-install) (--no-autoloader) (--no-scripts) (--no-suggest) (--no-progress) (-w|--with-dependencies) (-W|--with-all-dependencies) (-v|vv|vvv|--verbose) (-o|--optimize-autoloader) (-a|--classmap-authoritative) (--apcu-autoloader) (--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX) (--ignore-platform-req IGNORE-PLATFORM-REQ) (--ignore-platform-reqs) (--prefer-stable) (--prefer-lowest) (-i|--interactive) (--root-reqs) (--) (<packages>)...

Then I ran

 rm -rf var/cache/*
$ rm -rf var/page_cache/*
$ rm -rf generated/code/*
$ php bin/magento setup:upgrade

And got

Could not open input file: bin/magento

And the whole site is gone from the front end 404 Not found. Nothing in the bin/ folder. I can’t even restore the backups because that uses bin/magento too.

I went back to composer.json and changed the order of those lines from the very beginning, in case that was an issue, and ran the update again, and it didn’t make any difference. What can I do at this stage?