:root {
  --ink: #14211f;
  --muted: #596663;
  --paper: #ffffff;
  --soft: #f3f7f5;
  --line: #d6e0dd;
  --teal: #087d73;
  --teal-dark: #07564f;
  --coral: #df6258;
  --amber: #e7aa34;
  --night: #112b27;
  --night-soft: #183a35;
  --shell: 1180px;
  --wide: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 18px; line-height: 1.68; letter-spacing: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.shell-wide { width: min(calc(100% - 48px), var(--wide)); margin-inline: auto; }
.figure-link { display: block; cursor: zoom-in; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 16px; font-weight: 700; text-transform: uppercase; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; background: rgba(255, 255, 255, .94); border-bottom: 1px solid rgba(214, 224, 221, .9); backdrop-filter: blur(14px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 20px; font-weight: 700; }
.wordmark:hover { color: var(--ink); }
.wordmark-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu > a { color: #46524f; font-size: 16px; font-weight: 600; }
.nav-menu > a:hover, .nav-menu > a.active { color: var(--teal); }
.nav-code { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; color: white !important; background: var(--ink); border-radius: 5px; }
.nav-code svg { width: 17px; height: 17px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.nav-toggle svg { width: 25px; height: 25px; }

.hero { padding: 130px 0 72px; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 1040px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(68px, 8vw, 102px); font-weight: 700; line-height: .94; }
.hero-title { max-width: 980px; margin: 22px auto 0; font-size: clamp(27px, 2.5vw, 35px); font-weight: 500; line-height: 1.24; }
.acceptance-badge { width: fit-content; margin: 18px auto 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 15px; color: #7c2c20; background: #fff1ec; border: 1px solid #efb6a8; border-radius: 999px; font-size: 17px; font-weight: 700; }
.acceptance-badge svg { width: 19px; height: 19px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 24px; margin-top: 26px; }
.authors a { font-size: 20px; font-weight: 700; }
.authors a:hover { text-decoration: underline; }
.authors sup { margin-left: 2px; color: var(--coral); font-size: 16px; }
.affiliations { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.corresponding-author { margin: 1px 0 0; color: var(--muted); font-size: 16px; }
.corresponding-author sup { color: var(--coral); font-weight: 700; }
.resource-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; }
.resource { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; color: var(--ink); background: white; border: 1px solid #bbc8c4; border-radius: 5px; font-size: 16px; font-weight: 700; }
.resource svg { width: 17px; height: 17px; }
.resource.primary { color: white; background: var(--teal); border-color: var(--teal); }
.resource.primary:hover { background: var(--teal-dark); }
.resource.paper-resource { color: white; background: var(--coral); border-color: var(--coral); }
.resource.paper-resource:hover { background: #b84636; }
.resource.paper-resource small { color: white; }
.resource.disabled { color: #687571; background: #edf2f0; border-color: #d4ddda; cursor: not-allowed; }
.resource small { color: #687571; font-size: 16px; text-transform: uppercase; }

.section { padding: 108px 0; }
.section-heading { max-width: 820px; margin: 0 0 52px; }
.section-heading.shell { margin-left: auto; margin-right: auto; }
.section-heading h2, .safe-layout h2, .result-copy h2, .citation-layout h2, .result-heading h2 { margin: 0; font-size: clamp(38px, 4vw, 54px); font-weight: 700; line-height: 1.08; }
.section-heading > p:last-child, .split-heading > p, .safe-layout > div > p:last-child, .result-copy > p, .result-heading > p:last-child { color: var(--muted); }
.section-heading > p:last-child, .result-heading > p:last-child { margin: 18px 0 0; }
.split-heading { max-width: none; display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; align-items: end; }
.split-heading > p { margin: 0; font-size: 19px; line-height: 1.65; }

.overview { background: white; }
.overview-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 62px; align-items: center; }
.overview-content { min-width: 0; }
.overview-content .section-heading { max-width: 620px; margin-bottom: 32px; }
.overview-copy .lead { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.52; }
.overview-copy > p:nth-child(2) { margin: 22px 0 0; color: var(--muted); }
blockquote { margin: 28px 0 0; padding: 22px 26px; color: var(--teal-dark); background: var(--soft); border-left: 5px solid var(--coral); font-size: 19px; font-weight: 600; line-height: 1.48; }
.overview-question { grid-column: 1 / -1; margin: 0; padding: 20px 26px; font-size: 18px; text-align: center; white-space: nowrap; }
.overview-figure { margin: 0; padding: 12px; background: white; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(20, 50, 46, .1); }
.overview-figure img { width: 100%; }
.evidence-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.evidence-row > div { min-height: 190px; padding: 30px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 6px; }
.evidence-title { display: flex; align-items: center; gap: 13px; }
.evidence-row svg { width: 28px; height: 28px; color: var(--teal); }
.evidence-index { color: #72817d; font-size: 16px; font-weight: 700; }
.evidence-row h3 { margin: 0; font-size: 24px; }
.evidence-row p { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.58; }

.facot-section { background: var(--soft); border-block: 1px solid var(--line); }
.feature-figure, .framework-figure { margin-top: 0; margin-bottom: 0; }
.feature-figure { padding: 18px; background: white; border: 1px solid var(--line); }
.feature-figure img, .framework-figure img { width: 100%; }
.feature-figure figcaption { max-width: 1000px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-align: center; }
.facot-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.facot-facts > div { min-height: 168px; padding: 26px 28px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.fact-title { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.facot-facts strong { color: var(--teal-dark); font-size: 34px; line-height: 1; }
.fact-title span { color: var(--ink); font-size: 18px; font-weight: 700; }
.facot-facts > div > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.method-section .section-heading { max-width: 900px; }
.framework-figure { padding: 20px; background: var(--soft); border: 1px solid var(--line); }
.method-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.method-list article { min-height: 216px; display: block; padding: 28px; background: white; border: 1px solid var(--line); border-bottom: 4px solid var(--teal); border-radius: 6px; }
.method-stage-title { display: flex; align-items: flex-start; gap: 12px; }
.method-stage-title > span { flex: 0 0 auto; padding-top: 4px; color: var(--teal); font-size: 16px; font-weight: 700; }
.method-list h3 { margin: 0; font-size: 22px; line-height: 1.28; }
.method-abbr, .heading-abbr { color: var(--teal); white-space: nowrap; }
.method-list article > p { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.58; }
.safe-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; margin-top: 76px; padding-top: 76px; border-top: 1px solid var(--line); }
.safe-layout figure { margin: 0; padding: 20px; background: var(--soft); border: 1px solid var(--line); }

.result-section { color: white; background: var(--night); }
.result-section .eyebrow { color: #8ed4ca; }
.result-heading { max-width: 900px; margin-bottom: 46px; }
.result-heading h2, .result-copy h2 { color: white; }
.result-heading > p:last-child { color: #b7c8c4; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid > div { min-height: 196px; display: flex; flex-direction: column; justify-content: center; padding: 26px 24px; background: var(--night-soft); border: 1px solid #36534e; border-radius: 6px; }
.metric-grid strong { color: #f2b845; font-size: 40px; line-height: 1; }
.metric-grid span { margin-top: 14px; color: #edf3f1; font-size: 17px; font-weight: 600; line-height: 1.35; }
.metric-grid small { margin-top: 8px; color: #b8c9c5; font-size: 16px; line-height: 1.45; }
.result-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; margin-top: 78px; padding-top: 72px; border-top: 1px solid #36534e; }
.result-copy > p { color: #c3d0cd; }
.result-copy .result-caveat { margin-top: 26px; color: #aebfbb; font-size: 16px; line-height: 1.65; }
.bar-chart { padding: 30px; background: #173833; border: 1px solid #42615b; border-radius: 6px; }
.chart-title { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.chart-title span { color: #bdcbc8; font-size: 16px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 50px; gap: 14px; align-items: center; margin: 18px 0; }
.bar-row > span { color: #d8e3e0; font-size: 16px; }
.bar-row > div { height: 11px; background: #294b45; }
.bar-row i { display: block; width: var(--value); height: 100%; background: #82ada6; }
.bar-row strong { color: #e4ecea; font-size: 16px; text-align: right; }
.bar-row.featured > span, .bar-row.featured strong { color: #f5c35d; font-weight: 700; }
.bar-row.featured i { background: var(--coral); }
.chart-scale { display: flex; justify-content: space-between; margin: 24px 59px 0 164px; color: #adbfbb; font-size: 16px; }
.ablation-figure { margin-top: 72px; padding-top: 64px; border-top: 1px solid #36534e; }
.ablation-figure img { width: 100%; background: white; }
.ablation-figure figcaption { max-width: 940px; margin: 16px auto 0; color: #bdcbc8; font-size: 16px; line-height: 1.6; text-align: center; }

.case-section { background: white; }
.sample-browser { min-width: 0; }
.sample-filters { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.45fr; gap: 12px; margin-bottom: 18px; padding: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; }
.sample-filters label { color: var(--muted); font-size: 16px; font-weight: 700; }
.sample-filters select, .sample-filters input { width: 100%; height: 46px; margin-top: 7px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid #b9c7c3; border-radius: 5px; font: 500 16px "DM Sans", sans-serif; }
.sample-filters select:focus, .sample-filters input:focus { outline: 3px solid rgba(8, 125, 115, .16); border-color: var(--teal); }
.sample-summary { margin: 0 0 17px; color: var(--muted); font-size: 16px; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sample-card { min-width: 0; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 14px 34px rgba(20, 50, 46, .07); }
.sample-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sample-index { color: var(--teal); font-size: 16px; font-weight: 700; }
.sample-card header > div { min-width: 0; }
.sample-card header p { margin: 0; color: var(--muted); font-size: 16px; }
.sample-card h3 { margin: 1px 0 0; font-size: 24px; line-height: 1.2; }
.sample-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-spectrogram { width: 100%; height: 142px; object-fit: cover; background: #090611; border: 1px solid #22172d; }
.sample-card audio { width: 100%; margin: 18px 0; }
.sample-results { display: grid; gap: 10px; }
.sample-results > div { padding: 15px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }
.sample-results span { display: block; color: var(--muted); font-size: 16px; font-weight: 600; }
.sample-results strong { display: block; margin-top: 4px; font-size: 18px; }
.sample-results strong small { margin-left: 5px; color: var(--teal); font-size: 16px; }
.sample-results p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.sample-reasoning { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.sample-reasoning h4 { margin: 0; color: var(--teal-dark); font-size: 18px; line-height: 1.35; }
.reasoning-text { max-height: 430px; margin: 14px 0 0; padding: 18px; overflow: auto; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 5px; font: 16px/1.65 "DM Sans", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.sample-empty { grid-column: 1 / -1; margin: 0; padding: 36px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); text-align: center; }
.sample-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.sample-pagination button { min-width: 104px; min-height: 44px; padding: 8px 14px; color: white; background: var(--teal); border: 1px solid var(--teal); border-radius: 5px; font: 700 16px "DM Sans", sans-serif; cursor: pointer; }
.sample-pagination button:disabled { color: #7c8985; background: #edf2f0; border-color: var(--line); cursor: not-allowed; }
.sample-pagination span { min-width: 120px; color: var(--muted); font-size: 16px; text-align: center; }

.citation-section { padding: 86px 0; color: white; background: #0c1d1a; }
.citation-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 76px; align-items: center; }
.citation-layout > *, .result-layout > *, .safe-layout > *, .split-heading > * { min-width: 0; }
.citation-layout h2 { color: white; }
.citation-layout > div > p:last-child { color: #aebfbb; }
.code-wrap { position: relative; min-width: 0; max-width: 100%; }
pre { max-width: 100%; margin: 0; padding: 28px; overflow-x: auto; color: #e0e9e7; background: #142d29; border: 1px solid #36504b; border-radius: 6px; font: 16px/1.72 Consolas, monospace; }
.copy-button { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: white; background: #28443f; border: 1px solid #4b6761; border-radius: 5px; font: 600 16px "DM Sans", sans-serif; cursor: pointer; }
.copy-button:hover { background: var(--teal); }
.copy-button svg { width: 16px; height: 16px; }

@media (max-width: 940px) {
  .shell, .shell-wide { width: min(calc(100vw - 32px), var(--shell)); }
  .nav-toggle { display: grid; }
  .nav-menu { position: absolute; inset: 72px auto auto 0; width: 100vw; display: none; padding: 14px 20px 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav-menu.open { display: flex; }
  .nav-menu > a { width: 100%; padding: 10px 0; }
  .nav-code { width: auto !important; padding: 9px 12px !important; }
  .split-heading, .overview-layout, .safe-layout, .result-layout, .citation-layout { grid-template-columns: 1fr; gap: 34px; }
  .overview-question { white-space: normal; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .method-list { grid-template-columns: 1fr; }
  .sample-filters { grid-template-columns: repeat(2, 1fr); }
  .sample-grid { grid-template-columns: 1fr; }
  .method-list article { min-height: 0; }
  .safe-layout, .result-layout { margin-top: 58px; padding-top: 58px; }
  .citation-layout { align-items: start; }
}

@media (max-width: 620px) {
  .hero { padding: 112px 0 54px; }
  .hero h1 { font-size: clamp(50px, 16vw, 64px); }
  .hero-title { font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
  .authors { gap: 4px 15px; }
  .resource-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 34px; }
  .resource { width: 100%; padding-inline: 8px; }
  .section { padding: 72px 0; }
  .section-heading h2, .safe-layout h2, .result-copy h2, .citation-layout h2, .result-heading h2 { font-size: 36px; }
  .split-heading { gap: 22px; }
  .overview-copy .lead { font-size: 21px; }
  blockquote { padding: 22px; font-size: 20px; }
  .overview-figure { padding: 8px; box-shadow: none; }
  .evidence-row, .facot-facts, .metric-grid { grid-template-columns: 1fr; }
  .sample-filters { grid-template-columns: 1fr; padding: 16px; }
  .evidence-row > div, .facot-facts > div { min-height: 0; }
  .feature-figure, .framework-figure { width: 100%; padding: 8px; }
  .method-list article { padding: 24px; }
  .metric-grid > div { min-height: 168px; }
  .bar-chart { padding: 22px 16px; }
  .bar-row { grid-template-columns: 105px 1fr 42px; gap: 9px; }
  .bar-row > span { overflow-wrap: anywhere; }
  .chart-scale { margin-left: 114px; margin-right: 48px; }
  .citation-section { padding: 72px 0; }
  pre { padding: 58px 16px 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
}

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