:root {
  --ink: #18212b;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #d9dee5;
  --line-strong: #bcc5cf;
  --surface: #f5f7f9;
  --surface-2: #eef2f5;
  --white: #ffffff;
  --blue: #1559a5;
  --blue-soft: #eaf2fb;
  --green: #16835c;
  --green-soft: #e9f6f0;
  --orange: #bb6f00;
  --orange-soft: #fff3df;
  --red: #b54747;
  --red-soft: #fff0f0;
  --yellow: #8d6500;
  --yellow-soft: #fff8d8;
  --dark: #101820;
  --max-width: 1240px;
  --wide-width: 1420px;
  --radius: 6px;
  --shadow: 0 14px 36px rgba(16, 24, 32, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

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

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

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(21, 89, 165, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 66px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 14px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  min-height: 590px;
  overflow: hidden;
  color: var(--white);
  background-color: #172549;
  background-image: url("assets/casebook-hero.webp");
  background-position: center 58%;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 35, 0.68);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 64px));
  margin: auto;
  padding: 64px 0 54px;
}

.eyebrow,
.section-index,
.panel-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 750px;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.35;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
}

.primary-action {
  gap: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--white);
}

.secondary-action {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: 120px 260px 150px 180px;
  gap: 0;
  width: fit-content;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stats div {
  min-height: 90px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats div:first-child {
  padding-left: 0;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.4;
}

.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.section-band {
  width: 100%;
  padding: 92px 0;
}

.section-muted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  color: var(--white);
  background: var(--dark);
}

.section-inner {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
}

.section-inner-wide {
  width: min(var(--wide-width), calc(100% - 48px));
}

.section-heading {
  max-width: 830px;
  margin-bottom: 44px;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}

.section-index {
  color: var(--blue);
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.dark-heading .section-index,
.dark-heading p:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.text-link {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 750;
}

.text-link.light {
  color: var(--white);
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.75fr);
  gap: 72px;
  align-items: start;
}

.audit-stack {
  display: grid;
  gap: 16px;
}

.thesis-lead {
  max-width: 790px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.55;
}

.thesis-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.thesis-points article {
  padding: 24px 22px 8px 0;
  border-right: 1px solid var(--line);
}

.thesis-points article + article {
  padding-left: 22px;
}

.thesis-points article:last-child {
  border-right: 0;
}

.thesis-points span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.thesis-points h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.4;
}

.thesis-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.audit-panel,
.evidence-panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.panel-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.audit-panel h3,
.evidence-panel h3,
.method-copy h3,
.method-scale h3,
.sources-heading h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.35;
}

.evidence-total {
  color: var(--blue);
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 98px 1fr 32px;
  gap: 10px;
  align-items: center;
}

.evidence-item span,
.evidence-item strong {
  font-size: 12px;
}

.evidence-item strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.evidence-track {
  height: 7px;
  overflow: hidden;
  background: #dfe5ea;
  border-radius: 2px;
}

.evidence-fill {
  height: 100%;
  min-width: 2px;
  background: var(--blue);
}

.evidence-fill.medium { background: var(--green); }
.evidence-fill.weak { background: var(--yellow); }
.evidence-fill.caution { background: var(--orange); }
.evidence-fill.missing { background: var(--red); }

.panel-note {
  margin: 22px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.route-summary {
  display: grid;
  gap: 10px;
}

.route-summary-button {
  display: grid;
  grid-template-columns: 132px minmax(70px, 1fr) 26px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.route-summary-button:hover .route-summary-label,
.route-summary-button:focus-visible .route-summary-label {
  color: var(--blue);
}

.route-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 720;
}

.route-summary-button strong {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.route-swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 2px;
}

.route-swatch.rebuild { background: var(--blue); }
.route-swatch.commoditized { background: var(--orange); }
.route-swatch.outdated,
.route-swatch.missing { background: var(--red); }

.route-summary-track {
  height: 7px;
  overflow: hidden;
  background: #dfe5ea;
  border-radius: 2px;
}

.route-summary-track i {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--green);
}

.route-summary-track i.rebuild { background: var(--blue); }
.route-summary-track i.commoditized { background: var(--orange); }
.route-summary-track i.outdated,
.route-summary-track i.missing { background: var(--red); }

.executive-conclusion {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  margin-top: 42px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.conclusion-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.executive-conclusion p {
  max-width: 980px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.shift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.shift-card {
  position: relative;
  min-height: 330px;
  padding: 26px 24px 24px;
  background: var(--white);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.shift-card:nth-child(3n + 1) { --shift-color: var(--blue); }
.shift-card:nth-child(3n + 2) { --shift-color: var(--green); }
.shift-card:nth-child(3n) { --shift-color: var(--orange); }

.shift-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--shift-color);
  font-size: 12px;
  font-weight: 850;
}

.shift-number::after {
  width: 36px;
  height: 3px;
  background: var(--shift-color);
  content: "";
}

.shift-card h3 {
  min-height: 50px;
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.35;
}

.shift-before,
.shift-now {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shift-now {
  color: var(--ink-soft);
  font-weight: 650;
}

.shift-implication {
  margin: 18px 0 0;
  padding-top: 16px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.shift-sources {
  display: flex;
  gap: 5px;
  margin-top: 16px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.cases-heading {
  margin-bottom: 30px;
}

.result-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 5px;
}

.result-count strong {
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-count span {
  color: var(--muted);
  font-size: 13px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 22px;
}

.route-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -6px 0 22px;
}

.route-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 760;
}

.route-filter-button strong {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.route-filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.route-filter-button[aria-pressed="true"] strong {
  color: rgba(255, 255, 255, 0.72);
}

.search-field {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  height: 50px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 89, 165, 0.1);
}

.search-field span {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: #929ba6;
}

.reset-button {
  min-width: 108px;
  height: 50px;
  padding: 0 16px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 750;
}

.reset-button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.case-workbench {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.filter-tool {
  position: sticky;
  top: 88px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-tool-head div {
  display: flex;
  flex-direction: column;
}

.filter-tool-head strong {
  font-size: 16px;
}

.filter-tool-head > span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.filter-group select {
  width: 100%;
  height: 42px;
  padding: 0 32px 0 10px;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.filter-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.filter-note strong {
  font-size: 12px;
}

.filter-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

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

.legend-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.legend-dot.weak {
  background: var(--orange);
}

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

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--category-color, var(--blue));
  border-radius: var(--radius);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.case-card:hover {
  border-right-color: var(--line-strong);
  border-bottom-color: var(--line-strong);
  border-left-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(24, 33, 43, 0.08);
  transform: translateY(-2px);
}

.case-card.category-industry { --category-color: var(--blue); }
.case-card.category-application { --category-color: var(--green); }
.case-card.category-ecosystem { --category-color: var(--orange); }

.case-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.case-number {
  color: var(--category-color, var(--blue));
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.category-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-badge,
.priority-badge,
.route-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.evidence-badge.strong { color: #0c6947; background: var(--green-soft); }
.evidence-badge.medium { color: #155e75; background: #e5f6fb; }
.evidence-badge.weak { color: #735400; background: var(--yellow-soft); }
.evidence-badge.caution { color: #8c5000; background: var(--orange-soft); }
.evidence-badge.missing { color: #9c2d2d; background: var(--red-soft); }

.route-badge.stable { color: #0c6947; background: var(--green-soft); }
.route-badge.rebuild { color: #155e75; background: #e5f6fb; }
.route-badge.commoditized { color: #8c5000; background: var(--orange-soft); }
.route-badge.outdated { color: #9c2d2d; background: var(--red-soft); }
.route-badge.missing { color: var(--muted); background: var(--surface-2); }

.case-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.case-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  margin-bottom: 12px;
}

.case-industry {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.case-source-pages {
  color: var(--blue);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.case-source-pages:hover {
  text-decoration: underline;
}

.case-source-pages.missing {
  color: var(--red);
}

.case-source-pages span {
  color: var(--muted);
}

.case-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-evidence {
  margin-bottom: 12px;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
}

.case-evidence > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.case-evidence p,
.case-route-copy {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-route {
  margin-bottom: 14px;
  padding: 11px 12px;
  background: var(--surface);
  border-left: 3px solid var(--category-color, var(--blue));
}

.case-route .route-badge {
  margin-bottom: 7px;
}

.case-route-copy {
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid #e3e7eb;
  border-radius: 3px;
  font-size: 10px;
}

.case-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.maturity {
  display: flex;
  align-items: center;
  gap: 7px;
}

.maturity-dots {
  display: flex;
  gap: 3px;
}

.maturity-dots i {
  width: 7px;
  height: 7px;
  background: #d8dee4;
  border-radius: 50%;
}

.maturity-dots i.active {
  background: var(--category-color, var(--blue));
}

.maturity-label {
  color: var(--muted);
  font-size: 10px;
}

.case-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.case-open:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.empty-state {
  padding: 90px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 64px;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.method-copy h3,
.method-scale h3 {
  margin-bottom: 26px;
}

.dimension-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dimension-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-height: 96px;
  padding: 18px 18px 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.dimension-list li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.dimension-list li:nth-child(even) {
  padding-left: 18px;
}

.dimension-list li > span {
  color: #8dc3ff;
  font-size: 11px;
  font-weight: 800;
}

.dimension-list strong {
  font-size: 14px;
}

.dimension-list p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.method-scale {
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.scale-row {
  display: grid;
  grid-template-columns: 30px 130px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.scale-row > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--dark);
  background: var(--white);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 850;
}

.scale-row strong {
  font-size: 13px;
}

.scale-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.sources-block {
  padding-top: 58px;
}

.sources-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.sources-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.sources-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.source-item {
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  gap: 12px;
  min-height: 128px;
  padding: 20px 18px 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.source-item:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.source-item:nth-child(even) {
  padding-left: 28px;
}

.source-id {
  color: #8dc3ff;
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.source-meta {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.source-item h4 {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.45;
}

.source-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.55;
}

.source-arrow {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.source-item:hover .source-arrow,
.source-item:hover h4 {
  color: #9dcaff;
}

.source-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  margin-top: 42px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.source-note strong {
  color: var(--white);
}

.source-note p {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 32px;
  color: var(--muted);
  background: #0b1117;
  border-top: 1px solid #27313c;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.case-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(860px, 94vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  box-shadow: -18px 0 48px rgba(7, 15, 24, 0.22);
}

.case-dialog::backdrop {
  background: rgba(8, 14, 22, 0.6);
}

.dialog-shell {
  min-height: 100%;
}

.dialog-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.dialog-id {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--white);
  background: var(--ink);
}

.dialog-content {
  padding: 32px 34px 54px;
}

.dialog-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.dialog-content h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dialog-industry {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-decision-brief {
  margin-bottom: 8px;
}

.dialog-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.dialog-brief-grid article {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.dialog-brief-grid article > span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.dialog-brief-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.brief-route {
  margin-bottom: 8px;
}

.dialog-verdict {
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.dialog-verdict .verdict-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.dialog-verdict p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.dimension-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dimension-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dimension-block-head h4 {
  margin: 0;
  font-size: 13px;
}

.dimension-block-head span {
  color: var(--muted);
  font-size: 10px;
}

.dimension-score-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.dimension-score > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 11px;
}

.dimension-score strong {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.dimension-track {
  display: block;
  height: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 2px;
}

.dimension-track i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.dialog-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.dialog-section h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.dialog-section p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.dialog-section p:last-child {
  margin-bottom: 0;
}

.dialog-evidence {
  padding: 15px 16px;
  background: var(--surface);
  border-radius: var(--radius);
}

.dialog-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dialog-context-item {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-context-item span,
.source-facts > strong,
.target-architecture > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.dialog-context-item p {
  margin: 0;
}

.source-facts {
  padding: 16px 18px;
  background: var(--surface);
  border-left: 3px solid var(--line-strong);
}

.source-facts .dialog-list {
  gap: 7px;
}

.dialog-pdf-link {
  margin-top: 14px;
}

.evidence-level {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.evidence-level.source {
  color: var(--blue);
  background: var(--blue-soft);
}

.evidence-level.interpretation {
  color: var(--green);
  background: var(--green-soft);
}

.evidence-level.inference {
  color: var(--orange);
  background: var(--orange-soft);
}

.dialog-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  list-style: none;
}

.workflow-step {
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.workflow-number {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.workflow-heading,
.technology-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.workflow-heading {
  margin-bottom: 10px;
}

.workflow-heading strong {
  font-size: 13px;
  line-height: 1.4;
}

.workflow-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.technology-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.technology-item {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.technology-heading {
  margin-bottom: 15px;
}

.technology-heading h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.technology-item dl,
.technology-item dd {
  margin: 0;
}

.technology-item dl {
  display: grid;
  gap: 12px;
}

.technology-item dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.technology-item dd {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.dossier-columns {
  margin-top: 20px;
}

.dialog-subsection.limitation .dialog-list li::before {
  color: var(--red);
  content: "!";
}

.target-architecture {
  padding: 16px 18px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
}

.target-architecture > strong {
  color: var(--green);
}

.target-architecture p {
  margin: 0;
}

.action-list {
  margin-top: 20px;
}

.missing-notice {
  margin-bottom: 16px;
  padding: 18px;
  color: #7d3333;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
}

.missing-notice strong {
  display: block;
  margin-bottom: 6px;
}

.missing-notice p {
  margin: 0;
  color: inherit;
}

.dialog-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialog-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.dialog-list li::before {
  color: var(--blue);
  content: "→";
  font-weight: 800;
}

.dialog-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dialog-subsection h4 {
  margin: 0 0 12px;
  font-size: 13px;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dialog-source-list {
  display: grid;
  gap: 8px;
}

.dialog-source {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.dialog-source span:first-child {
  color: var(--blue);
  font-weight: 850;
}

.dialog-source small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

noscript {
  display: block;
  padding: 20px;
  color: #8c2e2e;
  background: var(--red-soft);
  text-align: center;
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 18px;
  }

  .hero-stats {
    grid-template-columns: 110px 220px 135px 165px;
  }

  .overview-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .evidence-panel {
    max-width: 720px;
  }

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

  .case-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

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

@media (min-width: 1280px) {
  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, 100%);
  }

  .hero-stats div:nth-child(2) {
    border-right: 0;
  }

  .hero-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .thesis-points {
    grid-template-columns: 1fr;
  }

  .thesis-points article,
  .thesis-points article + article {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .filter-tool {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .filter-tool-head,
  .filter-note {
    grid-column: 1 / -1;
  }

  .filter-group {
    margin: 0;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 58px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .header-action {
    min-width: auto;
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero {
    min-height: 660px;
    background-position: 62% center;
  }

  .hero-inner,
  .section-inner,
  .section-inner-wide {
    width: calc(100% - 32px);
  }

  .hero-inner {
    padding: 54px 0 44px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-bottom: 36px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats div {
    min-height: 82px;
    padding: 13px 12px;
  }

  .hero-stats div:first-child {
    padding-left: 12px;
  }

  .hero-stats dt {
    font-size: 19px;
  }

  .hero-caption {
    display: none;
  }

  .section-band {
    padding: 68px 0;
  }

  .section-heading,
  .heading-row {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading p:last-child {
    font-size: 15px;
  }

  .heading-row .text-link,
  .result-count {
    display: inline-flex;
    margin-top: 16px;
  }

  .thesis-lead {
    font-size: 18px;
  }

  .evidence-panel {
    padding: 20px;
  }

  .executive-conclusion {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .evidence-item {
    grid-template-columns: 86px 1fr 28px;
  }

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

  .shift-card {
    min-height: 0;
  }

  .shift-card h3 {
    min-height: 0;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-field {
    min-height: 58px;
    height: auto;
  }

  .search-field input {
    min-width: 0;
    height: 56px;
    font-size: 14px;
  }

  .reset-button {
    width: 100%;
    height: 42px;
  }

  .route-filter-button {
    min-height: 44px;
  }

  .filter-tool {
    grid-template-columns: 1fr;
  }

  .filter-tool-head,
  .filter-note {
    grid-column: auto;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .case-card {
    min-height: 0;
    padding: 18px;
  }

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

  .case-card-head {
    align-items: flex-start;
  }

  .case-card-foot {
    align-items: flex-start;
  }

  .dimension-list,
  .sources-list {
    grid-template-columns: 1fr;
  }

  .dimension-list li,
  .dimension-list li:nth-child(even) {
    padding: 16px 0;
    border-right: 0;
  }

  .method-scale {
    padding: 18px;
  }

  .scale-row {
    grid-template-columns: 30px 1fr;
  }

  .scale-row p {
    grid-column: 2;
  }

  .sources-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-item,
  .source-item:nth-child(odd),
  .source-item:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
  }

  .source-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 16px;
  }

  .case-dialog {
    width: 100vw;
  }

  .dialog-close {
    width: 44px;
    height: 44px;
  }

  .dialog-content {
    padding: 24px 18px 44px;
  }

  .dialog-content h2 {
    font-size: 25px;
  }

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

  .dialog-context-grid,
  .dialog-workflow,
  .technology-list,
  .dialog-brief-grid,
  .dimension-score-list {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: 0;
  }

  .workflow-number {
    margin-bottom: 10px;
  }

  .technology-heading {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
