This follows the WAI-ARIA tabs pattern: only the selected tab is in the Tab order (a "roving tabindex"), the arrow keys move between tabs, Home and End jump to the ends, and each panel is labelled by its tab.
The indicator is a single element behind the tabs. JavaScript reads the active tab's offsetLeft and offsetWidth and hands them to CSS, which does the sliding. A ResizeObserver re-measures when the layout changes, so the indicator stays aligned on resize and after web fonts load.
With reduced motion on, the indicator slides in a quick 0.15s instead of the full glide.