// MEGALIS — bilingual strings (en / ja)

const I18N = {
  en: {
    nav: {
      ariaLabel: 'Primary',
      items: [
        { id: 'about',   label: 'About' },
        { id: 'reel',    label: 'Reel' },
        { id: 'contact', label: 'Contact' },
        { id: 'careers', label: 'Recruiting' },
      ],
      tokyo: 'TOKYO',
      avignon: 'AVIGNON',
      losangeles: 'LOS ANGELES',
      close: 'CLOSE ✕',
      langToggle: '日本語',
      langToggleAria: 'Switch to Japanese',
      themeDark: 'Switch to light mode',
      themeLight: 'Switch to dark mode',
    },
    ticker: {
      newsBadge: 'NEWS',
      items: [
        'Coming back to Annecy for the 2026 Festival!',
        'BTU, our own IP, coming to the festival!',
        'DJ Hiroko now online!',
        'Now Hiring',
      ],
    },
    hero: {
      tag: 'We Are Framing It',
      reelTag: 'SHOW REEL · 2025 · 02:14',
      placeholder: '// drop hero reel footage — 21:9 master',
      playBtn: 'Play reel',
      scroll: 'SCROLL',
      explore: 'EXPLORE',
      coords: '34.9°N · 139.7°E ↘ 43.9°N · 4.8°E',
    },
    about: {
      num: '001 / About',
      kana: '私たちのこと — メガリススタジオ',
      title: ['A visual', 'bridge', 'between', 'worlds.'],
      p1pre: 'is a visionary VFX studio born in Japan in 2017, driven by a strong ambition: ',
      p1accent: 'to make visual storytelling resonate',
      p1post: ' between Asia and the West. Based between Tokyo and the South of France, we are a hybrid creative force — where Japan meets France, and where artistry merges with innovation.',
      p2: 'From bold advertising campaigns to immersive cinematic worlds, MEGALIS thrives on fusion: the fusion of cultures, techniques, and perspectives, with the goal of leaving a lasting impact. Deeply rooted in Japanese cinema and television, we represent an ideal creative bridge for international projects seeking that rare and authentic Japanese touch.',
      p3pre: 'At ',
      p3post: ', we create wonder, push the boundaries of visual storytelling, and nurture the artistic talents of tomorrow.',
      stats: {
        founded: 'Founded',
        studios: 'Studios — Tokyo · Avignon',
        projects: 'Projects delivered',
        awards: 'Awards & nominations',
      },
      clientsLabel: 'Our clients & partners ↘',
    },
    reel: {
      num: '002 / Reel',
      title: ['Demo', 'Reel'],
      kana: 'リール 二〇二五',
      card: {
        title: 'Demo Reel',
        altTitle: 'ONI Compositing Breakdowns',
        sub: 'MEGALIS',
        duration: '02:14',
        placeholder: '// demo reel master · 16:9 · 4K',
      },
      footL: '↘ Press space or click to play any reel inline',
      footR: 'Request the full reel →',
    },
    projects: {
      num: '003 / Projects',
      title: ['Selected', 'Projects'],
      kana: 'プロジェクト — 抜粋',
      counterOf: 'of',
      prev: 'Previous project',
      next: 'Next project',
      blurbs: [
        'Full-CG character animation and creature work for the Netflix anime feature.',
        'Stylized liquid and ice simulation for a seasonal Shiseido beauty spot.',
        'On-set VFX supervision and digital environments for the Canal+ period drama.',
        'Photoreal CG environments blending folklore architecture with live-action plates.',
        'Creature FX and full-sequence supervision for a Warner action set-piece.',
        'Sky replacement and matte painting extending the Tokyo skyline at first light.',
      ],
      footL: '↘ Drag & drop a still onto any frame',
      footR: 'See all projects →',
    },
    team: {
      num: '004 / Team',
      title: ['The', 'Team'],
      kana: 'チーム — メンバー',
      members: [
        { role: 'Co-Founder · Co-CEO · VFX Supervisor', bio: 'From Toulon, South France. After working for Lucasfilm, ILM and Square Enix, he founded MEGALIS in 2017.', origin: 'Toulon, FR',   since: 'Founder · 2017' },
        { role: 'Creative Director',                    bio: 'From Marseille, South France. Award-winning Director and Art & Creative Director, Alexandre — aka Osmoze — leads the visual development of MEGALIS projects.', origin: 'Marseille, FR', since: 'Joined · 2024' },
        { role: 'Lead Compositor',                      bio: 'From Kyoto. Background in animation and live-action compositing, with credits across Netflix, NHK and TBS productions.', origin: 'Kyoto, JP',  since: 'Joined · 2022' },
        { role: 'CG Generalist',                        bio: 'From Lyon. Lookdev, lighting and environment specialist, splitting her time between feature work and high-end commercials.', origin: 'Lyon, FR',   since: 'Joined · 2023' },
        { role: 'FX & Pipeline TD',                     bio: 'From Sendai. Houdini FX artist turned pipeline TD, building the tools that keep both studios in sync across continents.', origin: 'Sendai, JP', since: 'Joined · 2023' },
        { role: 'Animation Supervisor',                 bio: 'From Berlin. Leads character animation across feature and episodic work, blending classical animation training with a CG pipeline background. Joined MEGALIS in 2023.', origin: 'Berlin, DE', since: 'Joined · 2023' },
      ],
    },
    contact: {
      num: '005 / Contact',
      title: ["Let's", 'Talk.'],
      kana: 'お問い合わせ',
      studios: [
        { city: 'Tokyo',   kana: '東京スタジオ — 本社',     address: 'Kosen Bldg, 4 Chome-8-15\nAkasaka, Minato City\nTokyo 107-0052, Japan', phone: '+81 80-0000-0000', emailLabel: 'General Inquiry', email: 'contact@megalisvfx.com' },
        { city: 'Avignon', kana: 'アヴィニョン — スタジオ', address: 'Rue de la République\n84000 Avignon, France', phone: '+33 4 00 00 00 00', emailLabel: 'Press', email: 'contact@megalisvfx.com' },
      ],
      labels: { address: 'Address', phone: 'Phone' },
      findUs: '↘ Find us on',
      socials: ['Instagram', 'LinkedIn', 'Vimeo'],
      form: {
        title: ['Contact', 'Information'],
        step: 'Step 01 / 01',
        firstName: 'First name',
        lastName: 'Last name',
        email: 'Email',
        phone: 'Phone',
        purpose: 'Purpose',
        purposePlaceholder: 'Select a purpose…',
        message: 'Message',
        messagePlaceholder: 'Tell us about the project, timeline and budget range…',
        submit: 'Submit',
        reply: "↘ We'll get back to you shortly!",
        successTitle: 'Message received.',
        successBody: "Thank you, {name}. We'll get back to you shortly — until then, keep creating.",
        successFriend: 'friend',
        again: 'Send another',
      },
      purposes: ['Project Inquiry', 'Press / media', 'Recruiting', 'Partnership', 'General'],
      errs: { required: 'Required', email: 'Invalid email', purpose: 'Choose one', message: 'Tell us a bit more' },
    },
    careers: {
      num: '006 / Recruiting',
      title: ['Open', 'Roles.'],
      kana: '採用情報 — 募集中',
      introPre: 'Build with us. MEGALIS is a hybrid East-meets-West studio — where ',
      introArtists: 'artists',
      introAnd: ' and ',
      introEngineers: 'engineers',
      introPost: ' create with taste.',
      countSuffix: 'open positions ↘',
      sectionRole: 'The role',
      sectionMust: 'Must-haves',
      applyLabel: '↘ Apply',
      applyBtn: 'Apply now',
      applyNote: 'Send a portfolio (reel preferred), CV and a short note. We reply to every application.',
      footLead: "Don't see your role? We're always open to talented people who feel like a fit for MEGALIS.",
      footBtn: 'Send a spontaneous application →',
      roles: [
        {
          title: 'CG Supervisor',
          location: 'Tokyo / Remote (JP timezone)',
          type: 'Full-time',
          summary: 'Lead the CG team at our Tokyo studio — from lookdev through final lighting — and set the quality bar across our shows.',
          responsibilities: [
            'Own CG quality from concept through final pixel.',
            'Lead lookdev, lighting, FX and CFX leads day to day.',
            'Partner with VFX Supervisors on creative direction, scheduling and bidding.',
            'Recruit, mentor and grow a collaborative CG team.',
          ],
          musts: [
            '8+ years in CG, with 3+ supervising teams.',
            'Deep lookdev / lighting craft, ideally Arnold or Karma.',
            'Strong creative judgment and clear communication.',
          ],
        },
        {
          title: 'Lighting Supervisor',
          location: 'Tokyo / Remote (JP timezone)',
          type: 'Full-time',
          summary: 'Own the lighting craft across MEGALIS shows — defining look targets and guiding artists to a consistent, photoreal finish.',
          responsibilities: [
            'Set lighting and lookdev direction across multiple shows.',
            'Establish lighting workflows, templates and review standards.',
            'Mentor lighting artists and review work through to final.',
            'Partner with the CG Sup and comp team on integration and color.',
          ],
          musts: [
            '6+ years lighting in VFX or animation, with lead experience.',
            'Mastery of a modern renderer — Arnold, Karma or RenderMan.',
            'Strong eye for photoreal integration and color.',
          ],
        },
        {
          title: 'Technical Operations Manager',
          location: 'Tokyo / Remote (JP timezone)',
          type: 'Full-time',
          summary: 'Keep the studio running — render farm, storage, licensing and infrastructure — so artists can focus on the work.',
          responsibilities: [
            'Own the render farm, storage and studio infrastructure day to day.',
            'Manage licensing, vendor relationships and capacity planning.',
            'Lead systems and IT support across Tokyo operations.',
            'Partner with pipeline and production on tooling and throughput.',
          ],
          musts: [
            '6+ years in studio systems / technical operations.',
            'Hands-on with render management (Deadline/Tractor), Linux and networked storage.',
            'Calm, organized and clear under production pressure.',
          ],
        },
      ],
    },
    footer: {
      cta: ['Got a story?', "Let's build it →"],
      cols: {
        aboutTitle: 'MEGALIS — メガリス',
        aboutBody: 'A visionary VFX and animation studio between Tokyo and the South of France. Visual storytelling for film, television and advertising.',
        studios: 'Studios',
        studiosTokyo: 'Tokyo · JP · HQ',
        studiosAvignon: 'Avignon · FR',
        explore: 'Explore',
        social: 'Social',
      },
      copyright: '© 2026 MEGALIS. All rights reserved.',
      tagline: 'We Are Framing It',
      backToTop: '↑ Back to top',
    },
  },

  // ─── JAPANESE ───────────────────────────────────────────────────────────
  ja: {
    nav: {
      ariaLabel: 'メインナビゲーション',
      items: [
        { id: 'about',   label: '私たち' },
        { id: 'reel',    label: 'リール' },
        { id: 'contact', label: 'お問い合わせ' },
        { id: 'careers', label: '採用情報' },
      ],
      tokyo: '東京',
      avignon: 'アヴィニョン',
      losangeles: 'ロサンゼルス',
      close: '閉じる ✕',
      langToggle: 'EN',
      langToggleAria: '英語に切替',
      themeDark: 'ライトモードに切替',
      themeLight: 'ダークモードに切替',
    },
    ticker: {
      newsBadge: 'お知らせ',
      items: [
        '2026年アヌシー映画祭に再び参加！',
        '自社IP「BTU」、映画祭に登場！',
        'DJ Hiroko、オンライン配信開始！',
        '採用中',
      ],
    },
    hero: {
      tag: '私たちはフレーミングする',
      reelTag: 'ショーリール · 2025 · 02:14',
      placeholder: '// ヒーローリール素材 — 21:9 マスター',
      playBtn: 'リール再生',
      scroll: 'スクロール',
      explore: '探索',
      coords: '34.9°N · 139.7°E ↘ 43.9°N · 4.8°E',
    },
    about: {
      num: '001 / 私たち',
      kana: '私たちのこと — メガリススタジオ',
      title: ['世界を', '繋ぐ', '視覚の', '架け橋。'],
      p1pre: 'は、2017年に日本で生まれたビジョナリーVFXスタジオです。',
      p1accent: '映像表現を響かせる',
      p1post: 'という強い野心を胸に、アジアと西洋をつなぐ存在として歩みを進めています。東京と南フランスを拠点とする私たちは、日本とフランスが出会い、芸術性と革新が融合するハイブリッドなクリエイティブの力です。',
      p2: '大胆な広告キャンペーンから、没入感のある映像世界まで、MEGALISは融合の中で輝きを放ちます。文化・技術・視点の融合を通じ、長く残る印象を世界に届けることを目指しています。日本の映画とテレビに深く根ざし、本物の日本らしさを求める国際的なプロジェクトにとって、理想的なクリエイティブの架け橋となります。',
      p3pre: '',
      p3post: 'では、驚きを生み出し、映像表現の境界を押し広げ、明日のアーティスティックな才能を育てます。',
      stats: {
        founded: '設立',
        studios: '拠点 — 東京 · アヴィニョン',
        projects: '納品プロジェクト',
        awards: '受賞 ・ ノミネート',
      },
      clientsLabel: 'クライアント & パートナー ↘',
    },
    reel: {
      num: '002 / リール',
      title: ['デモ', 'リール'],
      kana: 'リール 二〇二五',
      card: {
        title: 'デモリール',
        altTitle: 'ONI コンポジット・ブレイクダウン',
        sub: 'MEGALIS',
        duration: '02:14',
        placeholder: '// デモリール マスター · 16:9 · 4K',
      },
      footL: '↘ スペースキーまたはクリックでインライン再生',
      footR: 'フルリールをリクエスト →',
    },
    projects: {
      num: '003 / プロジェクト',
      title: ['主な', '実績'],
      kana: 'プロジェクト — 抜粋',
      counterOf: '/',
      prev: '前のプロジェクト',
      next: '次のプロジェクト',
      blurbs: [
        'Netflixのアニメ映画向けのフルCGキャラクターアニメーションとクリーチャー制作。',
        '資生堂の季節限定ビューティーCMのための、スタイライズされた液体と氷のシミュレーション。',
        'Canal+の時代劇に向けた現場VFXスーパービジョンとデジタル環境制作。',
        '民話的な建築とライブプレートを融合したフォトリアルなCG環境。',
        'Warnerのアクションシーンに向けたクリーチャーFXとシーケンス全体のスーパービジョン。',
        '夜明けの東京のスカイラインを拡張するスカイ置き換えとマットペイント。',
      ],
      footL: '↘ フレームに静止画をドラッグ＆ドロップ',
      footR: 'すべてのプロジェクトを見る →',
    },
    team: {
      num: '004 / チーム',
      title: ['私たちの', 'チーム'],
      kana: 'チーム — メンバー',
      members: [
        { role: '共同創設者 · 共同CEO · VFXスーパーバイザー', bio: '南フランス・トゥーロン出身。Lucasfilm、ILM、Square Enixを経て、2017年にMEGALISを設立。', origin: 'トゥーロン, FR',   since: '創設者 · 2017' },
        { role: 'クリエイティブディレクター',                 bio: '南フランス・マルセイユ出身。受賞歴のあるディレクター兼アート＆クリエイティブディレクター。「オスモズ」の名でも知られ、MEGALIS作品のビジュアル開発を統括。', origin: 'マルセイユ, FR', since: '参加 · 2024' },
        { role: 'リードコンポジター',                         bio: '京都出身。アニメーションと実写コンポジティングを背景に持ち、Netflix・NHK・TBS作品にクレジット。', origin: '京都, JP',     since: '参加 · 2022' },
        { role: 'CGジェネラリスト',                           bio: 'フランス・リヨン出身。ルックデブ、ライティング、環境制作のスペシャリスト。長編作品とハイエンドCMの両方で活動。', origin: 'リヨン, FR',   since: '参加 · 2023' },
        { role: 'FX & パイプラインTD',                        bio: '仙台出身。HoudiniのFXアーティストからパイプラインTDへ転身。両スタジオを大陸を越えて同期させるツールを構築。', origin: '仙台, JP',     since: '参加 · 2023' },
        { role: 'アニメーションスーパーバイザー',             bio: 'ドイツ・ベルリン出身。長編・エピソード作品のキャラクターアニメーションを統括。クラシカルなアニメーション教育とCGパイプラインの知見を融合し、2023年にMEGALISへ参加。', origin: 'ベルリン, DE',   since: '参加 · 2023' },
      ],
    },
    contact: {
      num: '005 / お問い合わせ',
      title: ['お話し', 'しましょう。'],
      kana: 'お問い合わせ',
      studios: [
        { city: '東京',         kana: '東京スタジオ — 本社', address: '光線ビル, 赤坂4丁目8-15\n港区, 東京都\n107-0052 日本', phone: '+81 80-0000-0000', emailLabel: '一般問い合わせ', email: 'contact@megalisvfx.com' },
        { city: 'アヴィニョン', kana: 'アヴィニョン — スタジオ', address: 'Rue de la République\n84000 アヴィニョン, フランス', phone: '+33 4 00 00 00 00', emailLabel: 'プレス', email: 'contact@megalisvfx.com' },
      ],
      labels: { address: '住所', phone: '電話' },
      findUs: '↘ SNS',
      socials: ['Instagram', 'LinkedIn', 'Vimeo'],
      form: {
        title: ['お問い合わせ', '情報'],
        step: 'ステップ 01 / 01',
        firstName: '名',
        lastName: '姓',
        email: 'メールアドレス',
        phone: '電話番号',
        purpose: 'ご用件',
        purposePlaceholder: 'ご用件を選択…',
        message: 'メッセージ',
        messagePlaceholder: 'プロジェクト、スケジュール、ご予算をお聞かせください…',
        submit: '送信',
        reply: '↘ すぐにご返信いたします！',
        successTitle: 'メッセージを受け取りました。',
        successBody: '{name}様、ありがとうございます。すぐにご返信いたします — それまで、創造を続けてください。',
        successFriend: 'お客様',
        again: 'もう一度送る',
      },
      purposes: ['プロジェクトのご相談', 'プレス / メディア', '採用について', 'パートナーシップ', 'その他'],
      errs: { required: '必須項目', email: 'メールアドレスが無効', purpose: '選択してください', message: 'もう少し詳しく教えてください' },
    },
    careers: {
      num: '006 / 採用情報',
      title: ['募集中', 'ポジション'],
      kana: '採用情報 — 募集中',
      introPre: '私たちと一緒に作りましょう。MEGALISは、東洋と西洋が出会うハイブリッドなスタジオ — ',
      introArtists: 'アーティスト',
      introAnd: 'と',
      introEngineers: 'エンジニア',
      introPost: 'が、感性をもって創造する場所です。',
      countSuffix: '件の募集ポジション ↘',
      sectionRole: '業務内容',
      sectionMust: '必須スキル',
      applyLabel: '↘ 応募する',
      applyBtn: '応募する',
      applyNote: 'ポートフォリオ（リール推奨）、履歴書、簡単な自己紹介をお送りください。すべての応募にご返信いたします。',
      footLead: '希望のポジションが見当たりませんか？MEGALISに合う才能を持つ方の自発的なご応募もいつでも歓迎しています。',
      footBtn: '自発的な応募を送る →',
      roles: [
        {
          title: 'CGスーパーバイザー',
          location: '東京 / リモート (JST)',
          type: '正社員',
          summary: '東京スタジオのCGチームを率い、ルックデブから最終ライティングまで、各作品の品質基準を定めます。',
          responsibilities: [
            'コンセプトから最終ピクセルまでのCG品質に責任を持つ。',
            'ルックデブ、ライティング、FX、CFX のリードを日々統括。',
            'VFXスーパーバイザーと連携し、クリエイティブの方向性、スケジュール、見積もりを策定。',
            '協調的なCGチームの採用、育成、成長を主導。',
          ],
          musts: [
            'CG分野で8年以上、チームのスーパーバイズ経験3年以上。',
            'ルックデブ / ライティングの深い技術力 (Arnold または Karma が望ましい)。',
            '確かなクリエイティブ判断力と明確なコミュニケーション。',
          ],
        },
        {
          title: 'ライティングスーパーバイザー',
          location: '東京 / リモート (JST)',
          type: '正社員',
          summary: 'MEGALISの各作品におけるライティングを統括 — ルックターゲットを定義し、一貫したフォトリアルな仕上がりへ導きます。',
          responsibilities: [
            '複数作品にわたるライティングとルックデブの方向性を設定。',
            'ライティングのワークフロー、テンプレート、レビュー基準を確立。',
            'ライティングアーティストを育成し、最終まで作業をレビュー。',
            'CGスーパーバイザーやコンプチームと連携し、合成とカラーを調整。',
          ],
          musts: [
            'VFX・アニメーション分野でのライティング経験6年以上、リード経験あり。',
            'モダンなレンダラーの習熟 — Arnold、Karma、または RenderMan。',
            'フォトリアル合成とカラーに対する確かな審美眼。',
          ],
        },
        {
          title: 'テクニカルオペレーションマネージャー',
          location: '東京 / リモート (JST)',
          type: '正社員',
          summary: 'レンダーファーム、ストレージ、ライセンス、インフラを管理し、アーティストが制作に集中できる環境を維持します。',
          responsibilities: [
            'レンダーファーム、ストレージ、スタジオインフラを日々統括。',
            'ライセンス、ベンダーとの関係、キャパシティプランニングを管理。',
            '東京オペレーション全体のシステム / IT サポートを主導。',
            'パイプラインおよび制作チームと連携し、ツールとスループットを改善。',
          ],
          musts: [
            'スタジオシステム / テクニカルオペレーション経験6年以上。',
            'レンダー管理 (Deadline/Tractor)、Linux、ネットワークストレージの実務経験。',
            '制作のプレッシャー下でも冷静で、整理された明確な対応力。',
          ],
        },
      ],
    },
    footer: {
      cta: ['物語がありますか？', '一緒に作りましょう →'],
      cols: {
        aboutTitle: 'MEGALIS — メガリス',
        aboutBody: '東京と南フランスを拠点とするビジョナリーVFX・アニメーションスタジオ。映画、テレビ、広告のための映像表現を手がけます。',
        studios: '拠点',
        studiosTokyo: '東京 · JP · 本社',
        studiosAvignon: 'アヴィニョン · FR',
        explore: '探索',
        social: 'SNS',
      },
      copyright: '© 2026 MEGALIS. All rights reserved.',
      tagline: '私たちはフレーミングする',
      backToTop: '↑ トップへ戻る',
    },
  },
};

// Context + hook
window.LangContext = React.createContext('en');

window.useI18n = function (section) {
  const lang = React.useContext(window.LangContext);
  const data = I18N[lang] || I18N.en;
  return section ? data[section] : data;
};

window.useLang = function () {
  return React.useContext(window.LangContext);
};

Object.assign(window, { I18N });
