:root {
  --ink: #101923;
  --ink-soft: #54616d;
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --panel: #fffdf8;
  --line: rgba(16, 25, 35, 0.14);
  --orange: #ff5c35;
  --orange-dark: #d83b18;
  --cyan: #2ec4b6;
  --cyan-dark: #137d76;
  --yellow: #ffd166;
  --blue: #3178c6;
  --navy: #142638;
  --shadow: 0 24px 80px rgba(30, 38, 46, 0.13);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 209, 102, 0.16), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hero-domain {
  margin: -10px 0 24px;
  color: var(--accent, #c9ff68);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button,
audio {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 38, 56, 0.82);
  backdrop-filter: blur(18px);
  color: #fff;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--yellow);
}

.brand b {
  color: var(--orange);
}

.brand-signal {
  width: 31px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.brand-signal i {
  width: 3px;
  border-radius: 10px;
  background: currentColor;
}

.brand-signal i:nth-child(1),
.brand-signal i:nth-child(5) { height: 9px; }
.brand-signal i:nth-child(2),
.brand-signal i:nth-child(4) { height: 18px; }
.brand-signal i:nth-child(3) { height: 26px; background: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 98px;
  color: #fff;
  background:
    radial-gradient(circle at 77% 28%, rgba(46, 196, 182, 0.2), transparent 23rem),
    linear-gradient(135deg, #102232 0%, #172c40 55%, #18394a 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.018);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 0.77fr);
  align-items: center;
  gap: 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #161d24;
  background: var(--yellow);
}

.button-primary:hover {
  background: #ffe08c;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(46, 196, 182, 0.12);
}

.hero-console {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(7, 15, 22, 0.52);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.console-head,
.console-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.console-state {
  color: var(--cyan);
}

.console-query {
  margin: 24px 0 20px;
  padding: 16px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.055);
}

.console-query small,
.console-output small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.console-query p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.console-wave {
  position: relative;
  height: 105px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-wave i {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.console-target {
  position: absolute;
  z-index: 0;
  inset: 0 63% 0 30%;
  border-left: 1px solid var(--yellow);
  border-right: 1px solid var(--yellow);
  background: rgba(255, 209, 102, 0.15);
}

.console-cursor {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 1px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 92, 53, 0.8);
}

.console-axis {
  margin-top: 6px;
  font-size: 8px;
}

.console-output {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(46, 196, 182, 0.25);
  background: rgba(46, 196, 182, 0.08);
}

.output-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071016;
  background: var(--cyan);
  font-weight: 900;
}

.console-output strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.output-duration {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.stat-band {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  border-left: 1px solid var(--line);
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
}

.stat span {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.section {
  padding: 112px 0;
  scroll-margin-top: 72px;
}

.overview-grid,
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 90px;
}

.section h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.overview-copy {
  padding-top: 34px;
  border-top: 1px solid var(--ink);
}

.overview-copy p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.protocol-section {
  color: #fff;
  background: var(--navy);
}

.section-heading,
.demo-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 46px;
}

.section-heading > p,
.demo-heading > p {
  max-width: 420px;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.86fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.protocol-card {
  position: relative;
  min-height: 350px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.protocol-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.card-index {
  position: absolute;
  top: 27px;
  right: 30px;
  color: rgba(255, 255, 255, 0.18);
  font-family: Georgia, serif;
  font-size: 40px;
}

.card-label {
  margin: 0 0 26px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.protocol-card h3 {
  max-width: 270px;
  margin: 0 0 30px;
  font-size: 24px;
  line-height: 1.3;
}

.input-stack {
  display: grid;
  gap: 12px;
}

.audio-pill,
.query-pill {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.audio-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.audio-pill small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.45);
}

.tiny-wave {
  grid-row: 1 / 3;
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tiny-wave i {
  width: 3px;
  border-radius: 4px;
  background: var(--yellow);
}

.tiny-wave i:nth-child(1) { height: 10px; }
.tiny-wave i:nth-child(2) { height: 22px; }
.tiny-wave i:nth-child(3) { height: 29px; }
.tiny-wave i:nth-child(4) { height: 17px; }
.tiny-wave i:nth-child(5) { height: 8px; }

.query-pill {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.protocol-card pre {
  margin: 0;
  padding: 22px;
  color: var(--yellow);
  background: #0b1925;
  overflow: auto;
}

.protocol-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.protocol-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.metric-row {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.metric-row span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.pipeline-section {
  border-bottom: 1px solid var(--line);
  background: #e9eeeb;
}

.pipeline-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 42px;
}

.pipeline-heading > p {
  margin: 0 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.pilot-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.pilot-ledger > div {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.pilot-ledger > div:last-child {
  border-right: 0;
}

.pilot-ledger span,
.flow-step small,
.branch-route span,
.decision-copy > span,
.method-example-head span,
.query-transform span,
.acoustic-policy > span,
.excluded-acoustic-detail > span {
  display: block;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}

.pilot-ledger strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 34px;
  line-height: 1;
}

.pilot-ledger small {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}

.manufacture-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-step {
  position: relative;
  min-width: 0;
  padding: 26px 10px 28px 0;
}

.flow-index {
  display: block;
  margin-bottom: 16px;
  color: rgba(16, 25, 35, 0.22);
  font-family: Georgia, serif;
  font-size: 30px;
}

.flow-step > strong {
  display: block;
  margin-top: 9px;
  font-size: 16px;
}

.flow-step p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.flow-connector {
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 20px;
}

.evidence-branch {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
  gap: 46px;
  padding: 42px 0;
  border-bottom: 1px solid var(--ink);
}

.branch-origin {
  padding-right: 34px;
  border-right: 1px solid var(--line);
}

.branch-origin > span {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 800;
}

.branch-origin strong {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.3;
}

.branch-origin p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.branch-routes {
  display: grid;
  gap: 24px;
}

.branch-route {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) minmax(120px, 0.7fr);
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.branch-route:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.branch-route strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.branch-route p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.branch-route b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
}

.route-signal {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.route-signal i {
  flex: 1;
  min-width: 3px;
  background: var(--cyan-dark);
}

.clap-signal i:nth-child(1) { height: 12px; }
.clap-signal i:nth-child(2) { height: 22px; }
.clap-signal i:nth-child(3) { height: 32px; }
.clap-signal i:nth-child(4) { height: 27px; }
.clap-signal i:nth-child(5) { height: 34px; }
.clap-signal i:nth-child(6) { height: 24px; }
.clap-signal i:nth-child(7) { height: 18px; }
.clap-signal i:nth-child(8) { height: 9px; }

.onset-signal {
  align-items: end;
}

.onset-signal i {
  height: 5px;
  background: rgba(16, 25, 35, 0.2);
}

.onset-signal i:nth-child(5) {
  height: 38px;
  background: var(--orange);
}

.decision-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 60px;
  padding: 40px 0;
}

.decision-copy strong {
  display: block;
  margin-top: 9px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
}

.decision-copy p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.outcome-bars {
  display: grid;
  gap: 9px;
}

.outcome-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 1.5fr) 24px;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.outcome-row > span {
  color: var(--ink-soft);
}

.outcome-row > i {
  height: 7px;
  overflow: hidden;
  background: rgba(16, 25, 35, 0.09);
}

.outcome-row > i b {
  height: 100%;
  display: block;
  background: var(--cyan-dark);
}

.outcome-row.status-needs_human_review > i b {
  background: #9b6519;
}

.outcome-row.status-boundary_shift_candidate > i b {
  background: #a92929;
}

.outcome-row.status-new_acoustic_candidate > i b {
  background: var(--blue);
}

.outcome-row.status-excluded_non_acoustic > i b {
  background: #707983;
}

.method-example {
  color: #fff;
  background: var(--navy);
}

.method-example-loading {
  padding: 30px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.method-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.method-example-head strong {
  display: block;
  margin-top: 5px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
}

.method-example-head button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.method-example-head button:hover {
  color: var(--ink);
  background: var(--yellow);
}

.query-transform {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.query-transform > div {
  padding: 22px 28px;
}

.query-transform > i {
  display: grid;
  place-items: center;
  color: var(--orange);
  font-style: normal;
}

.query-transform p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.7;
}

.method-timeline {
  padding: 26px 28px 24px;
}

.method-track {
  position: relative;
  height: 76px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(16.666% - 1px),
    rgba(255, 255, 255, 0.06) calc(16.666% - 1px),
    rgba(255, 255, 255, 0.06) 16.666%
  );
}

.method-interval {
  position: absolute;
  pointer-events: none;
}

.method-current {
  inset-block: 7px;
  border-left: 2px solid #80d8a7;
  border-right: 2px solid #80d8a7;
  background: rgba(128, 216, 167, 0.13);
}

.method-proposed {
  top: 13px;
  bottom: 13px;
  border: 2px solid #54a8ff;
  background: rgba(84, 168, 255, 0.16);
}

.method-window {
  top: 22px;
  bottom: 22px;
  border: 1px dashed var(--yellow);
  background: rgba(255, 209, 102, 0.08);
}

.method-clap {
  top: 29px;
  bottom: 29px;
  border: 1px solid var(--cyan);
}

.method-onset {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 92, 53, 0.75);
}

.method-track-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.method-track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

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

.method-track-legend i {
  width: 19px;
  height: 7px;
  display: inline-block;
}

.method-track-legend .method-window {
  position: static;
  border: 1px dashed var(--yellow);
}

.method-track-legend .method-clap {
  position: static;
  border: 1px solid var(--cyan);
}

.method-track-legend .method-proposed {
  position: static;
  border: 1px solid #54a8ff;
  background: rgba(84, 168, 255, 0.16);
}

.method-onset-key {
  width: 2px !important;
  background: var(--orange);
}

.demo-section {
  background: var(--panel);
}

.demo-heading > p {
  color: var(--ink-soft);
}

.demo-heading-actions {
  max-width: 560px;
  display: grid;
  justify-items: end;
  gap: 14px;
}

.demo-heading-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.review-mode-toggle {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.review-mode-toggle:hover,
.review-mode-toggle[aria-pressed="true"] {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.review-only {
  display: none !important;
}

body.review-mode .review-toolbar {
  display: grid !important;
}

body.review-mode .legend .review-only {
  display: inline-flex !important;
}

.demo-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8f5ef;
}

.review-toolbar {
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(216, 59, 24, 0.24);
  background: rgba(255, 92, 53, 0.05);
}

.review-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  justify-items: end;
}

.review-actions p {
  grid-column: 1 / -1;
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.review-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.review-actions button.secondary {
  color: var(--ink-soft);
  background: transparent;
}

.filter-block > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.filter-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
}

.demo-meta p {
  margin: 0;
}

.demo-meta strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 20px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 24px;
  height: 9px;
  display: inline-block;
}

.legend-current {
  border: 1px solid #80d8a7;
  background: rgba(128, 216, 167, 0.22);
}

.legend-lat {
  border: 1px solid var(--orange);
  background: rgba(255, 92, 53, 0.18);
}

.legend-model {
  border: 1px solid #54a8ff;
  background: rgba(84, 168, 255, 0.2);
}

.legend-alternative {
  border: 1px dashed #c798ff;
  background: rgba(199, 152, 255, 0.12);
}

.legend-window {
  border: 1px dashed var(--yellow);
  background: rgba(255, 209, 102, 0.14);
}

.legend-clap {
  border: 1px solid var(--cyan-dark);
  background: rgba(46, 196, 182, 0.14);
}

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

body.review-mode .demo-grid {
  grid-template-columns: 1fr;
}

.loading-card,
.empty-state,
.error-card {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #f8f5ef;
}

.loading-card span {
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper-deep);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 50px rgba(26, 36, 45, 0.06);
}

.demo-card.featured::before {
  content: "FEATURED";
  position: absolute;
  z-index: 3;
  top: 14px;
  right: -31px;
  width: 120px;
  padding: 4px 0;
  color: #fff;
  background: var(--orange);
  transform: rotate(42deg);
  text-align: center;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.demo-card-head {
  min-height: 184px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(46, 196, 182, 0.07), transparent 48%),
    #faf8f3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-event {
  border-color: transparent;
  color: #fff;
  background: var(--cyan-dark);
}

.tag-acoustic {
  border-color: rgba(49, 120, 198, 0.22);
  color: #245f9f;
  background: rgba(49, 120, 198, 0.08);
}

.tag-hard {
  border-color: rgba(216, 59, 24, 0.25);
  color: var(--orange-dark);
  background: rgba(255, 92, 53, 0.08);
}

.review-status {
  border-color: transparent;
  color: #fff;
}

.status-boundary_shift_candidate {
  background: #a92929;
}

.status-needs_human_review {
  background: #9b6519;
}

.status-acoustically_consistent {
  background: #23755d;
}

.status-new_acoustic_candidate {
  background: #2f69a5;
}

.status-excluded_non_acoustic,
.status-target_not_verified {
  background: #626d77;
}

.demo-card h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  line-height: 1.28;
}

.demo-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.query-box {
  min-height: 126px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.micro-label {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.query-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.acoustic-query {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--blue);
  background: rgba(49, 120, 198, 0.06);
}

.acoustic-query > span {
  display: block;
  margin-bottom: 5px;
  color: #245f9f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}

.acoustic-query p {
  font-size: 12px;
}

.excluded-query {
  border-left-color: #7a858f;
  background: rgba(84, 97, 109, 0.07);
}

.excluded-query > span {
  color: #59636d;
}

.audio-workbench {
  padding: 24px 28px 25px;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
}

.audio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.audio-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.audio-toolbar strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.audio-toolbar small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

.interval-play {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: color 0.16s ease, background 0.16s ease;
}

.interval-play:hover,
.interval-play.is-playing,
.interval-play.primary {
  color: var(--ink);
  background: var(--yellow);
}

.waveform {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  cursor: crosshair;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waveform-bar {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 1px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  transition: background 0.12s ease;
}

.waveform-bar.in-target {
  background: rgba(255, 209, 102, 0.78);
}

.waveform-bar.played {
  background: var(--cyan);
}

.interval-window {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.current-window {
  border-left: 2px solid #80d8a7;
  border-right: 2px solid #80d8a7;
  background: rgba(128, 216, 167, 0.13);
}

.lat-window {
  border-left: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  background: rgba(255, 92, 53, 0.13);
}

.model-window {
  border-top: 2px solid #54a8ff;
  border-bottom: 2px solid #54a8ff;
  background: rgba(84, 168, 255, 0.14);
}

.fixed-window {
  top: 7px;
  bottom: 7px;
  border: 1px dashed var(--yellow);
  background: rgba(255, 209, 102, 0.06);
}

.clap-window {
  top: 15px;
  bottom: 15px;
  border: 1px solid var(--cyan);
  background: rgba(46, 196, 182, 0.06);
}

.alternative-window {
  top: 6px;
  bottom: 6px;
  border: 1px dashed #c798ff;
  background: rgba(199, 152, 255, 0.08);
}

.playhead {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.timeline-axis {
  position: relative;
  height: 30px;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.timeline-axis span {
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
}

.timeline-axis span:first-child {
  transform: none;
}

.timeline-axis span:last-child {
  transform: translateX(-100%);
}

.native-audio {
  width: 100%;
  height: 34px;
  opacity: 0.88;
}

.review-panel {
  border-bottom: 1px solid var(--line);
  background: #f6f1e8;
}

.review-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.review-panel-head h4 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
}

.review-panel-head > span {
  max-width: 260px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.sample-manufacture-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.sample-flow-step {
  min-width: 0;
  min-height: 92px;
  padding: 17px 18px;
  background: #fff;
}

.sample-flow-step > span {
  display: block;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 800;
}

.sample-flow-step > strong {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.sample-flow-step.flow-pass {
  box-shadow: inset 0 3px var(--cyan-dark);
}

.sample-flow-step.flow-decision {
  box-shadow: inset 0 3px var(--blue);
}

.sample-flow-step.flow-stop {
  box-shadow: inset 0 3px #777f87;
}

.sample-flow-step.flow-muted {
  color: #7a858f;
  background: #f4f1eb;
}

.acoustic-policy {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(49, 120, 198, 0.05);
}

.acoustic-policy strong {
  font-size: 11px;
}

.acoustic-policy small {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.interval-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.interval-row {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
}

.interval-row > div:first-child {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: start;
  margin-bottom: 12px;
}

.interval-row span,
.candidate-rank {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interval-row strong,
.candidate-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.interval-row small,
.candidate-row small {
  color: var(--ink-soft);
  font-size: 9px;
}

.interval-lat {
  box-shadow: inset 0 3px var(--orange);
}

.interval-current {
  box-shadow: inset 0 3px #4ea77a;
}

.interval-model {
  box-shadow: inset 0 3px #348bdd;
}

.interval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-panel .interval-play {
  min-height: 30px;
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 9px;
}

.review-panel .interval-play:hover,
.review-panel .interval-play.is-playing {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.boundary-listen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(84, 168, 255, 0.05);
}

.boundary-listen > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.review-details {
  border-bottom: 1px solid var(--line);
}

.review-details summary {
  padding: 16px 28px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.candidate-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.candidate-row {
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.candidate-row > div:first-child {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.candidate-row > p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.evidence-candidate-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.evidence-candidate-row {
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.evidence-candidate-row > div:first-child {
  min-height: 48px;
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.evidence-candidate-row span {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 800;
}

.evidence-candidate-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.support-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.support-metric {
  min-width: 0;
  padding: 14px 16px;
  background: #f9f7f2;
}

.support-metric > span {
  display: block;
  min-height: 28px;
  color: var(--ink-soft);
  font-size: 8px;
}

.support-metric > i {
  height: 5px;
  display: block;
  margin: 7px 0;
  overflow: hidden;
  background: rgba(16, 25, 35, 0.09);
}

.support-metric > i b {
  height: 100%;
  display: block;
  background: var(--cyan-dark);
}

.support-metric > strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.excluded-acoustic-detail {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: #f4f1eb;
}

.excluded-acoustic-detail p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.model-notes {
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.model-notes p {
  margin: 0 0 10px;
}

.model-notes ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.model-notes small {
  color: var(--orange-dark);
}

.human-review {
  padding: 22px 28px 26px;
  background: #fff;
}

.human-review-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.human-review-head strong {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
}

.human-review-head small {
  color: var(--ink-soft);
  font-size: 9px;
}

.review-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-choice {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.review-choice:hover,
.review-choice.selected {
  border-color: var(--cyan-dark);
  color: #fff;
  background: var(--cyan-dark);
}

.review-note {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #faf8f3;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
}

.answer-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 28px;
}

.answer-panel pre {
  margin: 0;
  padding: 14px;
  color: #dbe9f5;
  background: var(--ink);
  overflow: auto;
}

.answer-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.time-summary {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px;
}

.time-summary div {
  min-width: 54px;
}

.time-summary small,
.time-summary strong {
  display: block;
}

.time-summary small {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.time-summary strong {
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 28px;
  border-top: 1px solid var(--line);
  color: #7a858f;
  background: #faf8f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange-dark);
}

.flag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.notes-section {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.note-list {
  border-top: 1px solid var(--ink);
}

.note-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-list article > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 18px;
}

.note-list h3,
.note-list p {
  margin: 0;
}

.note-list h3 {
  font-size: 16px;
}

.note-list p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.62);
  background: #0e1b28;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
}

.footer-brand {
  color: #fff;
}

.noscript {
  padding: 18px;
  border: 1px solid var(--line);
}

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-console {
    max-width: 650px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat:nth-child(4) {
    border-left: 1px solid var(--line);
  }

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

  .metric-card {
    grid-column: 1 / -1;
    min-height: auto;
  }

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

  .flow-step {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .flow-connector {
    display: none;
  }

  .branch-route {
    grid-template-columns: minmax(150px, 0.6fr) minmax(220px, 1fr);
  }

  .route-signal {
    grid-column: 1 / -1;
    max-width: 280px;
  }

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

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .site-nav {
    background: rgba(20, 38, 56, 0.94);
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    background: #142638;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-console {
    padding: 14px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat,
  .stat:first-child,
  .stat:nth-child(4) {
    min-height: 100px;
    border-left: 0;
  }

  .stat:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .stat:last-child {
    grid-column: 1 / -1;
    border-left: 1px solid var(--line);
  }

  .section {
    padding: 78px 0;
  }

  .overview-grid,
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pipeline-heading,
  .evidence-branch,
  .decision-board {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pipeline-heading {
    align-items: start;
  }

  .pilot-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .pilot-ledger > div:nth-child(2) {
    border-right: 0;
  }

  .pilot-ledger > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .branch-origin {
    padding-right: 0;
    padding-bottom: 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .branch-route {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .route-signal {
    grid-column: auto;
  }

  .method-example-head,
  .query-transform {
    grid-template-columns: 1fr;
  }

  .method-example-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .query-transform > i {
    display: none;
  }

  .section-heading,
  .demo-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .metric-card {
    grid-column: auto;
  }

  .protocol-card {
    min-height: auto;
  }

  .demo-toolbar {
    grid-template-columns: 1fr;
  }

  .demo-heading-actions {
    justify-items: start;
  }

  .demo-heading-actions p {
    text-align: left;
  }

  body.review-mode .review-toolbar,
  .interval-comparison,
  .candidate-list,
  .evidence-candidate-list,
  .support-matrix {
    grid-template-columns: 1fr;
  }

  .sample-manufacture-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acoustic-policy {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .review-actions {
    justify-items: start;
  }

  .boundary-listen,
  .review-panel-head,
  .human-review-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-panel-head > span {
    text-align: left;
  }

  .demo-card-head,
  .query-box,
  .audio-workbench,
  .answer-panel,
  .review-panel-head,
  .boundary-listen,
  .model-notes,
  .acoustic-policy,
  .excluded-acoustic-detail,
  .human-review {
    padding-right: 20px;
    padding-left: 20px;
  }

  .answer-panel {
    grid-template-columns: 1fr;
  }

  .time-summary {
    justify-content: space-between;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .pilot-ledger,
  .sample-manufacture-flow,
  .method-track-legend {
    grid-template-columns: 1fr;
  }

  .pilot-ledger > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pilot-ledger > div:last-child {
    border-bottom: 0;
  }

  .outcome-row {
    grid-template-columns: minmax(100px, 1fr) minmax(80px, 1fr) 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
