:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-soft: #f7f7f7;
    --ink: #111111;
    --ink-soft: #2b2b2b;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --user: #9ca3af;
    --agent: #7fb3d5;
    --playhead: #c0392b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-sm: 6px;
    --sans: Arial, Helvetica, "Segoe UI", "Liberation Sans", sans-serif;
    --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
}

a:hover {
    text-decoration-color: var(--ink);
}

.app {
    width: min(960px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 56px 0 64px;
    background: var(--bg);
}

.topbar {
    padding-bottom: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -0.005em;
    color: var(--ink);
}

h2 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
}

.case-stack {
    display: grid;
    gap: 44px;
    margin-top: 0;
}

.category-heading {
    margin: 36px 0 -8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.category-heading:first-child {
    margin-top: 0;
}

.abstract-section {
    margin-bottom: 48px;
}

.abstract-content {
    margin: 18px auto 0;
    padding: 0 4px;
    max-width: 720px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.7;
    text-align: justify;
}

.abstract-content p {
    margin: 0;
}

.category-eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-title {
    margin: 0;
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.case-panel {
    min-width: 0;
}

.case-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
    text-align: center;
}

.case-title {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.case-header h2 {
    margin-bottom: 0;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-align: center;
    overflow-wrap: anywhere;
}

.sample-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.timeline-panel {
    background: var(--panel);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.timeline-scroll {
    padding: 8px 4px 12px;
    overflow: hidden;
    min-width: 0;
}

.timeline-canvas {
    position: relative;
    width: 100%;
    min-width: 0;
}

.timeline-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 4px 0;
    min-width: 0;
}

.row-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
}

.ruler-track {
    position: relative;
    height: 16px;
}

.tick {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    padding-left: 5px;
    letter-spacing: 0.02em;
}

.wave-track {
    position: relative;
    display: block;
    width: 100%;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    appearance: none;
    overflow: hidden;
    cursor: pointer;
}

.wave-track:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.wave-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.wave-playhead {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1.5px;
    background: var(--playhead);
    pointer-events: none;
    z-index: 5;
}

.transcript-row {
    margin: 2px 0 6px;
}

.transcript-track {
    position: relative;
    height: 22px;
    min-width: 0;
}

.seg-pill {
    position: absolute;
    top: 0;
    height: 20px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel-soft);
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.seg-pill.user {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}

.seg-pill.agent {
    background: #e8f0f7;
    border-color: #cfdfeb;
    color: #1f3a52;
}

.seg-pill:hover {
    z-index: 2;
    overflow: visible;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    border-color: var(--ink);
    background: #ffffff;
    color: var(--ink);
    width: auto !important;
    min-width: 100%;
    max-width: 480px;
}

.seg-pill:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

.audio-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0 14px;
    padding: 0;
}

.stereo-control {
    width: min(440px, 80%);
    margin: 0 auto;
}

audio {
    width: 100%;
    height: 36px;
    display: block;
    border: 0;
    outline: 0;
    background: transparent;
}

audio::-webkit-media-controls-enclosure,
audio::-webkit-media-controls-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.case-description {
    margin-top: 18px;
    padding: 0 4px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.7;
}

.case-description:empty {
    display: none;
}

.case-description p {
    margin: 0 0 0.7em;
}

.case-description p:last-child {
    margin-bottom: 0;
}

.case-description em,
.case-description i {
    color: var(--muted);
}

.case-description code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.9em;
}

.case-description blockquote {
    margin: 8px 0;
    padding: 4px 14px;
    border-left: 2px solid var(--line-strong);
    color: var(--muted);
    font-style: italic;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

@media (max-width: 760px) {
    .app {
        width: min(100vw - 24px, 760px);
        padding: 32px 0 40px;
    }

    h1 {
        font-size: 24px;
    }

    .case-stack {
        gap: 36px;
    }

    .case-header {
        display: block;
    }

    .case-header h2 {
        font-size: 17px;
    }

    .sample-chip {
        margin-top: 8px;
    }

    .timeline-scroll {
        padding: 6px 2px 10px;
    }

    .timeline-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
    }

    .stereo-control {
        width: 100%;
    }
}

/* DuplexPO demo refresh */
:root {
    --bg: #fbfbf8;
    --panel: #ffffff;
    --panel-soft: #f4f6f4;
    --ink: #151515;
    --ink-soft: #30343b;
    --muted: #68706f;
    --line: #dde2df;
    --line-strong: #b9c4be;
    --user: #7d8895;
    --agent: #227c9d;
    --accent: #16885d;
    --accent-soft: #e7f4ed;
    --amber: #9b6a1b;
    --playhead: #ba3b34;
    --shadow-sm: none;
    --radius: 8px;
    --radius-sm: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, #f7f8f4 0, #fbfbf8 230px, #fbfbf8 100%);
    color: var(--ink);
}

.app {
    width: min(1040px, calc(100vw - 40px));
    padding: 38px 0 64px;
}

.topbar {
    text-align: left;
}

.hero {
    padding-bottom: 26px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.eyebrow,
.category-eyebrow {
    letter-spacing: 0;
    color: var(--accent);
}

h1,
.category-title,
.case-header h2 {
    letter-spacing: 0;
}

h1 {
    max-width: 920px;
    margin-bottom: 14px;
    font-size: clamp(30px, 4.6vw, 48px);
    line-height: 1.08;
}

.hero-copy {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.65;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink-soft);
    font-size: 13px;
    white-space: nowrap;
}

.hero-metrics strong {
    color: var(--ink);
    font-weight: 700;
}

.section-block {
    margin: 34px 0 46px;
}

.category-heading {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.category-title {
    font-size: 24px;
    line-height: 1.18;
}

.abstract-content {
    max-width: 820px;
    margin: 0;
    padding: 0;
    color: var(--ink-soft);
    text-align: left;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.method-item {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.method-index {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.method-item h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.method-item p,
.samples-copy {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.samples-intro {
    margin-bottom: 22px;
}

.samples-copy {
    max-width: 780px;
}

.axis-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.axis-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink-soft);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
}

.axis-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.axis-tab.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.axis-count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(21, 21, 21, 0.08);
    color: inherit;
    font-family: var(--mono);
    font-size: 11px;
    text-align: center;
}

.case-stack {
    gap: 30px;
}

.case-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.case-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
    text-align: left;
}

.case-title {
    display: block;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.axis-chip,
.source-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.axis-chip {
    background: var(--accent-soft);
    color: var(--accent);
}

.source-chip {
    background: #f8f1e6;
    color: var(--amber);
}

.case-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.22;
    text-align: left;
}

.sample-chip {
    margin-top: 4px;
    border-color: var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
}

.case-takeaway {
    max-width: 760px;
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.62;
}

.audio-row {
    justify-content: flex-start;
    gap: 16px;
    margin: 6px 0 16px;
}

.stereo-control {
    width: min(520px, 100%);
    margin: 0;
}

.audio-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px 68px;
    color: var(--muted);
    font-size: 12px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--line-strong);
}

.legend-swatch.user {
    background: var(--user);
}

.legend-swatch.agent {
    background: var(--agent);
}

.timeline-panel {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.timeline-scroll {
    padding: 0;
    overflow-x: auto;
}

.timeline-canvas {
    min-width: 640px;
}

.timeline-row {
    grid-template-columns: 56px minmax(0, 1fr);
}

.wave-track {
    border-radius: 4px;
    background: #f8faf9;
}

.transcript-track {
    height: 26px;
}

.seg-pill {
    height: 22px;
    line-height: 20px;
}

.case-description {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--ink);
    text-decoration: underline;
}

@media (max-width: 820px) {
    .app {
        width: min(100vw - 24px, 820px);
        padding: 28px 0 42px;
    }

    h1 {
        font-size: 30px;
        line-height: 1.14;
    }

    .hero-copy {
        font-size: 15px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .case-panel {
        padding: 16px;
    }

    .case-header {
        grid-template-columns: 1fr;
    }

    .sample-chip {
        width: max-content;
    }

    .audio-legend {
        margin-left: 0;
    }

    .timeline-canvas {
        min-width: 560px;
    }
}

/* Futuristic performance-focused skin */
:root {
    --bg: #07100f;
    --panel: #0d1716;
    --panel-soft: #111f1d;
    --ink: #eef8f2;
    --ink-soft: #bfd0cb;
    --muted: #82938e;
    --line: rgba(145, 255, 207, 0.16);
    --line-strong: rgba(145, 255, 207, 0.34);
    --user: #f7b84b;
    --agent: #37c8f5;
    --accent: #48f0a4;
    --accent-soft: rgba(72, 240, 164, 0.12);
    --amber: #ffc65a;
    --rose: #ff6f91;
    --violet-free-blue: #37c8f5;
    --playhead: #ff5d73;
    --shadow-sm: 0 18px 60px rgba(0, 0, 0, 0.28);
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(145, 255, 207, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 200, 245, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(72, 240, 164, 0.08), transparent 320px);
    background-size: 34px 34px, 34px 34px, 100% 100%;
}

.app {
    width: min(1120px, calc(100vw - 40px));
    padding: 32px 0 72px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 28px;
    align-items: end;
    min-height: 390px;
    padding: 34px 0 30px;
    border-bottom: 1px solid var(--line);
}

.hero-main {
    min-width: 0;
}

.eyebrow,
.category-eyebrow,
.performance-kicker,
.terminal-label {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 46px;
    line-height: 1.06;
    text-wrap: balance;
}

.hero-copy {
    max-width: 720px;
    color: var(--ink-soft);
    font-size: 16px;
}

.hero-metrics {
    gap: 9px;
    margin-top: 24px;
}

.hero-metrics span {
    border-color: var(--line);
    background: rgba(13, 23, 22, 0.84);
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-metrics strong {
    color: var(--accent);
}

.hero-terminal {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(17, 31, 29, 0.94), rgba(9, 17, 16, 0.94));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.hero-terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(72, 240, 164, 0.16), transparent);
    transform: translateX(-70%);
    animation: scan 5.6s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateX(-80%);
    }
    55%,
    100% {
        transform: translateX(120%);
    }
}

.terminal-label {
    position: relative;
    margin: 0 0 14px;
}

.terminal-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid rgba(145, 255, 207, 0.12);
    color: var(--muted);
    font-size: 13px;
}

.terminal-row strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.performance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 42px;
}

.performance-item {
    position: relative;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 23, 22, 0.82);
}

.performance-item::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--agent), var(--amber));
}

.performance-item h2 {
    margin: 8px 0 7px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

.performance-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.section-block {
    margin: 40px 0 50px;
}

.category-heading {
    border-bottom-color: var(--line);
}

.category-title {
    color: var(--ink);
    font-size: 25px;
}

.abstract-content,
.method-item p,
.samples-copy,
.case-takeaway,
.case-description {
    color: var(--ink-soft);
}

.method-grid {
    gap: 10px;
}

.method-item,
.case-panel {
    border-color: var(--line);
    background: rgba(13, 23, 22, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.method-item {
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.method-item:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(17, 31, 29, 0.96);
}

.method-index {
    background: rgba(72, 240, 164, 0.14);
    color: var(--accent);
}

.method-item h3 {
    color: var(--ink);
}

.samples-intro {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 0 16px;
    background: rgba(7, 16, 15, 0.92);
    backdrop-filter: blur(14px);
}

.axis-nav {
    gap: 10px;
}

.axis-tab {
    min-height: 40px;
    border-color: var(--line);
    background: rgba(13, 23, 22, 0.86);
    color: var(--ink-soft);
    transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.axis-tab:hover {
    transform: translateY(-1px);
    border-color: var(--agent);
    color: var(--ink);
}

.axis-tab.is-active {
    border-color: rgba(72, 240, 164, 0.74);
    background: linear-gradient(135deg, rgba(72, 240, 164, 0.22), rgba(55, 200, 245, 0.12));
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(72, 240, 164, 0.09), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.axis-count {
    background: rgba(255, 255, 255, 0.08);
}

.case-stack {
    gap: 22px;
}

.case-panel {
    position: relative;
    padding: 24px;
    overflow: hidden;
}

.case-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--agent), var(--amber));
}

.case-header {
    position: relative;
}

.axis-chip,
.source-chip,
.signal-chip {
    border: 1px solid transparent;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.axis-chip {
    border-color: rgba(72, 240, 164, 0.28);
    background: rgba(72, 240, 164, 0.12);
    color: var(--accent);
}

.source-chip {
    border-color: rgba(255, 198, 90, 0.28);
    background: rgba(255, 198, 90, 0.1);
    color: var(--amber);
}

.case-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 12px;
}

.signal-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    border-color: rgba(55, 200, 245, 0.28);
    background: rgba(55, 200, 245, 0.1);
    color: var(--agent);
}

.case-header h2 {
    color: var(--ink);
}

.sample-chip {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.stereo-control {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 16, 15, 0.78);
}

audio {
    filter: invert(1) hue-rotate(160deg) saturate(0.75);
}

.audio-legend {
    color: var(--muted);
}

.legend-swatch {
    box-shadow: 0 0 16px currentColor;
}

.timeline-panel {
    border-top-color: var(--line);
}

.timeline-scroll {
    scrollbar-color: var(--line-strong) transparent;
}

.wave-track {
    border: 1px solid rgba(255, 255, 255, 0.035);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        rgba(255, 255, 255, 0.025);
    background-size: 28px 100%, 100% 100%;
}

.row-label,
.tick {
    color: var(--muted);
}

.seg-pill {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: var(--ink-soft);
}

.seg-pill.user {
    border-color: rgba(247, 184, 75, 0.24);
    background: rgba(247, 184, 75, 0.12);
    color: #ffd892;
}

.seg-pill.agent {
    border-color: rgba(55, 200, 245, 0.24);
    background: rgba(55, 200, 245, 0.12);
    color: #a6eaff;
}

.seg-pill:hover {
    border-color: var(--accent);
    background: #101f1d;
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.case-description {
    border-top-color: var(--line);
}

.footer {
    border-top-color: var(--line);
}

.footer a {
    color: var(--accent);
}

/* SEN-NIN DASH inspired dark HUD palette */
:root {
    --bg: #000011;
    --panel: #050b18;
    --panel-soft: #091426;
    --ink: #ecfeff;
    --ink-soft: #a8c7ce;
    --muted: #67838d;
    --line: rgba(0, 255, 255, 0.18);
    --line-strong: rgba(0, 255, 255, 0.42);
    --user: #ff7a2f;
    --agent: #00e5ff;
    --accent: #00e5ff;
    --accent-soft: rgba(0, 229, 255, 0.12);
    --amber: #b46cff;
    --rose: #ff2d8d;
    --violet-free-blue: #8a5cff;
    --playhead: #ff2d8d;
    --shadow-sm: 0 18px 58px rgba(0, 229, 255, 0.08);
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 22% 8%, rgba(0, 229, 255, 0.16), transparent 28%),
        radial-gradient(circle at 84% 10%, rgba(138, 92, 255, 0.16), transparent 26%),
        radial-gradient(circle at 48% 118%, rgba(255, 45, 141, 0.1), transparent 34%),
        linear-gradient(135deg, #000011 0%, #001122 48%, #000011 100%);
    background-size: 100% 100%;
    color: var(--ink);
}

.site-nav,
.samples-intro {
    background: rgba(0, 0, 17, 0.86);
    border-color: var(--line);
}

.brand-mark,
h1,
.category-title,
.case-header h2,
.performance-item h2,
.listen-card h2,
.method-item h3 {
    color: var(--ink);
}

.hero {
    display: block;
    min-height: 300px;
    padding-top: 58px;
    border-bottom-color: var(--line);
}

.hero-main {
    max-width: 940px;
}

.hero-copy,
.abstract-content,
.method-item p,
.samples-copy,
.case-takeaway,
.case-description,
.performance-item p,
.listen-card p {
    color: var(--ink-soft);
}

.hero-terminal,
.hero-metrics,
.eyebrow {
    display: none;
}

.hero-metrics span,
.axis-tab,
.stereo-control,
.performance-item,
.method-item,
.case-panel,
.listen-card {
    background: rgba(5, 11, 24, 0.82);
    border-color: var(--line);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.performance-item,
.method-item,
.case-panel,
.listen-card {
    backdrop-filter: blur(12px);
}

.performance-kicker,
.terminal-label,
.category-eyebrow,
.listen-card span {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.performance-item::after {
    background: linear-gradient(90deg, var(--accent), var(--violet-free-blue), var(--rose));
}

.case-panel::before {
    background: linear-gradient(180deg, var(--accent), var(--violet-free-blue), var(--rose));
}

.word-ladder span {
    background: rgba(9, 20, 38, 0.78);
    border-color: var(--line);
    color: var(--ink-soft);
}

.word-ladder span:nth-child(2) {
    color: var(--accent);
}

.word-ladder span:nth-child(3) {
    color: var(--rose);
}

.axis-tab {
    color: var(--ink-soft);
}

.axis-tab:hover {
    border-color: var(--line-strong);
    color: var(--accent);
}

.axis-tab.is-active {
    border-color: var(--line-strong);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(138, 92, 255, 0.12));
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.1), 0 18px 42px rgba(0, 0, 17, 0.34);
}

.axis-count {
    background: rgba(0, 229, 255, 0.12);
}

.axis-chip {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
}

.source-chip {
    border-color: rgba(138, 92, 255, 0.34);
    background: rgba(138, 92, 255, 0.12);
    color: #c7b6ff;
}

.signal-chip,
.inspect-button {
    border-color: rgba(255, 45, 141, 0.28);
    background: rgba(255, 45, 141, 0.1);
    color: #ff9aca;
}

.inspect-button:hover,
.case-panel.is-inspecting .inspect-button {
    border-color: var(--line-strong);
    background: rgba(0, 229, 255, 0.14);
    color: var(--ink);
}

.case-panel:hover,
.case-panel.is-inspecting {
    border-color: var(--line-strong);
    box-shadow: 0 26px 70px rgba(0, 0, 17, 0.42), 0 0 26px rgba(0, 229, 255, 0.08);
}

.timeline-panel,
.case-description,
.footer {
    border-color: var(--line);
}

.wave-track {
    border-color: rgba(0, 229, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        rgba(255, 255, 255, 0.025);
    background-size: 28px 100%, 100% 100%;
}

.seg-pill {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-soft);
}

.seg-pill.user {
    border-color: rgba(255, 122, 47, 0.32);
    background: rgba(255, 122, 47, 0.12);
    color: #ffbf91;
}

.seg-pill.agent {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.11);
    color: #aef8ff;
}

.seg-pill:hover {
    border-color: var(--line-strong);
    background: #071527;
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0, 0, 17, 0.45);
}

.row-label,
.tick,
.audio-legend,
.footer {
    color: var(--muted);
}

.legend-swatch.user {
    background: var(--user);
}

.legend-swatch.agent {
    background: var(--agent);
}

audio {
    filter: invert(1) hue-rotate(150deg) saturate(0.75);
}

.footer a {
    color: var(--accent);
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-terminal {
        max-width: 520px;
    }

    .performance-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .app {
        width: min(100vw - 24px, 820px);
        padding: 24px 0 44px;
    }

    h1 {
        font-size: 30px;
        line-height: 1.13;
    }

    .samples-intro {
        position: static;
        padding-top: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .case-panel {
        padding: 18px;
    }

    .timeline-canvas {
        min-width: 580px;
    }
}

/* Playful portfolio-style interaction layer */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
    margin: -32px 0 14px;
    padding: 14px 0 10px;
    background: rgba(7, 16, 15, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links a {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-flex;
    min-width: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.nav-links a {
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav-links a:hover {
    color: var(--accent);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.word-ladder {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.word-ladder span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.035);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.word-ladder span:nth-child(2) {
    color: #9fe9ff;
    transform: rotate(-1.2deg);
}

.word-ladder span:nth-child(3) {
    color: #ffd889;
    transform: rotate(1.1deg);
}

.listen-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: -20px 0 42px;
}

.listen-card {
    position: relative;
    min-width: 0;
    min-height: 168px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 23, 22, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.listen-card:nth-child(2n) {
    transform: translateY(10px);
}

.listen-card:hover {
    transform: translateY(-3px) rotate(-0.6deg);
    border-color: var(--line-strong);
    background: rgba(17, 31, 29, 0.96);
}

.listen-card:nth-child(2n):hover {
    transform: translateY(5px) rotate(0.6deg);
}

.listen-card span {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.listen-card h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
}

.listen-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.52;
}

.case-panel {
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.case-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0, transparent 36%, rgba(255, 255, 255, 0.055) var(--glow-x, 50%), transparent 68%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.case-panel:hover::after,
.case-panel.is-inspecting::after {
    opacity: 1;
}

.case-panel:hover,
.case-panel.is-inspecting {
    border-color: var(--line-strong);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.case-tools {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.inspect-button {
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid rgba(55, 200, 245, 0.28);
    border-radius: 999px;
    background: rgba(55, 200, 245, 0.09);
    color: #a6eaff;
    font: inherit;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.inspect-button:hover,
.case-panel.is-inspecting .inspect-button {
    transform: translateY(-1px);
    border-color: rgba(72, 240, 164, 0.64);
    background: rgba(72, 240, 164, 0.15);
    color: var(--ink);
}

.case-panel.is-inspecting .wave-track {
    border-color: rgba(72, 240, 164, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .hero-terminal::before {
        animation: none;
    }

    .listen-card,
    .case-panel,
    .axis-tab,
    .inspect-button,
    .method-item,
    .nav-links a {
        transition: none;
    }

    .case-panel {
        transform: none;
    }
}

@media (max-width: 920px) {
    .site-nav {
        margin-top: -24px;
    }

    .listen-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-nav {
        display: grid;
        align-items: start;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .listen-strip {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .listen-card,
    .listen-card:nth-child(2n) {
        min-height: auto;
        transform: none;
    }

    .case-tools {
        justify-content: flex-start;
    }
}

/* Warm playful palette pass */
:root {
    --bg: #fff8ec;
    --panel: #fffdf7;
    --panel-soft: #f7efe2;
    --ink: #17140f;
    --ink-soft: #4f4638;
    --muted: #847869;
    --line: rgba(23, 20, 15, 0.14);
    --line-strong: rgba(23, 20, 15, 0.28);
    --user: #f28c38;
    --agent: #2f88ff;
    --accent: #ff5f7e;
    --accent-soft: rgba(255, 95, 126, 0.12);
    --amber: #f2b705;
    --rose: #ff5f7e;
    --violet-free-blue: #2f88ff;
    --playhead: #e83f6f;
    --shadow-sm: 0 18px 50px rgba(92, 68, 29, 0.12);
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(23, 20, 15, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 20, 15, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 18% 12%, rgba(255, 95, 126, 0.16), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(47, 136, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #fff8ec 0, #fffdf7 48%, #fff8ec 100%);
    background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%, 100% 100%;
}

.site-nav,
.samples-intro {
    background: rgba(255, 248, 236, 0.88);
}

.brand-mark,
.nav-links a,
h1,
.category-title,
.case-header h2,
.performance-item h2,
.listen-card h2,
.method-item h3,
.terminal-row strong {
    color: var(--ink);
}

.hero-terminal,
.performance-item,
.method-item,
.case-panel,
.listen-card {
    background: rgba(255, 253, 247, 0.88);
    border-color: var(--line);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-terminal {
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(247, 239, 226, 0.92));
}

.hero-terminal::before {
    background:
        linear-gradient(90deg, transparent, rgba(255, 95, 126, 0.16), transparent);
}

.hero-metrics span,
.axis-tab,
.stereo-control {
    background: rgba(255, 253, 247, 0.78);
    border-color: var(--line);
    color: var(--ink-soft);
}

.hero-metrics strong,
.eyebrow,
.category-eyebrow,
.performance-kicker,
.terminal-label,
.listen-card span {
    color: var(--accent);
}

.performance-item::after,
.case-panel::before {
    background: linear-gradient(180deg, var(--accent), var(--agent), var(--amber));
}

.performance-item::after {
    background: linear-gradient(90deg, var(--accent), var(--agent), var(--amber));
}

.word-ladder span {
    background: rgba(255, 253, 247, 0.74);
    border-color: var(--line);
    color: var(--ink-soft);
}

.word-ladder span:nth-child(2) {
    color: var(--agent);
}

.word-ladder span:nth-child(3) {
    color: #b77a00;
}

.listen-card:hover,
.method-item:hover {
    background: #ffffff;
    border-color: var(--line-strong);
}

.axis-tab:hover {
    border-color: rgba(47, 136, 255, 0.42);
    color: var(--agent);
}

.axis-tab.is-active {
    border-color: rgba(255, 95, 126, 0.5);
    background: linear-gradient(135deg, rgba(255, 95, 126, 0.16), rgba(47, 136, 255, 0.1));
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(92, 68, 29, 0.1);
}

.axis-count {
    background: rgba(23, 20, 15, 0.08);
}

.axis-chip {
    border-color: rgba(255, 95, 126, 0.26);
    background: rgba(255, 95, 126, 0.1);
    color: #c62856;
}

.source-chip {
    border-color: rgba(242, 183, 5, 0.34);
    background: rgba(242, 183, 5, 0.13);
    color: #8a6200;
}

.signal-chip,
.inspect-button {
    border-color: rgba(47, 136, 255, 0.28);
    background: rgba(47, 136, 255, 0.1);
    color: #155fc5;
}

.inspect-button:hover,
.case-panel.is-inspecting .inspect-button {
    border-color: rgba(255, 95, 126, 0.46);
    background: rgba(255, 95, 126, 0.13);
    color: var(--ink);
}

.case-panel:hover,
.case-panel.is-inspecting {
    border-color: var(--line-strong);
    box-shadow: 0 24px 64px rgba(92, 68, 29, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wave-track {
    border-color: rgba(23, 20, 15, 0.07);
    background:
        linear-gradient(90deg, rgba(23, 20, 15, 0.045) 1px, transparent 1px),
        rgba(255, 255, 255, 0.58);
    background-size: 28px 100%, 100% 100%;
}

.seg-pill {
    border-color: rgba(23, 20, 15, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink-soft);
}

.seg-pill.user {
    border-color: rgba(242, 140, 56, 0.32);
    background: rgba(242, 140, 56, 0.14);
    color: #8c4b12;
}

.seg-pill.agent {
    border-color: rgba(47, 136, 255, 0.28);
    background: rgba(47, 136, 255, 0.12);
    color: #155fc5;
}

.seg-pill:hover {
    border-color: var(--accent);
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(92, 68, 29, 0.16);
}

audio {
    filter: none;
}

.footer a {
    color: #c62856;
}

/* Dark retro-mechanical HUD palette */
:root {
    --bg: #000011;
    --panel: #050a16;
    --panel-soft: #0a1322;
    --ink: #edf8ff;
    --ink-soft: #a8bfcc;
    --muted: #6f8a99;
    --line: rgba(0, 229, 255, 0.17);
    --line-strong: rgba(0, 229, 255, 0.4);
    --user: #c99655;
    --agent: #00e5ff;
    --accent: #00e5ff;
    --accent-soft: rgba(0, 229, 255, 0.12);
    --amber: #c99655;
    --rose: #ff2d8d;
    --violet-free-blue: #8a5cff;
    --playhead: #ff2d8d;
    --shadow-sm: 0 24px 70px rgba(0, 0, 17, 0.55);
}

html {
    color-scheme: dark;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 18% 0%, rgba(0, 229, 255, 0.18), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(138, 92, 255, 0.16), transparent 28%),
        radial-gradient(circle at 72% 80%, rgba(255, 45, 141, 0.08), transparent 34%),
        linear-gradient(180deg, #000011 0%, #020817 46%, #000011 100%);
    background-size: 100% 100%;
    background-attachment: fixed;
}

.site-nav,
.samples-intro {
    background: rgba(3, 8, 20, 0.82);
    border-color: var(--line);
    box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.14);
}

.site-nav {
    justify-content: flex-start;
}

.brand-mark,
.nav-links a,
h1,
.category-title,
.case-header h2,
.performance-item h2,
.listen-card h2,
.method-item h3,
.terminal-row strong {
    color: var(--ink);
}

.hero {
    display: block;
    min-height: 300px;
    padding-top: 58px;
}

.hero-main {
    max-width: 920px;
}

.hero-terminal,
.hero-metrics {
    display: none;
}

.eyebrow {
    display: none;
}

.hero-copy {
    color: var(--ink-soft);
}

.section-block {
    border-color: var(--line);
}

.abstract-content,
.method-item p,
.samples-copy,
.case-takeaway,
.case-description {
    color: var(--ink-soft);
}

.hero-terminal,
.performance-item,
.method-item,
.case-panel,
.listen-card,
.stereo-control {
    background:
        linear-gradient(180deg, rgba(10, 19, 34, 0.88), rgba(3, 8, 20, 0.9)),
        rgba(5, 10, 22, 0.92);
    border-color: var(--line);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(0, 229, 255, 0.12);
}

.performance-kicker,
.terminal-label,
.category-eyebrow,
.listen-card span,
.hero-metrics strong {
    color: var(--accent);
}

.performance-item::after {
    background: linear-gradient(90deg, var(--accent), var(--violet-free-blue), transparent);
}

.case-panel::before {
    background: linear-gradient(180deg, var(--accent), var(--rose), transparent);
}

.word-ladder span {
    background: rgba(4, 14, 28, 0.78);
    border-color: var(--line);
    color: var(--ink-soft);
}

.word-ladder span:nth-child(2) {
    color: var(--accent);
}

.word-ladder span:nth-child(3) {
    color: var(--amber);
}

.axis-tab {
    background: rgba(5, 13, 28, 0.74);
    border-color: var(--line);
    color: var(--ink-soft);
}

.axis-tab:hover {
    border-color: rgba(0, 229, 255, 0.5);
    color: var(--accent);
}

.axis-tab.is-active {
    border-color: rgba(0, 229, 255, 0.58);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(138, 92, 255, 0.12));
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12), 0 16px 34px rgba(0, 0, 17, 0.35);
}

.axis-chip {
    border-color: rgba(0, 229, 255, 0.32);
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
}

.source-chip {
    border-color: rgba(201, 150, 85, 0.34);
    background: rgba(201, 150, 85, 0.12);
    color: var(--amber);
}

.signal-chip,
.inspect-button {
    border-color: rgba(0, 229, 255, 0.28);
    background: rgba(0, 229, 255, 0.08);
    color: var(--accent);
}

.inspect-button:hover,
.case-panel.is-inspecting .inspect-button {
    border-color: rgba(255, 45, 141, 0.48);
    background: rgba(255, 45, 141, 0.12);
    color: var(--ink);
}

.wave-track {
    border-color: rgba(0, 229, 255, 0.14);
    background:
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        rgba(0, 8, 20, 0.7);
    background-size: 28px 100%, 100% 100%;
}

.sample-chip,
.axis-count {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.18);
    color: var(--muted);
}

.seg-pill.user {
    border-color: rgba(201, 150, 85, 0.34);
    background: rgba(201, 150, 85, 0.14);
    color: #e1b879;
}

.seg-pill.agent {
    border-color: rgba(0, 229, 255, 0.34);
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent);
}

.seg-pill:hover {
    border-color: var(--accent);
    background: #07182b;
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(0, 229, 255, 0.16);
}

.timeline-panel {
    background: transparent;
    border-color: var(--line);
}

.tick {
    border-color: rgba(0, 229, 255, 0.13);
}

audio {
    filter: saturate(0.9) contrast(1.04);
}

.footer a {
    color: var(--accent);
}

/* One-piece starfield background, without a rectangular page cover */
body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 52%, transparent 0%, transparent 58%, rgba(0, 0, 8, 0.62) 100%),
        radial-gradient(circle at 20% 12%, rgba(0, 229, 255, 0.14), transparent 27%),
        radial-gradient(circle at 84% 4%, rgba(138, 92, 255, 0.14), transparent 26%),
        radial-gradient(circle at 70% 78%, rgba(255, 45, 141, 0.07), transparent 34%),
        linear-gradient(180deg, #02000d 0%, #060313 46%, #01000a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: 0;
    opacity: 0.76;
    background-image:
        radial-gradient(circle at 11px 29px, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.6px),
        radial-gradient(circle at 73px 84px, rgba(0, 229, 255, 0.62) 0 1px, transparent 1.7px),
        radial-gradient(circle at 153px 42px, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
        radial-gradient(circle at 201px 133px, rgba(201, 150, 85, 0.38) 0 1px, transparent 1.7px),
        radial-gradient(circle at 44px 151px, rgba(138, 92, 255, 0.46) 0 1px, transparent 1.6px);
    background-size: 240px 180px, 310px 230px, 280px 210px, 360px 270px, 420px 300px;
    animation: star-twinkle 3.4s ease-in-out infinite, star-drift 38s linear infinite;
    will-change: opacity, filter, background-position;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.38;
        filter: drop-shadow(0 0 1px rgba(0, 229, 255, 0.18));
    }

    28% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.55));
    }

    57% {
        opacity: 0.46;
        filter: drop-shadow(0 0 1px rgba(201, 150, 85, 0.18));
    }

    78% {
        opacity: 0.94;
        filter: drop-shadow(0 0 5px rgba(138, 92, 255, 0.42));
    }
}

@keyframes star-drift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 36px -28px, -42px 24px, 28px 38px, -34px -22px, 52px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

.app {
    position: relative;
    z-index: 1;
    background: transparent;
}

.site-nav,
.samples-intro {
    background: transparent;
    box-shadow: none;
}

.samples-intro {
    border-color: rgba(0, 229, 255, 0.12);
}

.performance-item,
.method-item,
.case-panel,
.listen-card,
.stereo-control {
    background:
        linear-gradient(180deg, rgba(5, 12, 26, 0.5), rgba(3, 7, 18, 0.26)),
        rgba(2, 5, 14, 0.26);
    backdrop-filter: blur(7px);
}

.case-stack {
    transform: translateX(0);
    opacity: 1;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    will-change: transform, opacity;
}

.case-stack.is-transition-setup {
    transition: none;
}

.case-stack.is-exiting-left {
    transform: translateX(-34px);
    opacity: 0;
}

.case-stack.is-exiting-right {
    transform: translateX(34px);
    opacity: 0;
}

.case-stack.is-entering-left {
    transform: translateX(-34px);
    opacity: 0;
}

.case-stack.is-entering-right {
    transform: translateX(34px);
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .case-stack {
        transition: none;
    }
}

.case-panel,
.case-panel.case-panel-solid {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: none;
    background:
        linear-gradient(180deg, rgba(12, 12, 18, 0.98), rgba(4, 6, 12, 0.98)),
        #05070d;
    border-color: rgba(201, 150, 85, 0.42);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(201, 150, 85, 0.16),
        inset 0 -1px 0 rgba(0, 229, 255, 0.08);
    backdrop-filter: none;
}

.case-panel::before,
.case-panel.case-panel-solid::before {
    background: linear-gradient(180deg, var(--amber), rgba(201, 150, 85, 0.1));
}

.case-panel::after,
.case-panel.case-panel-solid::after {
    display: none;
}

.case-panel:hover,
.case-panel.is-inspecting,
.case-panel.case-panel-solid:hover,
.case-panel.case-panel-solid.is-inspecting {
    transform: none;
    border-color: rgba(201, 150, 85, 0.58);
    box-shadow:
        0 20px 54px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(201, 150, 85, 0.22),
        inset 0 -1px 0 rgba(0, 229, 255, 0.1);
}

.case-panel .timeline-panel,
.case-panel.case-panel-solid .timeline-panel {
    background:
        linear-gradient(180deg, rgba(5, 9, 15, 0.98), rgba(2, 4, 9, 0.98)),
        #03060b;
    border: 1px solid rgba(201, 150, 85, 0.22);
    border-radius: 6px;
    padding: 14px 12px 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.case-panel .timeline-panel::before,
.case-panel.case-panel-solid .timeline-panel::before {
    content: "";
    display: block;
    height: 2px;
    margin: -3px 0 12px;
    background: linear-gradient(90deg, rgba(201, 150, 85, 0.7), rgba(0, 229, 255, 0.22), transparent);
}

.case-panel .wave-track,
.case-panel.case-panel-solid .wave-track {
    background:
        linear-gradient(90deg, rgba(201, 150, 85, 0.055) 1px, transparent 1px),
        #050a12;
    border-color: rgba(201, 150, 85, 0.16);
}

.case-panel .inspect-button:hover,
.case-panel.is-inspecting .inspect-button,
.case-panel.case-panel-solid .inspect-button:hover,
.case-panel.case-panel-solid.is-inspecting .inspect-button {
    transform: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero-main {
    max-width: 900px;
}

.model-avatar {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 1;
    justify-self: end;
    margin: 0;
    border-radius: 50%;
    isolation: isolate;
}

.model-avatar::before,
.model-avatar::after {
    content: "";
    position: absolute;
    inset: -9%;
    border-radius: 50%;
    pointer-events: none;
}

.model-avatar::before {
    z-index: -1;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background:
        radial-gradient(circle, rgba(0, 229, 255, 0.13), transparent 56%),
        conic-gradient(from 16deg, transparent 0 13%, rgba(201, 150, 85, 0.58) 14% 16%, transparent 17% 49%, rgba(0, 229, 255, 0.46) 50% 52%, transparent 53% 100%);
    filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.18));
    animation: avatar-orbit 16s linear infinite;
}

.model-avatar::after {
    z-index: 1;
    inset: 6%;
    border: 1px solid rgba(201, 150, 85, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(0, 229, 255, 0.12),
        inset 0 0 36px rgba(0, 0, 0, 0.62),
        0 0 38px rgba(0, 229, 255, 0.16);
}

.model-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 39%;
    border-radius: 50%;
    border: 1px solid rgba(201, 150, 85, 0.36);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.42),
        0 0 44px rgba(0, 229, 255, 0.14);
}

@keyframes avatar-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .model-avatar {
        width: min(280px, 74vw);
        justify-self: center;
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .model-avatar::before {
        animation: none;
    }
}

/* Model comparison cards */
:root {
    --moshi: #b7f36b;
    --personaplex: #f2a65a;
}

.model-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.model-compare-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(201, 150, 85, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(9, 14, 23, 0.96), rgba(3, 6, 12, 0.96)),
        #05070d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.model-compare-card.moshi {
    border-color: rgba(183, 243, 107, 0.26);
}

.model-compare-card.personaplex {
    border-color: rgba(242, 166, 90, 0.28);
}

.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.model-card-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
}

.model-badge {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(55, 200, 245, 0.24);
    border-radius: 999px;
    background: rgba(55, 200, 245, 0.08);
    color: var(--agent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.model-badge.moshi {
    border-color: rgba(183, 243, 107, 0.25);
    background: rgba(183, 243, 107, 0.08);
    color: var(--moshi);
}

.model-badge.personaplex {
    border-color: rgba(242, 166, 90, 0.28);
    background: rgba(242, 166, 90, 0.09);
    color: var(--personaplex);
}

.model-audio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.audio-control {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 16, 15, 0.78);
}

.audio-control-label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.response-control {
    border-color: rgba(255, 255, 255, 0.08);
}

.missing-audio {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
}

.model-compare-card .audio-legend {
    margin-left: 0;
}

.model-compare-card .timeline-panel {
    margin-top: 12px;
}

.model-compare-card .timeline-canvas {
    min-width: 520px;
}

.model-compare-card .timeline-row {
    grid-template-columns: 62px minmax(0, 1fr);
}

.legend-swatch.moshi {
    background: var(--moshi);
}

.legend-swatch.personaplex {
    background: var(--personaplex);
}

.seg-pill.moshi {
    border-color: rgba(183, 243, 107, 0.24);
    background: rgba(183, 243, 107, 0.12);
    color: #dcffab;
}

.seg-pill.personaplex {
    border-color: rgba(242, 166, 90, 0.26);
    background: rgba(242, 166, 90, 0.12);
    color: #ffd6a6;
}

.model-transcript-summary {
    max-height: 5.2em;
    margin: 12px 0 0;
    padding: 10px 12px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .model-compare-grid,
    .model-audio-grid {
        grid-template-columns: 1fr;
    }

    .model-compare-card .timeline-canvas {
        min-width: 500px;
    }
}

.model-avatar {
    animation: avatar-float 5.4s ease-in-out infinite;
}

.model-avatar::before {
    animation: avatar-orbit 16s linear infinite, avatar-halo-pulse 3.6s ease-in-out infinite;
}

.model-avatar::after {
    animation: avatar-ring-pulse 3.1s ease-in-out infinite;
}

.model-avatar img {
    animation: avatar-presence 4.4s ease-in-out infinite;
}

.avatar-wave {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.model-avatar.is-speaking .avatar-wave {
    animation-duration: 1.45s;
    border-color: rgba(0, 229, 255, 0.55);
}

.avatar-wave {
    top: 36.5%;
    width: 23%;
    height: 18%;
    border: 1px solid rgba(0, 229, 255, 0.36);
    border-radius: 50%;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2));
    animation: avatar-wave-pulse 2.4s ease-out infinite;
}

.avatar-wave-left {
    left: -8%;
}

.avatar-wave-right {
    right: -8%;
    animation-delay: 1.2s;
}

@keyframes avatar-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

@keyframes avatar-presence {
    0%, 100% {
        filter: saturate(1) brightness(1);
    }

    48% {
        filter: saturate(1.08) brightness(1.05);
    }
}

@keyframes avatar-halo-pulse {
    0%, 100% {
        opacity: 0.72;
        filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.14));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 34px rgba(0, 229, 255, 0.28));
    }
}

@keyframes avatar-ring-pulse {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(0, 229, 255, 0.1),
            inset 0 0 34px rgba(0, 0, 0, 0.62),
            0 0 28px rgba(0, 229, 255, 0.1);
    }

    50% {
        box-shadow:
            inset 0 0 0 1px rgba(0, 229, 255, 0.2),
            inset 0 0 30px rgba(0, 0, 0, 0.58),
            0 0 48px rgba(0, 229, 255, 0.2);
    }
}

@keyframes avatar-wave-pulse {
    0% {
        opacity: 0;
        transform: scale(0.58);
    }

    18% {
        opacity: 0.52;
    }

    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .model-avatar,
    .model-avatar::before,
    .model-avatar::after,
    .model-avatar img,
    .avatar-wave {
        animation: none;
    }
}

.abstract-content,
.abstract-content p,
.abstract-content strong {
    color: #ffffff;
}

.method-blog {
    display: grid;
    gap: 24px;
}

.method-copy {
    max-width: 860px;
    padding-left: 18px;
    border-left: 2px solid rgba(201, 150, 85, 0.7);
}

.method-kicker {
    margin: 0 0 8px;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.method-copy h3 {
    max-width: 760px;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.08;
}

.method-copy p {
    max-width: 820px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15.5px;
    line-height: 1.72;
}

.method-figure {
    margin: 4px 0 2px;
    padding: clamp(12px, 2vw, 18px);
    border: 1px solid rgba(201, 150, 85, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(240, 236, 226, 0.98)),
        #f7f4ea;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.method-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #ffffff;
}

.method-figure figcaption {
    margin-top: 12px;
    color: #2c2a25;
    font-size: 13px;
    line-height: 1.5;
}

.method-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.method-flow .method-item {
    min-height: 100%;
    padding: 16px;
    border-color: rgba(201, 150, 85, 0.26);
    background:
        linear-gradient(180deg, rgba(12, 12, 18, 0.96), rgba(4, 6, 12, 0.96)),
        #05070d;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(201, 150, 85, 0.12);
    backdrop-filter: none;
}

.method-flow .method-index {
    background: rgba(201, 150, 85, 0.14);
    color: var(--amber);
}

.method-flow .method-item h3 {
    color: #ffffff;
}

.method-flow .method-item p {
    color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 980px) {
    .method-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .method-copy {
        padding-left: 14px;
    }

    .method-flow {
        grid-template-columns: 1fr;
    }
}

.listen-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0 46px;
}

.listen-card,
.listen-card:nth-child(2n) {
    min-height: 100%;
    padding: 16px;
    transform: none;
    border: 1px solid rgba(201, 150, 85, 0.26);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(12, 12, 18, 0.96), rgba(4, 6, 12, 0.96)),
        #05070d;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(201, 150, 85, 0.12);
    backdrop-filter: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.listen-card:hover,
.listen-card:nth-child(2n):hover,
.method-flow .method-item:hover {
    transform: none;
    border-color: rgba(201, 150, 85, 0.48);
    background:
        linear-gradient(180deg, rgba(15, 14, 19, 0.98), rgba(5, 7, 13, 0.98)),
        #05070d;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(201, 150, 85, 0.18);
}

.listen-card:active,
.method-flow .method-item:active {
    transform: translateY(1px);
    border-color: rgba(201, 150, 85, 0.58);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(201, 150, 85, 0.18);
}

.listen-card span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(201, 150, 85, 0.14);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.listen-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
}

.listen-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .listen-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .listen-strip {
        grid-template-columns: 1fr;
    }
}

:root {
    --user: #cfd4da;
}

.legend-swatch.user {
    background: var(--user);
}

.seg-pill.user {
    border-color: rgba(207, 212, 218, 0.36);
    background: rgba(207, 212, 218, 0.14);
    color: #eef2f5;
}

.wave-track.user {
    border-color: rgba(207, 212, 218, 0.18);
}

.model-audio-grid {
    grid-template-columns: 1fr;
}

.model-audio-grid .stereo-control {
    width: 100%;
}

.model-compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.model-compare-card {
    width: 100%;
}

.model-compare-card {
    padding: 10px 12px;
}

.model-card-header {
    margin-bottom: 8px;
}

.model-card-header h3 {
    font-size: 15px;
}

.model-badge {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 10px;
}

.model-audio-grid {
    gap: 8px;
    margin-bottom: 8px;
}

.audio-control {
    padding: 6px;
}

.audio-control-label {
    margin-bottom: 4px;
    font-size: 10px;
}

.case-panel .timeline-panel,
.case-panel.case-panel-solid .timeline-panel,
.model-compare-card .timeline-panel {
    padding: 8px 9px 9px;
}

.model-compare-card .timeline-panel {
    margin-top: 8px;
}

.case-panel .timeline-panel::before,
.case-panel.case-panel-solid .timeline-panel::before {
    height: 1px;
    margin: -1px 0 8px;
}

.timeline-scroll {
    padding: 4px 2px 6px;
}

.ruler-track {
    height: 12px;
}

.tick {
    padding-left: 4px;
    font-size: 9px;
}

.timeline-row,
.model-compare-card .timeline-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    margin: 2px 0;
}

.row-label {
    font-size: 9.5px;
}

.wave-track {
    height: 32px;
}

.wave-playhead {
    top: 3px;
    bottom: 3px;
}

.transcript-row {
    margin: 1px 0 4px;
}

.transcript-track {
    height: 18px;
}

.seg-pill {
    height: 16px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 14px;
}

.model-compare-card .timeline-canvas {
    min-width: 460px;
}

@media (max-width: 620px) {
    .model-compare-card .timeline-canvas {
        min-width: 420px;
    }
}

.hero {
    display: block;
    min-height: auto;
    padding: 54px 0 38px;
}

.hero-main {
    max-width: 900px;
}

.experiments-section {
    margin-top: 54px;
}

.experiment-blog {
    display: grid;
    gap: 18px;
}

.experiment-copy {
    max-width: 860px;
    padding-left: 18px;
    border-left: 2px solid rgba(201, 150, 85, 0.7);
}

.experiment-copy h3 {
    max-width: 780px;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 35px);
    line-height: 1.08;
}

.experiment-copy p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
}

.experiment-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.experiment-stat-strip article,
.experiment-card {
    border: 1px solid rgba(201, 150, 85, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(12, 12, 18, 0.96), rgba(4, 6, 12, 0.96)),
        #05070d;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(201, 150, 85, 0.12);
}

.experiment-stat-strip article {
    padding: 13px 14px;
}

.experiment-stat-strip span {
    display: block;
    margin-bottom: 4px;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.experiment-stat-strip strong {
    display: block;
    color: #ffffff;
    font-family: var(--mono);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1;
}

.experiment-stat-strip p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.4;
}

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.experiment-card {
    padding: 16px;
}

.experiment-card-wide {
    grid-column: 1 / -1;
}

.experiment-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
}

.experiment-card p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13.5px;
    line-height: 1.62;
}

.experiment-card table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.experiment-card th,
.experiment-card td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(201, 150, 85, 0.15);
    text-align: left;
}

.experiment-card th {
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.experiment-card tr:last-child td {
    border-bottom: 0;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.capability-grid span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(201, 150, 85, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.capability-grid strong {
    color: #ffffff;
    font-family: var(--mono);
    font-size: 18px;
    line-height: 1;
}

.case-stack {
    gap: 22px;
}

.case-panel {
    padding: 16px;
}

.case-header {
    margin-bottom: 8px;
}

.case-takeaway {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.model-compare-grid {
    gap: 10px;
    margin-top: 10px;
}

.model-compare-card {
    padding: 8px 10px;
}

.audio-control audio {
    width: 100%;
    height: 26px;
}

.case-panel .timeline-panel,
.case-panel.case-panel-solid .timeline-panel,
.model-compare-card .timeline-panel {
    padding: 5px 7px 6px;
}

.model-compare-card .timeline-panel {
    margin-top: 6px;
}

.case-panel .timeline-panel::before,
.case-panel.case-panel-solid .timeline-panel::before {
    margin: 0 0 5px;
}

.timeline-scroll {
    padding: 2px 1px 4px;
}

.ruler-track {
    height: 9px;
}

.tick {
    font-size: 8px;
}

.timeline-row,
.model-compare-card .timeline-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px;
    margin: 1px 0;
}

.row-label {
    font-size: 8.5px;
}

.wave-track {
    height: 24px;
}

.transcript-track {
    height: 14px;
}

.seg-pill {
    height: 12px;
    padding: 0 4px;
    font-size: 8.5px;
    line-height: 10px;
}

.model-compare-card .timeline-canvas {
    min-width: 380px;
}

@media (max-width: 820px) {
    .experiment-stat-strip,
    .experiment-grid,
    .capability-grid {
        grid-template-columns: 1fr;
    }

    .experiment-copy {
        padding-left: 14px;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-top: 34px;
    }

    .model-compare-card .timeline-canvas {
        min-width: 340px;
    }
}

.hero {
    padding-top: 42px;
    padding-bottom: 30px;
}

.abstract-section {
    margin-top: 18px;
}

.abstract-content {
    margin-top: 0;
}

.listen-strip {
    margin: 20px 0 42px;
}

.listen-card,
.listen-card:nth-child(2n) {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(5, 8, 15, 0.48);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.listen-card:hover,
.listen-card:nth-child(2n):hover {
    border-color: rgba(201, 150, 85, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024)),
        rgba(6, 10, 18, 0.58);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.listen-card span {
    background: rgba(201, 150, 85, 0.1);
    color: rgba(238, 202, 144, 0.9);
}

.listen-card h2 {
    color: rgba(255, 255, 255, 0.9);
}

.listen-card p {
    color: rgba(255, 255, 255, 0.62);
}

h1 {
    max-width: 860px;
    font-size: clamp(28px, 3.4vw, 36px);
    line-height: 1.08;
}

@media (max-width: 620px) {
    h1 {
        font-size: 24px;
        line-height: 1.12;
    }
}

.method-figure {
    width: min(860px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.experiment-figure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.paper-figure {
    margin: 0;
    padding: clamp(10px, 1.8vw, 16px);
    border: 1px solid rgba(201, 150, 85, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(241, 238, 229, 0.98)),
        #f7f4ea;
    box-shadow:
        0 16px 46px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.paper-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #ffffff;
}

.paper-figure figcaption {
    margin-top: 9px;
    color: #302d27;
    font-size: 12.5px;
    line-height: 1.45;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll table {
    min-width: 620px;
}

.experiment-card .best-row td {
    background: rgba(201, 150, 85, 0.08);
    color: #ffffff;
    font-weight: 700;
}

.experiment-card .best-row td:first-child {
    border-left: 2px solid rgba(201, 150, 85, 0.72);
}

@media (min-width: 980px) {
    .experiment-figure-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .paper-figure {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Reference theme from src: compact dark research demo */
:root {
    --bg: #05070f;
    --panel: #0c1018;
    --panel-soft: #111825;
    --ink: #e4f0f6;
    --ink-soft: #9eb8c8;
    --muted: #6b8898;
    --line: rgba(0, 212, 200, 0.12);
    --line-strong: rgba(0, 212, 200, 0.24);
    --user: #9ca3af;
    --agent: #00d4c8;
    --moshi: #8a7aff;
    --personaplex: #e8a547;
    --accent: #00d4c8;
    --accent-soft: rgba(0, 212, 200, 0.12);
    --amber: #e8a547;
    --playhead: #e84258;
    --shadow-sm: none;
    --radius: 8px;
    --radius-sm: 6px;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Instrument Serif", "Source Serif Pro", Georgia, serif;
    --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

body {
    min-height: 100vh;
    background-color: #05070f;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 212, 200, 0.1), transparent 36%),
        radial-gradient(ellipse at 82% 6%, rgba(116, 96, 246, 0.1), transparent 32%),
        radial-gradient(ellipse at 50% 90%, rgba(0, 50, 80, 0.15), transparent 40%);
    color: var(--ink);
    font-family: var(--sans);
}

body::before,
body::after {
    display: none !important;
    content: none !important;
}

::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(0, 212, 200, 0.18);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 200, 0.34);
}

.app {
    width: min(1060px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 0 0 40px;
    background: transparent;
}

.hero {
    display: grid;
    align-items: center;
    min-height: auto;
    margin: 0;
    padding: 56px 0 44px;
    border-bottom: 1px solid var(--line);
}

.hero-main {
    max-width: 860px;
}

h1 {
    max-width: 850px;
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
}

.section-block {
    margin: 0;
    padding: 8px 0 48px;
}

.category-heading {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.category-eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.listen-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 32px 0 40px;
}

.listen-card,
.listen-card:nth-child(2n) {
    position: relative;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 16, 24, 0.7);
    box-shadow: none;
    transform: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.listen-card:nth-child(2n) {
    transform: translateY(10px);
}

.listen-card:hover {
    border-color: rgba(0, 212, 200, 0.32);
    background: rgba(12, 16, 24, 0.86);
    box-shadow: none;
    transform: translateY(-3px);
}

.listen-card:nth-child(2n):hover {
    transform: translateY(6px);
}

.listen-card span {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.listen-card h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
}

.listen-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.abstract-section {
    padding-top: 0;
}

.abstract-content {
    max-width: 860px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 14.5px;
    line-height: 1.72;
    text-align: left;
}

.method-blog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.method-copy {
    display: block;
    max-width: none;
    padding: 0;
    border: 0;
}

.method-copy h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.method-copy p {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.72;
}

.method-copy p:last-child {
    margin-bottom: 0;
}

.method-figure {
    width: min(760px, 100%);
    margin: 0 auto;
}

.method-figure img,
.paper-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 212, 200, 0.14);
    border-radius: 8px;
    background: #ffffff;
}

.method-figure figcaption,
.paper-figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.method-flow {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.method-flow .method-item {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 16, 24, 0.7);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.method-flow .method-item:hover {
    border-color: rgba(0, 212, 200, 0.3);
    background: rgba(12, 16, 24, 0.86);
    transform: translateY(-2px);
}

.method-flow .method-index {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.method-flow .method-item h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.method-flow .method-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.experiments-section {
    margin-top: 0;
}

.experiment-blog {
    display: grid;
    gap: 28px;
}

.experiment-copy {
    max-width: 860px;
    padding: 0;
    border: 0;
}

.experiment-copy h3 {
    max-width: 720px;
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.35;
}

.experiment-copy p {
    max-width: 820px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.72;
}

.experiment-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.experiment-stat-strip article,
.experiment-card,
.paper-figure {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 16, 24, 0.74);
    box-shadow: none;
}

.experiment-stat-strip article {
    padding: 18px;
}

.experiment-stat-strip span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.experiment-stat-strip strong {
    display: block;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.experiment-stat-strip p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.experiment-figure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.paper-figure {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.experiment-card {
    padding: 20px;
}

.experiment-card-wide {
    grid-column: 1 / -1;
}

.experiment-card h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.experiment-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.experiment-card table {
    width: 100%;
    border-collapse: collapse;
    color: var(--ink);
    font-size: 13px;
}

.experiment-card th,
.experiment-card td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(0, 212, 200, 0.07);
    text-align: left;
}

.experiment-card th {
    background: rgba(0, 212, 200, 0.07);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.experiment-card td:first-child {
    color: var(--ink-soft);
    font-family: var(--sans);
}

.experiment-card td:not(:first-child) {
    font-family: var(--mono);
}

.experiment-card .best-row td {
    background: rgba(0, 212, 200, 0.07);
    color: var(--amber);
    font-weight: 700;
}

.experiment-card .best-row td:first-child {
    border-left: 2px solid rgba(0, 212, 200, 0.6);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll table {
    min-width: 620px;
}

.samples-intro {
    padding-bottom: 24px;
}

.axis-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.axis-tab {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 212, 200, 0.18);
    border-radius: 999px;
    background: rgba(12, 16, 24, 0.7);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.axis-tab:hover {
    border-color: rgba(0, 212, 200, 0.34);
    color: var(--ink);
    transform: translateY(-1px);
}

.axis-tab.is-active {
    border-color: rgba(0, 212, 200, 0.56);
    background: linear-gradient(135deg, rgba(0, 212, 200, 0.18), rgba(0, 212, 200, 0.08));
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(0, 212, 200, 0.12);
}

.axis-count {
    display: inline-flex;
    min-width: 20px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
}

.axis-tab.is-active .axis-count {
    background: rgba(0, 212, 200, 0.2);
    color: var(--accent);
}

.case-stack {
    display: grid;
    gap: 16px;
    margin-top: 0;
}

.case-panel,
.case-panel.case-panel-solid {
    position: relative;
    min-width: 0;
    padding: 22px 22px 22px 28px;
    border: 1px solid rgba(0, 212, 200, 0.14);
    border-radius: 8px;
    background: rgba(12, 16, 24, 0.8);
    box-shadow: none;
    overflow: hidden;
    transform: none;
}

.case-panel::before,
.case-panel.case-panel-solid::before {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 4px;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: var(--accent);
    content: "";
    opacity: 0.7;
}

.case-panel::after,
.case-panel.case-panel-solid::after {
    display: none;
}

.case-panel:hover,
.case-panel.is-inspecting,
.case-panel.case-panel-solid:hover,
.case-panel.case-panel-solid.is-inspecting {
    border-color: rgba(0, 212, 200, 0.28);
    box-shadow: none;
    transform: none;
}

.case-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    text-align: left;
}

.case-title {
    display: block;
}

.case-header h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: left;
}

.case-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sample-chip,
.inspect-button {
    display: inline-flex;
    height: 24px;
    align-items: center;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.sample-chip {
    padding: 0 8px;
    border: 1px solid rgba(232, 165, 71, 0.24);
    background: rgba(232, 165, 71, 0.08);
    color: #c4873a;
}

.inspect-button {
    padding: 0 9px;
    border: 1px solid rgba(0, 212, 200, 0.2);
    background: rgba(0, 212, 200, 0.07);
    color: var(--accent);
    cursor: pointer;
}

.inspect-button:hover,
.case-panel.is-inspecting .inspect-button {
    border-color: rgba(0, 212, 200, 0.38);
    color: var(--ink);
}

.case-takeaway {
    max-width: 760px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.model-compare-grid {
    display: grid;
    gap: 12px;
    margin-top: 0;
}

.model-compare-card {
    padding: 14px;
    border: 1px solid rgba(0, 212, 200, 0.1);
    border-radius: 6px;
    background: rgba(5, 7, 15, 0.6);
}

.model-compare-card.moshi {
    border-color: rgba(138, 122, 255, 0.18);
}

.model-compare-card.personaplex {
    border-color: rgba(232, 165, 71, 0.18);
}

.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.model-card-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
}

.model-badge {
    display: inline-flex;
    height: 20px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(0, 212, 200, 0.22);
    border-radius: 999px;
    background: rgba(0, 212, 200, 0.08);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.model-badge.moshi {
    border-color: rgba(138, 122, 255, 0.22);
    background: rgba(138, 122, 255, 0.08);
    color: #8a7aff;
}

.model-badge.personaplex {
    border-color: rgba(232, 165, 71, 0.22);
    background: rgba(232, 165, 71, 0.08);
    color: var(--amber);
}

.model-audio-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.audio-control,
.stereo-control {
    width: min(440px, 100%);
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.audio-control-label {
    display: none;
}

.audio-control audio,
audio {
    width: 100%;
    height: 32px;
    display: block;
    border: 0;
    outline: 0;
    background: transparent;
}

.case-panel .timeline-panel,
.case-panel.case-panel-solid .timeline-panel,
.model-compare-card .timeline-panel {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(0, 212, 200, 0.1);
    border-radius: 6px;
    background: rgba(5, 7, 15, 0.6);
    box-shadow: none;
}

.case-panel .timeline-panel::before,
.case-panel.case-panel-solid .timeline-panel::before {
    display: none;
}

.timeline-scroll {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-canvas {
    min-width: 0;
}

.model-compare-card .timeline-canvas {
    min-width: 420px;
}

.timeline-row,
.model-compare-card .timeline-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 2px 0;
}

.row-label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.ruler-track {
    height: 12px;
}

.tick {
    border-left: 1px solid rgba(0, 212, 200, 0.1);
    color: rgba(107, 136, 152, 0.72);
    font-family: var(--mono);
    font-size: 8px;
}

.wave-track {
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.wave-track.user {
    opacity: 0.85;
}

.wave-playhead {
    top: 2px;
    bottom: 2px;
    width: 1.5px;
    background: var(--playhead);
}

.transcript-row {
    margin: 1px 0 5px;
}

.transcript-track {
    height: 16px;
}

.seg-pill {
    height: 14px;
    padding: 0 5px;
    border: 1px solid rgba(0, 212, 200, 0.12);
    border-radius: 4px;
    background: rgba(17, 24, 37, 0.9);
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0;
}

.seg-pill.user {
    border-color: rgba(156, 163, 175, 0.18);
    background: rgba(156, 163, 175, 0.1);
    color: #d4d8dd;
}

.seg-pill.agent {
    border-color: rgba(0, 212, 200, 0.22);
    background: rgba(0, 212, 200, 0.1);
    color: #bffcf8;
}

.seg-pill.moshi {
    border-color: rgba(138, 122, 255, 0.22);
    background: rgba(138, 122, 255, 0.1);
    color: #d8d2ff;
}

.seg-pill.personaplex {
    border-color: rgba(232, 165, 71, 0.22);
    background: rgba(232, 165, 71, 0.1);
    color: #f3d7a9;
}

.seg-pill:hover {
    z-index: 2;
    width: auto !important;
    min-width: 100%;
    max-width: 480px;
    border-color: rgba(0, 212, 200, 0.34);
    background: #0c1018;
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.case-description {
    max-width: 820px;
    margin-top: 14px;
    padding: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.case-description p {
    margin: 0 0 0.6em;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 64px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.footer a {
    color: var(--muted);
    text-decoration-color: rgba(0, 212, 200, 0.2);
}

.footer a:hover {
    color: var(--ink);
    text-decoration-color: var(--accent);
}

@media (max-width: 900px) {
    .listen-strip,
    .method-flow,
    .experiment-stat-strip,
    .experiment-figure-grid,
    .experiment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-copy {
        max-width: none;
    }

    .method-blog {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .app {
        width: min(100vw - 24px, 760px);
    }

    .hero {
        padding: 34px 0 32px;
    }

    h1 {
        font-size: 25px;
        line-height: 1.12;
    }

    .listen-strip,
    .method-flow,
    .experiment-stat-strip,
    .experiment-figure-grid,
    .experiment-grid {
        grid-template-columns: 1fr;
    }

    .listen-card:nth-child(2n),
    .listen-card:nth-child(2n):hover {
        transform: none;
    }

    .case-header {
        display: grid;
    }

    .case-tools {
        justify-content: flex-start;
    }

    .timeline-row,
    .model-compare-card .timeline-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 8px;
    }

    .model-compare-card .timeline-canvas {
        min-width: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Audio track presentation aligned with the src reference cards */
.case-panel .timeline-panel,
.case-panel.case-panel-solid .timeline-panel,
.model-compare-card .timeline-panel {
    padding: 9px 12px 10px;
    border-color: rgba(0, 212, 200, 0.1);
    border-radius: 6px;
    background: rgba(5, 7, 15, 0.62);
}

.timeline-scroll {
    overflow: hidden;
}

.timeline-canvas {
    display: grid;
    gap: 2px;
}

.ruler-row {
    display: none !important;
}

.timeline-row.wave-row,
.model-compare-card .timeline-row.wave-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.timeline-row.wave-row + .transcript-row {
    margin-top: -5px;
}

.wave-row .row-label {
    color: rgba(107, 136, 152, 0.92);
    font-size: 9px;
}

.wave-track {
    height: 42px;
    padding: 4px 0;
    background: transparent;
}

.wave-track:hover {
    background: transparent;
}

.wave-track:focus-visible {
    outline: 1px solid rgba(0, 212, 200, 0.55);
    outline-offset: 2px;
}

.wave-canvas {
    opacity: 0.96;
}

.wave-track.user .wave-canvas {
    opacity: 0.68;
}

.wave-playhead {
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: rgba(232, 66, 88, 0.94);
    box-shadow: 0 0 8px rgba(232, 66, 88, 0.35);
}

.transcript-row {
    margin: 0 0 5px;
}

.transcript-row .row-label {
    visibility: hidden;
}

.transcript-track {
    height: 17px;
}

.seg-pill {
    top: 1px;
    height: 14px;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 8.5px;
    line-height: 12px;
}

.seg-pill:hover {
    min-width: min(100%, 360px);
}

@media (max-width: 620px) {
    .timeline-scroll {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .wave-track {
        height: 36px;
    }
}

/* Restore the one-piece starfield background while preserving the current typography. */
body {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 52%, transparent 0%, transparent 58%, rgba(0, 0, 8, 0.62) 100%),
        radial-gradient(circle at 20% 12%, rgba(0, 229, 255, 0.14), transparent 27%),
        radial-gradient(circle at 84% 4%, rgba(138, 92, 255, 0.14), transparent 26%),
        radial-gradient(circle at 70% 78%, rgba(255, 45, 141, 0.07), transparent 34%),
        linear-gradient(180deg, #050711 0%, #02040b 56%, #05070f 100%);
}

body::before {
    display: block !important;
    content: "" !important;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 11px 29px, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
        radial-gradient(circle at 73px 84px, rgba(0, 229, 255, 0.56) 0 1px, transparent 1.7px),
        radial-gradient(circle at 153px 42px, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.5px),
        radial-gradient(circle at 201px 133px, rgba(201, 150, 85, 0.34) 0 1px, transparent 1.7px),
        radial-gradient(circle at 44px 151px, rgba(138, 92, 255, 0.42) 0 1px, transparent 1.6px);
    background-size: 242px 172px;
    opacity: 0.92;
    animation: star-twinkle 3.4s ease-in-out infinite, star-drift 38s linear infinite;
}

body::after {
    display: none !important;
    content: none !important;
}

.app {
    background: transparent;
}

h1 {
    max-width: 1040px;
    font-size: clamp(27px, 2.8vw, 34px);
    line-height: 1.12;
}

.title-break {
    display: block;
}

@media (max-width: 720px) {
    .title-break {
        display: none;
    }

    h1 {
        max-width: 620px;
        font-size: 24px;
    }
}

/* Single-font pass requested after the starfield restore. */
:root {
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
p,
span,
strong,
table,
th,
td,
figcaption,
.category-eyebrow,
.category-title,
.listen-card span,
.listen-card h2,
.method-copy h3,
.experiment-copy h3,
.case-header h2,
.row-label,
.tick,
.seg-pill,
.sample-chip,
.inspect-button,
.axis-tab,
.axis-count,
.model-badge {
    font-family: var(--sans);
}

h1,
.category-title,
.listen-card h2,
.method-copy h3,
.experiment-copy h3,
.case-header h2 {
    font-weight: 500;
}

/* Header and centered two-line title pass. */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 212, 200, 0.12);
    background: rgba(5, 7, 15, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-mark,
.site-links a {
    color: var(--muted);
    font-family: var(--sans);
    text-decoration: none;
}

.site-mark {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.site-links a {
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.site-links a:hover {
    border-color: rgba(0, 212, 200, 0.28);
    background: rgba(0, 212, 200, 0.06);
    color: var(--ink);
}

.hero {
    justify-items: center;
    text-align: center;
}

.hero-main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    font-size: clamp(28px, 2.95vw, 36px);
    line-height: 1.13;
}

.abstract-content strong {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 720px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-links {
        justify-content: flex-start;
    }

    h1 {
        max-width: 620px;
        font-size: 24px;
    }
}

/* Make the hero title reliably centered and exactly two lines. */
.topbar.hero,
.hero {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-main {
    display: flex;
    width: 100%;
    max-width: 1120px;
    justify-content: center;
    text-align: center;
}

h1 {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(22px, 3.05vw, 34px);
    line-height: 1.13;
}

.title-line {
    display: block;
    white-space: nowrap;
}

@media (max-width: 720px) {
    h1 {
        font-size: clamp(15px, 4.1vw, 24px);
    }

    .title-line {
        white-space: nowrap;
    }
}

/* Transparent header without the left mark. */
.site-nav {
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-links {
    width: 100%;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .site-nav {
        align-items: flex-end;
    }

    .site-links {
        justify-content: flex-end;
    }
}
