/* global React */
/* -------------------------------------------------------------------------
   Derlot — Quality Thread System data
   Full 35-collection taxonomy per policies/quality-thread-system.md
   ------------------------------------------------------------------------- */

const THREADS = {
  endure: {
    name: "Endure",
    hex: "#2E4A6B",
    badgeBg: "#ECEAE4",
    badgeText: "#2E4A6B",
    description: "Built for high-traffic environments.",
    long: "A new benchmark for seating in transit hubs, civic institutions and public interiors. Engineered for continuous use, with replaceable modules and long service life.",
  },
  configure: {
    name: "Configure",
    hex: "#4A5A3A",
    badgeBg: "#ECEAE4",
    badgeText: "#4A5A3A",
    description: "Modular, adaptable, scalable.",
    long: "Modular systems — a signature of Derlot’s collections. Linear, radial and clustered configurations documented in CAD, BIM and Revit, shaped precisely to the architecture.",
  },
  dwell: {
    name: "Dwell",
    hex: "#7A4A2B",
    badgeBg: "#ECEAE4",
    badgeText: "#7A4A2B",
    description: "A lounge experience, carefully considered.",
    long: "Upholstered collections conceived as moments of refuge within movement. Sprung seats, timber carcasses and continuous upholstery for long occupancy in lounges, hospitality and premium interiors.",
  },
  renew: {
    name: "Renew",
    hex: "#3e6b43",
    badgeBg: "#ECEAE4",
    badgeText: "#2a4a2f",
    description: "Mono-material. Closed loop.",
    long: "Rotomoulded LDPE collections with up to 85% post-industrial recycled content, expressed in Derlot’s distinctive terrazzo-like finish. Fully recyclable at end of life through our closed-loop take-back programme.",
  },
  define: {
    name: "Define",
    hex: "#4A3A5A",
    badgeBg: "#ECEAE4",
    badgeText: "#4A3A5A",
    description: "Sculptural, architectural.",
    long: "Sculptural pieces with a refined architectural presence. Specified where the furniture gives the room its centre of gravity — foyers, atria, hospitality hero moments.",
  },
};

const ENVIRONMENTS = {
  airport:      { name: "Airport & Transit",       short: "Airport & Transit" },
  hospitality:  { name: "Hospitality & Lounge",    short: "Hospitality" },
  civic:        { name: "Civic & Public Realm",    short: "Civic & Public" },
  education:    { name: "Education & Healthcare", short: "Education" },
  indoor:       { name: "Indoor",                   short: "Indoor" },
  outdoor:      { name: "Outdoor",                  short: "Outdoor" },
};

// Full 35-collection taxonomy
// `image` = hero, `photo` = photographer credit when shown.
// Image paths are relative to ui_kits/website/index.html.
const COLLECTIONS = [
  // Airport & transit primaries
  { slug: "gateway",     name: "Gateway",          year: 2025, threads: ["endure","configure"],             envs: ["airport","civic","hospitality","indoor"], image: "images/_legacy/collections/gateway.webp", photo: "Rodrigo Rabaco" },
  { slug: "autobahn",    name: "Autobahn",         year: 2012, threads: ["endure","configure"],             envs: ["airport","civic","indoor"], image: "images/_legacy/collections/autobahn.jpg", photo: "Rodrigo Rabaco" },
  { slug: "twig",        name: "Twig",             year: 2008, threads: ["endure","configure","renew"],      envs: ["hospitality","civic","corporate","education","retail","indoor","outdoor"], image: "images/_legacy/collections/twig.webp", photo: "Rodrigo Rabaco" },
  { slug: "pipeline",    name: "Pipeline",         year: 2022, threads: ["configure","dwell"],              envs: ["hospitality","corporate","civic","airport","education","indoor"], tagline: "Modular space-age seating, hidden bracket system.", image: "images/_legacy/collections/pipeline.webp", photo: "Rodrigo Rabaco" },
  { slug: "cocoon",      name: "Cocoon",           year: 2025, threads: ["endure","dwell"],                 envs: ["airport","civic","hospitality","indoor"], tagline: "Refined lounge for high-traffic transit and public interiors.", image: "images/_legacy/collections/cocoon/cocoon-front.webp", photo: "Florian Groehn" },

  // Renew — mono-material LDPE
  { slug: "trio",        name: "Trio",             year: 2025, threads: ["renew","define","configure"],     envs: ["airport","civic","hospitality","corporate","education","indoor","outdoor"], tagline: "Mono-material LDPE, sculpted bucket seats.", image: "images/_legacy/collections/trio.webp", photo: "Rodrigo Rabaco" },
  { slug: "platform",    name: "Platform",         year: 2026, threads: ["endure","configure"],             envs: ["airport","civic","indoor"], tagline: "A beam seating system for transport rooms.", image: "images/_legacy/collections/platform.webp", photo: "Rodrigo Rabaco" },
  { slug: "s1",          name: "S1",               year: 2016, threads: ["renew","define"],                   envs: ["hospitality","corporate","civic","education","retail","indoor","outdoor"], tagline: "I-beam reinterpreted — minimalist stool and side table.", image: "images/_legacy/collections/s1-studio-single.webp" },
  { slug: "stump-r",     name: "Stump Recycled",   year: 2021, threads: ["renew"],                          envs: ["civic","hospitality","indoor","outdoor"], tagline: "80% recycled LDPE, terrazzo-like finish.", image: "images/_legacy/collections/stump-r.webp", photo: "Florian Groehn" },
  { slug: "tonne",       name: "Tonne",            year: 2018, threads: ["endure","define"],                envs: ["hospitality","civic","retail","corporate","outdoor"], tagline: "A table in the shape of a panettone.", image: "images/_legacy/collections/tonne.webp", photo: "Florian Groehn" },

  // Dwell — hospitality & lounge
  { slug: "mochi",       name: "Mochi",            year: 2020, threads: ["dwell","configure"],              envs: ["hospitality","corporate","civic","education","indoor"], image: "images/_legacy/collections/mochi/mochi-jubilee-01.webp", photo: "Rodrigo Rabaco" },
  { slug: "caterpillar", name: "Caterpillar",      year: 2018, threads: ["dwell","configure"],              envs: ["hospitality","civic","indoor"], image: "images/_legacy/collections/caterpillar.webp", photo: "Florian Groehn" },
  { slug: "volar",       name: "Volar",            year: 2016, threads: ["dwell","define","endure"],        envs: ["hospitality","corporate","education","indoor","outdoor"], image: "images/_legacy/collections/volar.webp", photo: "Florian Groehn" },
  { slug: "stump",       name: "Stump",            year: 2016, threads: ["dwell","endure","configure"],     envs: ["hospitality","corporate","civic","education","retail","indoor","outdoor"], image: "images/_legacy/collections/stump-tile.webp", photo: "Florian Groehn" },
  { slug: "cup",         name: "Cup",              year: 2014, threads: ["dwell","endure","configure"],     envs: ["hospitality","civic","indoor","outdoor"], image: "images/_legacy/collections/cup-library.webp" },
  { slug: "biggie",      name: "Biggie",           year: 2019, threads: ["dwell"],                          envs: ["hospitality","indoor"], image: "images/_legacy/collections/biggie.webp", photo: "Florian Groehn" },
  { slug: "strap",       name: "Strap",            year: 2019, threads: ["dwell","endure"],                 envs: ["hospitality","civic","corporate","retail","education","outdoor"], image: "images/_legacy/collections/strap.webp", photo: "Florian Groehn" },
  { slug: "picket",      name: "Picket",           year: 2012, threads: ["dwell","configure"],              envs: ["hospitality","civic","corporate","retail","indoor","outdoor"], image: "images/_legacy/collections/picket.webp", photo: "Florian Groehn" },
  { slug: "pinto",       name: "Pinto",            year: 2021, threads: ["dwell"],                          envs: ["hospitality","corporate","civic","education","indoor","outdoor"], image: "images/_legacy/collections/pinto.webp", photo: "Florian Groehn" },
  { slug: "yeti",        name: "Yeti",             year: 2019, threads: ["dwell"],                          envs: ["hospitality","corporate","retail","indoor"], image: "images/_legacy/collections/yeti-tables-family.jpg", photo: "Florian Groehn" },
  { slug: "hext",        name: "Hext",             year: 2010, threads: ["dwell","define"],                 envs: ["hospitality","civic","education","indoor"], image: "images/_legacy/collections/hext.webp", photo: "Florian Groehn" },

  // Configure — civic & corporate
  { slug: "prisma",      name: "Prisma",           year: 2013, threads: ["configure","define","dwell"],     envs: ["education","airport","retail","corporate","civic","hospitality","indoor"], tagline: "Prismatic modular seating with three levels of privacy.", image: "images/_legacy/collections/prisma.webp", photo: "Florian Groehn" },
  { slug: "tetromino-s", name: "Tetromino Soft",   year: 2019, threads: ["configure","define","dwell"],     envs: ["corporate","hospitality","civic","education","retail","indoor"], image: "images/_legacy/collections/tetromino-s.webp", photo: "Florian Groehn" },
  { slug: "guell",       name: "Guell",            year: 2010, threads: ["configure","dwell"],              envs: ["civic","hospitality","airport","education","indoor"], image: "images/_legacy/collections/guell.webp" },
  { slug: "rio",         name: "Rio",              year: 2020, threads: ["configure"],                      envs: ["corporate","hospitality","civic","education","indoor","outdoor"], image: "images/_legacy/collections/rio-setting.jpg", photo: "Florian Groehn" },
  { slug: "pillar",      name: "Pillar",           year: 2021, threads: ["configure","endure"],             envs: ["corporate","hospitality","civic","education","indoor"], image: "images/_legacy/collections/pillar.webp", photo: "Florian Groehn" },
  { slug: "fit",         name: "Fit",              year: 2012, threads: ["configure"],                      envs: ["civic","indoor"], image: "images/_legacy/collections/fit.webp", photo: "Rodrigo Rabaco" },

  // Endure — education & civic
  { slug: "ivi",         name: "Ivi",              year: 2021, threads: ["endure"],                         envs: ["corporate","hospitality","civic","education","indoor"], image: "images/_legacy/collections/ivi-green-trio-studio.jpg", photo: "Florian Groehn" },
  { slug: "homework",    name: "Homework",         year: 2016, threads: ["endure","configure"],             envs: ["corporate","education","hospitality","civic","indoor"], image: "images/_legacy/collections/homework.webp" },
  { slug: "seed",        name: "Seed",             year: 2013, threads: ["dwell","define"],                   envs: ["hospitality","corporate","civic","education","retail","indoor"], tagline: "Voluptuous ottomans, graduated as a family.", image: "images/_legacy/collections/seed-family-array.jpg" },
  { slug: "mass",        name: "Mass",             year: 2013, threads: ["endure","configure"],            envs: ["civic","corporate","education","hospitality","indoor","outdoor"], image: "images/_legacy/collections/mass.webp", photo: "Florian Groehn" },

  // Define — lighting, tables & accessories
  { slug: "kono",        name: "Kono",             year: 2014, threads: ["define","endure"],                envs: ["corporate","hospitality","civic","education","retail","indoor","outdoor"], image: "images/_legacy/collections/kono-planters-dusk.jpg", photo: "Florian Groehn" },
  { slug: "bolet",       name: "Bolet",            year: 2008, threads: ["define"],                         envs: ["hospitality","indoor"], image: "images/_legacy/collections/bolet-family.jpg", photo: "Florian Groehn" },
  { slug: "pill",        name: "Pill",             year: 2019, threads: ["dwell"], discontinued: true,      envs: ["corporate","hospitality","civic","indoor"], image: "images/_legacy/projects/walker-st/pill-lounge.jpg", photo: "Luc Remond" },
  { slug: "coral",       name: "Coral",            year: 2007, threads: ["define"],                         envs: ["hospitality","indoor"], image: "images/_legacy/collections/coral-cluster-dark.jpg", photo: "Florian Groehn" },
  { slug: "flatliner",   name: "Flatliner Wall",   year: 2006, threads: ["define","configure"],            envs: ["hospitality","civic","retail","indoor"], discontinued: true },
  { slug: "kink",        name: "Kink",             year: 2020, threads: ["define"],                         envs: ["hospitality","corporate","civic","retail","indoor","outdoor"], image: "images/_legacy/collections/kink-array-wide.jpg", photo: "Florian Groehn" },
  { slug: "wombat",      name: "Wombat",           year: 2016, threads: ["define"],                         envs: ["hospitality","education","civic","retail","corporate","indoor"], tagline: "Upcycled offcuts, in support of Australian wildlife.", image: "images/_legacy/collections/wombat.webp", photo: "Florian Groehn" },
];

window.THREADS = THREADS;
window.ENVIRONMENTS = ENVIRONMENTS;
window.COLLECTIONS = COLLECTIONS;
