Lovelace: hide/show entities based on state of other entities, within a card

Not quite. It’s very possible. You need 3 condition cards inside a vertical stack. Each condition is as follows:

condition1 condition2 card to display
input_boolean.1 on input_boolean.2 off input_number.1
input_boolean.1 off input_boolean.2 on input_number.2
input_boolean.1 on input_boolean.2 on input_number.1 and input_number.2

In fact, I use this already here

          - type: conditional
            conditions:
              - entity: switch.zone_1
                state: 'on'
              - entity: switch.zone_2
                state: 'on'
            card:
              type: entities
              entities:
                - entity: input_number.yamaha_receiver
                  name: Zone 1 Volume
                - entity: input_number.yamaha_receiver_zone_2
                  name: Zone 2 Volume
          - type: conditional
            conditions:
              - entity: switch.zone_1
                state: 'on'
              - entity: switch.zone_2
                state: 'off'
            card:
              type: entities
              entities:
                - entity: input_number.yamaha_receiver
                  name: Volume
          - type: conditional
            conditions:
              - entity: switch.zone_1
                state: 'off'
              - entity: switch.zone_2
                state: 'on'
            card:
              type: entities
              entities:
                - entity: input_number.yamaha_receiver_zone_2
                  name: Volume