// ============================================================
// Beyond the Falls - content (English translation of treatment)
// ============================================================

// ---- Technology (featured left card in Production) --------
const TECHNOLOGY = {
  key: 'technology', tag: 'Narrative OS', title: 'Technology', script: 'from script to cut',
  file: 'THE STORY / ABOUT',
  short: 'Built on Wizard Studio - our proprietary ultra-advanced Narrative OS for AI film and series.',
  body: [
    'Beyond the Falls is produced on Wizard Studio - not another AI tool, but a complete Narrative OS. An exclusively built system and engine at the core of the Wizard Element ecosystem.',
    'From script to cut in one pipeline: AI breaks the script into scenes, beats and characters. You compose shots, lock identity, and generate premium-quality video in a single window - full control over the process.',
    'You stay the Director. The platform owns the pipeline and AI orchestration: multi-engine mesh, character consistency, and end-to-end production that single tools simply do not have.',
  ],
  list: [
    ['Script Breakdown', 'AI splits the script into scenes and beats, reading context, mood and time of day.'],
    ['Identity Lock', 'Character and style consistency across every shot.'],
    ['Director Board', 'One workspace for staging the whole project - shots, lenses, motion.'],
    ['20+ AI engines', 'Plug-and-play video, audio, music and SFX in one flow - quality and cost under your control.'],
  ],
  facts: ['Wizard Studio', 'Narrative OS', 'End-to-end', '10× faster'],
};

// ---- Concept cards (About section) -> open in modals -------
const CONCEPTS = [
  {
    key: 'about', tag: 'THE STORY', title: 'About', script: 'universe and meanings',
    file: 'THE STORY / ABOUT',
    short: 'A horizontal adventure series set in a magical universe where nature and all living things have a voice.',
    body: [
      'A horizontal adventure series set in a magical universe inhabited by wondrous creatures - somewhat like us. In this world, nature and all living things have a voice. Magic here is not a tool of influence, but a form of knowledge that helps you understand nature and the world around you.',
      'This is a story not about superpowers, but about how the world works and what consequences our choices carry - how words and deeds shape reality, and why awareness matters more than impulse. It is a story about choice, growing up, and the harmony between reason and feeling.',
    ],
  },
  {
    key: 'unique', tag: 'Why it stands out', title: 'Uniqueness', script: 'new ways of storytelling',
    file: 'THE STORY / ABOUT',
    short: 'Magic that grows the heroes instead of solving their problems - and an antagonist with no villain’s face.',
    list: [
      ['Magic as responsibility, not power', 'Magic never solves the problem or works as force. It serves the heroes’ inner growth.'],
      ['An antagonist with no villain’s face', 'The threat is not a monster or a tyrant, but a system selling convenience, fast success, and the refusal to think.'],
      ['Learning through doing', 'The school is not classrooms with lessons, but spaces of practice.'],
      ['No “good” and “bad” sides', 'Everyone makes mistakes. The difference is who takes responsibility - and who looks for the easy way out.'],
      ['Philosophy built into the plot', 'Ideas emerge through events and lived experience, not empty lectures a child can’t follow.'],
    ],
  },
  {
    key: 'relevance', tag: 'Why now', title: 'Relevance', script: 'healthy guideposts',
    file: 'THE STORY / ABOUT',
    short: 'Few stories help children make sense of their feelings and not lose themselves. This one does.',
    body: [
      'The market is saturated with shallow stories, yet there are truly few that help children make sense of their feelings, navigate growing up, and not lose themselves.',
      'Today it is especially important to give children clear, healthy guideposts - through story, emotion, and good examples. In Beyond the Falls we speak about the values that support and grow a child: family and tradition, friendship and honesty, respect and care for others and the world.',
      'The story develops a young viewer’s ability to see cause and effect, to tell truth from convenient lies, and to make sense of a complex world.',
    ],
  },
  {
    key: 'problem', tag: 'The problem', title: 'Why children need this', script: 'healthy growing up',
    file: 'THE STORY / ABOUT',
    short: 'A loud, fast, fragmented world where childhood slips past instead of being lived.',
    body: [
      'The modern world is loud, fast, and fragmented. Global crises and constant social pressure are no longer abstractions - they have become part of everyday life, unsettling and disorienting children.',
      'Children grow up among countless substituted guideposts. They get used to quick answers and other people’s opinions, and their emotions are easily steered from outside. Childhood in such a world more often slips past than is lived.',
      'Family loses its voice; school loses its meaning. Content replaces knowledge, simulations replace reality, and success is sold as fast and effortless. That is exactly why children today need stories that don’t lead them astray, but help them find the way.',
    ],
  },
  {
    key: 'message', tag: 'The core message', title: 'Balance', script: 'harmony without harm',
    file: 'THE STORY / ABOUT',
    short: 'Balance is the only form of harmony that infringes on no one.',
    body: [
      'Balance is the only form of harmony that infringes on no one.',
      'To build a world founded on equality, justice, and truth, you must constantly work on yourself: seek balance within and without, grow your knowledge, and build healthy, harmonious relationships with people and the world around you.',
    ],
  },
];

// ---- Values (replace fake reviews marquee) ----------------
const VALUES = [
  { t: 'Your words and deeds matter.', who: 'For children' },
  { t: 'Easy answers aren’t always the right path.', who: 'For children' },
  { t: 'Nature is a living system, not an endless resource.', who: 'For children' },
  { t: 'Inner wholeness is worth more than outward recognition.', who: 'For children' },
  { t: 'Inattention and silence are also decisions - and they have consequences.', who: 'For adults' },
  { t: 'Catastrophes begin not with malice, but with the absence of dialogue.', who: 'For adults' },
  { t: 'Manipulation is no less dangerous than direct violence.', who: 'For adults' },
  { t: 'Ecology is a mirror of social processes.', who: 'For adults' },
  { t: 'True leadership is service, not privilege.', who: 'For adults' },
];

// ---- Three worlds -----------------------------------------
const WORLDS = [
  {
    key: 'mage', name: 'Mage World', tag: 'Intuition · Symbol', n: '01',
    bg: '#062016', fg: '#F4F3EE', accent: '#7CFFCB', img: '/beyond-the-falls/uploads/hero/mage.webp',
    short: 'Images, intuition, imagination and deep feeling. The part of us that holds the whole picture.',
    body: [
      'The mages’ world is a space where everything obeys the natural vibrations of nature. Reality is not filtered through intellectual limitation - it endlessly continues to form and transform through the open thinking of the mages.',
      'It is the realm of images, intuition, imagination and deep feeling - the part of us that holds the whole picture, speaks in symbols, and stays in living contact with nature and the self. Here there is magic, and unique abilities.',
      'Magic here is not tricks or flashy manifestations of desire, but a system of knowledge that helps one use one’s reserves more skillfully and interact harmoniously with nature. Nature serves as a tuning fork of original purity and sincerity, toward which we strive.',
    ],
    pills: ['Intuition', 'Imagination', 'Symbols', 'Living nature'],
  },
  {
    key: 'ordy', name: 'Ordy World', tag: 'Logic · Structure', n: '02',
    bg: '#0A0A0A', fg: '#F4F3EE', accent: '#C6FF4A', img: '/beyond-the-falls/uploads/hero/ordy.webp',
    short: 'The territory of logic, structures, plans and cause-and-effect. The ordinary world we see every day.',
    body: [
      'The Ordy world is the territory of logic, structures, plans, and cause-and-effect.',
      'There is no magic here, no wonder - it is the ordinary world that you and I see every single day. Its order is the engine of much of the story: an ancient artifact of the Water element once ended up here, and its disappearance broke the fragile balance between worlds.',
    ],
    pills: ['Logic', 'Structure', 'Plans', 'Cause & effect'],
  },
  {
    key: 'rebirth', name: 'Rebirth World', tag: 'The space between', n: '03',
    bg: '#1A1320', fg: '#F4F3EE', accent: '#C6FF4A', img: '/beyond-the-falls/uploads/hero/rebirth.webp',
    short: 'The space “between.” Between life and death, between choice and consequence.',
    body: [
      'The world of Rebirth is the space “between.” Between life and death, between choice and consequence, between who you think you are and who you truly are.',
      'You cannot find it, and you cannot travel there - you “fall into” it when familiar reality becomes too tight, and an inner crisis reaches the point where you can no longer go back, but cannot yet see forward.',
      'It is here that Aquius is forced to face his own memories, learn the truth about his family, and honestly look at his inner problems for the first time.',
    ],
    pills: ['In-between', 'Memory', 'Consequence', 'Truth'],
  },
];

// ---- Synopsis beats ---------------------------------------
const SYNOPSIS_BEATS = [
  { k: '01', t: 'The solstice', d: 'On the summer solstice, power passes from one element to the next - this year, from Fire to Water - continuing an ancient cycle that preserves balance.' },
  { k: '02', t: 'A new ruler', d: 'Aquius, the young ruler of the water world, must prove in his first year that he rightfully deserves the title of Master of the Water element.' },
  { k: '03', t: 'The contamination', d: 'Just after the celebration, an unknown contamination appears in a mountain lake - one of the main sources of fresh water. An accident, it seems. It is not.' },
  { k: '04', t: 'The University of Success', d: 'A mysterious organization offers simple answers, fast solutions, and convenient blame - quietly eroding trust in the world’s traditional institutions.' },
  { k: '05', t: 'A personal trial', d: 'For Aquius the crisis turns personal. The traces lead to an old family story, and he descends into the World of Rebirth to face the truth.' },
  { k: '06', t: 'The young investigate', d: 'Three students - Div, Draco and Sylpha - under the Om-club mentor Homorus, begin their own investigation while the adults tangle in politics.' },
  { k: '07', t: 'The broken artifact', d: 'The contamination traces back to the Ordy world, where an ancient Water artifact was lost - not without Aquius’s help - breaking the balance between worlds.' },
  { k: '08', t: 'The Waterfall of Impressions', d: 'Only children, with their plasticity and openness, can cross the border between worlds. The friends decide to do what the adults cannot.' },
];

// ---- Characters - grouped by organization -----------------
// element color coding (shared chroma/lightness, varied hue)
const EL = {
  water: '#7CFFCB', fire: '#FF9466', air: '#A9D4FF', earth: '#BFE85A', none: '#C6FF4A',
};

const CHAR_GROUPS = [
  {
    key: 'kids', name: 'The young heroes', tag: 'Protagonists',
    bg: '#062016', fg: '#F4F3EE', accent: '#7CFFCB',
    desc: 'The generation that acts while the adult world tangles in versions and political calculation. Bound by friendship - and the desire to understand what is really happening to their world.',
    people: [
      { name: 'Div', age: '12', role: 'Protagonist · Water', el: 'water', img: '/beyond-the-falls/uploads/hero/div.webp', d: 'A young mage of the Water element and son of Aquius - future heir to Water. His ordinary teenage life ends abruptly: he must choose between the comfort of childhood, forever in his father’s shadow, and a responsibility he doesn’t feel ready for.' },
      { name: 'Draco', age: '12', role: 'Best friend · Fire', el: 'fire', img: '/beyond-the-falls/uploads/hero/draco.webp', d: 'Div’s best friend, of the Fire element - and a true rarity: born with three heads, an exceptional phenomenon even among dragons.' },
      { name: 'Sylpha', age: '14', role: 'Friend · Air', el: 'air', img: '/beyond-the-falls/uploads/hero/sylpha.webp', d: 'The new friend of Div and Draco, of the Air element. The bright “fixer” of the teenage magical world - quick, resourceful, and impossible to ignore.' },
      { name: 'Salma', age: '16', role: 'Journalist', el: 'none', img: '/beyond-the-falls/uploads/hero/salma.webp', d: 'A young journalist and editor-in-chief of the school newspaper, chasing the story the adults would rather keep quiet.' },
      { name: 'Pixie', age: '16', role: 'Athlete', el: 'air', img: '/beyond-the-falls/uploads/hero/pixie.webp', d: 'A self-assured, arrogant athlete - favorite of all the girls and the star of every party.' },
    ],
  },
  {
    key: 'gov', name: 'The Government', tag: 'Elements · Succession',
    bg: '#0A0A0A', fg: '#F4F3EE', accent: '#7CFFCB',
    desc: 'Power as succession: once a year, on the solstice, it passes from one Element to another so none may dominate the rest. The Water government is a council of caring professionals constantly seeking balance between nature and society.',
    people: [
      { name: 'Aquius', age: '45', role: 'Ruler · Water', el: 'water', img: '/beyond-the-falls/uploads/hero/aquius.webp', d: 'Ruler of the mages’ world for the reign of Water. His crisis is both political and deeply personal - its roots reach back into his own youth.' },
      { name: 'Frigus', age: '45', role: 'Order & security', el: 'water', img: '/beyond-the-falls/uploads/hero/frigus.webp', d: 'Head of order and security - the one who keeps the world steady while it searches for answers.' },
    ],
  },
  {
    key: 'women', name: 'The Women’s Club', tag: 'Heart-system of the city',
    bg: '#2A1322', fg: '#F4F3EE', accent: '#FF9466',
    desc: 'A living “heart-system” of the city - working with its mood, values and inner climate. The club may propose changes to rules and customs: where a law wounds people, it opens dialogue and helps find softer, more humane solutions. Its task is not to break the system, but to balance it.',
    people: [
      { name: 'Nayada', age: '40', role: 'Head of the club', el: 'water', img: '/beyond-the-falls/uploads/hero/nayada.webp', d: 'Head of the Women’s Club - a pillar of support for Aquius, sensing the subtle changes in the life of the city.' },
      { name: 'Calidia', age: '44', role: 'Chief assistant', el: 'water', img: '/beyond-the-falls/uploads/hero/calidia.webp', d: 'Nayada’s chief assistant and an active member of the club, moving like weather where care is needed.' },
    ],
  },
  {
    key: 'school', name: 'The School', tag: 'Inner growth',
    bg: '#13241A', fg: '#F4F3EE', accent: '#7CFFCB',
    desc: 'A space of inner growth, where magic means conscious perception of reality through philosophy, spirituality and science - not spells. Children of all Elements coexist here, and learning happens through conversation, dialogue and play rather than lectures and tests.',
    people: [
      { name: 'Ludwig', age: '60', role: 'Director · Philosopher', el: 'earth', img: '/beyond-the-falls/uploads/hero/ludwig.webp', d: 'Director of the school and a philosopher who can explain even the most complex ideas in simple words.' },
      { name: 'Alex', age: '40', role: 'Class mentor', el: 'earth', img: '/beyond-the-falls/uploads/hero/alex.webp', d: 'The middle-school class mentor - a wise, kind guide for the students at the heart of the story.' },
    ],
  },
  {
    key: 'om', name: 'The Om Club', tag: 'Dialogue · Doubt',
    bg: '#0F1F2A', fg: '#F4F3EE', accent: '#A9D4FF',
    desc: 'A living discussion club - a community of like-minded people who come to talk about what matters, share ideas, and learn not to fear doubt. Here everyone is equal; the teacher is not a controller but a friend, mentor and guide. In unity - strength.',
    people: [
      { name: 'Homorus', age: '65', role: 'Head of Om · Ex-ruler', el: 'none', img: '/beyond-the-falls/uploads/hero/homorus.webp', d: 'Former ruler of the magical world and head of the Om Club. He guides the three young heroes through their own investigation.' },
      { name: 'Baku', age: '∞', role: 'Guide · Shopkeeper', el: 'none', img: '/beyond-the-falls/uploads/hero/baku.webp', d: 'Beyond time and outside it - a guide to the mysteries of the magical world, and owner of the shop of antiquities and wonders.' },
    ],
  },
  {
    key: 'muse', name: 'The Muse Club', tag: 'Art · Discipline',
    bg: '#F4F3EE', fg: '#0A0A0A', accent: '#062016',
    desc: 'A place that instills a taste for art through the discipline of form: first knowledge, technique and taste - then inspiration. The approach is academic, and the focus is individuality: each student seeks their own voice in line, color, movement, sound and stage.',
    people: [
      { name: 'Cilia', age: '58', role: 'Head of Muse', el: 'earth', img: '/beyond-the-falls/uploads/hero/cilia.webp', d: 'Head of the Muse Club, holding the line between rigor and beauty - form is the mercy we owe an idea.' },
      { name: 'Yume', age: '-', role: 'The nature of sound', el: 'air', img: '/beyond-the-falls/uploads/hero/yume.webp', d: 'Cilia’s right hand, who teaches the nature of sound - the language beneath language.' },
    ],
  },
  {
    key: 'univ', name: 'University of Success', tag: 'Antagonist',
    bg: '#1A0A0A', fg: '#F4F3EE', accent: '#C6FF4A', danger: true,
    desc: 'The antagonist of the clubs. A pseudo-educational organization that sells false secrets of success instead of real knowledge - a façade of promises of fast results. It tries to fog children’s minds with cluttering information, leaving no room for analysis, awareness or reflection.',
    people: [
      { name: 'Lady Zi', age: '50', role: 'Founder · Head', el: 'none', img: '/beyond-the-falls/uploads/hero/lady-zi.webp', d: 'Head of the University of Success. Its interests are her interests - and her product is the quiet erosion of a child’s ability to think for themselves.' },
    ],
  },
];

// ---- Backstage reel placeholders (swap tint → poster/src later) ----
const BACKSTAGE_TAKES = [
  { id: '01', label: 'Take 01', tag: 'FAILED',  tint: '#0B1A14', src: '/beyond-the-falls/uploads/backstage/web/take-01.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-01.webp' },
  { id: '02', label: 'Take 02', tag: 'OUTTAKE', tint: '#1A0A0A', src: '/beyond-the-falls/uploads/backstage/web/take-02.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-02.webp' },
  { id: '03', label: 'Take 03', tag: 'FAILED',  tint: '#06140F', src: '/beyond-the-falls/uploads/backstage/web/take-03.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-03.webp' },
  { id: '04', label: 'Take 04', tag: 'OUTTAKE', tint: '#120A14', src: '/beyond-the-falls/uploads/backstage/web/take-04.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-04.webp' },
  { id: '05', label: 'Take 05', tag: 'FAILED',  tint: '#0A1210', src: '/beyond-the-falls/uploads/backstage/web/take-05.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-05.webp' },
  { id: '06', label: 'Take 06', tag: 'OUTTAKE', tint: '#0B1A14', src: '/beyond-the-falls/uploads/backstage/web/take-06.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-06.webp' },
  { id: '07', label: 'Take 07', tag: 'FAILED',  tint: '#1A0A0A', src: '/beyond-the-falls/uploads/backstage/web/take-07.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-07.webp' },
  { id: '08', label: 'Take 08', tag: 'OUTTAKE', tint: '#06140F', src: '/beyond-the-falls/uploads/backstage/web/take-08.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-08.webp' },
  { id: '09', label: 'Take 09', tag: 'FAILED',  tint: '#120A14', src: '/beyond-the-falls/uploads/backstage/web/take-09.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-09.webp' },
  { id: '10', label: 'Take 10', tag: 'OUTTAKE', tint: '#0A1210', src: '/beyond-the-falls/uploads/backstage/web/take-10.mp4', poster: '/beyond-the-falls/uploads/backstage/web/take-10.webp' },
];

Object.assign(window, { TECHNOLOGY, CONCEPTS, VALUES, WORLDS, SYNOPSIS_BEATS, CHAR_GROUPS, EL, BACKSTAGE_TAKES });
