:root {
  color-scheme: dark;
  --bg: #080c1d;
  --panel: rgba(13, 20, 43, .86);
  --line: rgba(158, 171, 236, .16);
  --text: #f4f5ff;
  --muted: #939cba;
  --violet: #a991ff;
  --cyan: #5ce5e2;
  --lime: #b9ef72;
  --orange: #ffaf66;
  --max: 1480px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 58% -18%, #25234e 0, var(--bg) 42rem); }
button, audio { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.glow { position: fixed; z-index: -1; width: 34rem; height: 34rem; filter: blur(120px); border-radius: 50%; opacity: .1; pointer-events: none; }
.glow-one { left: -20rem; top: 24rem; background: var(--violet); }
.glow-two { right: -22rem; top: 72rem; background: var(--cyan); }
.hero { padding: 84px 0 52px; }
.eyebrow, .kicker { color: var(--cyan); font-size: .73rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
h1 { margin: 22px 0 24px; font-size: clamp(4.2rem, 9vw, 8.7rem); line-height: .82; letter-spacing: -.075em; font-weight: 790; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(90deg, var(--violet), var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.lede { max-width: 790px; color: #bcc2da; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.55; }
.contract { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.contract span { padding: 9px 13px; color: var(--muted); font-size: .77rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,16,35,.7); }
.contract b { color: var(--text); margin-left: 5px; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 38px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(10,16,35,.74); backdrop-filter: blur(20px); }
.summary article { display: flex; flex-direction: column; gap: 7px; padding: 23px 25px; border-right: 1px solid var(--line); }
.summary article:last-child { border: 0; }
.summary span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
.summary strong { font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -.045em; }
.summary small { color: #6f7898; }
.summary .highlight strong { color: var(--lime); }
.method { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(31,31,68,.85), rgba(10,17,36,.78)); }
.method h2 { margin: 9px 0 0; font-size: clamp(1.55rem,3vw,2.45rem); letter-spacing: -.045em; }
.method > p { margin: 0; color: #afb5cf; line-height: 1.72; }
.legend { display: grid; grid-template-columns: repeat(3,1fr); margin: 24px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.legend div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 18px 20px; border-right: 1px solid var(--line); }
.legend div:last-child { border: 0; }
.legend small { grid-column: 2; color: var(--muted); margin-top: 3px; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.dot.clean { background: #a5afc8; }.dot.noisy { background: var(--orange); }.dot.enhanced { background: var(--lime); }
.toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 46px 0 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: #0d142b; padding: 9px 14px; cursor: pointer; transition: .18s ease; }
.filter:hover, .filter.active { color: #080c1d; border-color: var(--cyan); background: var(--cyan); }
.primary .filter.active { background: var(--violet); border-color: var(--violet); color: #090c1c; }
#visible-count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.clips { display: grid; gap: 22px; }
.clip { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: 0 22px 58px rgba(0,0,0,.16); }
.clip.unseen { border-color: rgba(92,229,226,.24); }
.clip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 26px 19px; }
.clip-title { display: flex; align-items: center; gap: 15px; }
.clip-index { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #080c1d; background: var(--violet); font-weight: 900; }
.unseen .clip-index { background: var(--cyan); }
.clip h3 { margin: 0 0 5px; font-size: 1.08rem; letter-spacing: -.02em; }
.cohort-badge { display: inline-block; margin-right: 8px; color: var(--violet); font-size: .68rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.unseen .cohort-badge { color: var(--cyan); }
.metadata { color: var(--muted); font-size: .78rem; }
.gain { text-align: right; }
.gain strong { display: block; color: var(--lime); font-size: 1.15rem; }
.gain span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.variants { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.variant { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.variant:last-child { border: 0; }
.variant-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.variant-name { font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.variant:nth-child(1) .variant-name { color: #aab1c9; }.variant:nth-child(2) .variant-name { color: var(--orange); }.variant:nth-child(3) .variant-name { color: var(--lime); }
.metric { color: var(--muted); font-size: .71rem; }
.spectrogram { display: block; width: 100%; aspect-ratio: 3.9/1; object-fit: cover; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: #080c1d; }
audio { display: block; width: 100%; height: 35px; margin-top: 12px; opacity: .92; }
.loading { padding: 70px 0; text-align: center; color: var(--muted); }
.error { color: #ff9f9f; }.home-link { color: var(--cyan); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding: 42px 0; border-top: 1px solid var(--line); color: #69728f; font-size: .77rem; }
@media (max-width: 920px) {
  .summary { grid-template-columns: repeat(2,1fr); }.summary article:nth-child(2) { border-right: 0; }.summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method { grid-template-columns: 1fr; gap: 20px; padding: 30px; }.toolbar { grid-template-columns: 1fr; }.variants { grid-template-columns: 1fr; }.variant { border-right: 0; border-bottom: 1px solid var(--line); }.variant:last-child { border-bottom: 0; }.spectrogram { aspect-ratio: 4.8/1; }
}
@media (max-width: 600px) {
  .shell { width: min(calc(100% - 24px),var(--max)); }.hero { padding-top: 58px; }h1 { font-size: 3.55rem; }.summary article { padding: 17px; }.legend { grid-template-columns: 1fr; }.legend div { border-right: 0; border-bottom: 1px solid var(--line); }.legend div:last-child { border-bottom: 0; }.gain { display: none; }.clip-head { padding: 19px; }footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
