So how can we detect 3rd intermediate value using only standard CMOS integrated circuits? There is one trick - if we take 2-input NOR gate and 2-input NAND gate with connected inputs then they will NOT work as regular CMOS inverters! They will have "shifted" thresholds (important detail - it has to be "unbuffered" CMOS ICs as CD4001UBE and CD4011UBE):

Those measurements were taken from actual CD4001UBE and CD4011UBE chips connected to +5V:

So we have this truth table (let's call intermediate value O):

InputNOR gate (CD4001UBE)
NAND gate (CD4011UBE)
0V (N)
P
P
+2.5V (O)
N
P
+5V (P)
N
N

After that we may use CMOS 4:1 selector CD4052BE to choose from 3 pre-defined ternary values (1 value will never appear so we can simply repeat intermediate value twice to get all 4) to implement some specific ternary functions (like NOOP will implement ternary inverter and POON will implement ternary buffer):

Using only these 3 kinds of CMOS ICs we may build more complex ternary circuits including actual ternary computer :)

https://www.digikey.com/en/products/detail/texas-instruments/CD4001UBE/525852

https://www.digikey.com/en/products/detail/texas-instruments/CD4011UBE/525867

https://www.digikey.com/en/products/detail/texas-instruments/CD4052BE/67307

And it should be multiple times cheaper than building ternary computer on expensive switches DG403 :)

BTW this approach could be directly translated to actual IC manufacturing with standard CMOS tech process...