Gold surpasses $4,089 as silver and palladium rise