:root {
  --ink: #17191c;
  --muted: #5f646b;
  --faint: #f6f7f8;
  --line: #dedfe2;
  --blue: #2877c7;
  --blue-dark: #14558f;
  --s: #db5361;
  --a: #d99425;
  --t: #278b91;
  --b: #3b6ea8;
  --merged: #64734e;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.58; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; }
.page { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; z-index: 20; padding: 8px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.skip-link:focus { position: fixed; top: 14px; left: 14px; }

.site-nav { border-top: 4px solid #303236; border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a:focus { color: var(--blue); }

.hero { padding: 44px 0 36px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0 0 20px; font-size: clamp(36px, 6vw, 57px); font-weight: 620; letter-spacing: -.045em; line-height: 1.05; }
.authors { margin: 0 0 3px; font-size: 15px; }
.authors sup, .affiliations sup { color: var(--blue-dark); font-size: .68em; font-weight: 750; }
.affiliations { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.link-line { margin: 0 0 23px; font-size: clamp(18px, 3.5vw, 24px); }
.link-line a { font-weight: 650; text-decoration: none; }
.standfirst { max-width: 790px; margin: 0; font-size: 20px; line-height: 1.62; }
.voice { font-weight: 650; }
.voice.s { color: var(--s); }
.voice.a { color: #b67815; }
.voice.t { color: var(--t); }
.voice.b { color: var(--b); }

.overview { padding-bottom: 10px; }
.section { padding: 58px 0; border-top: 1px solid var(--line); }
.section-heading { margin: 0 0 22px; font-size: clamp(28px, 4.6vw, 37px); font-weight: 520; letter-spacing: -.035em; line-height: 1.18; }
.section-intro { max-width: 760px; margin: -9px 0 30px; color: var(--muted); font-size: 17px; }
.hero-figure, .method-figure { margin: 0; }
.hero-figure { width: min(720px, 100%); margin-inline: auto; }
.hero-figure a, .method-figure a { display: block; border: 1px solid var(--line); background: #fff; }
.hero-figure img, .method-figure img { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: 13px; }
.hero-figure figcaption, .method-figure figcaption { padding: 11px 1px 0; }
.abstract-copy { display: grid; grid-template-columns: 120px 1fr; gap: 30px; margin: 38px 0 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.abstract-copy h2 { margin: 0; font-size: 23px; font-weight: 520; }
.abstract-copy p { margin: 0; color: #33373c; font-size: 15px; line-height: 1.67; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; border: 1px solid var(--line); }
.metric { min-height: 165px; padding: 22px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong, .metric span, .metric small { display: block; }
.metric strong { margin-bottom: 5px; color: var(--blue-dark); font-size: 39px; font-weight: 560; letter-spacing: -.035em; line-height: 1; }
.metric span { margin-bottom: 13px; font-weight: 650; line-height: 1.35; }
.metric small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.result-plots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bar-figure { margin: 0; padding: 20px; background: var(--faint); }
.bar-figure figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bar-figure figcaption strong { color: var(--ink); font-size: 14px; }
.bar-figure figcaption span { font-size: 11px; }
.bar-row { display: grid; grid-template-columns: 116px 1fr 44px; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.bar-row i { display: block; width: var(--value); height: 8px; background: #a9adb2; border-radius: 1px; }
.bar-row b { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.bar-row.ours { color: var(--ink); font-weight: 650; }
.bar-row.ours i { background: var(--blue); }
.bar-row.ours b { color: var(--ink); }
.fine-print, .demo-note, .citation-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.paper-results { width: min(1080px, calc(100vw - 32px)); margin: 34px 0 0 50%; transform: translateX(-50%); }
.paper-results > h3 { margin: 0 0 20px; font-size: 22px; font-weight: 620; letter-spacing: -.025em; }
.result-table-block + .result-table-block { margin-top: 34px; }
.result-table-block h4 { margin: 0 0 8px; font-size: 13px; font-weight: 680; letter-spacing: -.005em; }
.table-scroll { overflow-x: auto; margin: 0; background: #fff; border-top: 2px solid #20252a; border-bottom: 2px solid #20252a; scrollbar-color: #aeb7c0 #f0f2f4; }
.table-scroll:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.result-table { width: 100%; border-collapse: collapse; color: #202428; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.result-table-wide { min-width: 920px; }
.result-table-extra-wide { min-width: 1080px; }
.result-table-compact { min-width: 720px; }
.result-table th, .result-table td { padding: 9px 10px; border-right: 1px solid #e0e3e6; border-bottom: 1px solid #d7dadd; text-align: center; white-space: nowrap; }
.result-table th:last-child, .result-table td:last-child { border-right: 0; }
.result-table thead th { color: #22272b; background: #eef1f3; font-weight: 720; }
.result-table thead tr:first-child th { border-bottom: 1px solid #bfc4c8; }
.result-table thead tr:last-child th { border-bottom: 2px solid #666d73; }
.result-table tbody tr:last-child th, .result-table tbody tr:last-child td { border-bottom: 0; }
.result-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 160px; background: #fff; font-weight: 620; text-align: left; }
.result-table tbody tr:nth-child(even):not(.proposed-row) th, .result-table tbody tr:nth-child(even):not(.proposed-row) td { background: #fafafa; }
.result-table tbody .proposed-row th, .result-table tbody .proposed-row td { background: #eaf4fc; }
.result-table .dataset-divider th, .result-table .dataset-divider td { border-top: 2px solid #777e84; }
.result-table small { color: var(--muted); font-size: 8px; font-weight: 500; }
.result-table strong { color: #101316; font-weight: 800; }
.result-table u { text-underline-offset: 2px; }

.analysis-section { scroll-margin-top: 20px; }
.analysis-figure { margin: 20px 0 0; }
.analysis-figure a { display: block; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.analysis-figure img { display: block; width: 100%; height: auto; }
.analysis-figure figcaption { padding-top: 9px; }
.wide-figure { width: calc(100% + 120px); margin-left: -60px; }

.demo-section { scroll-margin-top: 20px; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; padding: 17px 18px; border: 1px solid var(--line); }
.source-row strong, .source-row span { display: block; }
.source-row span { color: var(--muted); font-size: 12px; }
.source-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.source-link:hover, .source-link:focus { border-color: var(--blue); }
.waveform-player { margin-bottom: 28px; padding: 20px 21px 16px; border: 1px solid var(--line); background: #fff; }
.waveform-copy { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.waveform-copy strong, .waveform-copy span { display: block; }
.waveform-copy strong { font-size: 15px; }
.waveform-copy span { color: var(--muted); font-size: 12px; }
.local-audio-label { padding: 4px 7px; color: var(--blue-dark) !important; background: #edf5fb; border-radius: 2px; font-size: 10px !important; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.waveform-controls { display: grid; grid-template-columns: 42px minmax(0, 1fr) 82px; align-items: center; gap: 13px; }
.waveform-play { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 0 2px; color: #fff; background: var(--blue); border: 0; border-radius: 50%; cursor: pointer; }
.waveform-play:hover, .waveform-play:focus { background: var(--blue-dark); outline-offset: 3px; }
.waveform-play.is-playing { padding-left: 0; }
.waveform-track { position: relative; height: 72px; overflow: hidden; background: #f5f7f9; border-radius: 2px; }
#original-waveform { display: block; width: 100%; height: 100%; }
.waveform-scrubber { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.waveform-scrubber:focus-visible { opacity: 1; height: 8px; top: auto; accent-color: var(--blue); }
.waveform-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #f5f7f9; font-size: 11px; pointer-events: none; }
.waveform-loading.is-ready { display: none; }
.waveform-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.source-audio-element { display: none; }
.waveform-player.is-fallback .source-audio-element { display: block; width: 100%; margin-top: 12px; }
.waveform-player.is-fallback .waveform-controls { display: none; }
.waveform-footnote { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.waveform-footnote a { font-weight: 650; text-decoration: none; }
.demo-status { margin: -8px 0 18px; color: var(--muted); font-size: 12px; }
.demo-status.ready { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.listening-block { margin-top: 30px; }
.listening-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.listening-heading > div { display: flex; align-items: center; gap: 10px; }
.listening-heading h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.listening-heading p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.number { display: grid; place-items: center; width: 23px; height: 23px; color: #fff; background: #303236; border-radius: 50%; font-size: 11px; font-weight: 750; }
.player-row, .part-row { border: 1px solid var(--line); background: #fff; }
.player-row { min-height: 112px; display: grid; grid-template-columns: 184px 50px 1fr; align-items: center; gap: 14px; padding: 14px 16px; }
.player-row + .player-row { border-top: 0; }
.player-label strong, .player-label small { display: block; }
.player-label small { color: var(--muted); font-size: 11px; }
.ours-tag { display: inline-block; margin-left: 6px; padding: 4px 8px 3px; color: #fff; background: var(--blue); border-radius: 999px; box-shadow: 0 1px 2px rgba(23, 96, 169, .2); font-size: 10px; font-weight: 800; letter-spacing: .055em; line-height: 1; text-transform: uppercase; vertical-align: 2px; }
.model-citation { color: var(--blue); font-size: .78em; font-weight: 650; text-decoration: none; vertical-align: .18em; }
.model-citation:hover, .model-citation:focus { text-decoration: underline; }
.excerpt-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 8px 0 0; }
.excerpt-scores div { min-width: 0; padding: 5px 6px 4px; background: #f3f6f8; border: 1px solid #e5e9ec; border-radius: 2px; }
.excerpt-scores dt { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .015em; line-height: 1.2; white-space: nowrap; }
.excerpt-scores dd { margin: 2px 0 0; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.1; }
.reference-scores dd { color: var(--muted); }
.excerpt-score-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 12px; background: var(--line); border: 1px solid var(--line); }
.excerpt-score-guide div { padding: 16px 17px; background: #f7f9fa; }
.excerpt-score-guide strong { display: block; margin-bottom: 5px; color: var(--blue-dark); font-size: 12px; }
.excerpt-score-guide p { margin: 0; color: #525961; font-size: 11px; line-height: 1.55; }
.play-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0 0 0 2px; color: var(--ink); background: #fff; border: 1px solid #babdc1; border-radius: 50%; cursor: pointer; }
.play-button:hover:not(:disabled), .play-button:focus:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.play-button:disabled { cursor: wait; opacity: .45; }
.play-button em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.play-button.is-playing { color: #fff; background: var(--blue); border-color: var(--blue); }
.piano-roll { display: block; width: 100%; height: 62px; }
.comparison-head, .part-row { display: grid; grid-template-columns: 120px 1fr 1fr; }
.comparison-head { padding: 0 12px 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.comparison-head span:not(:first-child) { padding-left: 14px; }
.comparison-head .ours-tag { margin-inline: 4px 0; padding: 3px 7px; color: #fff; font-size: 9px; vertical-align: 1px; }
.part-row + .part-row { border-top: 0; }
.part-name { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 10px; padding: 14px 13px; }
.part-name i { width: 7px; height: 38px; border-radius: 4px; background: var(--part-color); }
.part-name strong { font-size: 13px; }
.part-name small { color: var(--muted); font-size: 10px; font-weight: 750; }
.part-row[data-part="S"] { --part-color: var(--s); }
.part-row[data-part="A"] { --part-color: var(--a); }
.part-row[data-part="T"] { --part-color: var(--t); }
.part-row[data-part="B"] { --part-color: var(--b); }
.mini-player { min-width: 0; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-left: 1px solid var(--line); }
.mini-player.baseline { background: var(--faint); }
.play-button.compact { width: 32px; height: 32px; font-size: 11px; }
.mini-player .piano-roll { height: 50px; }
.visual-comparison { margin-top: 25px; border-top: 1px solid var(--line); }
.visual-comparison summary { padding: 16px 0; color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 650; }
.visual-comparison figure { margin: 5px 0 0; }
.visual-comparison a, .visual-comparison img { display: block; width: 100%; }
.visual-comparison a { border: 1px solid var(--line); }
.visual-comparison img { height: auto; }
.visual-comparison figcaption { padding-top: 9px; }
.demo-references { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.demo-references h3 { margin: 0 0 9px; font-size: 14px; }
.demo-references ol { margin: 0; padding-left: 21px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.demo-references li + li { margin-top: 6px; }
.demo-references a { font-weight: 650; text-decoration: none; }
.demo-references a:hover, .demo-references a:focus { text-decoration: underline; }

.method-figure { margin-top: 28px; }
.method-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.method-points article { padding-top: 15px; border-top: 2px solid var(--ink); }
.method-points span { color: var(--blue); font-size: 11px; font-weight: 750; }
.method-points h3 { margin: 7px 0 6px; font-size: 16px; }
.method-points p { margin: 0; color: var(--muted); font-size: 13px; }

.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.copy-button { padding: 7px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 12px; }
.copy-button:hover, .copy-button:focus { border-color: var(--blue); }
pre { overflow-x: auto; margin: 0; padding: 19px 20px; color: #2d3136; background: var(--faint); border: 1px solid var(--line); font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
footer { padding: 26px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .abstract-copy { grid-template-columns: 1fr; gap: 8px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 0; }
  .metric + .metric { border-top: 1px solid var(--line); border-left: 0; }
  .result-plots { grid-template-columns: 1fr; }
  .wide-figure { width: 100%; margin-left: 0; }
  .excerpt-score-guide { grid-template-columns: 1fr; }
  .comparison-head, .part-row { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); }
  .part-name { gap: 7px; padding-inline: 9px; }
  .mini-player { grid-template-columns: 32px 1fr; gap: 6px; padding-inline: 8px; }
  .method-points { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 540px) {
  .page { width: min(100% - 28px, 860px); }
  .nav-inner { align-items: flex-start; padding-block: 14px; }
  .nav-links { justify-content: flex-end; gap: 7px 13px; }
  h1 { font-size: 37px; }
  .standfirst { font-size: 17px; }
  .section { padding: 46px 0; }
  .source-row, .footer-inner { align-items: flex-start; flex-direction: column; }
  .source-row { gap: 10px; }
  .waveform-copy, .waveform-footnote { align-items: flex-start; flex-direction: column; gap: 8px; }
  .waveform-controls { grid-template-columns: 38px minmax(0, 1fr); }
  .waveform-play { width: 38px; height: 38px; }
  .waveform-time { grid-column: 2; text-align: left; }
  .listening-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .listening-heading p { text-align: left; }
  .player-row { grid-template-columns: 1fr 40px; }
  .player-row .piano-roll { grid-column: 1 / -1; }
  .bar-row { grid-template-columns: 104px 1fr 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
