{
  "requestedModel": "google/gemini-3.1-pro-preview",
  "returnedModel": "google/gemini-3.1-pro-preview",
  "provider": "Google",
  "usage": {
    "prompt_tokens": 4038,
    "completion_tokens": 9259,
    "total_tokens": 13297,
    "cost": 0.11799216,
    "is_byok": false,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "cache_write_tokens": 0,
      "audio_tokens": 0,
      "video_tokens": 0
    },
    "cost_details": {
      "upstream_inference_cost": 0.119184,
      "upstream_inference_prompt_cost": 0.008076,
      "upstream_inference_completions_cost": 0.111108
    },
    "completion_tokens_details": {
      "reasoning_tokens": 4037,
      "image_tokens": 0,
      "audio_tokens": 0
    }
  },
  "generatedAt": "2026-08-30T05:31:07.779Z",
  "sourcePath": "/home/usr1/code2/contentapp/artifacts/client-first-four-reels-20260829/01-shiva-tandav-hook-030/direction-v2/SCREENPLAY.md",
  "concepts": {
    "creative_verdict": "The previous direction failed because it relied on a generic landscape hook and allowed AI to hallucinate complex anatomy and abstract VFX, leading to morphing and disconnected imagery. The new solution establishes immediate sacred scale in Shot 1 via a colossal natural rock Lingam, strictly enforces a verbatim Shiva identity lock for all character shots, separates props from hands to prevent occlusion drift, and uses affirmative-only, physics-based motion prompts to guarantee geometric stability in MiniMax H3.",
    "visual_bible": {
      "identity_lock": "dignified adult Indian male deity, serene strong face, ash-blue skin with natural pores, long matted dark hair, small crescent moon in the hair, three horizontal white vibhuti lines, closed third-eye marking, rudraksha beads, restrained tiger-skin textile, anatomically natural proportions",
      "palette": "Moonlit blue-gray and deep shadow (Shots 1-6) -> Cold silver and stark contrast (Shots 7-11) -> Soft dawn blue and calm silver (Shots 12-14)",
      "lighting": "Cinematic, directional, high-contrast moonlight transitioning to soft dawn. Heavy use of rim lighting on silhouettes to define shapes without exposing fragile AI anatomical details.",
      "environment_lock": "Mount Kailash features dark, wet, jagged Himalayan rock, icy peaks, and persistent low-hanging cool mist. Temple elements are strictly ancient carved black stone, weathered bronze, and dark wood.",
      "quality_bar": "Premium Indian mythological cinema. Photorealistic textures (wet stone, skin pores, wood grain). Zero glowing abstract VFX, zero fire, zero text, zero extra limbs."
    },
    "shots": [
      {
        "shot": 1,
        "time": "00:00.00-00:03.30",
        "story_beat": "Kailash is introduced not as a mere mountain, but as a colossal, sacred manifestation.",
        "ideogram_prompt": "Photorealistic vertical wide shot of a colossal, ancient Shiva Lingam carved naturally into the icy, dark rock face of Mount Kailash. A massive, luminous cool moon sits directly behind the peak, casting silver rim light. Foreground features wet black stones and low-hanging mist. Premium Indian mythological cinema, cool blue-gray palette, symmetrical negative space, majestic scale.",
        "avoid": "text, branding, watermark, people, animals, glowing magic, fire, modern buildings, daytime lighting",
        "h3_prompt": "The colossal stone Lingam and mountain retain their exact structural geometry. Thin high clouds drift slowly across the luminous moon, and low valley mist rolls gently over the wet foreground rocks. The camera remains fixed at constant distance and framing.",
        "camera": "Locked 24mm wide, low angle.",
        "edit": "Hard cut on the 3.3-second audio accent.",
        "why_better": "Replaces a generic mountain postcard with an immediately arresting, sacred visual that establishes Shiva's presence without risking a fragile full-body generation.",
        "qa_risks": [
          "Ideogram might make the Lingam look like a modern polished statue rather than natural rock."
        ]
      },
      {
        "shot": 2,
        "time": "00:03.30-00:04.90",
        "story_beat": "A single temple bell announces a sacred presence.",
        "ideogram_prompt": "One massive, ancient bronze temple bell hanging from a thick, weathered rope beneath a dark carved stone archway. Cool dawn light illuminates the intricate verdigris textures on the metal. In the soft-focus background, the icy peak of Mount Kailash is faintly visible. Centered vertical close shot, premium cinematic realism.",
        "avoid": "hands, people, multiple bells, fire, text, branding, modern architecture, bright sunlight",
        "h3_prompt": "The single bronze bell and rope retain their exact shape and suspension point while making one restrained, slow, small swing. The background mountain and archway remain structurally constant. The camera remains fixed.",
        "camera": "Locked 50mm, centered.",
        "edit": "Cut at the end of one small swing.",
        "why_better": "Focuses on a single, highly detailed object to build anticipation, avoiding complex scenes that drift in H3.",
        "qa_risks": [
          "H3 might distort the bell's circular geometry during the swing."
        ]
      },
      {
        "shot": 3,
        "time": "00:04.90-00:07.20",
        "story_beat": "Nandi faces the unseen sanctum, building anticipation.",
        "ideogram_prompt": "One complete, highly detailed black-stone Nandi statue resting on a stone pedestal in three-quarter profile, facing a shadowed temple doorway. The courtyard stones are wet, reflecting soft cool moonlight. Wisps of cool mist drift across the floor. Medium-wide vertical composition, premium cinematic realism, cool blue-gray palette.",
        "avoid": "living bull, multiple statues, people, text, branding, fire, daylight, missing limbs",
        "h3_prompt": "The complete Nandi statue, pedestal, and temple doorway retain their exact solid geometry. Cool mist travels slowly across the courtyard floor, and a faint moonlight reflection shimmers slightly on the wet stone. The camera remains fixed.",
        "camera": "Locked 35mm.",
        "edit": "Hard cut on 7.2-second percussion accent.",
        "why_better": "Grounds the mythology in physical, architectural reality with high-fidelity textures that H3 can easily hold static.",
        "qa_risks": [
          "Ideogram might generate a living bull instead of a stone statue."
        ]
      },
      {
        "shot": 4,
        "time": "00:07.20-00:09.30",
        "story_beat": "Trident and damaru establish Shiva's identity before the physical reveal.",
        "ideogram_prompt": "One perfectly straight, gleaming silver trident planted firmly in dark Himalayan rock. A single complete wooden damaru drum is tied securely below its prongs with a thick red cord. The background features a moonlit mountain peak and cool mist. Centered medium-close vertical shot, highly detailed textures, cool cinematic lighting.",
        "avoid": "hands, people, multiple tridents, floating objects, fire, glowing effects, text, branding",
        "h3_prompt": "The single straight trident, wooden damaru, red cord, and rocks retain their exact first-frame geometry. Distant clouds and low mist drift gently in the background. The camera remains fixed at a constant distance and framing.",
        "camera": "Locked 65mm.",
        "edit": "Cut before any prop movement develops.",
        "why_better": "Separates the complex props from the character's hands, completely eliminating the risk of hand-prop occlusion morphing in video generation.",
        "qa_risks": [
          "Ideogram might merge the drum and the trident pole into a single weird object."
        ]
      },
      {
        "shot": 5,
        "time": "00:09.30-00:11.80",
        "story_beat": "Shiva is revealed from behind, facing Kailash.",
        "ideogram_prompt": "Photorealistic rear three-quarter medium-wide portrait of a dignified adult Indian male deity, serene strong face, ash-blue skin with natural pores, long matted dark hair, small crescent moon in the hair, three horizontal white vibhuti lines, closed third-eye marking, rudraksha beads, restrained tiger-skin textile, anatomically natural proportions. He stands completely still on a high mountain ledge, facing the distant peak of Mount Kailash. Both arms are relaxed naturally at his sides. Simple silhouette, cool moonlight, cinematic mist.",
        "avoid": "weapons, props in hands, extra arms, front view, fire, glowing magic, text, branding, crowd",
        "h3_prompt": "The rear three-quarter standing silhouette, two relaxed arms, hair, costume, and mountain ledge retain their exact original form. Motion is limited to gentle movement of hair tips, cloth edges, and distant drifting clouds. The camera makes a restrained, very slow forward push while preserving subject size and anatomy.",
        "camera": "50mm, minimal straight push.",
        "edit": "Cut on 11.8-second accent.",
        "why_better": "Uses the verbatim identity lock while hiding complex facial and hand details in a rear silhouette, ensuring a stable, majestic reveal.",
        "qa_risks": [
          "H3 might cause the arms to merge with the torso during the camera push."
        ]
      },
      {
        "shot": 6,
        "time": "00:11.80-00:15.10",
        "story_beat": "A calm profile confirms identity without spectacle.",
        "ideogram_prompt": "Photorealistic vertical shoulder-up profile portrait of a dignified adult Indian male deity, serene strong face, ash-blue skin with natural pores, long matted dark hair, small crescent moon in the hair, three horizontal white vibhuti lines, closed third-eye marking, rudraksha beads, restrained tiger-skin textile, anatomically natural proportions. A dark cobra rests calmly around his neck. Cool soft moonlight illuminates his face against a plain blue-gray mist background.",
        "avoid": "front face, hands, weapons, glowing eyes, fire, text, branding, extra heads, open mouth",
        "h3_prompt": "The profile, natural eye appearance, facial features, crescent moon, cobra, and markings retain their exact first-frame form. Motion is limited to subtle breathing, two or three loose hair strands shifting gently, and cool background mist drifting. The camera remains fixed.",
        "camera": "Locked 85mm.",
        "edit": "Use the 13.5-second internal accent for a two-frame exposure lift only; hard cut at 15.1.",
        "why_better": "Restricts the frame to a shoulder-up profile, preventing H3 from hallucinating hand movements or body shifts while delivering high-fidelity facial details.",
        "qa_risks": [
          "H3 might attempt to make the lips move or the eyes blink unnaturally."
        ]
      },
      {
        "shot": 7,
        "time": "00:15.10-00:18.20",
        "story_beat": "Sacred energy enters as water rather than destructive VFX.",
        "ideogram_prompt": "A narrow, powerful Himalayan waterfall descending from beneath a massive crescent-shaped rock formation into a clear, dark, rippling pool. One small, ancient stone Shiva emblem sits beside the water on detailed wet rock. Cold silver daylight, cinematic mist, vertical medium-wide landscape, photorealistic nature.",
        "avoid": "people, animals, text, branding, fire, glowing magic, modern structures",
        "h3_prompt": "The waterfall flows continuously down its natural path into the pool, while the crescent rock, stone emblem, and surrounding wet stones retain their exact solid geometry. Mist rises gently from the water surface. The camera remains fixed.",
        "camera": "Locked 35mm.",
        "edit": "Cut on the 18.2-second impact.",
        "why_better": "Replaces abstract energy beams with a physically plausible, highly cinematic natural phenomenon (waterfall) that AI video models excel at animating.",
        "qa_risks": [
          "The waterfall might look like static white noise rather than flowing water in H3."
        ]
      },
      {
        "shot": 8,
        "time": "00:18.20-00:20.30",
        "story_beat": "The damaru signals the beginning of Tandava.",
        "ideogram_prompt": "One complete wooden damaru drum resting alone on a polished black stone altar. A red cord is arranged neatly around it. Three horizontal white vibhuti lines are painted on the stone behind it. Cool, directional cinematic temple light highlights the detailed wood grain and cord texture. Macro vertical composition, photorealistic.",
        "avoid": "hands, people, floating objects, fire, text, branding, multiple drums",
        "h3_prompt": "The damaru, red cord, altar, and vibhuti lines retain their exact solid geometry. A soft, subtle circular shadow pulse crosses the altar once, while every physical object remains completely fixed and rigid. The camera remains fixed.",
        "camera": "Locked 100mm macro.",
        "edit": "One light pulse, hard cut at 20.3.",
        "why_better": "Creates rhythmic visual impact using a shadow pulse over a static object, entirely avoiding the morphing risks of animating a hand beating a drum.",
        "qa_risks": [
          "H3 might ignore the shadow pulse instruction and just keep the frame entirely static."
        ]
      },
      {
        "shot": 9,
        "time": "00:20.30-00:22.00",
        "story_beat": "Tandava begins through a graphic silhouette, avoiding detailed anatomy.",
        "ideogram_prompt": "Low-angle silhouette of one bare, ash-blue foot poised exactly one inch above a flat, wet black stone. The frayed edge of a tiger-skin cloth is visible at the top of the frame. Circular ripples are already present in a shallow pool of water on the stone. Cold silver backlight, vertical close shot, high-contrast cinematic lighting.",
        "avoid": "face, hands, weapons, fire, text, branding, multiple feet, shoes",
        "h3_prompt": "The single foot lowers a short, controlled distance onto the flat stone and then holds completely still. The existing water ripples expand outward naturally, while the leg, cloth edge, rock, and lighting retain their original form. The camera remains fixed.",
        "camera": "Locked 70mm.",
        "edit": "Impact exactly at 21.2 seconds; cut at 22.0.",
        "why_better": "Delivers the physical impact of the dance through a macro, isolated body part, preventing the AI from mangling a full-body dynamic action shot.",
        "qa_risks": [
          "The foot might morph or change shape as it moves downward in H3."
        ]
      },
      {
        "shot": 10,
        "time": "00:22.00-00:24.60",
        "story_beat": "One iconic dance pose delivers the visual climax.",
        "ideogram_prompt": "Wide backlit silhouette of a dignified adult Indian male deity, serene strong face, ash-blue skin with natural pores, long matted dark hair, small crescent moon in the hair, three horizontal white vibhuti lines, closed third-eye marking, rudraksha beads, restrained tiger-skin textile, anatomically natural proportions. He is frozen in one balanced Tandava dance pose on a mountain plateau. Exactly two arms forming clean separated shapes, hands empty. One raised leg and one grounded leg. A huge, luminous full moon sits directly behind him. Cool silver-white palette, minimal detail, high contrast.",
        "avoid": "extra arms, extra legs, weapons, props, fire, crowd, text, branding, daytime, complex background",
        "h3_prompt": "The single silhouette, two arms, and balanced leg pose retain their exact readable shape and remain frozen in the dance pose. Motion is limited to hair tips fluttering, cloth edges moving in the wind, and a slow halo of clouds drifting around the moon. The camera remains fixed.",
        "camera": "Locked 24mm.",
        "edit": "Two fast editorial punch-ins made in post from the same stable source at 22.8 and 23.8 seconds; hard cut at 24.6.",
        "why_better": "Uses a frozen silhouette for the climax. By keeping the character static and animating only the environment (clouds/wind), we achieve epic scale without limb morphing.",
        "qa_risks": [
          "Ideogram might generate more than two arms despite the prompt, requiring a re-roll."
        ]
      },
      {
        "shot": 11,
        "time": "00:24.60-00:27.50",
        "story_beat": "Tandava transforms the environment, not Shiva's anatomy.",
        "ideogram_prompt": "Mount Kailash centered perfectly beneath massive, concentric silver cloud rings in the night sky. Faint stars are visible through the gaps in the clouds. Wet foreground stones reflect the silver light. High-detail photorealistic vertical landscape, cool blue and silver cinematic palette, majestic scale.",
        "avoid": "people, animals, text, branding, fire, glowing magic beams, spaceships, modern elements",
        "h3_prompt": "The mountain and foreground rocks retain their exact solid geometry. The concentric cloud rings rotate very slowly in the sky, and mist flows gently through the valley below. Starlight remains restrained and constant. The camera makes a very slow, smooth pullback.",
        "camera": "24mm slow pullback.",
        "edit": "Cut on 27.5-second accent.",
        "why_better": "Shows the cosmic impact of the dance through environmental phenomena (rotating clouds) rather than abstract VFX, maintaining cinematic realism.",
        "qa_risks": [
          "The concentric clouds might dissolve into random noise instead of rotating cleanly."
        ]
      },
      {
        "shot": 12,
        "time": "00:27.50-00:30.00",
        "story_beat": "Energy resolves into abhishek.",
        "ideogram_prompt": "One highly polished black-stone Shiva Lingam and complete yoni base centered perfectly under one hanging copper vessel. One thin, continuous stream of clear water falls from the vessel onto the Lingam. Three fresh green bilva leaves rest neatly at the base. Symmetrical cool stone temple sanctum, wet reflections, photorealistic cinematic lighting.",
        "avoid": "hands, people, fire, text, branding, multiple vessels, dry stone",
        "h3_prompt": "The Lingam, yoni base, copper vessel, and three bilva leaves retain their exact solid geometry. One thin water stream flows continuously downward, and cool mist moves gently through the background of the sanctum. The camera remains fixed.",
        "camera": "Locked 50mm.",
        "edit": "Short four-frame dissolve into shot 13.",
        "why_better": "Transitions the high energy into a state of grace using a culturally accurate, geometrically simple setup that H3 can animate flawlessly.",
        "qa_risks": [
          "The water stream might detach or float unnaturally in H3."
        ]
      },
      {
        "shot": 13,
        "time": "00:30.00-00:33.30",
        "story_beat": "Shiva is now meditating; the force has settled.",
        "ideogram_prompt": "Distant wide vertical portrait of a dignified adult Indian male deity, serene strong face, ash-blue skin with natural pores, long matted dark hair, small crescent moon in the hair, three horizontal white vibhuti lines, closed third-eye marking, rudraksha beads, restrained tiger-skin textile, anatomically natural proportions. He is meditating cross-legged on a dark rock. Exactly two arms with hands resting separately on his knees. Simple silhouette. Mount Kailash at dawn is visible behind him. Soft cool mist, cinematic lighting.",
        "avoid": "weapons, props, extra arms, fire, lightning, text, branding, glowing auras",
        "h3_prompt": "The seated silhouette, two arms, separately resting hands, and cross-legged pose retain their exact readable form. Motion is limited to gentle hair tips, cloth edges, valley mist, and slow-moving dawn clouds. The camera slowly pulls back while maintaining the centered silhouette.",
        "camera": "35mm slow pullback.",
        "edit": "Soft dissolve beginning at 33.1.",
        "why_better": "Returns to the identity lock but in a state of complete stillness, using a wide shot to minimize the risk of facial or hand distortion during the camera pullback.",
        "qa_risks": [
          "H3 might cause the crossed legs to blend into the rock during the pullback."
        ]
      },
      {
        "shot": 14,
        "time": "00:33.30-00:35.03",
        "story_beat": "End on Kailash, completing the cycle.",
        "ideogram_prompt": "Photorealistic vertical wide shot of Mount Kailash transitioning into the first soft light of dawn. A massive, pale moon is setting. One distant stone temple sits at the base. Wet black foreground rocks, thin valley mist. Premium Indian mythological cinema, cool blue-gray to soft dawn palette, symmetrical negative space, serene atmosphere.",
        "avoid": "text, branding, watermark, people, animals, fire, modern buildings, harsh sunlight",
        "h3_prompt": "The Kailash landscape, temple, and foreground rocks retain their exact solid geometry as the sky shifts subtly, with thin valley mist drifting gently across the base. The camera remains fixed.",
        "camera": "Locked 24mm.",
        "edit": "Music ends on the unchanged mountain; fade picture to black only during the final six frames.",
        "why_better": "Provides a clean, symmetrical bookend to Shot 1, leaving the viewer with a sense of peace and permanence rather than a jarring logo card.",
        "qa_risks": [
          "The transition to dawn lighting in H3 might cause flickering."
        ]
      }
    ],
    "continuity_checks": [
      "Verify the Shiva identity lock string is used verbatim in Shots 5, 6, 10, and 13.",
      "Ensure exactly two arms are visible in all Shiva character shots (5, 10, 13).",
      "Confirm no character is holding a prop in any shot; trident and damaru must only appear in isolated insert shots (4, 8).",
      "Check that the crescent moon appears consistently on the correct side of Shiva's hair in Shots 5, 6, 10, and 13.",
      "Ensure all H3 prompts contain only affirmative language (no 'do not', 'avoid', or 'without')."
    ],
    "assembly_notes": [
      "Generate all H3 clips at 5 seconds minimum to ensure stability, but strictly trim to the exact durations specified in the screenplay before concatenation.",
      "Do not use speed-ramping or time-remapping to force a clip to fit; trim the source clip.",
      "Apply the two fast editorial punch-ins for Shot 10 in Premiere/Resolve using the static H3 source clip, rather than trying to prompt camera jumps in H3.",
      "Ensure the final export is exactly 35.03 seconds, 1080x1920, 30fps, with no text overlays or logos."
    ]
  }
}
