% Frame 1: Traditional approach - Engineer designs for nuclear plant, NRC rejects
\begin{frame}{Validating this methodology is not possible using real nuclear
  plants}

  \begin{center}
    \begin{tikzpicture}
      % Define positions
      \coordinate (engineer_pos) at (0,0);
      \coordinate (plant_pos) at (6,0);
      \coordinate (nrc_pos) at (3,0);

      % Engineer icon
      \node[anchor=center] (engineer) at (engineer_pos) {
        \includegraphics[width=2cm]{images/5_metrics_of_success/engineer.png}
      };
      \node[below=0.1cm of engineer, text width=2cm, align=center] {\small Engineer};

      % Nuclear plant icon
      \only<1->{
        \node[anchor=center] (plant) at (plant_pos) {
          \includegraphics[width=2.5cm]{images/5_metrics_of_success/nuclear-plant.png}
        };
        \node[below=0.1cm of plant, text width=3cm, align=center] {\small Nuclear Plant};
      }

      % Bidirectional arrow with label
      \only<1->{
        \draw[->, >=stealth, very thick, draw=textcolor]
          ([yshift=0.3cm]engineer.east) -- ([yshift=0.3cm]plant.west)
          node[midway, above, text width=2.5cm, align=center] {\scriptsize Controller Design};
        \draw[->, >=stealth, very thick, draw=textcolor]
          ([yshift=-0.3cm]plant.west) -- ([yshift=-0.3cm]engineer.east)
          node[midway, below, text width=2cm, align=center] {\scriptsize Validation};
      }

      % NRC appears with "no way" speech bubble
      \only<2->{
        \node[anchor=center] (nrc) at (nrc_pos) {
          \includegraphics[width=2.5cm]{images/5_metrics_of_success/Seal_of_the_United_States_Nuclear_Regulatory_Commission.png}
        };

        % Speech bubble
        \node[above=0.5cm of nrc,
              draw=textcolor,
              fill=secondary,
              rounded corners,
              thick,
              text width=1.8cm,
              align=center] (bubble) {\textbf{No way!}};

        % Speech bubble pointer
        \draw[draw=textcolor, thick, fill=secondary]
          (bubble.south) -- +(-0.2,-0.3) -- +(0.2,-0.3) -- cycle;
      }

    \end{tikzpicture}
  \end{center}

\end{frame}

% Frame 2: New approach - Digital twin enables validation
\begin{frame}{Instead, digital twins will enable controller development and
    validation before
  implementation}

  \begin{center}
    \begin{tikzpicture}
      % Define position
      \coordinate (engineer_pos) at (0,0);
      \coordinate (twin_pos) at (6,0);
      \coordinate (nrc_pos) at (8.5,0);

      % Engineer icon
      \node[anchor=center] (engineer) at (engineer_pos) {
        \includegraphics[width=2cm]{images/5_metrics_of_success/engineer.png}
      };
      \node[below=0.1cm of engineer, text width=2cm, align=center] {\small Engineer};

      % Computer with nuclear plant overlay (digital twin concept)
      \node[anchor=center] (computer) at (twin_pos) {
        \includegraphics[width=2.8cm]{images/5_metrics_of_success/computer.png}
      };

      % Nuclear plant logo overlaid on computer
      \node[anchor=center] at ([yshift=0.3cm, xshift=-0.3cm]computer.center) {
        \includegraphics[width=1.0cm]{images/5_metrics_of_success/nuclear-plant.png}
      };

      \node[below=0.1cm of computer, text width=3cm, align=center] {\small Digital Twin};

      % Bidirectional arrows
      \draw[->, >=stealth, very thick, draw=textcolor]
        ([yshift=0.3cm]engineer.east) -- ([yshift=0.3cm]computer.west)
        node[midway, above, text width=2cm, align=center] {\scriptsize Design};
      \draw[->, >=stealth, very thick, draw=textcolor]
        ([yshift=-0.3cm]computer.west) -- ([yshift=-0.3cm]engineer.east)
        node[midway, below, text width=2cm, align=center] {\scriptsize Validate};

      % NRC logo with speech bubble
      \node[anchor=center] (nrc) at (nrc_pos) {
        \includegraphics[width=1.8cm]{images/5_metrics_of_success/Seal_of_the_United_States_Nuclear_Regulatory_Commission.png}
      };

      % Speech bubble
      \node[above=0.3cm of nrc,
            draw=textcolor,
            fill=secondary,
            rounded corners,
            thick,
            text width=1.5cm,
            align=center] (bubble) {\scriptsize Now I see it!};

      % Speech bubble pointer
      \draw[draw=textcolor, thick, fill=secondary]
        (bubble.south) -- +(-0.15,-0.25) -- +(0.15,-0.25) -- cycle;

    \end{tikzpicture}
  \end{center}

\end{frame}

\begin{frame}{Success will be measured through Technology Readiness Level (TRL) advancement}

  \begin{columns}
    \begin{column}{0.3\textwidth}
      \begin{block}{TRL Goal}

      \textbf{Current:} TRL 2-3\\
      \textbf{Target:} TRL 5

      \end{block}

      \vspace{0.5cm}

    \end{column}

    \begin{column}{0.7\textwidth}
      \begin{columns}
        \begin{column}{0.33\textwidth}
          \centering
          \only<1->{\only<1>{\alert{\textbf{TRL 3}}}%
          \only<2->{\textbf{TRL 3}}\\
          \small Components\\
          \vspace{0.2cm}
          \includegraphics[width=0.8\textwidth]{images/5_metrics_of_success/puzzle.png}}
        \end{column}

        \begin{column}{0.33\textwidth}
          \centering
          \only<2->{\only<2>{\alert{\textbf{TRL 4}}}%
          \only<3->{\textbf{TRL 4}}\\
          \small Integration\\
          \vspace{0.2cm}
          \includegraphics[width=0.8\textwidth]{images/5_metrics_of_success/puzzle_complete.png}}
        \end{column}

        \begin{column}{0.33\textwidth}
          \centering
          \only<3->{\alert<3>{\textbf{TRL 5}}\\
          \small Hardware\\
          \vspace{0.2cm}
          \begin{tikzpicture}
            \node[anchor=south west,inner sep=0] (controller) at (0,0) {\includegraphics[width=0.8\columnwidth]{images/5_metrics_of_success/controller.png}};
            \node[anchor=center,inner sep=2pt] at (2.48,1.88) {\includegraphics[width=0.3\columnwidth]{images/5_metrics_of_success/emerson_logo_only.png}};
          \end{tikzpicture}}
        \end{column}
      \end{columns}
    \end{column}
  \end{columns}

\end{frame}
