- Split scale into startScale and targetScale for clarity - Introduce padding constants (140px horizontal, 96px vertical) - Calculate fitScale based on viewport and node dimensions with padding - Constrain target scale between 0.15 and 1 minimum/max bounds - Extract getCenteredOffset helper for offset calculations - Simplify animation interpolation using consistent offset objects