{
  "$comment": "Machine-readable TriLabz enquiry interaction spec. Prose reasoning lives in enquiry-guide.md and conversation-guide.md; this file is the structured source for question IDs, branching and brief mapping. Validated by scripts/validate-ai-docs.mjs.",
  "schemaVersion": "1.0.0",
  "specVersion": "2026-11-12",
  "company": {
    "name": "TriLabz Innovations",
    "shortName": "TriLabz",
    "url": "https://www.trilabz.com",
    "tagline": "Innovate. Automate. Scale.",
    "publicContactEmail": "hello@trilabz.com",
    "enquiryPage": "https://www.trilabz.com/contact/"
  },
  "submission": {
    "performedByAssistant": false,
    "note": "No API, MCP server or CRM accepts enquiries from AI assistants. The assistant produces a project brief. The user sends it via https://www.trilabz.com/contact/ (paste into the details fields) or by email to hello@trilabz.com.",
    "websiteFormRequires": ["category", "contact.name", "contact.email", "contact.phone", "consent", "required category fields"],
    "assistantMustNotRequire": ["phone unless contact method is Phone call", "timeline", "technical details", "company"]
  },
  "answerTypes": {
    "single_choice": "Exactly one of options. Always allow 'Not sure' where the question is not purely factual.",
    "multi_choice": "Zero or more of options.",
    "short_text": "One line, up to 200 characters.",
    "long_text": "Free text, up to 2000 characters (matches website limits.text).",
    "number_or_range": "A number or a rough range, e.g. '500-1000 users'.",
    "timeframe": "A date, a period, or 'no fixed timeline'.",
    "yes_no": "Yes, No, or Not sure.",
    "url": "A full link starting with http:// or https://.",
    "email": "A valid email address.",
    "phone": "A phone number including country code."
  },
  "unknownAnswers": {
    "accepted": ["Not sure", "I don't know", "Prefer not to say", "Skip"],
    "recordAs": { "Not sure": "unknown", "I don't know": "unknown", "Prefer not to say": "declined", "Skip": "skipped" },
    "rule": "Unknown, declined and skipped answers are valid, are never re-asked, and are listed under 'Outstanding questions' in the brief."
  },
  "conditionSyntax": {
    "answered": { "answered": "<questionId>" },
    "unanswered": { "unanswered": "<questionId>" },
    "equals": { "equals": { "q": "<questionId>", "value": "<option>" } },
    "in": { "in": { "q": "<questionId>", "values": ["<option>"] } },
    "includes": { "includes": { "q": "<questionId>", "value": "<option>" }, "note": "For multi_choice answers." },
    "textMentions": { "textMentions": { "q": "<questionId or 'opening'>", "keywords": ["..."] }, "note": "Fuzzy; the assistant judges meaning, keywords are hints only." },
    "all": { "all": ["<condition>"] },
    "any": { "any": ["<condition>"] },
    "not": { "not": "<condition>" }
  },
  "designTokens": {
    "source": "src/app/globals.css, tailwind.config.ts, src/app/layout.tsx",
    "colors": {
      "ink": "#171D33",
      "canvas": "#F3F6FB",
      "surface": "#FFFFFF",
      "mist": "#5C6474",
      "accent": "#3ECF6E",
      "accentSoft": "#E6F8EC",
      "signal": "#3B82F6",
      "signalSoft": "#E8EFFE",
      "lilac": "#A855F7",
      "lilacSoft": "#F1E9FD",
      "inkHover": "#0F1426",
      "iconGreen": "#1FB85A",
      "errorText": "#B91C1C",
      "errorBackground": "#FEF2F2"
    },
    "gradients": {
      "brand": "linear-gradient(90deg, #3B82F6 0%, #38BDF8 38%, #34D399 72%, #86EFAC 100%)",
      "brandPill": "linear-gradient(90deg, #3ECF6E 0%, #8FE05A 60%, #B9EA4E 100%)",
      "pageBackground": "radial-gradient(820px 380px at 6% -12%, rgba(62,207,110,0.12), transparent 54%), radial-gradient(640px 320px at 98% 4%, rgba(59,130,246,0.10), transparent 50%), #F3F6FB"
    },
    "typography": {
      "family": "Plus Jakarta Sans",
      "fallback": "system-ui, sans-serif",
      "googleFontsUrl": "https://fonts.google.com/specimen/Plus+Jakarta+Sans",
      "weights": { "body": 400, "medium": 500, "semibold": 600, "bold": 700 },
      "kicker": { "size": "12px", "weight": 600, "letterSpacing": "0.18em", "transform": "uppercase", "color": "signal" },
      "pageTitle": { "size": "36px (48px at >=640px)", "weight": 600, "letterSpacing": "-0.025em" },
      "stepHeading": { "size": "20px", "weight": 600 },
      "label": { "size": "14px", "weight": 600 },
      "body": { "size": "16px", "lineHeight": 1.6, "color": "ink" },
      "secondary": { "size": "14px", "color": "mist" }
    },
    "radii": { "panel": "24px", "card": "16px", "reviewSection": "16px", "field": "12px", "iconChip": "14px", "pill": "9999px" },
    "shadows": {
      "border": "0px 0px 0px 1px oklch(0 0 0 / 0.06), 0px 1px 2px -1px oklch(0 0 0 / 0.06), 0px 2px 4px 0px oklch(0 0 0 / 0.04)",
      "borderHover": "0px 0px 0px 1px oklch(0 0 0 / 0.08), 0px 1px 2px -1px oklch(0 0 0 / 0.08), 0px 2px 4px 0px oklch(0 0 0 / 0.06)",
      "primaryButton": "0 14px 28px -14px rgba(62,207,110,0.75)",
      "focusRing": "0 0 0 3px oklch(0.55 0.16 250 / 0.18)"
    },
    "borders": { "hairline": "rgba(0,0,0,0.07)", "divider": "rgba(0,0,0,0.06)", "progressTrackInactive": "rgba(0,0,0,0.08)" },
    "components": {
      "panel": { "background": "surface", "radius": "24px", "shadow": "border", "padding": "24px (32px at >=640px)" },
      "buttonPrimary": { "background": "ink", "color": "#FFFFFF", "radius": "pill", "padding": "10px 20px", "fontSize": "14px", "fontWeight": 600, "hoverBackground": "inkHover", "activeScale": 0.96 },
      "buttonAccent": { "background": "gradients.brandPill", "color": "ink", "radius": "pill", "padding": "10px 20px", "fontSize": "14px", "fontWeight": 600 },
      "buttonGhost": { "color": "mist", "hoverColor": "ink", "fontSize": "14px", "fontWeight": 500 },
      "optionChip": { "background": "canvas", "color": "ink at 80%", "radius": "pill", "shadow": "border", "padding": "8px 14px", "fontSize": "14px", "selectedBackground": "ink", "selectedColor": "#FFFFFF" },
      "themeCard": { "background": "surface", "radius": "16px", "shadow": "border", "padding": "16px", "selectedBackground": "signalSoft", "selectedRing": "0 0 0 2px signal" },
      "textField": { "background": "canvas", "radius": "12px", "shadow": "border", "padding": "10px 12px", "focusShadow": "borderHover + focusRing" },
      "infoCallout": { "background": "signalSoft", "radius": "16px", "padding": "16px 20px", "fontSize": "14px" },
      "progressBar": { "segments": 4, "segmentHeight": "4px", "radius": "pill", "activeOrDone": "signal", "inactive": "rgba(0,0,0,0.08)" },
      "iconChip": { "size": "40px", "radius": "14px", "background": "surface", "shadow": "border", "iconColor": "ink" },
      "checkBadge": { "size": "24px", "radius": "pill", "background": "accentSoft", "iconColor": "ink" },
      "stepBadge": { "size": "32px", "radius": "pill", "background": "accent", "color": "ink", "fontSize": "12px", "fontWeight": 600 }
    },
    "spacing": { "stepGap": "28px between questions", "cardGap": "12px", "panelPaddingMobile": "24px", "maxContentWidth": "74rem (page)" },
    "breakpoints": { "sm": "640px", "md": "768px", "lg": "1024px" },
    "motion": { "easing": "cubic-bezier(0.2, 0, 0, 1)", "hoverTransition": "150ms ease-out", "revealDuration": "520ms", "reducedMotion": "disable transitions" },
    "assets": {
      "logoSvg": "https://www.trilabz.com/brand/LOGO-NEW-2.svg",
      "logoPng": "https://www.trilabz.com/brand/LOGO-EMAIL.png",
      "iconSvg": "https://www.trilabz.com/icon.svg"
    },
    "fallbackGuidance": "If the platform cannot load fonts, images or custom CSS, keep the ink/canvas/signal/accent palette, use the system sans-serif, round corners generously and keep the one-question-at-a-time rhythm. See interaction-design.md."
  },
  "stages": [
    { "id": "need", "order": 1, "name": "Understand the need", "audience": "everyone" },
    { "id": "context", "order": 2, "name": "Understand the context", "audience": "everyone" },
    { "id": "requirements", "order": 3, "name": "Explore requirements", "audience": "everyone" },
    { "id": "technical", "order": 4, "name": "Technical discovery", "audience": "only when the user is comfortable; never required" },
    { "id": "readiness", "order": 5, "name": "Project readiness", "audience": "optional" },
    { "id": "contact", "order": 6, "name": "Contact details", "audience": "only what is relevant" },
    { "id": "review", "order": 7, "name": "Review and refine", "audience": "everyone" }
  ],
  "engine": {
    "askOrder": "Within the selected theme's flow, ask the first question that is visible (showIf true or absent), unanswered, not prefilled and not skipped. Ask exactly one question per turn.",
    "prefill": "Before asking, extract answers already present in the user's messages and mark them 'prefilled (inferred)'. Confirm inferred answers in the review step instead of asking them again.",
    "followUps": "onAnswer rules are evaluated after each answer. goTo moves the next question; suggestTheme proposes a theme switch or blend; skip removes questions from the flow.",
    "themeSwitch": {
      "preserve": "Keep answers whose question ID is shared (sh.*, ct.*) and answers to equivalent questions listed in 'carryOver'. Keep every free-text answer as context notes even when no question maps.",
      "carryOver": [
        { "from": "cs.problem", "to": ["ai.problem", "lm.purpose", "id.trigger", "tc.challenge"] },
        { "from": "ai.problem", "to": ["cs.problem", "id.trigger", "tc.challenge"] },
        { "from": "ai.data_sources", "to": [] },
        { "from": "cs.existing_system", "to": ["lm.purpose", "tc.existing_arch"] },
        { "from": "lm.stack", "to": ["cs.existing_system", "tc.existing_arch", "cp.environment"] },
        { "from": "pe.system", "to": ["lm.purpose", "cs.existing_system"] },
        { "from": "id.goal", "to": ["cs.problem", "ai.problem", "tc.challenge"] },
        { "from": "ge.details", "to": ["cs.problem", "ai.problem", "id.trigger", "tc.challenge"] }
      ]
    },
    "multiTheme": "When several services apply, keep one primary theme, record others under 'relatedThemes', and ask at most the entry question and one or two key questions from each secondary theme. Do not run two full trees.",
    "completion": "Offer the review step when the theme's completion.minimum is satisfied and the user has not asked to continue. Never block the review on optional questions.",
    "maxQuestionsGuidance": { "general": 3, "careers": 6, "partnerships": 8, "default": 12 }
  },
  "questions": [
    {
      "id": "cs.build", "theme": "custom-software", "stage": "need", "text": "What are you looking to build?",
      "purpose": "Identify the shape of the solution at the user's own level of detail.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Web application", "Mobile application", "Enterprise software", "API / Backend system", "SaaS product", "Content management platform (ECM / Alfresco)", "Search & data platform", "Other", "Not sure yet"],
      "briefField": "projectIdea", "websiteFieldId": "build",
      "onAnswer": [
        { "when": { "in": { "q": "cs.build", "values": ["Content management platform (ECM / Alfresco)", "Search & data platform"] } }, "note": "Relevant services: ecm, search-data (see services.md)." },
        { "when": { "equals": { "q": "cs.build", "value": "Not sure yet" } }, "suggestTheme": "ideas" }
      ]
    },
    {
      "id": "cs.project_type", "theme": "custom-software", "stage": "context", "text": "Is this a new project, or does something already exist that you want to extend?",
      "purpose": "Decides whether to explore the existing system or the new product's objectives.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["New project", "Existing application", "Extension or enhancement"], "briefField": "projectStage", "websiteFieldId": "projectType",
      "onAnswer": [
        { "when": { "equals": { "q": "cs.project_type", "value": "New project" } }, "skip": ["cs.existing_system"] },
        { "when": { "in": { "q": "cs.project_type", "values": ["Existing application", "Extension or enhancement"] } }, "goTo": "cs.existing_system" }
      ]
    },
    {
      "id": "cs.problem", "theme": "custom-software", "stage": "need", "text": "What problem or opportunity is this meant to address?",
      "purpose": "Anchor the brief in the business problem before functionality.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "problemStatement", "websiteFieldId": "goal"
    },
    {
      "id": "sh.users", "theme": "shared", "stage": "context", "text": "Who will use it, or who benefits from it?",
      "purpose": "Identify target users and beneficiaries in plain language.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "targetUsers"
    },
    {
      "id": "cs.features", "theme": "custom-software", "stage": "requirements", "text": "What are the most important things it needs to do?",
      "purpose": "Collect the main functionality, ideally as 3-5 priorities.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "functionalRequirements"
    },
    {
      "id": "cs.existing_system", "theme": "custom-software", "stage": "technical", "text": "Tell me about the current application: what it does, and what you know about how it was built.",
      "purpose": "Understand the existing system. 'I don't know' is fine; the user may not know the technology.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "in": { "q": "cs.project_type", "values": ["Existing application", "Extension or enhancement"] } },
      "briefField": "existingSystems"
    },
    {
      "id": "sh.integrations", "theme": "shared", "stage": "requirements", "text": "Does it need to connect to other systems or services?",
      "purpose": "Detect integration needs.", "type": "yes_no", "required": false, "allowUnknown": true, "options": ["Yes", "No", "Not sure"],
      "briefField": "existingSystems",
      "onAnswer": [{ "when": { "equals": { "q": "sh.integrations", "value": "Yes" } }, "goTo": "sh.integrations_detail" }]
    },
    {
      "id": "sh.integrations_detail", "theme": "shared", "stage": "technical", "text": "Which systems or services, and what should flow between them?",
      "purpose": "Name connected systems and data flows.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "equals": { "q": "sh.integrations", "value": "Yes" } }, "briefField": "existingSystems"
    },
    {
      "id": "cs.platforms", "theme": "custom-software", "stage": "requirements", "text": "Where should people use it?",
      "purpose": "Platforms and devices.", "type": "multi_choice", "required": false, "allowUnknown": true,
      "options": ["Web browser", "iPhone / iPad", "Android", "Desktop", "API only (used by other software)", "Not sure"],
      "showIf": { "not": { "in": { "q": "cs.build", "values": ["API / Backend system", "Search & data platform"] } } },
      "briefField": "technicalConsiderations"
    },
    {
      "id": "cs.accessibility", "theme": "custom-software", "stage": "requirements", "text": "Are there accessibility or regulatory expectations, for example WCAG, or sector rules your users' organisations must follow?",
      "purpose": "Surface accessibility and compliance constraints.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Yes (I'll describe them)", "No specific requirements", "Not sure"], "briefField": "constraints"
    },
    {
      "id": "sh.success", "theme": "shared", "stage": "need", "text": "What would a successful outcome look like for you?",
      "purpose": "Define expected outcomes in the user's words.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "expectedOutcomes"
    },

    {
      "id": "ai.goal", "theme": "ai-agentic", "stage": "need", "text": "What would you like to achieve using AI?",
      "purpose": "Identify which kind of AI opportunity this is, without asking about models or tooling.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Improve an existing business process", "Create a new AI-powered product", "Automate workflows", "Build an intelligent assistant", "Work with our internal knowledge or documents", "Improve how we appear in AI search and answer tools", "Explore an opportunity without a defined solution", "Something else", "Not sure yet"],
      "briefField": "projectIdea", "websiteFieldId": "interest",
      "onAnswer": [
        { "when": { "in": { "q": "ai.goal", "values": ["Explore an opportunity without a defined solution", "Not sure yet"] } }, "suggestTheme": "ideas", "note": "Offer to blend with Ideas & Exploration; keep ai.* answers." },
        { "when": { "equals": { "q": "ai.goal", "value": "Work with our internal knowledge or documents" } }, "goTo": "ai.data_sources" }
      ]
    },
    {
      "id": "ai.problem", "theme": "ai-agentic", "stage": "need", "text": "What does this look like today? Where does the time, effort or friction go?",
      "purpose": "Understand the current process and pain before any solution.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "not": { "equals": { "q": "ai.goal", "value": "Explore an opportunity without a defined solution" } } },
      "briefField": "problemStatement", "websiteFieldId": "outcome"
    },
    {
      "id": "ai.data_sources", "theme": "ai-agentic", "stage": "context", "text": "Do you have documents, data or systems this would draw on?",
      "purpose": "Data availability determines feasibility and approach.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Yes", "No", "Not sure"], "briefField": "existingSystems", "websiteFieldId": "dataSources",
      "onAnswer": [
        { "when": { "equals": { "q": "ai.data_sources", "value": "Yes" } }, "goTo": "ai.data_detail" },
        { "when": { "not": { "equals": { "q": "ai.data_sources", "value": "Yes" } } }, "skip": ["ai.data_detail", "ai.sensitivity"] }
      ]
    },
    {
      "id": "ai.data_detail", "theme": "ai-agentic", "stage": "technical", "text": "What kind of information is it, and where does it live?",
      "purpose": "Identify data sources: documents, databases, content platforms, APIs, email/tickets.", "type": "multi_choice", "required": false, "allowUnknown": true,
      "options": ["Documents and files", "A database", "A content platform (for example Alfresco)", "Email or support tickets", "Third-party tools / SaaS", "Spread across many places", "Other", "Not sure"],
      "showIf": { "equals": { "q": "ai.data_sources", "value": "Yes" } }, "briefField": "existingSystems"
    },
    {
      "id": "ai.sensitivity", "theme": "ai-agentic", "stage": "technical", "text": "How sensitive is that information?",
      "purpose": "Privacy and compliance shape the architecture.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Public or low sensitivity", "Internal business information", "Confidential, personal or regulated", "Not sure"],
      "showIf": { "equals": { "q": "ai.data_sources", "value": "Yes" } }, "briefField": "constraints"
    },
    {
      "id": "ai.autonomy", "theme": "ai-agentic", "stage": "requirements", "text": "Should it only provide answers and suggestions, or also take actions in your other systems?",
      "purpose": "Establish the desired automation level and human involvement.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Provide information and answers only", "Recommend, with a person approving", "Take actions automatically within agreed limits", "Not sure yet"],
      "showIf": { "in": { "q": "ai.goal", "values": ["Improve an existing business process", "Automate workflows", "Build an intelligent assistant", "Something else"] } },
      "briefField": "functionalRequirements",
      "onAnswer": [{ "when": { "in": { "q": "ai.autonomy", "values": ["Recommend, with a person approving", "Take actions automatically within agreed limits"] } }, "goTo": "sh.integrations" }]
    },
    {
      "id": "ai.constraints", "theme": "ai-agentic", "stage": "technical", "text": "Are there operational limits we should know about, such as where data may be processed, approval steps, or systems that must not be touched?",
      "purpose": "Operational constraints.", "type": "long_text", "required": false, "allowUnknown": true, "briefField": "constraints"
    },

    {
      "id": "lm.what", "theme": "legacy-modernisation", "stage": "need", "text": "What would you like to modernise?",
      "purpose": "Scope the modernisation target.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["A legacy application", "Our software architecture", "Infrastructure or a platform", "Our technology stack", "Other", "Not sure"],
      "briefField": "projectIdea", "websiteFieldId": "modernise"
    },
    {
      "id": "lm.purpose", "theme": "legacy-modernisation", "stage": "context", "text": "What does the system do, and who depends on it?",
      "purpose": "Business purpose and criticality, in non-technical terms.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "businessContext"
    },
    {
      "id": "lm.limitations", "theme": "legacy-modernisation", "stage": "context", "text": "What is hurting most today?",
      "purpose": "Main technical and operational limitations.", "type": "multi_choice", "required": false, "allowUnknown": true,
      "options": ["Hard or risky to change", "Slow or unreliable", "Security or out-of-support software", "Expensive to run", "Difficult to integrate with other systems", "Hard to find people who know it", "Other", "Not sure"],
      "briefField": "problemStatement", "websiteFieldId": "challenges",
      "onAnswer": [
        { "when": { "includes": { "q": "lm.limitations", "value": "Slow or unreliable" } }, "note": "Consider a secondary performance theme; ask pe.symptoms only if the user wants to explore it." },
        { "when": { "includes": { "q": "lm.limitations", "value": "Difficult to integrate with other systems" } }, "goTo": "sh.integrations" }
      ]
    },
    {
      "id": "lm.stack", "theme": "legacy-modernisation", "stage": "technical", "text": "Do you know what it is built with, such as the language, database or hosting? A rough idea is fine.",
      "purpose": "Current technology stack, if known.", "type": "short_text", "required": false, "allowUnknown": true,
      "briefField": "existingSystems"
    },
    {
      "id": "lm.in_production", "theme": "legacy-modernisation", "stage": "context", "text": "Is it live in production today?",
      "purpose": "Determines continuity expectations.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Yes", "Partially", "No"], "briefField": "projectStage", "websiteFieldId": "inProduction",
      "onAnswer": [{ "when": { "equals": { "q": "lm.in_production", "value": "No" } }, "skip": ["lm.continuity"] }]
    },
    {
      "id": "lm.continuity", "theme": "legacy-modernisation", "stage": "requirements", "text": "How much interruption can the business tolerate while this changes?",
      "purpose": "Business continuity and downtime tolerance.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["It must stay available with little or no downtime", "Planned downtime windows are acceptable", "Not a concern", "Not sure"],
      "showIf": { "not": { "equals": { "q": "lm.in_production", "value": "No" } } }, "briefField": "constraints"
    },
    {
      "id": "lm.target", "theme": "legacy-modernisation", "stage": "requirements", "text": "What are you hoping happens to it?",
      "purpose": "Migration or replacement expectation.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Move it to the cloud", "Re-architect it into a modern design", "Replace it", "Upgrade it in place", "I'd like advice on the best path"],
      "briefField": "projectIdea",
      "onAnswer": [
        { "when": { "equals": { "q": "lm.target", "value": "Move it to the cloud" } }, "suggestTheme": "cloud-platform", "note": "Secondary theme; ask cp.provider only." },
        { "when": { "equals": { "q": "lm.target", "value": "I'd like advice on the best path" } }, "suggestTheme": "consulting", "note": "Secondary theme; ask tc.deliverable only." }
      ]
    },
    {
      "id": "lm.access", "theme": "legacy-modernisation", "stage": "technical", "text": "Is the source code available, and is there any documentation?",
      "purpose": "Determines discovery effort.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Source code and documentation", "Source code only", "Limited or none", "Not sure"], "briefField": "technicalConsiderations"
    },

    {
      "id": "cp.help", "theme": "cloud-platform", "stage": "need", "text": "What do you need help with?",
      "purpose": "Scope of cloud or platform work.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Cloud architecture", "Infrastructure engineering", "DevOps and CI/CD", "Deployment and platform engineering", "Cloud migration", "Other", "Not sure yet"],
      "briefField": "projectIdea", "websiteFieldId": "help"
    },
    {
      "id": "cp.environment", "theme": "cloud-platform", "stage": "context", "text": "Where does it run today?",
      "purpose": "Current hosting environment.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["On our own servers (on-premise)", "In one cloud provider", "Across more than one cloud", "A hybrid of on-premise and cloud", "A hosting provider or shared hosting", "Nothing is hosted yet", "Not sure"],
      "briefField": "existingSystems"
    },
    {
      "id": "cp.provider", "theme": "cloud-platform", "stage": "technical", "text": "Which cloud provider, if any, are you using or considering?",
      "purpose": "Cloud provider. TriLabz's cloud work is on AWS only.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["AWS", "Azure", "Google Cloud", "Other", "Not decided"], "briefField": "technicalConsiderations", "websiteFieldId": "provider",
      "onAnswer": [{ "when": { "in": { "q": "cp.provider", "values": ["Azure", "Google Cloud", "Other"] } }, "note": "TriLabz cloud work is on AWS only. Say so plainly and keep the preference in the brief under Technical considerations." }]
    },
    {
      "id": "cp.pain", "theme": "cloud-platform", "stage": "context", "text": "What is difficult about deployment or operations right now?",
      "purpose": "Deployment and operational challenges.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "problemStatement", "websiteFieldId": "requirements"
    },
    {
      "id": "cp.cicd", "theme": "cloud-platform", "stage": "technical", "text": "How are releases done today?",
      "purpose": "CI/CD and automation maturity.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Mostly by hand", "Some scripts", "A pipeline exists but needs improvement", "Mature automation; we want to optimise", "Not sure"],
      "showIf": { "in": { "q": "cp.help", "values": ["Infrastructure engineering", "DevOps and CI/CD", "Deployment and platform engineering", "Other", "Not sure yet"] } },
      "briefField": "technicalConsiderations"
    },
    {
      "id": "cp.migration_scope", "theme": "cloud-platform", "stage": "requirements", "text": "What would move, and from where to where?",
      "purpose": "Migration scope.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "equals": { "q": "cp.help", "value": "Cloud migration" } }, "briefField": "functionalRequirements"
    },
    {
      "id": "cp.priorities", "theme": "cloud-platform", "stage": "requirements", "text": "What matters most?",
      "purpose": "Reliability, scalability, cost, security and observability priorities.", "type": "multi_choice", "required": false, "allowUnknown": true,
      "options": ["Reliability / availability", "Ability to scale", "Cost control", "Security", "Monitoring and visibility", "Faster, safer releases", "Not sure"],
      "briefField": "businessObjectives"
    },

    {
      "id": "pe.looking", "theme": "performance", "stage": "need", "text": "What are you looking for?",
      "purpose": "Type of performance or quality work.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Performance testing", "Application optimisation", "Scalability assessment", "Load and stress testing", "Performance troubleshooting", "Test automation and quality engineering", "Other"],
      "briefField": "projectIdea", "websiteFieldId": "looking"
    },
    {
      "id": "pe.system", "theme": "performance", "stage": "context", "text": "Which application or system is this about, and what does it do?",
      "purpose": "Identify the system under test or optimisation.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "businessContext", "websiteFieldId": "platform"
    },
    {
      "id": "pe.symptoms", "theme": "performance", "stage": "context", "text": "What are you seeing? For example slow pages, timeouts, failures under load.",
      "purpose": "Observed issues.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "in": { "q": "pe.looking", "values": ["Application optimisation", "Performance troubleshooting", "Other"] } },
      "briefField": "problemStatement", "websiteFieldId": "challenges"
    },
    {
      "id": "pe.when", "theme": "performance", "stage": "context", "text": "When does it happen?",
      "purpose": "Pattern of occurrence.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["All the time", "Only at peak times", "After a recent release or change", "Only certain features", "Intermittently", "Not sure"],
      "showIf": { "in": { "q": "pe.looking", "values": ["Application optimisation", "Performance troubleshooting", "Other"] } },
      "briefField": "problemStatement"
    },
    {
      "id": "pe.volume", "theme": "performance", "stage": "technical", "text": "Roughly how many users or transactions does it handle, or need to handle?",
      "purpose": "Scale expectations. A rough range is enough.", "type": "number_or_range", "required": false, "allowUnknown": true,
      "briefField": "technicalConsiderations"
    },
    {
      "id": "pe.monitoring", "theme": "performance", "stage": "technical", "text": "What monitoring or testing exists today?",
      "purpose": "Existing monitoring and testing.", "type": "multi_choice", "required": false, "allowUnknown": true,
      "options": ["Application monitoring / APM", "Logs only", "Automated tests", "Load tests", "Nothing formal", "Not sure"],
      "briefField": "existingSystems"
    },
    {
      "id": "pe.target", "theme": "performance", "stage": "requirements", "text": "What improvement would count as success?",
      "purpose": "Expected improvement, ideally measurable.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "expectedOutcomes"
    },
    {
      "id": "pe.qe_scope", "theme": "performance", "stage": "requirements", "text": "What would you like tested or automated?",
      "purpose": "Scope of quality engineering.", "type": "multi_choice", "required": false, "allowUnknown": true,
      "options": ["Web", "API", "Mobile", "Regression suite", "Release process", "Not sure"],
      "showIf": { "equals": { "q": "pe.looking", "value": "Test automation and quality engineering" } },
      "briefField": "functionalRequirements"
    },

    {
      "id": "tc.guidance", "theme": "consulting", "stage": "need", "text": "What kind of guidance do you need?",
      "purpose": "Type of technical consulting.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Software architecture", "Technical strategy", "Architecture assessment", "Technology selection", "Engineering process improvement", "Resource augmentation / team extension", "Other", "Not sure yet"],
      "briefField": "projectIdea", "websiteFieldId": "guidance"
    },
    {
      "id": "tc.challenge", "theme": "consulting", "stage": "need", "text": "What decision or technical challenge are you facing?",
      "purpose": "The question to be answered.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "problemStatement", "websiteFieldId": "discuss"
    },
    {
      "id": "tc.existing_arch", "theme": "consulting", "stage": "technical", "text": "What does the current architecture or setup look like, as far as you know?",
      "purpose": "Existing architecture.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "in": { "q": "tc.guidance", "values": ["Software architecture", "Architecture assessment", "Technology selection", "Technical strategy", "Other"] } },
      "briefField": "existingSystems"
    },
    {
      "id": "tc.options", "theme": "consulting", "stage": "requirements", "text": "Which options are you weighing up?",
      "purpose": "Technology options under comparison.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "equals": { "q": "tc.guidance", "value": "Technology selection" } }, "briefField": "technicalConsiderations"
    },
    {
      "id": "tc.deliverable", "theme": "consulting", "stage": "requirements", "text": "What would be most useful from us?",
      "purpose": "Assessment vs recommendation vs implementation support.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["An assessment and written findings", "Recommendations", "Hands-on implementation support", "Ongoing advisory", "Not sure yet"],
      "briefField": "expectedOutcomes"
    },
    {
      "id": "tc.stakeholders", "theme": "consulting", "stage": "readiness", "text": "Who is involved in making this decision?",
      "purpose": "Stakeholder and decision context.", "type": "short_text", "required": false, "allowUnknown": true,
      "briefField": "constraints"
    },

    {
      "id": "bp.collab", "theme": "partnerships", "stage": "need", "text": "What type of collaboration are you exploring?",
      "purpose": "Partnership type.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Technology partnership", "Software delivery partnership", "Business collaboration", "Strategic partnership", "Other"],
      "briefField": "projectIdea", "websiteFieldId": "collab"
    },
    {
      "id": "bp.organisation", "theme": "partnerships", "stage": "context", "text": "Which organisation are you with, and what does it do?",
      "purpose": "Who the partner is. The website form requires an organisation name for this category.", "type": "short_text", "required": true, "allowUnknown": false,
      "briefField": "organisationAndContact", "websiteFieldId": "organisation"
    },
    {
      "id": "bp.objectives", "theme": "partnerships", "stage": "requirements", "text": "What would you like the collaboration to achieve?",
      "purpose": "Shared objectives.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "businessObjectives"
    },
    {
      "id": "bp.shape", "theme": "partnerships", "stage": "requirements", "text": "What could each side bring, and how might you work together?",
      "purpose": "Relevant capabilities and expected collaboration.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "functionalRequirements", "websiteFieldId": "proposal"
    },

    {
      "id": "ca.interest", "theme": "careers", "stage": "need", "text": "What are you interested in?",
      "purpose": "Type of opportunity.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["Software engineering opportunities", "AI / Engineering opportunities", "Internship opportunities", "Business or strategic collaboration", "Other"],
      "briefField": "projectIdea", "websiteFieldId": "interest",
      "onAnswer": [{ "when": { "equals": { "q": "ca.interest", "value": "Business or strategic collaboration" } }, "suggestTheme": "partnerships" }]
    },
    {
      "id": "ca.background", "theme": "careers", "stage": "context", "text": "Briefly, what is your background and what kind of work are you looking for?",
      "purpose": "Context for the team.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "businessContext", "websiteFieldId": "extra"
    },
    {
      "id": "ca.linkedin", "theme": "careers", "stage": "context", "text": "Do you have a LinkedIn profile you would like to share?",
      "purpose": "Optional profile link.", "type": "url", "required": false, "allowUnknown": true,
      "briefField": "organisationAndContact", "websiteFieldId": "linkedin"
    },
    {
      "id": "ca.portfolio", "theme": "careers", "stage": "context", "text": "And a GitHub or portfolio link?",
      "purpose": "Optional portfolio link. CVs are not uploaded through the website; a link or an email to hello@trilabz.com is used.", "type": "url", "required": false, "allowUnknown": true,
      "briefField": "organisationAndContact", "websiteFieldId": "portfolio"
    },

    {
      "id": "id.situation", "theme": "ideas", "stage": "need", "text": "What best describes your situation?",
      "purpose": "Orient a non-technical visitor.", "type": "single_choice", "required": true, "allowUnknown": true,
      "options": ["I have a business or technical problem to solve", "I have an idea for a product or application", "I want to improve an existing process or system", "I'm interested in exploring AI opportunities", "I want to understand what's possible with technology", "Something else"],
      "briefField": "projectIdea", "websiteFieldId": "situation",
      "onAnswer": [
        { "when": { "equals": { "q": "id.situation", "value": "I'm interested in exploring AI opportunities" } }, "suggestTheme": "ai-agentic", "note": "Blend: keep id.* and ask ai.goal if the user wants specifics." },
        { "when": { "equals": { "q": "id.situation", "value": "I want to improve an existing process or system" } }, "skip": ["id.similar"] }
      ]
    },
    {
      "id": "id.trigger", "theme": "ideas", "stage": "need", "text": "What prompted this? Was there a moment or frustration that started it?",
      "purpose": "Understand the origin of the idea or problem.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "businessContext"
    },
    {
      "id": "id.goal", "theme": "ideas", "stage": "need", "text": "What are you hoping to achieve? Describe it however feels natural.",
      "purpose": "Goal in the user's own words.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "problemStatement", "websiteFieldId": "goal"
    },
    {
      "id": "id.similar", "theme": "ideas", "stage": "context", "text": "Do you know of anything similar that already exists?",
      "purpose": "Existing alternatives.", "type": "yes_no", "required": false, "allowUnknown": true, "options": ["Yes", "No", "Not sure"],
      "briefField": "businessContext",
      "onAnswer": [{ "when": { "equals": { "q": "id.similar", "value": "Yes" } }, "goTo": "id.similar_detail" }]
    },
    {
      "id": "id.similar_detail", "theme": "ideas", "stage": "context", "text": "What exists, and what is missing or not good enough about it?",
      "purpose": "Gap in existing alternatives.", "type": "long_text", "required": false, "allowUnknown": true,
      "showIf": { "equals": { "q": "id.similar", "value": "Yes" } }, "briefField": "businessContext"
    },
    {
      "id": "id.stage", "theme": "ideas", "stage": "readiness", "text": "Where are you at the moment?",
      "purpose": "Ideas-specific stage.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Just exploring an idea", "Have an initial idea", "Planning and researching", "Ready to move forward", "Already have an existing solution"],
      "briefField": "projectStage", "websiteFieldId": "stage"
    },
    {
      "id": "id.help", "theme": "ideas", "stage": "requirements", "text": "What kind of help would be most useful right now?",
      "purpose": "What assistance they want.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Understanding whether it is feasible", "Shaping it into clear requirements", "Understanding options and a rough approach", "Building a prototype or first version", "Just advice for now", "Not sure"],
      "briefField": "expectedOutcomes"
    },

    {
      "id": "ge.subject", "theme": "general", "stage": "need", "text": "What is your enquiry about?",
      "purpose": "Subject line. Keep general enquiries simple.", "type": "short_text", "required": false, "allowUnknown": true,
      "briefField": "projectTitle", "websiteFieldId": "subject"
    },
    {
      "id": "ge.details", "theme": "general", "stage": "need", "text": "Is there anything specific you would like us to know?",
      "purpose": "Free-form detail.", "type": "long_text", "required": false, "allowUnknown": true,
      "briefField": "businessContext", "websiteFieldId": "enquiry"
    },

    {
      "id": "sh.existing_systems", "theme": "shared", "stage": "technical", "text": "What systems, tools or data are involved today?",
      "purpose": "Existing systems for any project theme.", "type": "long_text", "required": false, "allowUnknown": true, "briefField": "existingSystems"
    },
    {
      "id": "sh.constraints", "theme": "shared", "stage": "requirements", "text": "Are there constraints we should plan around, such as security or compliance rules, a fixed date, or tools you must use?",
      "purpose": "Constraints.", "type": "long_text", "required": false, "allowUnknown": true, "briefField": "constraints"
    },
    {
      "id": "sh.stage", "theme": "shared", "stage": "readiness", "text": "Where is the project right now?",
      "purpose": "Project stage (matches the website's optional project context).", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Idea / Exploration", "Planning", "Requirements defined", "In development", "Existing product / Production", "Not sure"],
      "briefField": "projectStage"
    },
    {
      "id": "sh.timeline", "theme": "shared", "stage": "readiness", "text": "Do you have a timeframe in mind? It's fine if not.",
      "purpose": "Preferred timeline (optional).", "type": "timeframe", "required": false, "allowUnknown": true,
      "options": ["As soon as possible", "Within 1-3 months", "Within 3-6 months", "Flexible / Not decided", "No timeline yet"],
      "briefField": "preferredTimeline"
    },
    {
      "id": "ct.name", "theme": "shared", "stage": "contact", "text": "What name should the brief go under?",
      "purpose": "Full name.", "type": "short_text", "required": false, "allowUnknown": true, "briefField": "organisationAndContact"
    },
    {
      "id": "ct.email", "theme": "shared", "stage": "contact", "text": "And a work email where the team can reach you?",
      "purpose": "Work email. Required by the website form when the user submits.", "type": "email", "required": false, "allowUnknown": true, "briefField": "organisationAndContact"
    },
    {
      "id": "ct.org", "theme": "shared", "stage": "contact", "text": "Which organisation are you with?",
      "purpose": "Organisation.", "type": "short_text", "required": false, "allowUnknown": true, "briefField": "organisationAndContact"
    },
    {
      "id": "ct.title", "theme": "shared", "stage": "contact", "text": "What is your role?",
      "purpose": "Job title.", "type": "short_text", "required": false, "allowUnknown": true, "briefField": "organisationAndContact"
    },
    {
      "id": "ct.country", "theme": "shared", "stage": "contact", "text": "Which country are you based in?",
      "purpose": "Country (helps with time zone).", "type": "short_text", "required": false, "allowUnknown": true, "briefField": "organisationAndContact"
    },
    {
      "id": "ct.method", "theme": "shared", "stage": "contact", "text": "How would you prefer to be contacted?",
      "purpose": "Preferred contact method.", "type": "single_choice", "required": false, "allowUnknown": true,
      "options": ["Email", "Phone call", "Online meeting"], "briefField": "organisationAndContact",
      "onAnswer": [{ "when": { "equals": { "q": "ct.method", "value": "Phone call" } }, "goTo": "ct.phone" }]
    },
    {
      "id": "ct.phone", "theme": "shared", "stage": "contact", "text": "What number should they call, including the country code?",
      "purpose": "Phone number. Asked only when the user prefers a phone call.", "type": "phone", "required": false, "allowUnknown": true,
      "showIf": { "equals": { "q": "ct.method", "value": "Phone call" } }, "briefField": "organisationAndContact"
    },
    {
      "id": "sh.anything_else", "theme": "shared", "stage": "review", "text": "Is there anything else you'd like to add before we put the brief together?",
      "purpose": "Catch-all before review.", "type": "long_text", "required": false, "allowUnknown": true, "briefField": "outstandingQuestions"
    }
  ],
  "themes": [
    {
      "id": "custom-software", "displayName": "Custom Software Development", "contactCategoryId": "custom-software", "icon": "Code",
      "services": ["custom-software", "mobile", "ecm", "search-data"],
      "evidenceLevel": "established",
      "intro": "Applications, platforms, enterprise software and digital products.",
      "suitableFor": "Teams or founders who want to build a new product, extend an existing application, or build backend, mobile, content or search platforms.",
      "typicalSituations": ["A new web or mobile product", "An internal tool replacing spreadsheets", "An API or integration layer", "An Alfresco-based content platform", "Enterprise search over large content"],
      "exampleMessages": ["We need a customer portal built for our members.", "I want to build a mobile app for my delivery business.", "We need an API that connects our ERP and our webshop."],
      "entryQuestion": "cs.build",
      "flow": ["cs.build", "cs.problem", "cs.project_type", "sh.users", "cs.existing_system", "cs.features", "sh.integrations", "sh.integrations_detail", "cs.platforms", "cs.accessibility", "sh.success", "sh.constraints", "sh.stage", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["cs.build"], "recommended": ["cs.problem", "sh.users", "cs.features", "sh.success"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "businessObjectives", "targetUsers", "functionalRequirements", "existingSystems", "technicalConsiderations", "expectedOutcomes", "constraints", "projectStage", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "ai-agentic", "displayName": "AI & Agentic Solutions", "contactCategoryId": "ai-agentic", "icon": "Bot",
      "services": ["ai-integration", "ai-search-visibility"],
      "evidenceLevel": "established-for-integration",
      "evidenceNote": "The website documents AI agents, MCP servers, RAG and AI integration with enterprise search and content platforms. It does not document model training or named LLM products; do not claim them.",
      "intro": "AI agents, RAG, knowledge systems and intelligent automation.",
      "suitableFor": "Organisations that want AI to work with their own documents, data and systems, or want to automate or assist a business process.",
      "typicalSituations": ["A chatbot over internal documents", "Automating a repetitive workflow", "Exposing enterprise search or content to AI agents", "Adding AI to an existing product"],
      "exampleMessages": ["I have an idea for an AI-powered platform, but I'm not sure how to approach it.", "Can we use AI on our policy documents?", "We want to automate part of our support process."],
      "entryQuestion": "ai.goal",
      "avoidAsking": ["Which LLM do you want?", "Which vector database?", "Which agent framework?"],
      "flow": ["ai.goal", "ai.problem", "sh.users", "ai.data_sources", "ai.data_detail", "ai.sensitivity", "sh.existing_systems", "ai.autonomy", "sh.integrations", "sh.integrations_detail", "sh.success", "ai.constraints", "sh.stage", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["ai.goal"], "recommended": ["ai.problem", "sh.users", "ai.data_sources", "sh.success"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "businessObjectives", "targetUsers", "functionalRequirements", "existingSystems", "technicalConsiderations", "expectedOutcomes", "constraints", "projectStage", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "legacy-modernisation", "displayName": "Legacy System Modernisation", "contactCategoryId": "legacy-modernisation", "icon": "RefreshCw",
      "services": ["legacy-modernization"],
      "evidenceLevel": "established",
      "intro": "Modernising existing applications, platforms and legacy systems.",
      "suitableFor": "Organisations running ageing or hard-to-change systems that need to move to modern, cloud-based or microservice architectures with minimal disruption.",
      "typicalSituations": ["On-premise application moving to the cloud", "Platform or database version upgrade on a live system", "Monolith to microservices", "Search platform migration"],
      "exampleMessages": ["Our core application is 15 years old and nobody wants to touch it.", "We need to upgrade our platform without taking the business offline."],
      "entryQuestion": "lm.what",
      "flow": ["lm.what", "lm.purpose", "lm.limitations", "lm.in_production", "lm.stack", "lm.access", "sh.integrations", "sh.integrations_detail", "lm.continuity", "lm.target", "sh.success", "sh.constraints", "sh.stage", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["lm.what"], "recommended": ["lm.purpose", "lm.limitations", "lm.continuity", "lm.target"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "businessObjectives", "existingSystems", "technicalConsiderations", "expectedOutcomes", "constraints", "projectStage", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "cloud-platform", "displayName": "Cloud & Platform Engineering", "contactCategoryId": "cloud-platform", "icon": "Cloud",
      "services": ["cloud-architecture", "devops"],
      "evidenceLevel": "established-for-aws",
      "evidenceNote": "Cloud work is on AWS (Lambda, API Gateway, S3, Kinesis, SQS, SNS). TriLabz confirmed Azure and Google Cloud are not offered.",
      "intro": "Cloud architecture, infrastructure, DevOps and deployment engineering.",
      "suitableFor": "Teams planning a cloud architecture or migration, or needing better CI/CD, Kubernetes deployment, monitoring and reliability.",
      "typicalSituations": ["Moving to AWS", "Serverless or microservice architecture", "Automating deployments", "Reducing cloud cost", "Production incident response"],
      "exampleMessages": ["Our deployments are manual and risky.", "We want to move our app to AWS."],
      "entryQuestion": "cp.help",
      "flow": ["cp.help", "cp.environment", "cp.pain", "cp.provider", "cp.migration_scope", "cp.cicd", "cp.priorities", "sh.existing_systems", "sh.success", "sh.constraints", "sh.stage", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["cp.help"], "recommended": ["cp.environment", "cp.pain", "cp.priorities"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "businessObjectives", "functionalRequirements", "existingSystems", "technicalConsiderations", "expectedOutcomes", "constraints", "projectStage", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "performance", "displayName": "Performance Engineering", "contactCategoryId": "performance", "icon": "Gauge",
      "services": ["quality-engineering"],
      "evidenceLevel": "confirmed-by-company",
      "evidenceNote": "TriLabz confirmed performance engineering is a service alongside quality engineering. The website has no dedicated page yet and publishes no tools; do not name any.",
      "intro": "Performance testing, application optimisation, scalability and reliability.",
      "suitableFor": "Teams with slow or unreliable systems, or who need confidence a system will handle expected load.",
      "typicalSituations": ["Slow application under load", "Pre-launch load testing", "Regression test automation", "Release quality problems"],
      "exampleMessages": ["Our app slows to a crawl every month-end.", "We need load testing before our launch."],
      "entryQuestion": "pe.looking",
      "flow": ["pe.looking", "pe.system", "pe.symptoms", "pe.when", "pe.volume", "pe.monitoring", "pe.qe_scope", "pe.target", "sh.existing_systems", "sh.constraints", "sh.stage", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["pe.looking"], "recommended": ["pe.system", "pe.symptoms", "pe.target"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "functionalRequirements", "existingSystems", "technicalConsiderations", "expectedOutcomes", "constraints", "projectStage", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "consulting", "displayName": "Technical Consulting", "contactCategoryId": "consulting", "icon": "Compass",
      "services": ["resource-augmentation"],
      "evidenceLevel": "confirmed-by-company",
      "evidenceNote": "Technical consulting and resource augmentation are published services. No packages or prices are published.",
      "intro": "Software architecture, technical strategy, engineering guidance, and resource augmentation.",
      "suitableFor": "Leaders who need an experienced view on an architecture, a technology choice or an engineering process before committing, or who need senior engineers to extend their team.",
      "typicalSituations": ["Architecture review", "Choosing between technologies", "Planning a migration", "Improving release engineering", "Adding engineers to an existing team"],
      "exampleMessages": ["Can someone review our architecture before we scale?", "We can't decide between two approaches."],
      "entryQuestion": "tc.guidance",
      "flow": ["tc.guidance", "tc.challenge", "tc.existing_arch", "tc.options", "tc.deliverable", "tc.stakeholders", "sh.constraints", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["tc.guidance"], "recommended": ["tc.challenge", "tc.deliverable"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "existingSystems", "technicalConsiderations", "expectedOutcomes", "constraints", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "partnerships", "displayName": "Business & Technology Partnerships", "contactCategoryId": "partnerships", "icon": "Handshake",
      "services": [],
      "evidenceLevel": "enquiry-category-only",
      "evidenceNote": "Offered as an enquiry category. No partner programme, tiers or terms are documented. Do not describe any.",
      "intro": "Business collaborations, technology partnerships and delivery opportunities.",
      "suitableFor": "Organisations exploring a collaboration with TriLabz.",
      "typicalSituations": ["Delivery partnership", "Technology partnership", "Strategic collaboration"],
      "exampleMessages": ["We are a consultancy looking for an engineering partner."],
      "entryQuestion": "bp.collab",
      "flow": ["bp.collab", "bp.organisation", "bp.objectives", "bp.shape", "sh.timeline", "ct.name", "ct.email", "ct.title", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["bp.collab", "bp.organisation"], "recommended": ["bp.objectives"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "businessObjectives", "functionalRequirements", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "careers", "displayName": "Careers & Opportunities", "contactCategoryId": "careers", "icon": "Briefcase",
      "services": [],
      "evidenceLevel": "enquiry-category-only",
      "evidenceNote": "Offered as an enquiry category. The website lists no open roles, hiring process or salary information; do not state any. CVs are not uploaded via the website; share a link or email hello@trilabz.com.",
      "intro": "Professional opportunities, engineering positions and potential collaborations.",
      "suitableFor": "Engineers and students interested in working with TriLabz.",
      "typicalSituations": ["Speculative application", "Internship interest"],
      "exampleMessages": ["Are you hiring Java engineers?"],
      "entryQuestion": "ca.interest",
      "flow": ["ca.interest", "ca.background", "ca.linkedin", "ca.portfolio", "ct.name", "ct.email", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["ca.interest"], "recommended": ["ca.background"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "businessContext", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"]
    },
    {
      "id": "ideas", "displayName": "Ideas & Exploration", "contactCategoryId": "ideas", "icon": "Lightbulb",
      "services": [],
      "evidenceLevel": "enquiry-category-and-discovery-process",
      "intro": "No technical knowledge needed. For visitors who have an idea, business challenge or opportunity but are not yet sure what technical solution they need.",
      "suitableFor": "Non-technical founders, business owners and leaders at the very start.",
      "typicalSituations": ["Product idea", "Business problem with no known solution", "Curious about AI", "Wants to understand what is possible"],
      "exampleMessages": ["I have an idea for an app but don't know where to start.", "I want to understand what's possible with technology for my business."],
      "entryQuestion": "id.situation",
      "flow": ["id.situation", "id.trigger", "id.goal", "sh.users", "id.similar", "id.similar_detail", "id.help", "id.stage", "sh.timeline", "ct.name", "ct.email", "ct.org", "ct.country", "ct.method", "ct.phone", "sh.anything_else"],
      "completion": { "minimum": ["id.situation"], "recommended": ["id.goal", "sh.users", "id.help"], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "problemStatement", "projectIdea", "businessObjectives", "targetUsers", "expectedOutcomes", "projectStage", "preferredTimeline", "organisationAndContact", "outstandingQuestions", "suggestedNextSteps"],
      "upgradePath": "When the idea becomes clear enough, suggest the matching specific theme and carry answers over."
    },
    {
      "id": "general", "displayName": "General Enquiries", "contactCategoryId": "general", "icon": "MessageSquare",
      "services": [],
      "evidenceLevel": "enquiry-category",
      "intro": "For general questions, or for visitors who prefer to explain their requirements without picking a category.",
      "suitableFor": "Anyone with a simple question.",
      "typicalSituations": ["A question about the company", "A request for a call", "Something that does not fit elsewhere"],
      "exampleMessages": ["Do you work with companies in Europe?", "Can someone call me about your services?"],
      "entryQuestion": "ge.subject",
      "flow": ["ge.subject", "ge.details", "ct.name", "ct.email", "ct.method", "ct.phone"],
      "completion": { "minimum": ["ge.details"], "recommended": [], "contactNeededOnlyToSend": ["ct.name", "ct.email"] },
      "maxQuestions": 3,
      "briefSections": ["enquiryCategory", "projectTitle", "businessContext", "organisationAndContact", "suggestedNextSteps"],
      "note": "Never add project-discovery questions to a general enquiry. If the user's message reveals a real project, suggest switching theme instead."
    }
  ],
  "briefFields": [
    { "id": "enquiryCategory", "label": "Enquiry category", "order": 1, "source": "selected theme displayName" },
    { "id": "projectTitle", "label": "Project title", "order": 2, "source": "short descriptive title derived from the user's own words; mark as proposed" },
    { "id": "businessContext", "label": "Business context", "order": 3 },
    { "id": "problemStatement", "label": "Problem statement", "order": 4 },
    { "id": "projectIdea", "label": "Project idea or proposed solution", "order": 5 },
    { "id": "businessObjectives", "label": "Business objectives", "order": 6 },
    { "id": "targetUsers", "label": "Target users", "order": 7 },
    { "id": "functionalRequirements", "label": "Functional requirements", "order": 8 },
    { "id": "existingSystems", "label": "Existing systems and integrations", "order": 9 },
    { "id": "technicalConsiderations", "label": "Technical considerations", "order": 10 },
    { "id": "expectedOutcomes", "label": "Expected outcomes", "order": 11 },
    { "id": "constraints", "label": "Constraints", "order": 12 },
    { "id": "projectStage", "label": "Project stage", "order": 13 },
    { "id": "preferredTimeline", "label": "Preferred timeline", "order": 14 },
    { "id": "organisationAndContact", "label": "Organisation and contact information", "order": 15 },
    { "id": "outstandingQuestions", "label": "Outstanding questions", "order": 16, "source": "all unknown, skipped and unconfirmed items" },
    { "id": "suggestedNextSteps", "label": "Suggested next steps", "order": 17, "source": "fixed guidance in project-brief.md" }
  ],
  "provenanceLabels": {
    "confirmed": "Stated or confirmed by the user.",
    "inferred": "Interpreted by the assistant from what the user said; must be confirmed in review.",
    "unknown": "User said they do not know.",
    "declined": "User chose not to share.",
    "notAsked": "Not covered; listed as outstanding where relevant."
  }
}
