\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{parskip}
\usepackage{setspace}

\onehalfspacing
\setlength{\parskip}{1em}
\setlist{itemsep=0.5em, topsep=0.5em}
\titleformat{\section}{\large\bfseries}{\thesection}{1em}{}

\begin{document}

\section*{Appendix D: Paper Specification (The "Interactive Storyteller")}

\textit{This document is handed to the Wizard at the start of the Design Phase.}

\textbf{Goal:} You must program the robot to tell a short interactive story to the participant. The robot must introduce the story, deliver the narrative with appropriate gestures, ask a comprehension question, and respond to the participant's answer.

\textbf{Script \& Logic Flow:}
\begin{enumerate}
    \item \textbf{Start State:}
    \begin{itemize}
        \item Robot is standing.
        \item Robot is looking at the participant.
    \end{itemize}
    \item \textbf{Interaction Step 1: The Hook}
    \begin{itemize}
        \item \textbf{Robot Speech:} "Hello. I have a story to tell you about a space traveler. Are you ready?"
        \item \textbf{Action:} Robot performs a 'Welcome' or 'Open Hand' gesture.
    \end{itemize}
    \item \textbf{Interaction Step 2: The Narrative}
    \begin{itemize}
        \item \textbf{Robot Speech:} "The traveler flew to Mars. He found a red rock that glowed in the dark. He put it in his pocket."
        \item \textbf{Action:} Robot looks away (to the side) while thinking/telling, then looks back at the user.
    \end{itemize}
    \item \textbf{Interaction Step 3: The Comprehension Check (Branching)}
    \begin{itemize}
        \item \textbf{Robot Speech:} "What color was the rock the traveler found?"
        \item \textbf{Branch A (Correct - "Red"):}
        \begin{itemize}
             \item \textbf{Robot Speech:} "Yes! It was a glowing red rock."
             \item \textbf{Action:} Robot nods.
        \end{itemize}
        \item \textbf{Branch B (Incorrect - Anything else):}
        \begin{itemize}
             \item \textbf{Robot Speech:} "Actually, it was red."
             \item \textbf{Action:} Robot shakes head.
        \end{itemize}
    \end{itemize}
    \item \textbf{Interaction Step 4: Conclusion}
    \begin{itemize}
        \item \textbf{Robot Speech:} "The End. Thank you for listening."
        \item \textbf{Action:} Robot sits down (or bows).
    \end{itemize}
\end{enumerate}

\end{document}
