// ============================================================================
// MAISON CACHET — Data
// ============================================================================
// Curated catalog. Each product carries the structured-attribute richness that
// makes it visible to AI agents (the "discovery moat" thesis).

const RAILS = {
  vault: {
    id: "vault",
    short: "I",
    name: "The Vault",
    label: "Stocked & shipped from our New York atelier.",
    blurb: "Held in our temperature-controlled rooms in Long Island City. Inspected, authenticated, and dispatched within two business days.",
  },
  atelier: {
    id: "atelier",
    short: "II",
    name: "The Atelier",
    label: "Direct from the House.",
    blurb: "Couriered from the brand's own warehouses in Paris, Grasse, and Tokyo. Slightly longer transit; identical guarantee.",
  },
  lab: {
    id: "lab",
    short: "III",
    name: "The Lab",
    label: "Composed for one.",
    blurb: "Routines, blends, and bespoke editions assembled by our AI Curator and a panel of named experts. Made-to-order; not stocked.",
  },
};

const PRODUCTS = [
  {
    id: "ab-rich-cream",
    house: "Augustinus Bader",
    name: "The Rich Cream",
    line: "Skincare — Moisturizer",
    rail: "vault",
    price: 295,
    msrp: 340,
    size: "50 ml",
    accent: "#3B2F26",
    blurb: "Twenty-eight years of stem-cell research, suspended in a single jar. Worn on the cover of every dermatologist's bathroom shelf.",
    notes: ["TFC8®", "Squalane", "Argan kernel oil", "Vitamin E"],
    pH: "5.6",
    timeOfDay: "AM / PM",
    climate: ["dry", "cold", "altitude"],
    skin: ["dry", "mature", "compromised barrier"],
    inci: 38,
    structuredAttrs: 47,
    citations: 412,
    tags: ["Editor's Pick", "Pro Recommended"],
    founder: "Prof. Augustinus Bader",
    founderRole: "Stem cell biologist, University of Leipzig",
    origin: "Leipzig, Germany",
    formedAt: 2018,
    story: "What began in 2008 as a wound-healing protocol for burn victims — eliminating the need for skin grafts — was reformulated for cosmetic use a decade later. The patented TFC8 complex contains 40 amino acids, peptides, and synthesized molecules that signal stem cells to behave as they did at 25.",
  },
  {
    id: "biologique-p50",
    house: "Biologique Recherche",
    name: "Lotion P50 1970",
    line: "Skincare — Exfoliating Toner",
    rail: "vault",
    price: 96,
    msrp: 110,
    size: "150 ml",
    accent: "#5A3520",
    blurb: "Phenol-formula original. The thing French women refuse to fly without.",
    notes: ["Phenol", "Niacinamide", "Vinegar", "Sulfur"],
    pH: "3.2",
    timeOfDay: "AM / PM",
    climate: ["humid", "polluted", "any"],
    skin: ["congested", "uneven", "oily"],
    inci: 21,
    structuredAttrs: 52,
    citations: 891,
    tags: ["Cult", "Pro Only — License Required"],
    founder: "Yvan Allouche",
    founderRole: "Biologist & co-founder",
    origin: "Paris, France",
    formedAt: 1970,
    story: "Created in 1970 in a small Paris laboratory for a chemist's wife who could not tolerate any cosmetic on the market. The 1970 formulation contains phenol — restricted in EU cosmetics today, hence the original recipe travels by license. Skincare insiders consider it irreplaceable.",
  },
  {
    id: "mfk-baccarat",
    house: "Maison Francis Kurkdjian",
    name: "Baccarat Rouge 540 — Extrait",
    line: "Fragrance — Extrait de Parfum",
    rail: "atelier",
    price: 460,
    msrp: 520,
    size: "70 ml",
    accent: "#7A1F22",
    blurb: "Saffron, jasmine, ambergris, cedarwood — vaporized into something that smells like first light through a chapel window.",
    notes: ["Saffron", "Jasmine", "Ambergris", "Fir resin", "Cedar"],
    family: "Amber Floral",
    sillage: "Heavy",
    longevity: "10+ hours",
    season: ["winter", "evening", "occasion"],
    inci: 22,
    structuredAttrs: 38,
    citations: 2104,
    tags: ["House-shipped", "From Paris"],
    founder: "Francis Kurkdjian",
    founderRole: "Master Perfumer (Société des Parfumeurs)",
    origin: "Paris, France",
    formedAt: 2009,
    story: "Composed in 2014 to celebrate the 250th anniversary of Baccarat crystal. Kurkdjian — already known for Le Mâle and Narciso Rodriguez For Her — built it around a single accord that behaves differently on every skin chemistry. The Extrait concentration was added in 2017.",
  },
  {
    id: "byredo-mojave",
    house: "Byredo",
    name: "Mojave Ghost",
    line: "Fragrance — Eau de Parfum",
    rail: "atelier",
    price: 245,
    msrp: 280,
    size: "100 ml",
    accent: "#A89A7E",
    blurb: "Sandalwood, ambrette, magnolia, dust at golden hour. The desert flower that survives without rain.",
    notes: ["Ambrette", "Sandalwood", "Magnolia", "Violet", "Cedar"],
    family: "Woody Floral",
    sillage: "Soft",
    longevity: "6 hours",
    season: ["spring", "summer", "everyday"],
    inci: 18,
    structuredAttrs: 36,
    citations: 1432,
    tags: ["House-shipped"],
    founder: "Ben Gorham",
    founderRole: "Founder & Creative Director",
    origin: "Stockholm, Sweden",
    formedAt: 2006,
    story: "Inspired by the Mojave's Ghost Flower — a bloom that mimics the appearance of nectar to attract pollinators in a place where almost nothing else grows. Composed with perfumer Jérôme Épinette, it's Byredo's most-requested scent for low-projection elegance.",
  },
  {
    id: "sisley-black-rose",
    house: "Sisley Paris",
    name: "Black Rose Cream Mask",
    line: "Skincare — Treatment Mask",
    rail: "vault",
    price: 168,
    msrp: 195,
    size: "60 ml",
    accent: "#3F1F25",
    blurb: "Black rose extract from the Maison de Mai. Worn fifteen minutes before any consequential evening.",
    notes: ["Black rose", "White rose", "Padina pavonica", "Vitamin E"],
    pH: "5.4",
    timeOfDay: "Evening",
    climate: ["any"],
    skin: ["dehydrated", "dull", "tired"],
    inci: 33,
    structuredAttrs: 41,
    citations: 287,
    tags: ["Editor's Pick"],
    founder: "Hubert d'Ornano",
    founderRole: "Founder, Maison Sisley",
    origin: "Paris, France",
    formedAt: 1976,
    story: "The d'Ornano family — formerly of Orlane and Lancôme — founded Sisley as a phytocosmetic house in 1976. Black Rose remains the maison's emergency protocol: applied before galas, weddings, and red-eyes since 2009.",
  },
  {
    id: "111skin-mask",
    house: "111Skin",
    name: "Y Theorem Bio Cellulose Mask",
    line: "Skincare — Sheet Mask",
    rail: "vault",
    price: 108,
    msrp: 125,
    size: "Box of 5",
    accent: "#1E2540",
    blurb: "Plastic-surgeon-formulated bio-cellulose. Worn the night before a camera.",
    notes: ["NAC Y² formula", "Glutathione", "Hyaluronic acid"],
    pH: "5.8",
    timeOfDay: "Pre-event",
    climate: ["any"],
    skin: ["pre-event", "dull", "fatigued"],
    inci: 27,
    structuredAttrs: 35,
    citations: 312,
    tags: ["Pro Recommended"],
    founder: "Dr. Yannis Alexandrides",
    founderRole: "Plastic surgeon, Harley Street",
    origin: "London, United Kingdom",
    formedAt: 2012,
    story: "Born from twenty-five years of Harley Street post-operative protocols. The 'Y Theorem' is Alexandrides's proprietary anti-oxidative complex, originally formulated to accelerate recovery after rhinoplasty.",
  },
  {
    id: "k18-mask",
    house: "K18",
    name: "Leave-in Molecular Repair Hair Mask",
    line: "Haircare — Bond Repair",
    rail: "vault",
    price: 75,
    msrp: 75,
    size: "50 ml",
    accent: "#4A6B5C",
    blurb: "Patented K18Peptide™. Reverses bleach damage at the polypeptide chain. Four minutes.",
    notes: ["K18Peptide™", "Cetearyl alcohol"],
    pH: "5.0",
    timeOfDay: "After wash",
    climate: ["any"],
    skin: ["bleached", "damaged", "color-treated"],
    inci: 14,
    structuredAttrs: 32,
    citations: 624,
    tags: ["Pro Recommended", "Patented"],
    founder: "Suveen Sahib & Britta Cox",
    founderRole: "Co-founders",
    origin: "Los Angeles, California",
    formedAt: 2020,
    story: "Built on a nine-year fundamental research program at Imperial College London and EPFL Lausanne. The K18Peptide is small enough to penetrate the cortex and re-cross-link broken keratin chains — a legitimate biochemical reversal, not a coating.",
  },
  {
    id: "diptyque-philosykos",
    house: "Diptyque",
    name: "Philosykos Eau de Parfum",
    line: "Fragrance — Eau de Parfum",
    rail: "atelier",
    price: 215,
    msrp: 240,
    size: "75 ml",
    accent: "#5C6A3D",
    blurb: "The fig tree, in full. Bark, sap, leaf, fruit. A summer in the Peloponnese.",
    notes: ["Fig leaf", "Fig fruit", "Coconut", "Cedar", "Black pepper"],
    family: "Green Woody",
    sillage: "Moderate",
    longevity: "7 hours",
    season: ["summer", "spring", "everyday"],
    inci: 20,
    structuredAttrs: 34,
    citations: 1187,
    tags: ["House-shipped"],
    founder: "Olivia Giacobetti",
    founderRole: "Perfumer (composed for Diptyque)",
    origin: "Paris, France",
    formedAt: 1996,
    story: "Composed by Olivia Giacobetti in 1996 — a nose known for translucent, almost watercolor compositions. Philosykos was her attempt to capture the entire fig tree, not just the fruit. It remains the genre-defining fig fragrance.",
  },
  {
    id: "supergoop-glowscreen",
    house: "Supergoop!",
    name: "Glowscreen SPF 40",
    line: "Skincare — Sunscreen",
    rail: "vault",
    price: 38,
    msrp: 38,
    size: "50 ml",
    accent: "#C9A66B",
    blurb: "The dermatologist-loved daily SPF that wears like a primer.",
    notes: ["Hyaluronic acid", "Niacinamide", "Cocoa peptides"],
    pH: "6.0",
    timeOfDay: "AM",
    climate: ["any", "high-UV"],
    skin: ["all"],
    inci: 25,
    structuredAttrs: 33,
    citations: 482,
    tags: ["Editor's Pick"],
    founder: "Holly Thaggard",
    founderRole: "Founder & CEO",
    origin: "Dallas, Texas",
    formedAt: 2007,
    story: "Founded after a friend's melanoma diagnosis. Supergoop pioneered the daily-wear SPF category — the idea that sunscreen could feel like skincare, not chore. Glowscreen is the line's most reformulated and most-cited daily.",
  },
  {
    id: "tomford-tobacco",
    house: "Tom Ford",
    name: "Tobacco Vanille",
    line: "Fragrance — Eau de Parfum",
    rail: "atelier",
    price: 395,
    msrp: 445,
    size: "100 ml",
    accent: "#5A3318",
    blurb: "Pipe tobacco, vanilla bean, dry fruits, cocoa. A library at three a.m.",
    notes: ["Tobacco leaf", "Vanilla", "Tonka bean", "Dried fruit", "Cocoa"],
    family: "Oriental Spicy",
    sillage: "Heavy",
    longevity: "12 hours",
    season: ["winter", "evening"],
    inci: 24,
    structuredAttrs: 37,
    citations: 1893,
    tags: ["House-shipped"],
    founder: "Tom Ford",
    founderRole: "Founder, Creative Director",
    origin: "New York, USA",
    formedAt: 2007,
    story: "Part of the Private Blend collection launched in 2007, Tobacco Vanille is the most-imitated fragrance of the past two decades. Composed by Olivier Gillotin to evoke a nineteenth-century gentlemen's club at the moment the cigars are lit.",
  },
  {
    id: "u-beauty-resurfacing",
    house: "U Beauty",
    name: "Resurfacing Compound",
    line: "Skincare — Treatment",
    rail: "vault",
    price: 188,
    msrp: 198,
    size: "30 ml",
    accent: "#7B5C3D",
    blurb: "Eight serums in one. Exfoliates, brightens, firms — without layering.",
    notes: ["AHA/BHA blend", "Vitamin C", "Retinol", "Hyaluronic acid"],
    pH: "3.6",
    timeOfDay: "PM",
    climate: ["any"],
    skin: ["complex routine reducer"],
    inci: 31,
    structuredAttrs: 39,
    citations: 198,
    tags: ["Editor's Pick"],
    founder: "Tina Craig",
    founderRole: "Founder",
    origin: "Los Angeles, California",
    formedAt: 2019,
    story: "Born from frustration with twelve-step routines. The Siren Capsule technology delivers actives only where damage is detected, leaving healthy tissue untouched. A category of one.",
  },
  {
    id: "saltstone-deodorant",
    house: "Salt & Stone",
    name: "Santal & Vetiver Deodorant",
    line: "Body — Deodorant",
    rail: "vault",
    price: 24,
    msrp: 24,
    size: "75 g",
    accent: "#7A6748",
    blurb: "Aluminum-free, smells like a Belgian linen cabinet.",
    notes: ["Sandalwood", "Vetiver", "Probiotics"],
    timeOfDay: "AM",
    climate: ["any"],
    skin: ["sensitive"],
    inci: 19,
    structuredAttrs: 28,
    citations: 124,
    tags: ["Editor's Pick", "Clean"],
    founder: "Nima & Kane Jamali",
    founderRole: "Co-founders",
    origin: "Venice, California",
    formedAt: 2018,
    story: "Two surfer brothers building a body line that could replace whatever was in the medicine cabinet without smelling like a teenager. Salt & Stone is the deodorant that finally made grown men switch from aluminum.",
  },
];

const ROUTINES = [
  {
    id: "evening-amber",
    title: "An Evening in Amber",
    subtitle: "Composed for low-light, dry climates, after eight p.m.",
    products: ["sisley-black-rose", "ab-rich-cream", "mfk-baccarat"],
    by: "Cécile, Curator",
  },
  {
    id: "morning-paris",
    title: "Morning, Paris in October",
    subtitle: "For the second day of a trip, when the air is colder than expected.",
    products: ["biologique-p50", "supergoop-glowscreen", "diptyque-philosykos"],
    by: "Cécile, Curator",
  },
];

const SCENT_LANGUAGE_RESULTS = {
  smoky: ["tomford-tobacco", "mfk-baccarat"],
  warm: ["mfk-baccarat", "tomford-tobacco", "byredo-mojave"],
  green: ["diptyque-philosykos", "byredo-mojave"],
  fresh: ["diptyque-philosykos", "byredo-mojave"],
  evening: ["mfk-baccarat", "tomford-tobacco"],
  library: ["tomford-tobacco", "mfk-baccarat"],
  desert: ["byredo-mojave"],
  fig: ["diptyque-philosykos"],
  default: ["mfk-baccarat", "byredo-mojave", "diptyque-philosykos", "tomford-tobacco"],
};

window.MC_DATA = { RAILS, PRODUCTS, ROUTINES, SCENT_LANGUAGE_RESULTS };
