The new sibling-index() and sibling-count() functions let CSS know an element's position and total sibling count—opening the door to dynamic layouts and animations without JS.