Ewan Brown's victim suffered "life-changing" consequences, the High Court in Edinburgh was told.