/* ============================================================
   Global Infinity Labs — Design System
   Direction: "Ink & Ember" editorial research journal
   ============================================================ */

:root {
  /* Ink */
  --ink: #14181a;
  --ink-2: #1e2325;
  --ink-3: #2a3134;

  /* Paper */
  --paper: #f7f3e9;
  --paper-2: #efe9da;
  --paper-3: #e4dcc9;

  /* Text */
  --text: #191d1f;
  --text-2: #4c5254;
  --text-3: #6b706e;

  /* Rules */
  --rule: rgba(20, 24, 26, 0.14);
  --rule-strong: rgba(20, 24, 26, 0.36);
  --on-ink: #f0ebdd;
  --on-ink-2: rgba(240, 235, 221, 0.66);
  --on-ink-3: rgba(240, 235, 221, 0.52);
  --on-ink-rule: rgba(240, 235, 221, 0.18);

  /* Accent */
  --accent: #7a2e2e;
  --accent-soft: rgba(122, 46, 46, 0.09);
  --brass: #a8834e;

  /* Type */
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "PingFang SC", monospace;

  /* Metrics */
  --gutter: clamp(20px, 4.4vw, 60px);
  --max: 1360px;
  --measure: 41rem;
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 180ms;
  --base: 320ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Type primitives ---------- */
.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.serif { font-family: var(--serif); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-block: clamp(64px, 7.5vw, 112px);
  border-top: 1px solid var(--rule);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-title em { font-style: italic; }
.section-note {
  max-width: 34ch;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ============================================================
   Top strip + header
   ============================================================ */
.topstrip {
  background: var(--ink);
  color: var(--on-ink-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.topstrip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 33px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.topstrip-inner span { opacity: 0.85; }
.topstrip-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-ink-2);
}
.topstrip-center i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(122, 46, 46, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--base) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 24px rgba(20, 24, 26, 0.06); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  height: var(--header-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name span { color: var(--accent); }
.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  color: var(--text-3);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 38px);
}
.nav a {
  position: relative;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--fast) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--base) var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.icon-btn:hover { border-color: var(--rule-strong); color: var(--text); background: rgba(20, 24, 26, 0.03); }
.icon-btn kbd {
  padding: 2px 5px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
  color: var(--text-3);
}
.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--rule-strong); color: var(--text); }
.lang-btn svg { width: 8px; height: 8px; fill: currentColor; transition: transform var(--fast) var(--ease); }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 208px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 60px rgba(20, 24, 26, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
  z-index: 70;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear 0s; }
.lang-menu button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 10px 10px;
  text-align: left;
  font-size: 13px;
  color: var(--text-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lang-menu button em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.lang-menu button:hover { background: var(--paper-2); color: var(--text); }
.lang-menu button.is-active { color: var(--accent); }
.lang-menu button.is-active em { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--rule-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--sm { height: 32px; padding: 0 14px; font-size: 9.5px; }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ============================================================
   Home: hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 88px) clamp(44px, 5vw, 72px);
}

.hero-copy { padding-top: 6px; }
.hero-title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: 0.99;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-dek {
  max-width: 46ch;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}
.byline-person { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
.byline-sep { width: 1px; height: 12px; background: var(--rule-strong); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.link-arrow span { transition: transform var(--base) var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

/* Dossier panel */
.dossier {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent);
  background: var(--ink);
  color: var(--on-ink);
  padding: 26px 26px 22px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(240, 235, 221, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 235, 221, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 70% 10%, #000 20%, transparent 78%);
}
.dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
.dossier-no {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(74px, 8vw, 112px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 160, 100, 0.5);
}
.dossier-signal { margin: 18px 0 0; height: 76px; }
.dossier-signal path { fill: none; stroke: rgba(240, 235, 221, 0.5); stroke-width: 1; }
.dossier-signal path:nth-child(2n) { stroke: var(--brass); opacity: 0.9; }
.dossier-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--on-ink-rule);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.dossier-theme {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dossier-theme small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
.dossier-langs { display: flex; gap: 5px; }
.dossier-langs span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--on-ink-rule);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--on-ink-2);
}
.dossier-langs span.is-on { border-color: var(--accent); color: var(--on-ink); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 22px 24px 24px;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat dd {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat dd em { font-style: italic; color: var(--accent); }

/* ============================================================
   Index rows
   ============================================================ */
.index {
  border-top: 1px solid var(--rule-strong);
}
.index-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 196px 44px;
  gap: clamp(12px, 2vw, 28px);
  align-items: baseline;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding-left var(--base) var(--ease), background var(--base) var(--ease);
}
.index-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--base) var(--ease);
}
.index-row:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(122, 46, 46, 0.045), transparent 60%); }
.index-row:hover::before { transform: scaleY(1); }

.index-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-top: 6px;
}
.index-main { min-width: 0; }
.index-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  transition: color var(--fast) var(--ease);
  text-wrap: pretty;
}
.index-row:hover .index-title { color: var(--accent); }
.index-title small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
}
.index-ab {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease), opacity 300ms var(--ease);
  opacity: 0;
  grid-column: 2 / 4;
}
.index-ab > p {
  overflow: hidden;
  max-width: 62ch;
  padding-top: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.index-row:hover .index-ab { grid-template-rows: 1fr; opacity: 1; }
.index-row:hover .index-ab > p { padding-top: 12px; }

.index-meta {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.9;
  text-align: right;
}
.index-meta b { display: block; font-weight: 500; color: var(--text-2); }
.index-go {
  justify-self: end;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--text-3);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility 0s linear var(--base);
}
.index-go svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.index-row:hover .index-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ============================================================
   Themes
   ============================================================ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}
.theme-card {
  position: relative;
  padding: 30px 28px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background var(--base) var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 208px;
}
.theme-card:hover { background: var(--paper-2); }
.theme-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.theme-card-top em { font-style: normal; color: var(--accent); }
.theme-name {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.theme-name small {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.theme-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34ch;
}
.theme-arrow {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--fast) var(--ease), gap var(--base) var(--ease);
}
.theme-card:hover .theme-arrow { color: var(--accent); gap: 14px; }

/* ============================================================
   Method band (dark)
   ============================================================ */
.band {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(64px, 7vw, 104px) 0;
}
.band .eyebrow { color: #c9a063; }
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.band-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 18px;
  text-wrap: balance;
}
.band-title em { font-style: italic; color: #c9a063; }
.band-note {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--on-ink-2);
  text-wrap: pretty;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--on-ink-rule);
}
.pipe-step {
  position: relative;
  padding: 26px 26px 30px 0;
  border-right: 1px solid var(--on-ink-rule);
}
.pipe-step:last-child { border-right: 0; padding-right: 0; }
.pipe-step:not(:first-child) { padding-left: 26px; }
.pipe-no {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--on-ink-3);
}
.pipe-no i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.pipe-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pipe-desc {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--on-ink-2);
  max-width: 26ch;
}

/* ============================================================
   Research desk
   ============================================================ */
.desk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.desk-item { border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.desk-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.desk-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.desk-title small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.desk-desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 34ch;
}
.desk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.tag {
  padding: 4px 9px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   Dispatch (newsletter)
   ============================================================ */
.dispatch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 5vw, 72px) clamp(24px, 4vw, 56px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.dispatch-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.dispatch-title em { font-style: italic; color: var(--accent); }
.dispatch p { margin-top: 12px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; max-width: 38ch; }
.dispatch-form { display: flex; flex-direction: column; gap: 10px; }
.field-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--rule-strong); }
.field-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 4px;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}
.field-row input::placeholder { color: var(--text-3); }
.field-row input:focus { outline: none; }
.field-row .btn { height: auto; padding: 0 22px; }
.consent { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--text-3); line-height: 1.7; text-transform: uppercase; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 6vw, 80px) 0 28px; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--on-ink-rule);
}
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 34px; height: 34px; }
.foot-name { font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; line-height: 1.5; }
.foot-name span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.3em; color: var(--on-ink-3); margin-top: 6px; }
.foot-desc { margin-top: 16px; max-width: 34ch; font-size: 12.5px; line-height: 1.7; color: var(--on-ink-2); }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 235, 221, 0.55);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--on-ink-2);
  transition: color var(--fast) var(--ease);
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
.foot-bottom div { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   Page head (reports / method)
   ============================================================ */
.page-head {
  padding-block: clamp(48px, 6vw, 84px) clamp(28px, 3.5vw, 44px);
}
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.page-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-title em { font-style: italic; color: var(--accent); }
.page-dek {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 40ch;
  text-wrap: pretty;
}
.page-dek strong { font-weight: 500; color: var(--text); }

/* ============================================================
   Reports filters + list
   ============================================================ */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 13px 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 6px;
}
.search-field svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 1.6; flex: 0 0 auto; }
.search-field input {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  outline: none;
}
.search-field input::placeholder { color: var(--text-3); }
.search-field:focus-within { border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-group { display: flex; align-items: center; gap: 9px; }
.chip-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.divider { width: 1px; height: 15px; background: var(--rule-strong); margin: 0 4px; }
.chips-full { flex-basis: 100%; align-items: center; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--rule-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.filter-select {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.filter-select select {
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 4px 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
}
.result-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.result-count b { color: var(--text); font-weight: 500; }

.report-list { border-top: 1px solid var(--rule-strong); }
.report-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 150px 130px 76px;
  gap: clamp(12px, 2vw, 26px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left var(--base) var(--ease), background var(--base) var(--ease);
}
.report-row:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(122, 46, 46, 0.04), transparent 55%); }
.report-row .index-title { font-size: clamp(19px, 1.8vw, 24px); }
.report-row:hover .index-title { color: var(--accent); }
.report-theme {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: right;
  line-height: 1.8;
}
.report-theme b { display: block; color: var(--accent); font-weight: 500; }
.report-date {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-align: right;
  line-height: 1.8;
}
.report-date b { display: block; color: var(--text-2); font-weight: 500; }
.lang-dots { display: flex; gap: 4px; justify-content: flex-end; }
.lang-dots i {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: 0;
  color: var(--text-3);
}
.lang-dots i.off { opacity: 0.32; }

.empty-state {
  padding: 72px 0 96px;
  text-align: center;
}
.empty-state h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.empty-state p { margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* ============================================================
   Article
   ============================================================ */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 90;
  transition: width 80ms linear;
}

.article-head { padding-block: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 40px); }

@media (min-width: 1181px) {
  .article-head { padding-left: calc(var(--gutter) + 200px + clamp(24px, 3.4vw, 56px)); }
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; opacity: 0.5; }

.article-title {
  margin-top: 20px;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.article-dek {
  margin-top: 20px;
  max-width: 58ch;
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.article-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.article-bar .byline-person { color: var(--text); }
.article-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.article-actions .chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; }
.article-actions svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.lang-tabs {
  display: inline-flex;
  border: 1px solid var(--rule);
}
.lang-tabs button {
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  border-right: 1px solid var(--rule);
  transition: all var(--fast) var(--ease);
}
.lang-tabs button:last-child { border-right: 0; }
.lang-tabs button:hover { color: var(--text); background: var(--paper-2); }
.lang-tabs button.is-active { background: var(--ink); color: var(--on-ink); }

.lang-note {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--rule-strong);
  font-size: 12px;
  color: var(--text-2);
  max-width: 64ch;
}
.lang-note.is-on { display: block; }

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 190px;
  gap: clamp(24px, 3.4vw, 56px);
  padding-bottom: clamp(56px, 6vw, 96px);
  align-items: start;
}

.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc-h {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.toc ol { margin-top: 12px; }
.toc a {
  display: block;
  padding: 6px 0 6px 10px;
  border-left: 1px solid transparent;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.toc a.is-sub { padding-left: 22px; font-size: 11.5px; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc-progress { margin-top: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--text-3); }

.prose {
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.72;
  color: #1c2022;
}
.prose > p { margin-top: 1.1em; text-wrap: pretty; }
.prose > p:first-of-type { margin-top: 0; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.55em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  font-weight: 400;
  color: var(--accent);
}
.prose h2 {
  position: relative;
  margin: 2.1em 0 0.55em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.62em;
  line-height: 1.16;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2::before {
  content: attr(data-n);
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.prose h3 {
  margin: 1.7em 0 0.4em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(122, 46, 46, 0.35);
  transition: border-color var(--fast) var(--ease);
}
.prose a:hover { border-color: var(--accent); }
.prose sup a { border: 0; font-family: var(--mono); font-size: 0.55em; padding-left: 2px; }
.prose ul { margin: 1em 0 0; padding-left: 1.1em; list-style: none; }
.prose ul li { position: relative; padding-left: 18px; margin-top: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.key-findings {
  margin: 0 0 2em;
  padding: 22px 26px 24px;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
}
.key-findings h4 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.key-findings ul { margin-top: 14px; }
.key-findings li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
}
.key-findings li::before {
  content: counter(kf, decimal-leading-zero);
  counter-increment: kf;
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.key-findings ul { counter-reset: kf; }

.pullquote {
  margin: 2.2em 0;
  padding: 26px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-size: 1.42em;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.figure {
  margin: 2.4em 0 2.2em;
  margin-left: calc(-1 * clamp(0px, 2vw, 26px));
  margin-right: calc(-1 * clamp(0px, 2vw, 26px));
}
.figure-frame {
  padding: 16px 18px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.figure svg { width: 100%; height: auto; }
.figure figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-3);
}
.figure figcaption b {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 5px;
}

.data-table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-family: var(--sans); font-size: 13px; }
.data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.data-table th, .data-table td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--rule-strong);
}
.data-table tbody tr:hover { background: rgba(122, 46, 46, 0.04); }

.footnotes {
  margin-top: 3em;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}
.footnotes h4 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footnotes ol { margin-top: 12px; counter-reset: fn; }
.footnotes li {
  position: relative;
  padding-left: 24px;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.footnotes li::before {
  content: counter(fn) ".";
  counter-increment: fn;
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 9px;
  top: 0.35em;
  color: var(--text-3);
}

.cite-block {
  margin-top: 2.4em;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: transparent;
}
.cite-block h4 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.cite-block p { font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--text-2); word-break: break-word; }

.margin-notes { position: sticky; top: calc(var(--header-h) + 28px); }
.note {
  padding: 12px 0 14px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-3);
}
.note b { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }

.related { border-top: 1px solid var(--rule-strong); padding-block: clamp(40px, 5vw, 64px) clamp(56px, 6vw, 88px); }
.related-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.related-h h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.02em; }

/* ============================================================
   Search overlay
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(40px, 9vh, 110px) 20px 40px;
  background: rgba(20, 24, 26, 0.55);
  backdrop-filter: blur(8px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--base) var(--ease), visibility 0s linear var(--base);
}
.search-overlay.is-open { opacity: 1; visibility: visible; transition: opacity var(--base) var(--ease), visibility 0s linear 0s; }
.search-panel {
  width: min(760px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(20, 24, 26, 0.5);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  transform: translateY(-10px) scale(0.99);
  transition: transform var(--base) var(--ease);
  overflow: hidden;
}
.search-overlay.is-open .search-panel { transform: none; }
.search-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
}
.search-top svg { width: 17px; height: 17px; stroke: var(--text-3); fill: none; stroke-width: 1.6; flex: 0 0 auto; }
.search-top input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -0.01em;
  outline: none;
}
.search-top input::placeholder { color: var(--text-3); }
.search-top kbd {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border: 1px solid var(--rule);
  color: var(--text-3);
}
.search-filters { display: flex; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.search-results { overflow-y: auto; padding: 6px 0 10px; }
.search-group-label {
  padding: 12px 22px 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.search-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 22px;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.search-item:hover, .search-item.is-cursor { background: var(--paper-2); border-left-color: var(--accent); }
.search-item-no { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.08em; }
.search-item-title { font-family: var(--serif); font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.search-item-title mark { background: rgba(122, 46, 46, 0.18); color: inherit; padding: 0 1px; }
.search-item-meta { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.search-empty { padding: 44px 22px 52px; text-align: center; }
.search-empty p { font-family: var(--serif); font-size: 19px; color: var(--text-2); }
.search-empty small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }
.search-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.search-foot span { display: inline-flex; align-items: center; gap: 6px; }
.search-foot kbd { padding: 1px 4px; border: 1px solid var(--rule); }

/* ============================================================
   Tweaks
   ============================================================ */
.tweaks-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(20, 24, 26, 0.25);
  font-family: var(--serif);
  font-size: 16px;
  transition: transform var(--base) var(--ease);
}
.tweaks-toggle:hover { transform: translateY(-2px); }
.tweaks {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 100;
  width: 244px;
  padding: 16px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 60px rgba(20, 24, 26, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--base) var(--ease);
}
.tweaks.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility 0s linear 0s; }
.tweaks h5 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row > span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.swatches { display: flex; gap: 7px; }
.swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 24, 26, 0.2);
  border-radius: 50%;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.seg { display: flex; border: 1px solid var(--rule); }
.seg button {
  flex: 1;
  padding: 6px 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border-right: 1px solid var(--rule);
}
.seg button:last-child { border-right: 0; }
.seg button.is-active { background: var(--ink); color: var(--on-ink); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Method page
   ============================================================ */
.doc-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.doc-side { position: sticky; top: calc(var(--header-h) + 28px); }
.doc-side .eyebrow { margin-bottom: 12px; letter-spacing: 0.08em; }
.doc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.doc-prose {
  max-width: 62ch;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.72;
  color: #1c2022;
  text-wrap: pretty;
}
.doc-prose p + p { margin-top: 1em; }
.doc-prose strong { font-weight: 600; }
.doc-prose ul { margin-top: 1em; }
.doc-prose ul li { position: relative; padding-left: 18px; margin-top: 0.55em; }
.doc-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.doc-prose ol { counter-reset: docn; margin-top: 1em; }
.doc-prose ol li { position: relative; padding-left: 28px; margin-top: 0.7em; }
.doc-prose ol li::before {
  counter-increment: docn;
  content: counter(docn, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.32em;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.doc-prose .data-table { font-size: 12.5px; }
.doc-prose .data-table th,
.doc-prose .data-table td { text-align: left; padding-right: 22px; }
.doc-prose .cite-block p { font-family: var(--mono); font-size: 10.5px; line-height: 1.9; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .article-head { padding-left: var(--gutter); }
  .article-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .margin-notes { display: none; }
  .report-row { grid-template-columns: 44px minmax(0, 1fr) 132px 96px; }
  .report-row .lang-dots { display: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .dossier { min-height: 360px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe-step:nth-child(2) { border-right: 0; }
  .pipe-step:nth-child(3) { border-top: 1px solid var(--on-ink-rule); }
  .pipe-step:nth-child(4) { border-top: 1px solid var(--on-ink-rule); }
  .band-head, .page-head-grid, .dispatch { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rule);
  }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: var(--text); position: relative; }
  .menu-toggle span::before, .menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 15px;
    height: 1px;
    background: var(--text);
  }
  .menu-toggle span::before { top: -5px; }
  .menu-toggle span::after { top: 5px; }
  .mobile-nav {
    display: none;
    border-top: 1px solid var(--rule);
    background: var(--paper);
    padding: 8px 0 16px;
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a {
    display: block;
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
  }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .topstrip-center { display: none; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 11px; letter-spacing: 0.15em; }
  .icon-btn kbd, .icon-btn span.label { display: none; }
  .icon-btn { width: 36px; padding: 0; justify-content: center; }
  .header-actions .btn--cta { display: none; }
  .hero-title { font-size: clamp(38px, 9vw, 48px); }
  .hero-byline { font-size: 9px; gap: 10px 14px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 12px; }
  .index-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 20px 0; }
  .index-go { grid-column: 3; }
  .index-meta { display: none; }
  .index-go { grid-column: 3; }
  .index-ab { grid-column: 2 / 4; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 0; }
  .desk { grid-template-columns: 1fr; gap: 24px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-step, .pipe-step:not(:first-child) { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--on-ink-rule); }
  .pipe-step:last-child { border-bottom: 0; }
  .report-row { grid-template-columns: 32px minmax(0, 1fr); }
  .report-theme, .report-date { display: none; }
  .filter-select { margin-left: 0; }
  .article-title { max-width: none; }
  .prose { font-size: 17px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-note { max-width: 46ch; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { font-size: 8px; }
  .search-top input { font-size: 18px; }
  .figure { margin-left: 0; margin-right: 0; }
  .search-item { grid-template-columns: 26px minmax(0, 1fr); }
  .search-item-meta { display: none; }
}


/* ============================================================
   CJK typography adjustments
   ============================================================ */
:lang(zh) .hero-title { line-height: 1.16; letter-spacing: 0.01em; font-weight: 500; }
:lang(zh) .section-title,
:lang(zh) .page-title,
:lang(zh) .band-title,
:lang(zh) .article-title,
:lang(zh) .dispatch-title,
:lang(zh) .doc-title,
:lang(zh) .index-title,
:lang(zh) .theme-name,
:lang(zh) .desk-title,
:lang(zh) .pipe-title { letter-spacing: 0.01em; line-height: 1.28; }
:lang(zh) .nav a { letter-spacing: 0.08em; }
:lang(zh) .hero-dek { line-height: 1.8; }
:lang(zh) .prose { font-size: 17.5px; line-height: 1.9; }
:lang(zh) .prose > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
:lang(zh) .doc-prose { font-size: 16.5px; line-height: 1.9; }
:lang(zh) .article-dek { line-height: 1.75; }
:lang(zh) .key-findings li { line-height: 1.8; }
:lang(zh) .eyebrow { letter-spacing: 0.12em; }


/* ---------- Article preview state ---------- */
.preview-note {
  max-width: 41rem;
  margin: 0 0 clamp(56px, 6vw, 88px) calc(200px + clamp(24px, 3.4vw, 56px));
  padding-top: 26px;
  border-top: 1px solid var(--rule-strong);
}
.preview-text {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
}
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 1180px) { .preview-note { margin-left: 0; } }
