contrary to expectations
Expresses that something happened contrary to what one expected or assumed.
This pattern literally means something like 'just when I thought...' and is used to highlight an unexpected turn of events. The speaker presents their initial expectation or assumption, then reveals that reality was different. It often carries a nuance of surprise or irony. It is primarily used in narrative or written contexts, such as novels, news articles, or formal speeches, and is less common in everyday conversation. In speech, it can sound somewhat literary or dramatic. Note that the form is fixed: かと思いきや, and the preceding clause is always in plain form, with nouns and na-adjectives taking だ.