Dune is restructuring around artificial intelligence and enterprise clients, shedding a quarter of its workforce in the process.