// Italian / English dictionary
const I18N = {
  en: {
    nav: { products: "Products", studio: "Studio", contact: "Contact", openMenu: "Open menu", closeMenu: "Close menu" },
    hero: {
      kicker: "Millwork Studios · est. 2025 · Independent software studio",
      h1a: "We build",
      h1b: "patient tools",
      h1c: "for the",
      h1d: "long work",
      h1e: "of small businesses.",
      sub: "A studio of engineering turning the quiet, repetitive work of a company into software that grows with it.",
      hint: "Move your cursor — the wind moves with you.",
      hintTouch: "Drag across the mill — the wind follows your finger.",
      fig: "FIG. 01 — MILL, IN SECTION",
      interactive: "INTERACTIVE — MOVE CURSOR",
      interactiveTouch: "INTERACTIVE — DRAG",
    },
    bench: {
      kicker: "01 — Platforms",
      h2a: "One bench, ",
      h2b: "every platform.",
      sub: "An independent software house: we make our own tools and bring them to every screen people work on — phone, tablet, computer, browser.",
      captions: ["iPhone · iPad", "Phones · tablets", "Mac", "PC", "Any browser", "Work doesn’t stop", "Same data, every screen"],
      hint: "The mill’s wind drives the rail — hover to slow it down.",
      hintTouch: "The breeze keeps the tools swinging — scroll to raise the wind.",
    },
    manifesto: {
      kicker: "02 — Studio",
      h2a: "Software, ",
      h2b: "milled slowly,",
      h2c: " is software that lasts.",
      fig: "fig.II — mill, in motion",
      wind: "wind",
      kt: "kt",
      body: [
        "Millwork Studios is a small, independent software studio. We choose few problems and we stay with them.",
        "We are interested in the unglamorous parts of running a small business — the lists, the handovers, the days that look like the day before. We think these are worth building for, carefully.",
        "Our products are made to grow at the speed of the people who use them. Not faster, not slower.",
      ],
      pillars: [
        { n: "i.", t: "Patient", d: "We design for the second year of use, not the first week." },
        { n: "ii.", t: "Honest", d: "No dark patterns, no upsells dressed as features." },
        { n: "iii.", t: "Owned", d: "Independent and founder-led — whoever runs the studio is also the one at the bench." },
      ],
    },
    products: {
      kicker: "03 — Products",
      h2a: "One product, ",
      h2b: "made well.",
      sub: "Plough is the first product to leave the studio. Alongside it we build enterprise software on commission — the same bench, a different order.",
      soon: "In the mill",
      enter: "Open",
    },
    plough: {
      title: "Plough",
      tag: "Activity management, milled for small and medium businesses.",
      desc: "Activity management for small and medium businesses, built around a line that keeps moving. Every task travels the belt — intake, work, quality check — so the whole company can see what is running and what is ready.",
      meta: ["v0.4 · Private beta", "Desktop & mobile"],
    },
    platforms: {
      aria: "The same Plough screen drawn at three sizes — phone, tablet and desktop — with one task moving across all three at once.",
      cols: ["INTAKE", "WORK", "QC"],
      fig: "FIG. 01 — ONE TOOL, THREE BENCHES",
      synced: "SYNCED — SAME DATA, EVERY SCREEN",
      benches: [
        { key: "phone", label: "Phone · 375 pt", t: "In the pocket, on site.", d: "Check the line, move a task, snap a photo — between one job and the next." },
        { key: "tablet", label: "Tablet · 768 pt", t: "On the bench, in the workshop.", d: "Big enough to work on, light enough to carry to the machine." },
        { key: "desktop", label: "Desktop · 1440 px", t: "At the desk, in the office.", d: "The whole line at a glance: planning, handovers, reports." },
      ],
    },
    contact: {
      kicker: "04 — Contact",
      h2a: "Write to the ",
      h2b: "miller.",
      body: "We answer everything that comes through this address. Pitches, questions, weather reports.",
      email: "support@madebymillwork.com",
      addrLabel: "Studio",
      addr: ["Via dei Mulini, 14", "20121 Milano, Italy"],
      hoursLabel: "Hours",
      hours: ["Mon–Fri, 19:00 — 22:00 CET", "Closed when it rains hard."],
    },
    footer: {
      tag: "Independent software studio. Milled in Italy.",
      colA: "Studio",
      colAitems: ["Manifesto", "Press", "Careers"],
      colB: "Products",
      colBitems: ["Plough"],
      colC: "Elsewhere",
      colCitems: ["Instagram"],
      copyright: "© 2026 Millwork Studios",
    },
  },
  it: {
    nav: { products: "Prodotti", studio: "Studio", contact: "Contatti", openMenu: "Apri menu", closeMenu: "Chiudi menu" },
    hero: {
      kicker: "Millwork Studios · fondato 2025 · Studio software indipendente",
      h1a: "Costruiamo",
      h1b: "strumenti pazienti",
      h1c: "per il",
      h1d: "lavoro lungo",
      h1e: "delle piccole imprese.",
      sub: "Uno studio di ingegneria che trasforma il lavoro silenzioso e ripetitivo di un’azienda in software che cresce con lei.",
      hint: "Muovi il cursore — il vento si muove con te.",
      hintTouch: "Trascina sul mulino — il vento segue il dito.",
      fig: "FIG. 01 — MULINO, IN SEZIONE",
      interactive: "INTERATTIVO — MUOVI IL CURSORE",
      interactiveTouch: "INTERATTIVO — TRASCINA",
    },
    bench: {
      kicker: "01 — Piattaforme",
      h2a: "Un solo banco, ",
      h2b: "ogni piattaforma.",
      sub: "Una software house indipendente: costruiamo i nostri strumenti e li portiamo su ogni schermo su cui si lavora — telefono, tablet, computer, browser.",
      captions: ["iPhone · iPad", "Telefoni · tablet", "Mac", "PC", "Ogni browser", "Il lavoro non si ferma", "Stessi dati, ogni schermo"],
      hint: "Il vento del mulino muove il binario — passaci sopra per rallentarlo.",
      hintTouch: "La brezza fa oscillare gli attrezzi — scorri per alzare il vento.",
    },
    manifesto: {
      kicker: "02 — Studio",
      h2a: "Il software ",
      h2b: "macinato lentamente",
      h2c: " è il software che dura.",
      fig: "fig.II — mulino, in moto",
      wind: "vento",
      kt: "nodi",
      body: [
        "Millwork Studios è un piccolo studio software indipendente. Scegliamo pochi problemi e ci restiamo dentro.",
        "Ci interessano le parti meno appariscenti di un’impresa — le liste, i passaggi di consegne, le giornate che assomigliano a quella prima. Crediamo che valga la pena costruirci sopra, con cura.",
        "I nostri prodotti crescono alla velocità delle persone che li usano. Non più veloci, non più lenti.",
      ],
      pillars: [
        { n: "i.", t: "Pazienti", d: "Progettiamo per il secondo anno d’uso, non per la prima settimana." },
        { n: "ii.", t: "Onesti", d: "Niente dark pattern, niente upsell travestiti da feature." },
        { n: "iii.", t: "Indipendenti", d: "Indipendenti e guidati dal fondatore: chi guida lo studio è anche chi sta al banco." },
      ],
    },
    products: {
      kicker: "03 — Prodotti",
      h2a: "Un prodotto, ",
      h2b: "fatto bene.",
      sub: "Plough è il primo prodotto uscito dallo studio. Accanto ai prodotti sviluppiamo software enterprise su commessa — stesso banco, ordine diverso.",
      soon: "Al mulino",
      enter: "Apri",
    },
    plough: {
      title: "Plough",
      tag: "Gestione delle attività, macinata per le piccole e medie imprese.",
      desc: "Gestione delle attività per le piccole e medie imprese, costruita attorno a una linea che continua a muoversi. Ogni compito percorre il nastro — ingresso, lavorazione, controllo qualità — così tutta l’azienda vede cosa sta girando e cosa è pronto.",
      meta: ["v0.4 · Beta privata", "Desktop e mobile"],
    },
    platforms: {
      aria: "La stessa schermata di Plough disegnata in tre formati — telefono, tablet e desktop — con un compito che si sposta su tutti e tre insieme.",
      cols: ["INGRESSO", "LAVORAZIONE", "CONTROLLO"],
      fig: "FIG. 01 — UNO STRUMENTO, TRE BANCHI",
      synced: "SINCRONIZZATO — STESSI DATI, OGNI SCHERMO",
      benches: [
        { key: "phone", label: "Telefono · 375 pt", t: "In tasca, in cantiere.", d: "Controlli la linea, sposti un compito, scatti una foto — tra un lavoro e l’altro." },
        { key: "tablet", label: "Tablet · 768 pt", t: "Sul banco, in officina.", d: "Abbastanza grande per lavorarci, abbastanza leggero da portarlo alla macchina." },
        { key: "desktop", label: "Desktop · 1440 px", t: "Alla scrivania, in ufficio.", d: "Tutta la linea in un colpo d’occhio: pianificazione, passaggi di consegne, report." },
      ],
    },
    contact: {
      kicker: "04 — Contatti",
      h2a: "Scrivi al ",
      h2b: "mugnaio.",
      body: "Rispondiamo a tutto ciò che arriva a questo indirizzo. Pitch, domande, bollettini meteo.",
      email: "support@madebymillwork.com",
      addrLabel: "Studio",
      addr: ["Via dei Mulini, 14", "20121 Milano"],
      hoursLabel: "Orari",
      hours: ["Lun–Ven, 19:00 — 22:00 CET", "Chiuso quando piove forte."],
    },
    footer: {
      tag: "Studio software indipendente. Macinato in Italia.",
      colA: "Studio",
      colAitems: ["Manifesto", "Stampa", "Lavora con noi"],
      colB: "Prodotti",
      colBitems: ["Plough"],
      colC: "Altrove",
      colCitems: ["Instagram"],
      copyright: "© 2026 Millwork Studios",
    },
  },
};

const LangCtx = React.createContext({ lang: "en", t: I18N.en, setLang: () => {} });
const useT = () => React.useContext(LangCtx);

Object.assign(window, { I18N, LangCtx, useT });
