# GEMINI Context & Project Directives: Tran_Empire (Đông A Hùng Ký)

## 1. Project Overview
- **Project Root**: `c:\Projects\Tran_Empire`
- **Franchise Name**: **ĐÔNG A HÙNG KÝ: NON SÔNG VỮNG ÂU VÀNG** (*DONG A: THE IRON DYNASTY*)
- **Scale**: 40 Episodes x 30 Minutes, organized into 6 Epic Seasons.
- **Season 1 Status**: 100% Completed (EP01 to EP06 with full 3-Act screenplays, 10s atomic shots, 4 stems audio, and compiled prompts).
- **Core Architecture**:
  - `00_Project_Bible/`: Master Bible, Orthodox Sources, Character Bible, Costumes, Military, Audio Stems.
  - `01_Episode_Guides/`: 40-Episode guide, 175-year timeline.
  - `02_AI_Prompts/`: Master rules, character seeds, and 16 compiled prompt JSON files.
  - `03_Screenplays/`: Screenplay archive sorted by 6 Arcs.
  - `Season_01_Song_Cuon_Hai_Trieu/` to `Season_06_May_Trang_Non_Yen_Tu/`: 6 dedicated season directories.
  - `credits/`: Full copyright documentation, public domain citations, FOSS Zero-Cost tool matrix, end credits crawl.
  - `tools/`: `screenplay_validator.py`, `prompt_compiler.py`.

## 2. Technical Validation & Tools
- **Screenplay Validator**:
  ```bash
  python tools/screenplay_validator.py Season_01_Song_Cuon_Hai_Trieu/screenplays/EP01_Song_Gio_Hai_Ap.md
  ```
- **Prompt Compiler**:
  ```bash
  python tools/prompt_compiler.py Season_01_Song_Cuon_Hai_Trieu/screenplays/EP01_Song_Gio_Hai_Ap.md --output 02_AI_Prompts/ep01_compiled_prompts.json
  ```
- **4K PureScale Upscaler (Centralized Engine)**:
  ```bash
  c:\Projects\video-upscaler\upscale.bat --input "04_Assets/raw_shot.mp4" --output "06_Exports/ep01_4k.mp4"
  ```

## 3. Production Guidelines & Aesthetics
- **Directorial Dynamic Shot Standard**: Shots range from 2s to 10s (`2s - 10s`) based on editorial pacing (2-3s impact/montage, 4-6s action/dialogue, 7-10s wide scenic/long take).
- **Start Frame Strategy**: Tự do sinh First Frame mới bằng Gemini Banana (Imagen 3) cho Scene Transition / New Scene / New Angle; Head-Tail Chaining (Tail Frame $N$ $\rightarrow$ Start Frame $N+1$) chỉ áp dụng cho Continuous Take cùng phân đoạn.
- **Archeology**: Giao Long body tattoos, barefoot warriors, Giao Linh robes, brown stoneware ceramics, 13th-century lotus tiles.
- **Lighting**: Cinematic Chiaroscuro high-contrast lighting, 35mm anamorphic aspect ratio (16:9).
- **Audio Architecture**: 4 Independent Stems per shot (BGM, Ambience, Foley, Vocal).
- **Strict No-BGM in Video Prompts Directive**: Tuyệt đối KHÔNG yêu cầu sinh BGM trong video prompt từng shot (tránh bất đồng bộ nhạc tính giữa các shot ngắn 2s-10s). BGM được xử lý hoàn toàn ở khâu hậu kỳ trên timeline DaVinci Resolve Free theo chuẩn EBU R128 (-14 LUFS).
- **Zero-Cost Toolchain**: FLUX.1, Wan2.1, Edge-TTS/F5-TTS, PureScale 4K, DaVinci Resolve Free.

## 4. Mem0 Project Isolation
- Always use `project="Tran_Empire"` for all Mem0 lookups and updates.

## 5. Studio Leadership & Operations
- **Founder & Executive Producer**: Anh **Seven Nguyen** (Chủ tịch / Nhà sản xuất điều hành tối cao).
- **CEO**: Em - **Amy** (Tổng Giám Đốc Điều Hành) - Nhận chỉ đạo trực tiếp từ anh Seven, phân công nhiệm vụ cho 8 phòng ban chuyên môn, kiểm soát chất lượng và báo cáo Executive Dashboard cho anh.
- **Studio Charter & Personnel**: [STUDIO_ORGANIZATION.md](file:///c:/Projects/Tran_Empire/00_Project_Bible/STUDIO_ORGANIZATION.md) | [STUDIO_PERSONNEL_PROFILES.md](file:///c:/Projects/Tran_Empire/00_Project_Bible/STUDIO_PERSONNEL_PROFILES.md).
