The line you've drawn across is not at 90 degrees to the touchlines. If it were, it would also be equidistant from the edge of the penalty box and the goal line. And isn't offside based on where your feet are, not your head? Have to admit, I haven't read the rules in the past 50 years, so...