:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f6670;
  --paper: #ffffff;
  --paper-cool: #f3f5f7;
  --line: #d8dce1;
  --line-strong: #aeb5bf;
  --signal: #f6d84a;
  --focus: #1d4ed8;
  --shadow-sheet: 14px 18px 38px rgba(17, 17, 17, 0.13);
  --radius-control: 8px;
  --radius-sheet: 2px;
  --page-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(100% - 1px), rgba(17, 17, 17, 0.025) 1px)
      0 0 / 120px 100%;
  opacity: 0.7;
}

a {
  color: inherit;
}

button,
input,
summary {
  font: inherit;
}

img,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transition: top 140ms ease-out;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: relative;
  z-index: 40;
  width: min(100% - 48px, var(--page-width));
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 28px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #343a43;
  font-size: 14px;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 4px;
  background: var(--signal);
  transition: right 160ms ease-out;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-current::after {
  right: 0;
}

.mobile-menu,
.mobile-chapters {
  display: none;
}

.report-kicker {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.editorial-home,
.analyzer-shell {
  width: min(100% - 48px, var(--page-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(34px, 4vw, 68px);
  align-items: start;
}

.chapter-rail {
  position: sticky;
  top: 28px;
  min-width: 0;
  padding: 56px 0 32px;
}

.chapter-rail > p:first-child {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chapter-rail ol {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.chapter-rail ol::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line-strong);
}

.chapter-rail li {
  position: relative;
}

.chapter-rail li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 25px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.chapter-rail li:first-child::before {
  background: var(--signal);
  box-shadow: 0 0 0 1px #bca300;
}

.chapter-rail a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 52px;
  padding: 13px 6px;
  color: #343a43;
  text-decoration: none;
}

.chapter-rail a:hover {
  color: var(--ink);
  background: var(--paper-cool);
}

.chapter-rail a span {
  min-width: 24px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.rail-note {
  margin: 30px 0 0;
  padding: 16px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.home-story,
.analyzer-workspace {
  min-width: 0;
}

.home-hero {
  min-height: min(860px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(34px, 4vw, 70px);
  align-items: center;
  padding: clamp(48px, 7vh, 84px) 0;
}

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

.hero-copy h1 {
  max-width: none;
  margin: 18px 0 24px;
  font-size: clamp(40px, 3vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
}

.hero-lead {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.primary-action,
.closing-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  color: white;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 140ms ease-out,
    background-color 140ms ease-out,
    color 140ms ease-out;
}

.primary-action:hover,
.closing-action:hover {
  color: var(--ink);
  background: var(--signal);
}

.primary-action:active,
.closing-action:active,
.feedback button:active,
.matches button:active,
.retry-button:active,
.focus-search-button:active {
  transform: translateY(1px);
}

.text-action {
  padding: 11px 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.text-action span,
.closing-action span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 140ms ease-out;
}

.text-action:hover span,
.closing-action:hover span {
  transform: translateX(4px);
}

.editorial-note {
  width: min(100%, 300px);
  padding: 16px 18px;
  color: var(--ink);
  background: #fff9d8;
  box-shadow: 6px 8px 20px rgba(17, 17, 17, 0.1);
  transform: rotate(-1.25deg);
}

.editorial-note strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.editorial-note p {
  margin: 6px 0 0;
  color: #4b4f55;
  font-size: 13px;
  line-height: 1.55;
}

.hero-note {
  margin: 42px 0 0 12px;
}

.home-sample {
  position: relative;
  z-index: 1;
  min-width: 0;
  animation: reveal-sheet 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sample-sheet {
  position: relative;
  z-index: 1;
  min-height: 500px;
  padding: clamp(24px, 3vw, 42px);
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
}

.sample-sheet::before,
.sample-sheet::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 12px -12px -12px 12px;
  background: #e9edf1;
  transform: rotate(1.6deg);
}

.sample-sheet::after {
  z-index: -1;
  inset: 6px -6px -6px 6px;
  background: #fafafa;
  transform: rotate(0.7deg);
}

.sample-sheet__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.sample-date {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sample-sheet header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 28px 0 22px;
}

.sample-sheet h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.sample-sheet header p:not(.sample-score) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sample-score {
  margin: 0;
  font-size: clamp(46px, 5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.sample-score span {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.grade-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  background: var(--signal);
}

.grade-strip > div > span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.research-grade {
  margin: 6px 0 0;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.grade-strip small {
  display: block;
  margin-top: 6px;
  color: #4b4215;
  font-size: 12px;
}

.sample-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 26px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.sample-metrics div {
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
}

.sample-metrics div:last-child {
  border-right: 0;
}

.sample-metrics dt {
  color: var(--muted);
  font-size: 11px;
}

.sample-metrics dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.sample-sheet footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.sample-sheet footer a,
.sample-sheet--unavailable > a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.sample-state,
.sample-sheet--unavailable > p:not(.report-kicker) {
  max-width: 46ch;
  margin: 26px 0;
  color: var(--muted);
}

.sample-sheet--unavailable {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sample-sheet--unavailable h2 {
  margin-top: 20px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e7eaee;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, white 45%, transparent 75%);
  transform: translateX(-100%);
  animation: skeleton-shine 1.4s ease-in-out infinite;
}

.skeleton-title {
  width: 68%;
  height: 48px;
  margin-top: 44px;
}

.skeleton-grade {
  height: 120px;
  margin-top: 28px;
}

.skeleton-row {
  height: 76px;
  margin-top: 28px;
}

.home-section {
  padding: clamp(72px, 9vw, 132px) 0;
  border-top: 1px solid var(--ink);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h2,
.home-section h2 {
  max-width: 14ch;
  margin: 14px 0 0;
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.score-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
  margin-top: 64px;
}

.score-story__lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.65;
}

.editorial-index,
.evidence-list,
.risk-list,
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-index li,
.evidence-list li,
.risk-list li,
.checklist li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.editorial-index li:last-child,
.evidence-list li:last-child,
.risk-list li:last-child,
.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.editorial-index li > span,
.evidence-list li > span,
.risk-list li > span,
.checklist li > span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.editorial-index strong {
  font-size: 17px;
}

.editorial-index p,
.evidence-list p,
.risk-list p,
.checklist p {
  margin: 4px 0 0;
  color: var(--muted);
}

.risk-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(50px, 8vw, 130px);
  color: white;
  background: var(--ink);
  box-shadow: 60px 0 0 var(--ink), -60px 0 0 var(--ink);
}

.risk-story .report-kicker,
.risk-story h2 {
  color: white;
}

.risk-statement > p {
  margin: 0 0 42px;
  color: #c8cdd4;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.7;
}

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

.source-ledger div {
  min-width: 0;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
}

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

.source-ledger span,
.source-ledger strong {
  display: block;
}

.source-ledger span {
  color: var(--muted);
  font-size: 12px;
}

.source-ledger strong {
  margin-top: 9px;
  line-height: 1.5;
}

.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
}

.report-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.closing-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px 80px;
  align-items: start;
}

.closing-story .closing-action {
  justify-self: end;
}

.site-footer {
  width: min(100% - 48px, var(--page-width));
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 48px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

/* Analyzer */

.analyzer-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  padding: 56px 0 50px;
}

.analyzer-intro h1 {
  max-width: 12ch;
  margin: 14px 0 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.analyzer-lead,
.search-field p,
.match-status {
  color: var(--muted);
  line-height: 1.65;
}

.search-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
}

.search-field input::placeholder {
  color: #68717d;
  opacity: 1;
}

.search-field input:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--paper-cool);
}

.search-field p {
  margin: 8px 0 0;
  font-size: 12px;
}

.matches {
  display: grid;
  gap: 0;
  margin-top: 8px;
  background: var(--paper);
}

.matches button {
  width: 100%;
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 13px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.matches button:last-child {
  border-bottom: 1px solid var(--line);
}

.matches button:hover {
  background: var(--paper-cool);
}

.matches button span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.share-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

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

.result-region {
  min-width: 0;
  padding-bottom: 96px;
}

.report-loading,
.service-state {
  min-height: 420px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--paper-cool);
}

.research-report {
  position: relative;
  min-width: 0;
}

.research-cover {
  position: relative;
  z-index: 1;
  min-height: 430px;
  padding: clamp(30px, 4.5vw, 62px);
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
}

.research-cover::before,
.research-cover::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 14px -14px -14px 14px;
  background: #e7ebef;
  transform: rotate(1deg);
}

.research-cover::after {
  z-index: -1;
  inset: 7px -7px -7px 7px;
  background: #fafafa;
  transform: rotate(0.35deg);
}

.research-cover__identity {
  padding-bottom: 30px;
}

.research-cover .report-kicker {
  margin-bottom: 10px;
}

.data-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.research-cover h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.research-cover h2 span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.fund-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.research-cover .grade-strip {
  align-items: center;
}

.research-cover .score {
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.research-cover .score > span:not(.score-missing) {
  margin-left: 6px;
  font-size: 14px;
  letter-spacing: 0;
}

.score-missing {
  display: block;
  max-width: 14ch;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: normal;
}

.neutral-summary {
  max-width: 68ch;
  margin: 44px 0 0;
  padding: 0 4px;
  color: #343a43;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.75;
}

.note-date {
  margin: -26px 30px 46px auto;
}

.note-drawdown {
  margin: -18px 36px 48px auto;
  transform: rotate(1.1deg);
}

.note-fee {
  margin: -26px 40px 48px auto;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 72px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.metric-strip div {
  min-width: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip dt,
.provenance dt {
  color: var(--muted);
  font-size: 11px;
}

.metric-strip dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.5vw, 22px);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1.35;
}

.report-section {
  padding: clamp(68px, 8vw, 112px) 0;
  border-top: 1px solid var(--ink);
}

.report-section .section-heading h3 {
  max-width: 15ch;
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.evidence-layout,
.risk-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 104px);
  margin-top: 54px;
}

.evidence-list strong {
  font-size: 17px;
}

.evidence-layout h4 {
  margin: 0 0 16px;
  font-size: 16px;
}

.components {
  margin: 0;
  padding: 0;
  list-style: none;
}

.components li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.components li:last-child {
  border-bottom: 1px solid var(--line);
}

.components li span {
  display: block;
  max-width: 52ch;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.components output {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.component-bar {
  display: block;
  height: 5px;
  margin-top: 10px;
  background: #e7eaee;
}

.component-bar b {
  display: block;
  height: 100%;
  background: var(--ink);
}

.risk-section {
  padding-inline: 36px;
  color: white;
  background: var(--ink);
}

.risk-section .section-heading > p,
.risk-section .risk-list p,
.risk-section .fee-note,
.risk-section .limitation {
  color: #c8cdd4;
}

.risk-section .section-heading h3,
.risk-section .risk-list span,
.risk-section strong {
  color: white;
}

.risk-list li {
  border-color: #3f444b;
}

.risk-list li:last-child {
  border-bottom-color: #3f444b;
}

.fee-note,
.limitation {
  margin: 0;
  line-height: 1.75;
}

.limitation {
  margin-top: 28px;
}

.missing-note,
.static-explainer,
.noscript-note {
  padding: 20px;
  color: var(--ink);
  background: #fff9d8;
}

.missing-note {
  margin: 34px 0;
}

.missing-note h3,
.static-explainer h3 {
  margin-top: 0;
}

.missing-note p,
.static-explainer p {
  margin-bottom: 0;
}

.provenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 52px 0 0;
  border-top: 1px solid var(--ink);
}

.provenance div {
  min-width: 0;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.provenance div:nth-child(2n) {
  border-right: 0;
}

.provenance dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.checklist-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px 70px;
}

.checklist-section .section-heading {
  grid-row: 1 / span 2;
}

.checklist-section .report-links {
  margin-top: 0;
}

.feedback {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.feedback > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback button,
.retry-button,
.focus-search-button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  padding: 10px 15px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 750;
  cursor: pointer;
}

.feedback button:hover,
.retry-button:hover,
.focus-search-button:hover {
  background: var(--signal);
}

.service-state h2 {
  max-width: 16ch;
  margin: 14px 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.service-state > p {
  max-width: 60ch;
  color: var(--muted);
}

.retry-button,
.focus-search-button {
  margin-top: 20px;
}

.noscript-note {
  width: min(100% - 48px, var(--page-width));
  margin: 0 auto 24px;
}

/* Reading and trust pages */

.reading {
  width: min(100% - 48px, 780px);
  margin-inline: auto;
  padding: 72px 0 110px;
}

.reading > h1 {
  margin: 16px 0 30px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.reading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.reading .reading-lead {
  color: var(--ink);
  font-size: 21px;
}

.reading h2 {
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.reading .primary-action {
  margin-top: 34px;
}

@keyframes reveal-sheet {
  from {
    clip-path: inset(0 0 100% 0);
    filter: blur(3px);
  }
  to {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes skeleton-shine {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1099px) {
  .editorial-home,
  .analyzer-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-rail {
    display: none;
  }

  .mobile-chapters {
    width: min(100% - 48px, var(--page-width));
    margin-inline: auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .mobile-chapters::-webkit-scrollbar {
    display: none;
  }

  .mobile-chapters a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-right: 1px solid var(--line);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
  }

  .home-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  }

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

  .metric-strip div:nth-child(3) {
    border-right: 0;
  }

  .metric-strip div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  body::before {
    display: none;
  }

  .site-header {
    width: min(100% - 24px, var(--page-width));
    height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    min-width: 58px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: var(--radius-control);
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 190px;
    display: grid;
    padding: 8px;
    background: var(--paper);
    box-shadow: var(--shadow-sheet);
  }

  .mobile-menu nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
  }

  .mobile-menu nav a:hover {
    background: var(--paper-cool);
  }

  .mobile-chapters,
  .editorial-home,
  .analyzer-shell,
  .site-footer {
    width: min(100% - 24px, var(--page-width));
  }

  .home-hero,
  .analyzer-intro {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    gap: 54px;
    padding: 48px 0 70px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-lead {
    max-width: 30ch;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .text-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-note {
    margin-left: 0;
  }

  .sample-sheet,
  .research-cover {
    min-height: 0;
    padding: 22px;
  }

  .sample-sheet::before,
  .sample-sheet::after,
  .research-cover::before,
  .research-cover::after {
    transform: none;
    inset: 6px -4px -6px 4px;
  }

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

  .sample-score {
    font-size: 52px;
  }

  .grade-strip {
    flex-direction: column;
  }

  .sample-metrics,
  .source-ledger,
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-metrics div:nth-child(2n),
  .source-ledger div:nth-child(2n),
  .metric-strip div:nth-child(2n) {
    border-right: 0;
  }

  .sample-metrics div:nth-child(-n + 2),
  .source-ledger div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sample-sheet footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .home-section h2 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .score-story__grid,
  .risk-story,
  .closing-story,
  .evidence-layout,
  .risk-layout,
  .checklist-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .risk-story {
    box-shadow: 24px 0 0 var(--ink), -24px 0 0 var(--ink);
  }

  .closing-story .closing-action {
    justify-self: stretch;
  }

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

  .analyzer-intro {
    gap: 32px;
    padding-top: 42px;
  }

  .analyzer-intro h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .share-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-cover h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .research-cover .score {
    font-size: 56px;
  }

  .metric-strip div:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .metric-strip div:nth-child(-n + 3) {
    border-bottom: 0;
  }

  .metric-strip div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .editorial-note,
  .note-date,
  .note-drawdown,
  .note-fee {
    width: 100%;
    margin: 26px 0 44px;
    transform: none;
  }

  .risk-section {
    padding-inline: 24px;
  }

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

  .provenance div,
  .provenance div:nth-child(2n) {
    border-right: 0;
  }

  .checklist-section .section-heading {
    grid-row: auto;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 16px;
  }

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

  .hero-copy h1 {
    font-size: 40px;
  }

  .sample-sheet__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-metrics,
  .metric-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .sample-metrics div,
  .sample-metrics div:nth-child(2n),
  .metric-strip div,
  .metric-strip div:nth-child(2n),
  .metric-strip div:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sample-metrics div:last-child,
  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .research-cover .score {
    font-size: 48px;
  }

  .research-grade {
    font-size: 30px;
  }
}

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

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

@media print {
  body {
    color: #000;
    background: #fff;
  }

  body::before,
  .site-header,
  .mobile-chapters,
  .chapter-rail,
  .analyzer-intro,
  .site-footer,
  .feedback,
  .editorial-note,
  .report-links {
    display: none !important;
  }

  .analyzer-shell,
  .analyzer-workspace,
  .result-region {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
  }

  .research-cover,
  .sample-sheet {
    box-shadow: none;
  }

  .research-cover::before,
  .research-cover::after,
  .sample-sheet::before,
  .sample-sheet::after {
    display: none;
  }

  .report-section,
  .research-cover {
    break-inside: avoid;
  }
}
