Cubic Logics