The first ionization energy increases across a period because even though the electron repulsion increases from left to right, they are on the same energy level (same n) and thus do not shield each other very well, whereas the effective nuclear charge increases due to the increment in atomic number, so the change in nuclear charge is greater than the increase in electron repulsion.