/* =========================================================
   COGNERYS — content data (v2, with AI + Data Ops)
   ========================================================= */
const BRAND = {
  name: "Cognerys",
  tagline: "Research and advisory on AI, data, and architecture for energy trading systems.",
  person: {
    name: "Gary Morris",
    credential: "PhD Candidate",
    affiliation: "University of Bath",
    email: "gary@cognerys.co",
    loc: "Bath, United Kingdom",
    availability: "Booking Q3 2026",
  },
  estab: "Independent practice, est. 2024",
};

const NAV = [
  { id: "research", label: "Research"     },
  { id: "writing",  label: "Writing"      },
  { id: "services", label: "Services"     },
  { id: "cases",    label: "Engagements"  },
  { id: "about",    label: "About"        },
];

const PILLARS = [
  {
    num: "01",
    name: "AI in trading systems",
    desc: "Applied research on how language models, learned agents, and probabilistic reasoning integrate safely into front-office and middle-office workflows — where autonomy is useful, where it is dangerous, and where the architecture has to change to accommodate either.",
    status: "Active",
  },
  {
    num: "02",
    name: "Data operations for energy",
    desc: "How curve data, lifecycle events, market data, and telemetry actually move through a trading firm — and how to design the pipelines, contracts, and observability so they can be trusted by the desks that depend on them.",
    status: "Active",
  },
  {
    num: "03",
    name: "ETRM architecture",
    desc: "The doctoral programme — a pattern language for the domain, focused on lifecycle invariants, temporal consistency, and the topology of multi-commodity estates.",
    status: "Doctoral focus",
  },
  {
    num: "04",
    name: "Adjacent work",
    desc: "Selected investigations into scheduling, nomination, settlement, and the engineering culture of energy-technology organisations.",
    status: "Ongoing",
  },
];

const WRITING = [
  { id: "w8", num: "08", date: "Apr 2026", title: "Agents on the trade floor — a measured case for narrow autonomy.",
    sub: "What LLM agents can and cannot do inside an ETRM today.", tag: "Essay", read: "16 min" },
  { id: "w7", num: "07", date: "Mar 2026", title: "The canonical trade object is a myth — and it keeps rebuilding your ETRM.",
    sub: "Why a single trade row is an architectural compromise, not a data model.", tag: "Essay", read: "18 min" },
  { id: "w6", num: "06", date: "Mar 2026", title: "Data contracts for energy: the minimum viable commitment.",
    sub: "A short pattern for publishing curve, event, and reference data between teams.", tag: "Note", read: "9 min" },
  { id: "w5", num: "05", date: "Feb 2026", title: "Scheduling, nomination, settlement — three clocks, one ledger.",
    sub: "Temporal consistency across the three clocks of a physical trade.", tag: "Essay", read: "24 min" },
  { id: "w4", num: "04", date: "Jan 2026", title: "What the front office actually wants from risk — and why it rarely gets it.",
    sub: "Field notes from four firms, anonymised but unvarnished.", tag: "Field note", read: "11 min" },
  { id: "w3", num: "03", date: "Dec 2025", title: "Lifecycle event sourcing for physical power — five anti-patterns.",
    sub: "Patterns I have watched break the same programmes twice.", tag: "Essay", read: "22 min" },
  { id: "w2", num: "02", date: "Nov 2025", title: "On curve storage: point-in-time, forward, and the trouble between.",
    sub: "A small but stubbornly hard problem at the heart of every trading system.", tag: "Note", read: "7 min" },
  { id: "w1", num: "01", date: "Oct 2025", title: "Why I left platform engineering to study the trade floor.",
    sub: "A short essay on why this practice exists in the first place.", tag: "Essay", read: "14 min" },
];

const RESEARCH = [
  { id: "r5", num: "05", date: "2026", title: "A risk taxonomy for autonomous agents in energy trade execution.",
    venue: "Working paper — Cognerys + University of Bath", tag: "In progress" },
  { id: "r4", num: "04", date: "2026", title: "Event-sourced topologies for multi-commodity ETRM: a taxonomy.",
    venue: "Working paper — University of Bath", tag: "In review" },
  { id: "r3", num: "03", date: "2025", title: "Temporal consistency in downstream gas scheduling under rolling balancing windows.",
    venue: "Energy Systems Journal (submission)", tag: "Submitted" },
  { id: "r2", num: "02", date: "2025", title: "A reference architecture for hedge-effectiveness attribution in renewable PPAs.",
    venue: "Applied Energy — peer-reviewed", tag: "Published" },
  { id: "r1", num: "01", date: "2024", title: "Trade lifecycle invariants: a pattern language for energy commodity systems.",
    venue: "Doctoral research proposal", tag: "Thesis" },
];

const SERVICES = [
  { id: "s1", num: "01", title: "Architecture review",
    desc: "A structured, written assessment of an existing ETRM estate — front-to-back. Delivered as a bound report with ADRs, risk register, and remediation roadmap.",
    bullets: ["Domain model audit", "Data topology & lineage map", "Lifecycle event coverage", "Written report (60–90 pp.)"],
    cadence: "4–6 weeks" },
  { id: "s2", num: "02", title: "AI readiness assessment",
    desc: "A focused diagnosis of where AI and learned-system techniques will actually move the needle in your trading estate — and where they won't. Plainspoken, architecturally grounded.",
    bullets: ["Use-case scoring matrix", "Data & evaluation readiness", "Risk & control surface map", "Sequenced pilot plan"],
    cadence: "3–4 weeks" },
  { id: "s3", num: "03", title: "Embedded advisory",
    desc: "Part-time architect-in-residence for an in-flight transformation. Pair with engineering leadership on decisions, RFC review, and the long memory across quarters.",
    bullets: ["2 days/week, 6–12 months", "RFC review & ADRs", "Build-vs-buy diligence", "Direct work with the desks"],
    cadence: "Retainer" },
  { id: "s4", num: "04", title: "Commissioned research",
    desc: "For questions that don't fit a consulting engagement — comparative studies, internal position papers, diligence for investment committees. Publishable-grade output.",
    bullets: ["Scoped research brief", "Primary & secondary research", "Internal or white-paper output", "Readout to stakeholders"],
    cadence: "By scope" },
];

const CASES = [
  { id: "c1", label: "Utility · 2025 — 2026",
    title: "Unwinding a decade of commodity silos at a European utility.",
    desc: "Led the architectural assessment behind a €40m ETRM consolidation programme. Reference model, sequencing plan, and decommissioning map for nine adjacent systems.",
    role: "Lead architect, advisory", img: "g1" },
  { id: "c2", label: "Merchant · 2024 — 2025",
    title: "Settlement for a merchant battery portfolio.",
    desc: "Built the settlement and hedge-effectiveness model for a flexibility portfolio spanning balancing markets, FFR, and bilateral contracts. In production across three TSOs.",
    role: "Embedded architect", img: "g2" },
  { id: "c3", label: "Trading house · 2024",
    title: "A written diagnosis of a stalled replatform.",
    desc: "Commissioned to write the independent opinion on why an 18-month replatform had not moved. 74-page report. The programme was rescoped on the basis of it.",
    role: "Commissioned research", img: "g3" },
  { id: "c4", label: "Independent generator · 2024",
    title: "Curve management as a first-class domain.",
    desc: "Designed a point-in-time curve store and the semantics around it. Three desks retired spreadsheets; the model is now the shared canonical source of forwards.",
    role: "Contract architect", img: "g4" },
];

const WORK_HISTORY = [
  { date: "2025 -", title: "Director, Cognerys.", tag: "Present" },
  { date: "2025 -", title: "Doctoral researcher, University of Bath.", tag: "Present" },
  { date: "2025 -", title: "Solutions Architect, SEFE.", tag: "Contract" },
  { date: "2023 - 2024", title: "Senior Solutions Architect, Shell.", tag: "Contract" },
  { date: "2020 - 2023", title: "Technical Team Lead, Shell.", tag: "Contract" },
  { date: "2021", title: "Senior Consultant, Sky.", tag: "Contract" },
  { date: "2019 - 2020", title: "Lead Engineer, Argus Media.", tag: "Contract" },
  { date: "2017 - 2019", title: "Technical Lead, Drax Group.", tag: "Contract" },
];

Object.assign(window, { BRAND, NAV, PILLARS, WRITING, RESEARCH, SERVICES, CASES, WORK_HISTORY });
