# Intelligence layer (adapted from portfolio_website)