- legacy: acoplamiento.fases_de_estudio + resumen (vendored unchanged);
spindle and slow-wave events read through the contract columns, so
either detector can feed it; in_slow_wave = --solo-en-onda.
- modern: slow-oscillation phase (MNE 0.5-2 Hz, scipy Hilbert, per run) at
the sigma-envelope peak of each spindle; R from 200 subsamples of 30,
excess over the chance floor, preferred angle, raw R.
Modern within 0.03 of legacy; phase-locked synthetic spindles give R > 0.8
at the trough in both; contract suite passes.