Skip to content
TheChatArchiveThe Chat Archive
GLMGLM-5 / Pony Alpha· unknownHugging Face Frontier Reasoning Traces

Construct a CFO-led shareholder activism mitigation simulator with scenario rehearsals,…

  1. User

    Construct a CFO-led shareholder activism mitigation simulator with scenario rehearsals, disclosure flips, and stakeholder mapping.

  2. GLM Assistant

    The user wants a CFO-led shareholder activism mitigation simulator. This is a sophisticated enterprise tool that would be used by CFOs and their teams to prepare for and respond to shareholder activist situations.

    Key features needed:

    1. Scenario Rehearsals - Practice responding to different activist scenarios (proxy fights, board seat demands, spin-off requests, etc.)
    2. Disclosure Flips - Toggle between different disclosure positions/strategies
    3. Stakeholder Mapping - Visual representation of shareholders, their stakes, voting tendencies, and relationships

    Let me design a comprehensive single-file HTML application with:

    Visual Design:

    • Professional, corporate aesthetic - think Bloomberg Terminal meets modern fintech
    • Dark theme with sharp accent colors (not purple!)
    • Maybe a deep navy/charcoal with gold/amber accents for that "C-suite" feel
    • Clean typography - perhaps Space Grotesk or similar

    Core Components:

    1. Dashboard Header - Company info, current stock price simulation, threat level indicator

    2. Scenario Panel - Different activist scenarios to rehearse:

      • Proxy Contest
      • Board Seat Demand
      • Spin-off Pressure
      • Capital Allocation Criticism
      • Governance Challenge
      • Management Replacement Threat
    3. Disclosure Flip Panel - Toggle between positions:

      • Defensive Posture
      • Engagement Mode
      • Negotiation Stance
      • Public Response Each with pre-built response frameworks
    4. Stakeholder Map - Interactive visualization showing:

      • Institutional investors (size by holdings)
      • Activist funds (highlighted)
      • Retail investors
      • Board members
      • Proxy advisors
      • Connections/relationships
    5. Response Timer/Simulator - Run through scenarios with timed decisions

    6. Analytics Panel - Voting projections, sentiment analysis, key dates

    Interactions:

    • Click scenarios to load them
    • Toggle disclosure positions
    • Interactive stakeholder map with hover details
    • Run simulation button with animated results
    • Drag-and-drop priority setting

    Dynamic Elements:

    • Animated threat level gauge
    • Particle/data flow effects in stakeholder map
    • Smooth transitions between disclosure states
    • Real-time voting projection updates
    • Animated connection lines in stakeholder map

    Let me build this out comprehensively. This is a sophisticated enterprise tool request. I'll build a comprehensive CFO-level simulator with interactive scenario rehearsals, dynamic disclosure position toggles, and a force-directed stakeholder mapping visualization.

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>CFO Activism Mitigation Simulator</title>
        <script src="https://cdn.tailwindcss.com"></script>
        <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
        <style>
            :root {
                --bg-primary: #0a0e14;
                --bg-secondary: #111820;
                --bg-card: #151c27;
                --fg-primary: #e8edf5;
                --fg-secondary: #8a96a8;
                --fg-muted: #4a5568;
                --accent-gold: #d4a853;
                --accent-gold-dim: #a68532;
                --accent-red: #e05252;
                --accent-green: #4ade80;
                --accent-blue: #3b82f6;
                --border-color: #2a3544;
                --glow-gold: rgba(212, 168, 83, 0.15);
            }
            
            * {
                box-sizing: border-box;
            }
            
            body {
                font-family: 'Space Grotesk', sans-serif;
                background: var(--bg-primary);
                color: var(--fg-primary);
                min-height: 100vh;
                overflow-x: hidden;
            }
            
            .mono {
                font-family: 'IBM Plex Mono', monospace;
            }
            
            .bg-grid {
                background-image: 
                    linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
                background-size: 40px 40px;
            }
            
            .card {
                background: var(--bg-card);
                border: 1px solid var(--border-color);
                border-radius: 8px;
            }
            
            .card-hover {
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
            
            .card-hover:hover {
                border-color: var(--accent-gold-dim);
                box-shadow: 0 0 30px var(--glow-gold);
                transform: translateY(-2px);
            }
            
            .scenario-card {
                cursor: pointer;
                position: relative;
                overflow: hidden;
            }
            
            .scenario-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3px;
                background: var(--accent-gold);
                transform: scaleX(0);
                transition: transform 0.3s ease;
            }
            
            .scenario-card:hover::before,
            .scenario-card.active::before {
                transform: scaleX(1);
            }
            
            .disclosure-toggle {
                position: relative;
                padding: 12px 20px;
                background: var(--bg-secondary);
                border: 1px solid var(--border-color);
                border-radius: 6px;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .disclosure-toggle:hover {
                background: var(--bg-card);
            }
            
            .disclosure-toggle.active {
                background: var(--accent-gold);
                color: var(--bg-primary);
                border-color: var(--accent-gold);
            }
            
            .disclosure-toggle.active .toggle-label {
                color: var(--bg-primary);
            }
            
            .threat-gauge {
                position: relative;
                width: 200px;
                height: 100px;
                overflow: hidden;
            }
            
            .gauge-bg {
                position: absolute;
                width: 200px;
                height: 200px;
                border-radius: 50%;
                background: conic-gradient(
                    from 180deg,
                    #22c55e 0deg,
                    #84cc16 36deg,
                    #eab308 72deg,
                    #f97316 108deg,
                    #ef4444 144deg,
                    #dc2626 180deg
                );
                clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
            }
            
            .gauge-cover {
                position: absolute;
                top: 15px;
                left: 15px;
                width: 170px;
                height: 170px;
                background: var(--bg-card);
                border-radius: 50%;
                clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
            }
            
            .gauge-needle {
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 4px;
                height: 80px;
                background: var(--fg-primary);
                transform-origin: bottom center;
                transform: translateX(-50%) rotate(-90deg);
                transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
                border-radius: 2px;
            }
            
            .gauge-center {
                position: absolute;
                bottom: -8px;
                left: 50%;
                transform: translateX(-50%);
                width: 16px;
                height: 16px;
                background: var(--fg-primary);
                border-radius: 50%;
            }
            
            #stakeholder-canvas {
                background: transparent;
            }
            
            .stakeholder-tooltip {
                position: fixed;
                background: var(--bg-card);
                border: 1px solid var(--accent-gold);
                border-radius: 8px;
                padding: 16px;
                pointer-events: none;
                opacity: 0;
                transition: opacity 0.2s ease;
                z-index: 100;
                max-width: 280px;
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            }
            
            .stakeholder-tooltip.visible {
                opacity: 1;
            }
            
            .btn-primary {
                background: var(--accent-gold);
                color: var(--bg-primary);
                padding: 12px 24px;
                border-radius: 6px;
                font-weight: 600;
                border: none;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .btn-primary:hover {
                background: var(--accent-gold-dim);
                transform: scale(1.02);
            }
            
            .btn-primary:active {
                transform: scale(0.98);
            }
            
            .btn-secondary {
                background: transparent;
                color: var(--fg-primary);
                padding: 12px 24px;
                border-radius: 6px;
                font-weight: 500;
                border: 1px solid var(--border-color);
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .btn-secondary:hover {
                border-color: var(--accent-gold-dim);
                background: var(--bg-card);
            }
            
            .progress-bar {
                height: 6px;
                background: var(--bg-secondary);
                border-radius: 3px;
                overflow: hidden;
            }
            
            .progress-fill {
                height: 100%;
                background: var(--accent-gold);
                border-radius: 3px;
                transition: width 0.5s ease;
            }
            
            .simulation-log {
                max-height: 300px;
                overflow-y: auto;
            }
            
            .simulation-log::-webkit-scrollbar {
                width: 6px;
            }
            
            .simulation-log::-webkit-scrollbar-track {
                background: var(--bg-secondary);
            }
            
            .simulation-log::-webkit-scrollbar-thumb {
                background: var(--border-color);
                border-radius: 3px;
            }
            
            .log-entry {
                padding: 12px;
                border-bottom: 1px solid var(--border-color);
                animation: fadeIn 0.3s ease;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; transform: translateX(-10px); }
                to { opacity: 1; transform: translateX(0); }
            }
            
            @keyframes pulse {
                0%, 100% { opacity: 1; }
                50% { opacity: 0.5; }
            }
            
            .pulse {
                animation: pulse 2s infinite;
            }
            
            .status-dot {
                width: 8px;
                height: 8px;
                border-radius: 50%;
            }
            
            .status-active {
                background: var(--accent-green);
                box-shadow: 0 0 10px var(--accent-green);
            }
            
            .status-warning {
                background: var(--accent-gold);
                box-shadow: 0 0 10px var(--accent-gold);
            }
            
            .status-danger {
                background: var(--accent-red);
                box-shadow: 0 0 10px var(--accent-red);
            }
            
            .fade-in {
                animation: fadeIn 0.5s ease forwards;
            }
            
            .slide-up {
                animation: slideUp 0.5s ease forwards;
            }
            
            @keyframes slideUp {
                from { opacity: 0; transform: translateY(20px); }
                to { opacity: 1; transform: translateY(0); }
            }
            
            @media (prefers-reduced-motion: reduce) {
                *, *::before, *::after {
                    animation-duration: 0.01ms !important;
                    transition-duration: 0.01ms !important;
                }
            }
            
            .tab-btn {
                padding: 10px 20px;
                background: transparent;
                border: none;
                color: var(--fg-secondary);
                cursor: pointer;
                border-bottom: 2px solid transparent;
                transition: all 0.2s ease;
            }
            
            .tab-btn:hover {
                color: var(--fg-primary);
            }
            
            .tab-btn.active {
                color: var(--accent-gold);
                border-bottom-color: var(--accent-gold);
            }
            
            .flip-card {
                perspective: 1000px;
            }
            
            .flip-inner {
                transition: transform 0.6s;
                transform-style: preserve-3d;
            }
            
            .flip-card.flipped .flip-inner {
                transform: rotateY(180deg);
            }
            
            .flip-front, .flip-back {
                backface-visibility: hidden;
            }
            
            .flip-back {
                transform: rotateY(180deg);
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
            }
        </style>
    </head>
    <body class="bg-grid">
        <!-- Header -->
        <header class="border-b border-[var(--border-color)] bg-[var(--bg-secondary)]/80 backdrop-blur-sm sticky top-0 z-50">
            <div class="max-w-[1600px] mx-auto px-6 py-4">
                <div class="flex items-center justify-between">
                    <div class="flex items-center gap-4">
                        <div class="w-10 h-10 bg-[var(--accent-gold)] rounded-lg flex items-center justify-center">
                            <svg class="w-6 h-6 text-[var(--bg-primary)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>
                            </svg>
                        </div>
                        <div>
                            <h1 class="text-lg font-semibold tracking-tight">Activism Mitigation Command</h1>
                            <p class="text-xs text-[var(--fg-secondary)] mono">CFO Strategic Response Platform</p>
                        </div>
                    </div>
                    
                    <div class="flex items-center gap-6">
                        <div class="text-right">
                            <p class="text-xs text-[var(--fg-secondary)]">Simulated Company</p>
                            <p class="font-semibold">NEXTERA INDUSTRIES INC.</p>
                        </div>
                        <div class="text-right">
                            <p class="text-xs text-[var(--fg-secondary)]">Ticker</p>
                            <p class="font-semibold mono">NXTI</p>
                        </div>
                        <div class="h-8 w-px bg-[var(--border-color)]"></div>
                        <div class="text-right">
                            <p class="text-xs text-[var(--fg-secondary)]">Share Price</p>
                            <p class="font-semibold mono text-[var(--accent-green)]">$142.87 <span class="text-xs">+2.34%</span></p>
                        </div>
                        <div class="text-right">
                            <p class="text-xs text-[var(--fg-secondary)]">Market Cap</p>
                            <p class="font-semibold mono">$48.2B</p>
                        </div>
                    </div>
                </div>
            </div>
        </header>
    
        <!-- Main Content -->
        <main class="max-w-[1600px] mx-auto px-6 py-6">
            <!-- Status Bar -->
            <div class="grid grid-cols-4 gap-4 mb-6">
                <div class="card p-4 flex items-center gap-4">
                    <div class="status-dot status-warning pulse"></div>
                    <div>
                        <p class="text-xs text-[var(--fg-secondary)]">Threat Level</p>
                        <p class="font-semibold text-[var(--accent-gold)]">ELEVATED</p>
                    </div>
                </div>
                <div class="card p-4 flex items-center gap-4">
                    <div class="status-dot status-active"></div>
                    <div>
                        <p class="text-xs text-[var(--fg-secondary)]">Active Scenarios</p>
                        <p class="font-semibold">3 Monitored</p>
                    </div>
                </div>
                <div class="card p-4 flex items-center gap-4">
                    <div class="status-dot status-active"></div>
                    <div>
                        <p class="text-xs text-[var(--fg-secondary)]">Institutional Support</p>
                        <p class="font-semibold text-[var(--accent-green)]">67.2%</p>
                    </div>
                </div>
                <div class="card p-4 flex items-center gap-4">
                    <div class="status-dot status-warning"></div>
                    <div>
                        <p class="text-xs text-[var(--fg-secondary)]">Days to AGM</p>
                        <p class="font-semibold mono">47</p>
                    </div>
                </div>
            </div>
    
            <div class="grid grid-cols-12 gap-6">
                <!-- Left Panel - Scenarios -->
                <div class="col-span-3">
                    <div class="card p-4 mb-4">
                        <h2 class="font-semibold mb-4 flex items-center gap-2">
                            <svg class="w-5 h-5 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
                            </svg>
                            Scenario Rehearsal
                        </h2>
                        <div class="space-y-2" id="scenario-list">
                            <!-- Scenarios rendered by JS -->
                        </div>
                    </div>
                    
                    <div class="card p-4">
                        <h2 class="font-semibold mb-4 flex items-center gap-2">
                            <svg class="w-5 h-5 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
                            </svg>
                            Threat Assessment
                        </h2>
                        <div class="flex justify-center mb-4">
                            <div class="threat-gauge">
                                <div class="gauge-bg"></div>
                                <div class="gauge-cover"></div>
                                <div class="gauge-needle" id="threat-needle"></div>
                                <div class="gauge-center"></div>
                            </div>
                        </div>
                        <div class="text-center">
                            <p class="text-3xl font-bold mono" id="threat-score">62</p>
                            <p class="text-xs text-[var(--fg-secondary)]">Composite Threat Index</p>
                        </div>
                        <div class="mt-4 space-y-2">
                            <div class="flex justify-between text-xs">
                                <span class="text-[var(--fg-secondary)]">Media Sentiment</span>
                                <span class="text-[var(--accent-red)]">Negative</span>
                            </div>
                            <div class="flex justify-between text-xs">
                                <span class="text-[var(--fg-secondary)]">Analyst Consensus</span>
                                <span class="text-[var(--accent-gold)]">Mixed</span>
                            </div>
                            <div class="flex justify-between text-xs">
                                <span class="text-[var(--fg-secondary)]">13F Activity</span>
                                <span class="text-[var(--accent-red)]">Elevated</span>
                            </div>
                        </div>
                    </div>
                </div>
    
                <!-- Center Panel - Stakeholder Map -->
                <div class="col-span-6">
                    <div class="card p-4 h-full">
                        <div class="flex items-center justify-between mb-4">
                            <h2 class="font-semibold flex items-center gap-2">
                                <svg class="w-5 h-5 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
                                </svg>
                                Stakeholder Intelligence Map
                            </h2>
                            <div class="flex gap-2">
                                <button class="tab-btn active" data-filter="all">All</button>
                                <button class="tab-btn" data-filter="activist">Activists</button>
                                <button class="tab-btn" data-filter="institutional">Institutions</button>
                                <button class="tab-btn" data-filter="board">Board</button>
                            </div>
                        </div>
                        <div class="relative" style="height: 420px;">
                            <canvas id="stakeholder-canvas"></canvas>
                        </div>
                        <div class="grid grid-cols-4 gap-2 mt-4 text-xs">
                            <div class="flex items-center gap-2">
                                <div class="w-3 h-3 rounded-full bg-[var(--accent-red)]"></div>
                                <span class="text-[var(--fg-secondary)]">Activist Funds</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <div class="w-3 h-3 rounded-full bg-[var(--accent-blue)]"></div>
                                <span class="text-[var(--fg-secondary)]">Institutions</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <div class="w-3 h-3 rounded-full bg-[var(--accent-green)]"></div>
                                <span class="text-[var(--fg-secondary)]">Board/Management</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <div class="w-3 h-3 rounded-full bg-[var(--accent-gold)]"></div>
                                <span class="text-[var(--fg-secondary)]">Proxy Advisors</span>
                            </div>
                        </div>
                    </div>
                </div>
    
                <!-- Right Panel - Disclosure & Simulation -->
                <div class="col-span-3">
                    <div class="card p-4 mb-4">
                        <h2 class="font-semibold mb-4 flex items-center gap-2">
                            <svg class="w-5 h-5 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"/>
                            </svg>
                            Disclosure Position
                        </h2>
                        <div class="space-y-2" id="disclosure-toggles">
                            <!-- Rendered by JS -->
                        </div>
                        
                        <div class="mt-4 p-4 bg-[var(--bg-secondary)] rounded-lg flip-card" id="disclosure-detail">
                            <div class="flip-inner">
                                <div class="flip-front">
                                    <p class="text-xs text-[var(--fg-secondary)] mb-2">Active Strategy</p>
                                    <p class="font-semibold text-[var(--accent-gold)]" id="active-strategy-name">Defensive Posture</p>
                                    <p class="text-sm text-[var(--fg-secondary)] mt-2" id="active-strategy-desc">Maintain silence, prepare internal talking points, monitor all positions.</p>
                                </div>
                                <div class="flip-back">
                                    <p class="text-xs text-[var(--accent-gold)] mb-1">KEY METRICS</p>
                                    <div class="space-y-2 text-sm">
                                        <div class="flex justify-between">
                                            <span class="text-[var(--fg-secondary)]">Response Time</span>
                                            <span class="mono">24-48hrs</span>
                                        </div>
                                        <div class="flex justify-between">
                                            <span class="text-[var(--fg-secondary)]">Disclosure Risk</span>
                                            <span class="mono text-[var(--accent-green)]">Low</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card p-4">
                        <h2 class="font-semibold mb-4 flex items-center gap-2">
                            <svg class="w-5 h-5 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"/>
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
                            </svg>
                            Scenario Simulation
                        </h2>
                        <div class="mb-4">
                            <p class="text-xs text-[var(--fg-secondary)] mb-2">Selected Scenario</p>
                            <p class="font-semibold" id="sim-scenario-name">Proxy Contest Threat</p>
                        </div>
                        <div class="mb-4">
                            <div class="flex justify-between text-xs mb-1">
                                <span class="text-[var(--fg-secondary)]">Simulation Progress</span>
                                <span class="mono" id="sim-progress">0%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" id="sim-progress-bar" style="width: 0%"></div>
                            </div>
                        </div>
                        <div class="flex gap-2 mb-4">
                            <button class="btn-primary flex-1" id="run-simulation">Run Simulation</button>
                            <button class="btn-secondary" id="reset-simulation">
                                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>
                                </svg>
                            </button>
                        </div>
                        <div class="simulation-log" id="simulation-log">
                            <div class="text-center text-[var(--fg-secondary)] text-sm py-8">
                                Select a scenario and run simulation
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    
            <!-- Bottom Panel - Response Actions -->
            <div class="mt-6 grid grid-cols-3 gap-6">
                <div class="card p-4">
                    <h3 class="font-semibold mb-3 flex items-center gap-2">
                        <svg class="w-4 h-4 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
                        </svg>
                        Prepared Statements
                    </h3>
                    <div class="space-y-2 text-sm">
                        <div class="p-3 bg-[var(--bg-secondary)] rounded-lg cursor-pointer hover:bg-[var(--border-color)] transition-colors">
                            <p class="font-medium">Press Release Template</p>
                            <p class="text-xs text-[var(--fg-secondary)]">Last updated: 2 days ago</p>
                        </div>
                        <div class="p-3 bg-[var(--bg-secondary)] rounded-lg cursor-pointer hover:bg-[var(--border-color)] transition-colors">
                            <p class="font-medium">Investor FAQ Document</p>
                            <p class="text-xs text-[var(--fg-secondary)]">12 questions prepared</p>
                        </div>
                        <div class="p-3 bg-[var(--bg-secondary)] rounded-lg cursor-pointer hover:bg-[var(--border-color)] transition-colors">
                            <p class="font-medium">Board Resolution Draft</p>
                            <p class="text-xs text-[var(--fg-secondary)]">Pending legal review</p>
                        </div>
                    </div>
                </div>
                
                <div class="card p-4">
                    <h3 class="font-semibold mb-3 flex items-center gap-2">
                        <svg class="w-4 h-4 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
                        </svg>
                        Critical Timeline
                    </h3>
                    <div class="space-y-3">
                        <div class="flex gap-3">
                            <div class="w-2 h-2 rounded-full bg-[var(--accent-red)] mt-2"></div>
                            <div>
                                <p class="text-sm font-medium">13F Filing Deadline</p>
                                <p class="text-xs text-[var(--fg-secondary)] mono">Feb 14, 2025 - 12 days</p>
                            </div>
                        </div>
                        <div class="flex gap-3">
                            <div class="w-2 h-2 rounded-full bg-[var(--accent-gold)] mt-2"></div>
                            <div>
                                <p class="text-sm font-medium">Proxy Statement Filing</p>
                                <p class="text-xs text-[var(--fg-secondary)] mono">Mar 1, 2025 - 27 days</p>
                            </div>
                        </div>
                        <div class="flex gap-3">
                            <div class="w-2 h-2 rounded-full bg-[var(--accent-blue)] mt-2"></div>
                            <div>
                                <p class="text-sm font-medium">Annual General Meeting</p>
                                <p class="text-xs text-[var(--fg-secondary)] mono">Apr 15, 2025 - 47 days</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="card p-4">
                    <h3 class="font-semibold mb-3 flex items-center gap-2">
                        <svg class="w-4 h-4 text-[var(--accent-gold)]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>
                        </svg>
                        Voting Projection
                    </h3>
                    <div class="space-y-3">
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span>Management Slate</span>
                                <span class="mono text-[var(--accent-green)]">67.2%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-[var(--accent-green)]" style="width: 67.2%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span>Activist Slate</span>
                                <span class="mono text-[var(--accent-red)]">24.8%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-[var(--accent-red)]" style="width: 24.8%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span>Undecided</span>
                                <span class="mono text-[var(--fg-secondary)]">8.0%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-[var(--fg-muted)]" style="width: 8%"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    
        <!-- Stakeholder Tooltip -->
        <div class="stakeholder-tooltip" id="stakeholder-tooltip">
            <div id="tooltip-content"></div>
        </div>
    
        <script>
            // ============================================
            // DATA DEFINITIONS
            // ============================================
            
            const scenarios = [
                {
                    id: 'proxy-contest',
                    name: 'Proxy Contest Threat',
                    severity: 'high',
                    description: 'Activist nominates rival board slate',
                    threatImpact: 75,
                    steps: [
                        { time: 'Day 1', action: 'Initial 13D filing detected from Mantle Ridge Capital', type: 'alert' },
                        { time: 'Day 2', action: 'Engage proxy solicitor and legal counsel', type: 'response' },
                        { time: 'Day 3', action: 'Board strategy session convened', type: 'response' },
                        { time: 'Day 5', action: 'Activist publishes open letter to shareholders', type: 'threat' },
                        { time: 'Day 7', action: 'Prepare and file DEF 14A proxy defense', type: 'response' },
                        { time: 'Day 14', action: 'Institutional investor outreach campaign launched', type: 'response' },
                        { time: 'Day 21', action: 'ISS and Glass Lewis engagement meetings', type: 'response' },
                        { time: 'Day 30', action: 'Preliminary voting results indicate management lead', type: 'outcome' }
                    ]
                },
                {
                    id: 'spinoff-demand',
                    name: 'Spin-Off Pressure',
                    severity: 'medium',
                    description: 'Demands to separate business units',
                    threatImpact: 55,
                    steps: [
                        { time: 'Week 1', action: 'Elliott Management builds 4.2% stake', type: 'alert' },
                        { time: 'Week 2', action: 'Activist presents spin-off analysis to board', type: 'threat' },
                        { time: 'Week 3', action: 'Engage independent financial advisors', type: 'response' },
                        { time: 'Week 4', action: 'Strategic alternatives review announced', type: 'response' },
                        { time: 'Week 6', action: 'Board concludes spin-off not in shareholder interest', type: 'outcome' },
                        { time: 'Week 8', action: 'Announce enhanced capital return program instead', type: 'response' }
                    ]
                },
                {
                    id: 'capital-allocation',
                    name: 'Capital Allocation Critique',
                    severity: 'medium',
                    description: 'Pressures on buybacks vs dividends',
                    threatImpact: 45,
                    steps: [
                        { time: 'Day 1', action: 'Third Point initiates position', type: 'alert' },
                        { time: 'Day 3', action: 'Letter criticizes "suboptimal" capital deployment', type: 'threat' },
                        { time: 'Day 5', action: 'CFO prepares detailed capital allocation presentation', type: 'response' },
                        { time: 'Day 7', action: 'Constructive dialogue with activist begins', type: 'response' },
                        { time: 'Day 14', action: 'Announce $2B accelerated share repurchase', type: 'outcome' }
                    ]
                },
                {
                    id: 'governance-challenge',
                    name: 'Governance Challenge',
                    severity: 'high',
                    description: 'Attack on board independence/compensation',
                    threatImpact: 70,
                    steps: [
                        { time: 'Day 1', action: 'SOC filed by CtW Investment Group', type: 'alert' },
                        { time: 'Day 2', action: 'Governance concerns raised in press', type: 'threat' },
                        { time: 'Day 3', action: 'Review all director independence determinations', type: 'response' },
                        { time: 'Day 5', action: 'Engage compensation consultant for peer review', type: 'response' },
                        { time: 'Day 7', action: 'Announce governance enhancements', type: 'response' },
                        { time: 'Day 10', action: 'ISS recommends FOR all management proposals', type: 'outcome' }
                    ]
                },
                {
                    id: 'management-replacement',
                    name: 'Management Replacement',
                    severity: 'critical',
                    description: 'Campaign for CEO/CFO removal',
                    threatImpact: 90,
                    steps: [
                        { time: 'Day 1', action: 'Starboard Value discloses 8% stake', type: 'alert' },
                        { time: 'Day 2', action: 'Public campaign demanding leadership change', type: 'threat' },
                        { time: 'Day 3', action: 'Activate crisis communications protocol', type: 'response' },
                        { time: 'Day 5', action: 'Board issues unanimous support statement', type: 'response' },
                        { time: 'Day 7', action: 'Major shareholders reaffirm confidence', type: 'response' },
                        { time: 'Day 14', action: 'Activist reduces stake, engagement continues', type: 'outcome' }
                    ]
                },
                {
                    id: 'merger-opposition',
                    name: 'Merger Opposition',
                    severity: 'high',
                    description: 'Activist opposes announced transaction',
                    threatImpact: 80,
                    steps: [
                        { time: 'Day 1', action: 'Merger announcement triggers activist opposition', type: 'alert' },
                        { time: 'Day 2', action: 'Activist claims deal undervalues company', type: 'threat' },
                        { time: 'Day 3', action: 'Engage M&A counsel on defensive strategies', type: 'response' },
                        { time: 'Day 5', action: 'Prepare detailed synergy analysis', type: 'response' },
                        { time: 'Day 7', action: 'Shareholder roadshow begins', type: 'response' },
                        { time: 'Day 21', action: 'Vote scheduled, proxy fight threatened', type: 'threat' },
                        { time: 'Day 30', action: 'Merger approved with 72% support', type: 'outcome' }
                    ]
                }
            ];
    
            const disclosurePositions = [
                {
                    id: 'defensive',
                    name: 'Defensive Posture',
                    description: 'Maintain silence, prepare internal talking points, monitor all positions.',
                    responseTime: '24-48hrs',
                    risk: 'Low',
                    riskColor: 'var(--accent-green)'
                },
                {
                    id: 'engagement',
                    name: 'Engagement Mode',
                    description: 'Proactive outreach to top 20 shareholders, seek feedback on strategy.',
                    responseTime: '48-72hrs',
                    risk: 'Medium',
                    riskColor: 'var(--accent-gold)'
                },
                {
                    id: 'negotiation',
                    name: 'Negotiation Stance',
                    description: 'Open dialogue with activist, explore settlement possibilities.',
                    responseTime: 'Ongoing',
                    risk: 'Medium-High',
                    riskColor: 'var(--accent-gold)'
                },
                {
                    id: 'public-response',
                    name: 'Public Response',
                    description: 'Issue press releases, hold investor calls, public board support.',
                    responseTime: 'Immediate',
                    risk: 'High',
                    riskColor: 'var(--accent-red)'
                }
            ];
    
            const stakeholders = [
                { id: 1, name: 'Mantle Ridge Capital', type: 'activist', stake: 4.8, voting: 'against', influence: 85, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 2, name: 'Elliott Management', type: 'activist', stake: 3.2, voting: 'undecided', influence: 75, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 3, name: 'Starboard Value', type: 'activist', stake: 2.1, voting: 'against', influence: 70, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 4, name: 'BlackRock', type: 'institutional', stake: 8.5, voting: 'for', influence: 95, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 5, name: 'Vanguard Group', type: 'institutional', stake: 7.2, voting: 'for', influence: 92, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 6, name: 'State Street', type: 'institutional', stake: 4.8, voting: 'for', influence: 80, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 7, name: 'Fidelity', type: 'institutional', stake: 3.9, voting: 'for', influence: 75, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 8, name: 'Capital Group', type: 'institutional', stake: 3.4, voting: 'for', influence: 72, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 9, name: 'T. Rowe Price', type: 'institutional', stake: 2.8, voting: 'undecided', influence: 68, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 10, name: 'Wellington Management', type: 'institutional', stake: 2.4, voting: 'for', influence: 65, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 11, name: 'Chairman J. Mitchell', type: 'board', stake: 0.3, voting: 'for', influence: 90, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 12, name: 'CEO R. Anderson', type: 'board', stake: 0.5, voting: 'for', influence: 95, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 13, name: 'CFO S. Park', type: 'board', stake: 0.2, voting: 'for', influence: 85, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 14, name: 'Lead Director M. Chen', type: 'board', stake: 0.1, voting: 'for', influence: 88, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 15, name: 'ISS Governance', type: 'proxy', stake: 0, voting: 'for', influence: 98, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 16, name: 'Glass Lewis', type: 'proxy', stake: 0, voting: 'for', influence: 95, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 17, name: 'Pershing Square', type: 'activist', stake: 1.8, voting: 'undecided', influence: 65, x: 0, y: 0, vx: 0, vy: 0 },
                { id: 18, name: 'TIAA-CREF', type: 'institutional', stake: 2.1, voting: 'for', influence: 60, x: 0, y: 0, vx: 0, vy: 0 }
            ];
    
            const connections = [
                { source: 4, target: 5, strength: 0.8 },
                { source: 4, target: 6, strength: 0.7 },
                { source: 5, target: 6, strength: 0.9 },
                { source: 11, target: 12, strength: 1.0 },
                { source: 12, target: 13, strength: 1.0 },
                { source: 11, target: 14, strength: 0.9 },
                { source: 15, target: 16, strength: 0.8 },
                { source: 1, target: 2, strength: 0.6 },
                { source: 1, target: 3, strength: 0.5 },
                { source: 2, target: 3, strength: 0.4 },
                { source: 7, target: 8, strength: 0.7 },
                { source: 9, target: 10, strength: 0.6 },
                { source: 4, target: 11, strength: 0.5 },
                { source: 1, target: 9, strength: 0.3 }
            ];
    
            // ============================================
            // STATE VARIABLES
            // ============================================
            
            let selectedScenario = scenarios[0];
            let activeDisclosure = disclosurePositions[0];
            let currentFilter = 'all';
            let simulationRunning = false;
            let simulationProgress = 0;
            let animationFrameId = null;
            let canvas = null;
            let ctx = null;
            let hoveredStakeholder = null;
            let mouseX = 0;
            let mouseY = 0;
            const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    
            // ============================================
            // INITIALIZATION
            // ============================================
            
            document.addEventListener('DOMContentLoaded', () => {
                initCanvas();
                renderScenarios();
                renderDisclosureToggles();
                updateThreatGauge(selectedScenario.threatImpact);
                setupEventListeners();
                animateStakeholders();
            });
    
            // ============================================
            // CANVAS & STAKEHOLDER MAP
            // ============================================
            
            function initCanvas() {
                canvas = document.getElementById('stakeholder-canvas');
                ctx = canvas.getContext('2d');
                
                const container = canvas.parentElement;
                canvas.width = container.offsetWidth;
                canvas.height = container.offsetHeight;
                
                // Initialize stakeholder positions
                const centerX = canvas.width / 2;
                const centerY = canvas.height / 2;
                
                stakeholders.forEach((s, i) => {
                    const angle = (i / stakeholders.length) * Math.PI * 2;
                    const radius = 120 + Math.random() * 80;
                    s.x = centerX + Math.cos(angle) * radius;
                    s.y = centerY + Math.sin(angle) * radius;
                    s.vx = (Math.random() - 0.5) * 0.5;
                    s.vy = (Math.random() - 0.5) * 0.5;
                });
            }
    
            function animateStakeholders() {
                if (!ctx || !canvas) return;
                
                ctx.clearRect(0, 0, canvas.width, canvas.height);
                
                const centerX = canvas.width / 2;
                const centerY = canvas.height / 2;
                
                // Draw connections
                ctx.strokeStyle = 'rgba(212, 168, 83, 0.15)';
                ctx.lineWidth = 1;
                
                connections.forEach(conn => {
                    const source = stakeholders.find(s => s.id === conn.source);
                    const target = stakeholders.find(s => s.id === conn.target);
                    
                    if (source && target && shouldShowStakeholder(source) && shouldShowStakeholder(target)) {
                        ctx.beginPath();
                        ctx.moveTo(source.x, source.y);
                        ctx.lineTo(target.x, target.y);
                        ctx.globalAlpha = conn.strength * 0.3;
                        ctx.stroke();
                        ctx.globalAlpha = 1;
                    }
                });
                
                // Update and draw stakeholders
                stakeholders.forEach(s => {
                    if (!shouldShowStakeholder(s)) return;
                    
                    // Apply forces
                    const dx = centerX - s.x;
                    const dy = centerY - s.y;
                    const dist = Math.sqrt(dx * dx + dy * dy);
                    
                    // Center attraction
                    s.vx += dx * 0.0002;
                    s.vy += dy * 0.0002;
                    
                    // Repulsion from others
                    stakeholders.forEach(other => {
                        if (s.id === other.id) return;
                        const odx = s.x - other.x;
                        const ody = s.y - other.y;
                        const odist = Math.max(1, Math.sqrt(odx * odx + ody * ody));
                        if (odist < 100) {
                            s.vx += (odx / odist) * 0.5;
                            s.vy += (ody / odist) * 0.5;
                        }
                    });
                    
                    // Damping
                    s.vx *= 0.95;
                    s.vy *= 0.95;
                    
                    // Update position (skip if reduced motion)
                    if (!prefersReducedMotion) {
                        s.x += s.vx;
                        s.y += s.vy;
                    }
                    
                    // Boundary constraints
                    const margin = 40;
                    s.x = Math.max(margin, Math.min(canvas.width - margin, s.x));
                    s.y = Math.max(margin, Math.min(canvas.height - margin, s.y));
                    
                    // Draw node
                    const baseRadius = Math.max(8, 10 + (s.stake * 3));
                    const isHovered = hoveredStakeholder && hoveredStakeholder.id === s.id;
                    const radius = isHovered ? baseRadius + 4 : baseRadius;
                    
                    // Glow effect
                    const gradient = ctx.createRadialGradient(s.x, s.y, 0, s.x, s.y, radius * 2);
                    const nodeColor = getNodeColor(s.type);
                    gradient.addColorStop(0, nodeColor);
                    gradient.addColorStop(0.5, nodeColor.replace('1)', '0.3)').replace('rgb', 'rgba'));
                    gradient.addColorStop(1, 'rgba(0, 0, 0, 0)');
                    
                    ctx.beginPath();
                    ctx.arc(s.x, s.y, radius * 2, 0, Math.PI * 2);
                    ctx.fillStyle = gradient;
                    ctx.fill();
                    
                    // Main node
                    ctx.beginPath();
                    ctx.arc(s.x, s.y, radius, 0, Math.PI * 2);
                    ctx.fillStyle = nodeColor;
                    ctx.fill();
                    
                    // Border
                    ctx.strokeStyle = isHovered ? '#ffffff' : 'rgba(255, 255, 255, 0.3)';
                    ctx.lineWidth = isHovered ? 2 : 1;
                    ctx.stroke();
                    
                    // Voting indicator ring
                    if (s.voting === 'against') {
                        ctx.beginPath();
                        ctx.arc(s.x, s.y, radius + 4, 0, Math.PI * 2);
                        ctx.strokeStyle = 'rgba(224, 82, 82, 0.6)';
                        ctx.lineWidth = 2;
                        ctx.stroke();
                    } else if (s.voting === 'undecided') {
                        ctx.beginPath();
                        ctx.arc(s.x, s.y, radius + 4, 0, Math.PI * 2);
                        ctx.strokeStyle = 'rgba(212, 168, 83, 0.6)';
                        ctx.lineWidth = 2;
                        ctx.setLineDash([3, 3]);
                        ctx.stroke();
                        ctx.setLineDash([]);
                    }
                });
                
                // Draw company center
                ctx.beginPath();
                ctx.arc(centerX, centerY, 30, 0, Math.PI * 2);
                ctx.fillStyle = 'rgba(212, 168, 83, 0.1)';
                ctx.fill();
                ctx.strokeStyle = 'rgba(212, 168, 83, 0.5)';
                ctx.lineWidth = 2;
                ctx.stroke();
                
                ctx.font = '600 11px Space Grotesk';
                ctx.fillStyle = '#d4a853';
                ctx.textAlign = 'center';
                ctx.textBaseline = 'middle';
                ctx.fillText('NXTI', centerX, centerY);
                
                animationFrameId = requestAnimationFrame(animateStakeholders);
            }
    
            function getNodeColor(type) {
                switch (type) {
                    case 'activist': return 'rgba(224, 82, 82, 1)';
                    case 'institutional': return 'rgba(59, 130, 246, 1)';
                    case 'board': return 'rgba(74, 222, 128, 1)';
                    case 'proxy': return 'rgba(212, 168, 83, 1)';
                    default: return 'rgba(138, 150, 168, 1)';
                }
            }
    
            function shouldShowStakeholder(s) {
                if (currentFilter === 'all') return true;
                if (currentFilter === 'activist') return s.type === 'activist';
                if (currentFilter === 'institutional') return s.type === 'institutional';
                if (currentFilter === 'board') return s.type === 'board' || s.type === 'proxy';
                return true;
            }
    
            // ============================================
            // UI RENDERING
            // ============================================
            
            function renderScenarios() {
                const container = document.getElementById('scenario-list');
                container.innerHTML = scenarios.map(s => `
                    <div class="scenario-card card-hover p-3 ${s.id === selectedScenario.id ? 'active' : ''}" 
                         data-scenario="${s.id}">
                        <div class="flex items-start justify-between">
                            <div>
                                <p class="font-medium text-sm">${s.name}</p>
                                <p class="text-xs text-[var(--fg-secondary)] mt-1">${s.description}</p>
                            </div>
                            <span class="text-xs px-2 py-1 rounded ${getSeverityClass(s.severity)}">
                                ${s.severity.toUpperCase()}
                            </span>
                        </div>
                    </div>
                `).join('');
                
                // Add click handlers
                container.querySelectorAll('.scenario-card').forEach(card => {
                    card.addEventListener('click', () => {
                        const scenarioId = card.dataset.scenario;
                        selectedScenario = scenarios.find(s => s.id === scenarioId);
                        renderScenarios();
                        updateThreatGauge(selectedScenario.threatImpact);
                        document.getElementById('sim-scenario-name').textContent = selectedScenario.name;
                        resetSimulation();
                    });
                });
            }
    
            function getSeverityClass(severity) {
                switch (severity) {
                    case 'critical': return 'bg-red-900/50 text-red-400';
                    case 'high': return 'bg-orange-900/50 text-orange-400';
                    case 'medium': return 'bg-yellow-900/50 text-yellow-400';
                    case 'low': return 'bg-green-900/50 text-green-400';
                    default: return 'bg-gray-900/50 text-gray-400';
                }
            }
    
            function renderDisclosureToggles() {
                const container = document.getElementById('disclosure-toggles');
                container.innerHTML = disclosurePositions.map(d => `
                    <div class="disclosure-toggle ${d.id === activeDisclosure.id ? 'active' : ''}" 
                         data-disclosure="${d.id}">
                        <p class="toggle-label font-medium text-sm">${d.name}</p>
                    </div>
                `).join('');
                
                container.querySelectorAll('.disclosure-toggle').forEach(toggle => {
                    toggle.addEventListener('click', () => {
                        const disclosureId = toggle.dataset.disclosure;
                        activeDisclosure = disclosurePositions.find(d => d.id === disclosureId);
                        renderDisclosureToggles();
                        updateDisclosureDetail();
                    });
                });
            }
    
            function updateDisclosureDetail() {
                const nameEl = document.getElementById('active-strategy-name');
                const descEl = document.getElementById('active-strategy-desc');
                const card = document.getElementById('disclosure-detail');
                
                // Flip animation
                card.classList.add('flipped');
                setTimeout(() => {
                    nameEl.textContent = activeDisclosure.name;
                    descEl.textContent = activeDisclosure.description;
                    card.classList.remove('flipped');
                }, 300);
            }
    
            function updateThreatGauge(value) {
                const needle = document.getElementById('threat-needle');
                const scoreEl = document.getElementById('threat-score');
                
                // Map 0-100 to -90 to 90 degrees
                const angle = -90 + (value / 100) * 180;
                needle.style.transform = `translateX(-50%) rotate(${angle}deg)`;
                scoreEl.textContent = value;
            }
    
            // ============================================
            // SIMULATION ENGINE
            // ============================================
            
            function setupEventListeners() {
                document.getElementById('run-simulation').addEventListener('click', runSimulation);
                document.getElementById('reset-simulation').addEventListener('click', resetSimulation);
                
                // Filter tabs
                document.querySelectorAll('.tab-btn').forEach(btn => {
                    btn.addEventListener('click', () => {
                        document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
                        btn.classList.add('active');
                        currentFilter = btn.dataset.filter;
                    });
                });
                
                // Canvas mouse events
                canvas.addEventListener('mousemove', handleCanvasMouseMove);
                canvas.addEventListener('mouseleave', handleCanvasMouseLeave);
                
                // Window resize
                window.addEventListener('resize', () => {
                    if (canvas) {
                        canvas.width = canvas.parentElement.offsetWidth;
                        canvas.height = canvas.parentElement.offsetHeight;
                    }
                });
            }
    
            function handleCanvasMouseMove(e) {
                const rect = canvas.getBoundingClientRect();
                mouseX = e.clientX - rect.left;
                mouseY = e.clientY - rect.top;
                
                let found = null;
                stakeholders.forEach(s => {
                    if (!shouldShowStakeholder(s)) return;
                    const dx = mouseX - s.x;
                    const dy = mouseY - s.y;
                    const dist = Math.sqrt(dx * dx + dy * dy);
                    const radius = 10 + (s.stake * 3);
                    
                    if (dist < radius + 5) {
                        found = s;
                    }
                });
                
                hoveredStakeholder = found;
                updateTooltip(found, e.clientX, e.clientY);
            }
    
            function handleCanvasMouseLeave() {
                hoveredStakeholder = null;
                const tooltip = document.getElementById('stakeholder-tooltip');
                tooltip.classList.remove('visible');
            }
    
            function updateTooltip(stakeholder, x, y) {
                const tooltip = document.getElementById('stakeholder-tooltip');
                const content = document.getElementById('tooltip-content');
                
                if (!stakeholder) {
                    tooltip.classList.remove('visible');
                    return;
                }
                
                content.innerHTML = `
                    <p class="font-semibold text-[var(--accent-gold)]">${stakeholder.name}</p>
                    <p class="text-xs text-[var(--fg-secondary)] capitalize mb-3">${stakeholder.type}</p>
                    <div class="space-y-2 text-sm">
                        <div class="flex justify-between">
                            <span class="text-[var(--fg-secondary)]">Stake</span>
                            <span class="mono">${stakeholder.stake > 0 ? stakeholder.stake + '%' : 'N/A'}</span>
                        </div>
                        <div class="flex justify-between">
                            <span class="text-[var(--fg-secondary)]">Voting Intention</span>
                            <span class="mono ${stakeholder.voting === 'for' ? 'text-[var(--accent-green)]' : stakeholder.voting === 'against' ? 'text-[var(--accent-red)]' : 'text-[var(--accent-gold)]'}">${stakeholder.voting.toUpperCase()}</span>
                        </div>
                        <div class="flex justify-between">
                            <span class="text-[var(--fg-secondary)]">Influence Score</span>
                            <span class="mono">${stakeholder.influence}/100</span>
                        </div>
                    </div>
                `;
                
                tooltip.style.left = `${x + 15}px`;
                tooltip.style.top = `${y + 15}px`;
                tooltip.classList.add('visible');
            }
    
            function runSimulation() {
                if (simulationRunning) return;
                
                simulationRunning = true;
                simulationProgress = 0;
                
                const log = document.getElementById('simulation-log');
                log.innerHTML = '';
                
                const btn = document.getElementById('run-simulation');
                btn.disabled = true;
                btn.textContent = 'Running...';
                
                let stepIndex = 0;
                const steps = selectedScenario.steps;
                
                function processStep() {
                    if (stepIndex >= steps.length) {
                        simulationRunning = false;
                        btn.disabled = false;
                        btn.textContent = 'Run Simulation';
                        return;
                    }
                    
                    const step = steps[stepIndex];
                    const progress = ((stepIndex + 1) / steps.length) * 100;
                    
                    // Update progress
                    document.getElementById('sim-progress').textContent = Math.round(progress) + '%';
                    document.getElementById('sim-progress-bar').style.width = progress + '%';
                    
                    // Add log entry
                    const entry = document.createElement('div');
                    entry.className = 'log-entry';
                    entry.innerHTML = `
                        <div class="flex items-center gap-2 mb-1">
                            <span class="mono text-xs text-[var(--fg-secondary)]">${step.time}</span>
                            <span class="text-xs px-2 py-0.5 rounded ${getLogTypeClass(step.type)}">${step.type.toUpperCase()}</span>
                        </div>
                        <p class="text-sm">${step.action}</p>
                    `;
                    log.insertBefore(entry, log.firstChild);
                    
                    stepIndex++;
                    setTimeout(processStep, prefersReducedMotion ? 100 : 800);
                }
                
                processStep();
            }
    
            function getLogTypeClass(type) {
                switch (type) {
                    case 'alert': return 'bg-blue-900/50 text-blue-400';
                    case 'threat': return 'bg-red-900/50 text-red-400';
                    case 'response': return 'bg-green-900/50 text-green-400';
                    case 'outcome': return 'bg-yellow-900/50 text-yellow-400';
                    default: return 'bg-gray-900/50 text-gray-400';
                }
            }
    
            function resetSimulation() {
                simulationRunning = false;
                simulationProgress = 0;
                
                document.getElementById('sim-progress').textContent = '0%';
                document.getElementById('sim-progress-bar').style.width = '0%';
                
                const btn = document.getElementById('run-simulation');
                btn.disabled = false;
                btn.textContent = 'Run Simulation';
                
                document.getElementById('simulation-log').innerHTML = `
                    <div class="text-center text-[var(--fg-secondary)] text-sm py-8">
                        Select a scenario and run simulation
                    </div>
                `;
            }
        </script>
    </body>
    </html>
    

    Key Features Built

    1. Scenario Rehearsal System

    • Six realistic activist scenarios (Proxy Contest, Spin-Off, Capital Allocation, Governance, Management Replacement, Merger Opposition)
    • Each scenario has a step-by-step simulation with alerts, threats, responses, and outcomes
    • Severity ratings with visual indicators

    2. Disclosure Position Flips

    • Four strategic disclosure postures that can be toggled
    • Defensive → Engagement → Negotiation → Public Response
    • Flip-card animation reveals detailed metrics for each position

    3. Interactive Stakeholder Map

    • Force-directed node visualization of 18 stakeholders
    • Categories: Activist Funds (red), Institutions (blue), Board/Management (green), Proxy Advisors (gold)
    • Connection lines showing relationships
    • Hover tooltips with detailed stakeholder intelligence
    • Filter tabs to isolate stakeholder types
    • Voting intention indicators (solid ring = against, dashed = undecided)

    4. Dynamic Elements

    • Animated threat gauge that responds to scenario selection
    • Real-time simulation progress with chronological event log
    • Pulsing status indicators
    • Smooth micro-interactions on all interactive elements
    • Canvas-based force simulation with physics

    5. CFO Dashboard Metrics

    • Voting projection bars
    • Critical timeline with countdown
    • Prepared statements library
    • Real-time company stats header

    The design uses a sophisticated dark theme with gold accents (no purple!) appropriate for C-suite executives, with a Bloomberg-terminal-inspired aesthetic.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.