/* Folclore — Article library manifest.
   Drop PDFs in dataroom/11-article-library/ and add an entry here.
   verticals: optional array of category slugs from the origination brief. */

const ARTICLES_BASE = "dataroom/11-article-library";

const ARTICLE_CATEGORIES = ["Luxury", "Fashion", "Markets", "Venture", "Industry"];

const ARTICLES_MANIFEST = [
  {
    id: "wsj-hermes",
    title: "The Secrets to Hermès' Reign as One of the World's Most Valuable Companies",
    source: "Wall Street Journal",
    date: "Oct 2025",
    category: "Luxury",
    tags: ["Hermès", "Brand", "Valuation"],
    verticals: ["index"],
    file: "wsj-hermes-secrets.pdf",
    status: "ready",
    excerpt: "How artisan scarcity, family control, and refusal to compromise on craft built the world's most valuable luxury house.",
  },
  {
    id: "future-luxury-2030",
    title: "The Future of Luxury 2030: New Markets, New Clients, New Rules",
    source: "Bain & Company",
    date: "2024",
    category: "Industry",
    tags: ["Luxury", "Forecast", "Emerging Markets"],
    verticals: ["index"],
    file: "future-of-luxury-2030.pdf",
    status: "ready",
    excerpt: "Structural shifts in luxury consumption — personalisation, China slowdown, and the rise of experiential spend.",
  },
  {
    id: "bain-fortune",
    title: "Bain Luxury Report: Personal Goods Market Shrank Last Year",
    source: "FORTUNE",
    date: "Jul 2025",
    category: "Industry",
    tags: ["Bain", "Market Size", "Luxury"],
    verticals: ["index"],
    file: "fortune-bain-luxury-report.pdf",
    status: "ready",
    excerpt: "First contraction in personal luxury goods since 2009 — implications for brand positioning and geographic mix.",
  },
  {
    id: "bloomberg-chanel",
    title: "Chanel Owners Lean on 38-Year-Old to Protect Their Billions",
    source: "Bloomberg",
    date: "Sep 2025",
    category: "Luxury",
    tags: ["Chanel", "Succession", "Family Office"],
    verticals: ["index", "fashion"],
    file: "bloomberg-chanel-owners.pdf",
    status: "ready",
    excerpt: "Next-generation stewardship at one of fashion's most private dynasties.",
  },
  {
    id: "economist-labubu",
    title: "It's Not Just Labubu Dolls — Chinese Brands Are Booming",
    source: "The Economist",
    date: "Jul 2025",
    category: "Markets",
    tags: ["China", "Consumer", "IP"],
    verticals: ["index"],
    file: "economist-chinese-brands-labubu.pdf",
    status: "ready",
    excerpt: "New Chinese consumer brands leveraging social commerce and cultural IP at global scale.",
  },
  {
    id: "cnbc-millionaires",
    title: "The US Added a Thousand New Millionaires a Day in 2024",
    source: "CNBC",
    date: "Jul 2025",
    category: "Markets",
    tags: ["Wealth", "US", "HNWI"],
    verticals: ["index"],
    file: "cnbc-us-millionaires-2024.pdf",
    status: "ready",
    excerpt: "Wealth creation dynamics and the expanding addressable market for luxury and alternative assets.",
  },
  {
    id: "bbc-ralph-lauren",
    title: "Ralph Lauren Apologises After Mexico Indigenous 'Plagiarism' Claim",
    source: "BBC",
    date: "Aug 2025",
    category: "Fashion",
    tags: ["Provenance", "Mexico", "Cultural Heritage"],
    verticals: ["fashion"],
    file: "bbc-ralph-lauren-mexico-indigenous.pdf",
    status: "ready",
    excerpt: "Cultural appropriation risk in luxury — why provenance and community partnership matter.",
  },
  {
    id: "bbc-chavarria",
    title: "Willy Chavarria Sorry After Adidas Shoe Cultural Appropriation Row",
    source: "BBC",
    date: "Aug 2025",
    category: "Fashion",
    tags: ["Collaboration", "Adidas", "LatAm Design"],
    verticals: ["fashion"],
    file: "bbc-willy-chavarria-adidas.pdf",
    status: "ready",
    excerpt: "Designer-led collaborations and the fine line between homage and appropriation.",
  },
  {
    id: "barneys-pressman",
    title: "What Made Barneys So Special — Reflecting on Gene Pressman's New Book",
    source: "Retail Industry",
    date: "Oct 2025",
    category: "Luxury",
    tags: ["Retail", "Experience", "Heritage"],
    verticals: ["fashion", "index"],
    file: "barneys-gene-pressman.pdf",
    status: "ready",
    excerpt: "The art of curating desire — lessons from luxury retail's golden era.",
  },
  {
    id: "a16z-decks",
    title: "What Andreessen Horowitz's Leaked Decks Mean for Venture Capital",
    source: "Fast Company",
    date: "Oct 2025",
    category: "Venture",
    tags: ["VC", "Fundraising", "Strategy"],
    verticals: [],
    file: "fastcompany-a16z-decks.pdf",
    status: "ready",
    excerpt: "How top-tier funds articulate market thesis, portfolio construction, and LP narrative.",
  },
  /* Placeholder slots — add PDF then set status: "ready" */
  {
    id: "placeholder-1",
    title: "[Add article title]",
    source: "Publication",
    date: "TBD",
    category: "Industry",
    tags: ["Placeholder"],
    verticals: [],
    file: "_placeholder-01.pdf",
    status: "placeholder",
    excerpt: "Drop PDF in dataroom/11-article-library/ and update articles-manifest.jsx.",
  },
  {
    id: "placeholder-2",
    title: "[Add article title]",
    source: "Publication",
    date: "TBD",
    category: "Luxury",
    tags: ["Placeholder"],
    verticals: [],
    file: "_placeholder-02.pdf",
    status: "placeholder",
    excerpt: "Drop PDF in dataroom/11-article-library/ and update articles-manifest.jsx.",
  },
];

function getArticles() {
  return ARTICLES_MANIFEST.map((a) => ({
    ...a,
    verticals: a.verticals || [],
    path: ARTICLES_BASE + "/" + a.file,
  }));
}

function getArticlesForVertical(slug) {
  return getArticles().filter((a) => a.status === "ready" && (a.verticals || []).includes(slug));
}

Object.assign(window, {
  ARTICLES_MANIFEST,
  ARTICLE_CATEGORIES,
  ARTICLES_BASE,
  getArticles,
  getArticlesForVertical,
});
