Question
Why is TikZ not remembering the location of my node despite adding the remember picture parameter? (Also, how can I improve this question title?)
Expected Result
The blue line should be drawn from the bottom left of the node titletext to the bottom right of the node titlenumber.
Actual Result
The titlenumber is not remembered correctly, therefore the line is drawn halfway across the page.
Compiler
xelatex Version 3.1415926-2.5-0.9999.3
Code
\documentclass{article}
\usepackage{fontspec}
\usepackage[compact,explicit,noindentafter]{titlesec}
\usepackage[rightlabels,dotinlabels]{titletoc}
\usepackage{needspace}
\usepackage{tikz} % Absolute positioning, advanced vector graphics
\usepackage{anyfontsize}
\newcommand{\tikzsectitle}[2]{%
\begin{tikzpicture}[remember picture,baseline,every node/.style={draw,red,inner sep=0pt,outer sep=0pt}]
\node [text width=.9\textwidth] (titletext) {#1};
\end{tikzpicture}
}%
\newcommand{\tikzsecnumber}[1]{%
\begin{tikzpicture}[remember picture,baseline,every node/.style={draw,red,inner sep=0pt,outer sep=0pt}]
\node [font=\Huge\fontsize{60}{70}\selectfont,anchor=east] (titlenumber) at (titletext.center) {#1};
\end{tikzpicture}
}%
\newcommand{\tikztitleline}{%
\begin{tikzpicture}[remember picture,overlay,every node/.style={inner sep=0pt,outer sep=0pt}]
\draw (titletext.south west |- titlenumber.south) -- (titlenumber.south east);
\end{tikzpicture}
}%
% TITLE FORMATTING
\titleformat{\section}[hang]{\needspace{6cm}\color{blue}\Huge\bfseries}{}{0pt}{\tikzsectitle{#1}\hfill\tikzsecnumber{\thesection}}[\tikztitleline]
\titlespacing{\section}{0pt}{40pt}{2.3ex plus .2ex}
\begin{document}
\section{Test}
\end{document}
Output

Notes
For the sake of completeness, I will note some of the issues with my code.
- The yshift for the blue line does not work for this reason.

\draw (titletext.south west) -- (titletext.south -| titlenumber.east);) – Jonathan Komar Feb 06 '15 at 13:17