The surface of a thin liquid film with nonconstant curvature flattens as a result of capillary forces. While this leveling is driven by local curvature gradients, the global boundary conditions greatly influence the dynamics. Here, we study the evolution of rectangular trenches in a polystyrene nanofilm. Initially, when the two sides of a trench are well separated, the asymmetric boundary condition given by the step height controls the dynamics. In this case, the evolution results from the leveling of two noninteracting steps. As the steps broaden further and start to interact, the global symmetric boundary condition alters the leveling dynamics. We report on full agreement between theory and experiments for: the capillary-driven flow and resulting time dependent height profiles; a crossover in the power-law dependence of the viscous energy dissipation as a function of time as the trench evolution transitions from two noninteracting to interacting steps; and the convergence of the profiles to a universal self-similar attractor that is given by the Green's function of the linear operator describing the dimensionless linearized thin film equation.PACS numbers: 47.15.gm, 47.55.nb, 47.85.mf, 83.80.Sg Thin films are prevalent in applications such as lubricants, coatings for optical and electronic devices, and nanolithography to name just a few. However, it is also known that the mobility of polymers can be altered in thin films [1][2][3][4][5]. Thus, understanding the dynamics of thin films in their liquid state is essential to gaining control of pattern formation and relaxation on the nanoscale [6,7]. For example, high-density data storage in thin polymer films is possible by locally modifying a surface with a large 2-D array of atomic force microscope probes [8]. This application relies on control of the time scales of the flow created by a surface profile to produce or erase a given surface pattern. In contrast to this technologically spectacular example is the surface of freshly applied paint which relies on the dynamics of leveling to provide a lustrous surface.Much has been learned about the physics of thin films from dewetting, where an initially flat film exposes the substrate surface to reduce the free energy of the system [9][10][11][12][13][14][15][16][17][18]. Other approaches, for example studying the evolution of surface profiles originating from capillary waves [19], embedding of nanoparticles [5], or those created by an external electric field [20,21] have also been utilized to explore mobility in thin films. Although the capillary-driven leveling of a nonflat surface topography in a thin liquid film has been reported in various studies [22,23], experiments with high resolution compared to a general theory that relates time scales to spatial geometries and properties of the liquid are still lacking. Recently, we studied the leveling of a stepped film: a new nanofluidic tool to study the properties of polymers in thin film geometries [24][25][26][27][28].In this work, we study the leveling of perfec...