:root {
  color-scheme: light;
  --paper: #f8f3ea;
  --paper-2: #efe6d8;
  --ink: #181713;
  --muted: #6f6a60;
  --line: rgba(24, 23, 19, 0.13);
  --panel: rgba(255, 252, 246, 0.76);
  --blue: #253f72;
  --red: #bd432c;
  --green: #2f7d5b;
  --shadow: 0 24px 80px rgba(58, 46, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 23, 19, 0.045) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(0deg, rgba(24, 23, 19, 0.035) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  opacity: 1;
  transition:
    opacity 480ms ease,
    visibility 480ms ease;
}

.splash-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

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

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr minmax(250px, 420px);
  gap: 20px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.97);
  backdrop-filter: blur(18px);
  will-change: transform;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-family: "Instrument Serif", serif;
  font-size: 28px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a,
.chip {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.chip:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.chip.is-selected {
  color: var(--chip-fg, #fff);
  background: var(--chip-bg, var(--ink));
  border-color: var(--chip-bg, var(--ink));
}

.chip.is-selected:hover {
  opacity: 0.85;
}

.search {
  position: relative;
  display: block;
  min-width: 0;
}

.search span {
  position: absolute;
  top: 50%;
  left: 16px;
  translate: 0 -50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 14px 18px 14px 74px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.search input:focus {
  border-color: rgba(37, 63, 114, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 63, 114, 0.08);
}

main {
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 54px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: calc(100vh - 145px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.hero-copy h1,
.page-heading h1,
.profile-name h1,
.post-detail-copy h1 {
  max-width: 940px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(56px, 8vw, 132px);
  font-weight: 400;
  line-height: 0.9;
}

.hero-copy p:not(.kicker),
.page-heading p,
.post-detail-copy > p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

.kicker {
  margin: 0 0 28px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.58);
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.landing-entry-panel {
  display: grid;
  gap: 22px;
  align-content: start;
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 48px);
  background:
    linear-gradient(145deg, rgba(37, 63, 114, 0.1), transparent 58%),
    rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.landing-entry-panel h2 {
  max-width: 560px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.96;
}

.landing-entry-panel > p:not(.kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.landing-stats div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.landing-stats strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 0.9;
}

.landing-stats span,
.landing-entry-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.landing-entry-links {
  display: grid;
  gap: 10px;
}

.landing-entry-links a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.56);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.landing-entry-links a:hover {
  background: #fffaf2;
  transform: translateY(-2px);
}

.landing-entry-links strong {
  font-size: clamp(17px, 1.4vw, 22px);
}

.landing-keyword-map {
  display: grid;
  gap: 16px;
  margin-top: clamp(22px, 4vw, 42px);
  border-top: 1px solid var(--line);
  padding-top: clamp(22px, 4vw, 38px);
}

.keyword-map-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.keyword-map-head strong {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

@keyframes kw-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.kw-ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 72px, black calc(100% - 72px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 72px, black calc(100% - 72px), transparent);
}

.kw-ticker-wrap:hover .kw-ticker {
  animation-play-state: paused;
}

.kw-ticker {
  display: flex;
  align-items: center;
  width: max-content;
  animation: kw-scroll 55s linear infinite;
  gap: 0;
}

.kw-tick {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}

.kw-tick:hover {
  color: var(--color);
}

.kw-tick::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color);
  margin-left: 18px;
  opacity: 0.5;
  flex-shrink: 0;
}

.landing-section-intro {
  max-width: 760px;
  margin-top: clamp(36px, 6vw, 72px);
}

.landing-section-intro h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.section-grid,
.preview-band,
.overview-layout,
.split-content,
.post-detail {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: stretch;
}

.statement-panel,
.composition-card,
.post-card,
.topic-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.statement-panel {
  padding: clamp(26px, 4vw, 54px);
}

.statement-panel span,
.card-title span {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.statement-panel h2 {
  max-width: 820px;
  margin: 24px 0 18px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.98;
}

.statement-panel p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.metric-stack div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fffaf2;
}

.metric-stack strong {
  font-family: "Instrument Serif", serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.85;
}

.metric-stack span {
  color: rgba(255, 250, 242, 0.7);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-band {
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.preview-band h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.mini-results,
.post-list.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: grid;
  overflow: hidden;
  grid-template-rows: 230px 1fr;
}

.post-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd2c1;
}

.post-media img,
.post-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generated-media {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: end start;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--a) 72%, #fff), transparent 52%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent) 0 2px, transparent 2px 16px),
    var(--b);
}

.generated-media span {
  color: #fff;
  font-weight: 900;
}

.generated-media.big {
  min-height: 610px;
}

.media-type {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(24, 23, 19, 0.82);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.media-type--video {
  background: rgba(180, 30, 30, 0.88);
}

.media-type--image {
  background: rgba(30, 90, 180, 0.88);
}


.tile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-type-badge {
  position: static;
}

.media-open-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease;
}

.media-open-overlay:hover {
  background: rgba(0, 0, 0, 0.36);
}

.media-open-overlay span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.post-body {
  padding: 18px;
}

.post-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-body h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.post-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.topic-strip,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.topic-pill,
.detail-tags span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--topic, #999) 28%, var(--line));
  border-radius: 999px;
  padding: 7px 9px;
  color: color-mix(in srgb, var(--topic, #555), #111 30%);
  background: color-mix(in srgb, var(--topic, #999) 10%, transparent);
  font-size: 11px;
  font-weight: 850;
}

.page-heading {
  max-width: 1080px;
  margin-bottom: 32px;
  display: grid;
  gap: 26px;
}

.page-heading h1 {
  margin: 0;
}

.page-heading p {
  margin: 0;
}

.page-heading h1 {
  font-size: clamp(48px, 6vw, 92px);
}

.overview-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.composition-card {
  padding: 24px;
}

.composition-card.large {
  grid-row: span 2;
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.card-title strong {
  max-width: 260px;
  text-align: right;
}

.card-leader-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chip-preview {
  min-width: 0;
  max-width: 100%;
  background: rgba(24, 23, 19, 0.08);
  border-color: rgba(24, 23, 19, 0.22);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.bars,
.radar-list {
  display: grid;
  gap: 15px;
}

.bar-row,
.topic-meter {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr 42px;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
}

.bar-row div,
.topic-meter div {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(24, 23, 19, 0.08);
}

.bar-row i,
.topic-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--topic);
}

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

.pipeline li {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.pipeline strong {
  line-height: 1.25;
}

.pipeline span,
.politician-mini small {
  color: var(--muted);
}

.pipeline span {
  line-height: 1.6;
}

.politician-list {
  display: grid;
  gap: 10px;
}

.politician-mini {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.politician-mini > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c), var(--b));
}

.politician-mini strong,
.politician-mini small {
  display: block;
}

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

.politician-card {
  display: grid;
  min-height: 520px;
  align-content: space-between;
  border: 1px solid var(--line);
  padding: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--a) 88%, transparent), transparent 62%),
    var(--panel);
  box-shadow: var(--shadow);
  transition:
    translate 180ms ease,
    border-color 180ms ease;
}

.politician-card:hover {
  translate: 0 -6px;
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
}

.portrait {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  place-items: center;
  background-color: var(--b);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center top;
  filter: blur(0);
  transform: scale(1);
  transition: filter 380ms ease, transform 380ms ease;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--c) 22%, transparent), transparent 38%),
    linear-gradient(170deg, color-mix(in srgb, var(--b) 18%, transparent), color-mix(in srgb, var(--b) 28%, transparent));
  transition: opacity 380ms ease;
}

.portrait:hover::before {
  filter: blur(7px);
  transform: scale(1.06);
}

.portrait:hover::after {
  opacity: 0.4;
}

.politician-card p {
  margin: 20px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.politician-card h2 {
  margin: 0 0 14px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.95;
}

.politician-card > strong {
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.35;
}

.politician-topic-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid color-mix(in srgb, var(--topic) 38%, var(--line));
  background: color-mix(in srgb, var(--topic) 9%, rgba(255, 255, 255, 0.6));
  transition:
    background 180ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.politician-topic-link:hover {
  background: color-mix(in srgb, var(--topic) 18%, rgba(255, 255, 255, 0.85));
  border-color: color-mix(in srgb, var(--topic) 65%, var(--line));
  transform: translateY(-2px);
}

.politician-topic-link > span {
  color: color-mix(in srgb, var(--topic), #111 18%);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.politician-topic-link > strong {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1;
  color: color-mix(in srgb, var(--topic), #111 28%);
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  min-height: 520px;
  padding: clamp(24px, 5vw, 52px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--a) 82%, transparent), transparent 58%),
    linear-gradient(35deg, color-mix(in srgb, var(--c) 18%, transparent), transparent),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.back-link {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 850;
}

.profile-name {
  display: grid;
  gap: 22px;
}

.profile-name p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.profile-name h1 {
  margin: 0;
}

.profile-name span {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.profile-facts {
  display: grid;
  gap: 12px;
}

.profile-facts div {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.profile-facts strong,
.profile-facts span {
  display: block;
}

.profile-facts strong {
  font-size: 28px;
  line-height: 1.08;
}

.profile-facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.split-content {
  grid-template-columns: 1fr minmax(220px, 300px);
  align-items: start;
}

.post-list {
  display: grid;
  gap: 16px;
}

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

.post-toolbar > span {
  color: var(--muted);
  font-weight: 850;
}

.chip {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
}

.post-detail {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  align-items: start;
}

.post-detail-media {
  overflow: hidden;
  min-height: 610px;
  border: 1px solid var(--line);
  background: #d8ccb9;
  box-shadow: var(--shadow);
}

.post-detail-copy {
  padding: clamp(20px, 3vw, 34px);
}

.post-detail-copy h1 {
  font-size: clamp(44px, 5vw, 84px);
}

.post-detail-copy h2 {
  margin: 34px 0 14px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transcript {
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

.post-detail-texts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.post-detail-texts h2 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-detail-texts .transcript {
  font-size: 15px;
  line-height: 1.75;
}

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

.topic-card {
  display: grid;
  min-height: 260px;
  padding: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--topic) 22%, transparent), transparent 70%),
    var(--panel);
}

.topic-card span {
  color: var(--topic);
  font-weight: 950;
}

.topic-card h2 {
  align-self: center;
  min-height: 2.1em;
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 0.98;
}

.topic-card-bottom {
  align-self: end;
}

.topic-card-bottom strong {
  display: block;
  font-size: 34px;
}

.topic-card-bottom small {
  color: var(--muted);
}

.topic-leader-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--topic) 32%, var(--line));
  background: color-mix(in srgb, var(--topic) 8%, rgba(255, 255, 255, 0.6));
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.topic-leader-link:hover {
  background: color-mix(in srgb, var(--topic) 18%, rgba(255, 255, 255, 0.85));
  transform: translateY(-2px);
}

.topic-leader-link span {
  color: color-mix(in srgb, var(--topic), #111 18%);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.impact-grid,
.overview-hero-grid,
.plot-grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 54px);
}

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

.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 5vw, 54px);
}

.overview-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
}

.big-insight,
.impact-card,
.plot-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--topic, var(--blue)) 14%, transparent), transparent 66%),
    rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.big-insight {
  min-height: 420px;
  padding: clamp(28px, 5vw, 56px);
}

.big-insight > span,
.impact-card > span {
  display: inline-flex;
  color: color-mix(in srgb, var(--topic, var(--red)), #111 20%);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.big-insight h2,
.impact-card h2 {
  margin: 26px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 400;
  line-height: 0.92;
}

.big-insight p,
.impact-card p,
.soft-copy {
  color: var(--muted);
  line-height: 1.65;
}

.impact-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
}

.impact-card h2 {
  flex: 1;
  font-size: clamp(34px, 4vw, 58px);
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.large-metrics {
  grid-template-columns: 1fr;
}

.large-metrics div {
  min-height: 0;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-token {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 750;
}

.keyword-token strong {
  color: var(--muted);
  font-size: 12px;
}

.keyword-token.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.keyword-token.is-active strong {
  color: rgba(255, 255, 255, 0.6);
}

mark.hl {
  background: rgba(255, 210, 0, 0.45);
  border-radius: 2px;
  padding: 0 2px;
  color: inherit;
  font-style: normal;
}

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

/* ── Alignment podium ── */
.overview-alignment {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.overview-alignment > header {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.overview-alignment > header h2 {
  margin: 10px 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 0.96;
}

.overview-alignment > header p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.65;
}

.alignment-podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 10px;
  align-items: end;
}

.podium-slot {
  display: flex;
  flex-direction: column;
}

.podium-card {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.podium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(58, 46, 27, 0.18);
}

.rank-1 .podium-card {
  border-color: var(--ink);
}

.podium-rank-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}

.rank-2 .podium-rank-num,
.rank-3 .podium-rank-num {
  color: var(--muted);
  font-size: clamp(36px, 3.6vw, 54px);
}

.podium-portrait {
  width: clamp(54px, 5.5vw, 70px);
  height: clamp(54px, 5.5vw, 70px);
  border-radius: 50%;
  background: var(--photo) center / cover no-repeat;
  border: 2px solid var(--line);
}

.rank-1 .podium-portrait {
  width: clamp(66px, 6.5vw, 88px);
  height: clamp(66px, 6.5vw, 88px);
  border-color: var(--ink);
}

.podium-handle {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.podium-name {
  margin: 3px 0 2px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.05;
}

.podium-party {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.podium-rho {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.podium-rho span {
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.podium-rho strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.podium-aux {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.podium-aux b {
  color: var(--ink);
  font-weight: 850;
}

.podium-step {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-top: none;
  background: rgba(24, 23, 19, 0.03);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.rank-1 .podium-step {
  height: 72px;
  background: rgba(24, 23, 19, 0.06);
  border-color: var(--ink);
  font-size: 20px;
  color: var(--ink);
}

.rank-2 .podium-step {
  height: 48px;
}

.rank-3 .podium-step {
  height: 28px;
}

/* 4th+ row */
.alignment-fourth {
  display: grid;
  grid-template-columns: 40px 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.6);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.alignment-fourth:hover {
  background: rgba(255, 252, 246, 0.95);
}

.fourth-rank {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

.fourth-portrait {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--photo) center / cover no-repeat;
  border: 1px solid var(--line);
}

.fourth-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fourth-meta h3 {
  margin: 2px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1;
}

.fourth-scores {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.fourth-scores span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.fourth-scores b {
  display: block;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}

.neglected-youth-card {
  display: grid;
  gap: 18px;
  margin-top: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.78);
}

.neglected-youth-card > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 18px;
  align-items: end;
}

.neglected-youth-card h2 {
  margin: 6px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.neglected-youth-card > header > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.neglected-topic-list {
  display: grid;
  gap: 10px;
}

.neglected-topic-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(118px, 0.42fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--topic) 28%, var(--line));
  background: color-mix(in srgb, var(--topic) 7%, #fffaf2);
  color: inherit;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.neglected-topic-row:hover {
  background: color-mix(in srgb, var(--topic) 12%, #fffaf2);
  transform: translateY(-1px);
}

.neglected-topic-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.neglected-topic-main strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}

.neglected-topic-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.neglected-rank-stats {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
  align-items: center;
}

.neglected-rank-stats small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neglected-rank-stats b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.neglected-rank-stats span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  white-space: nowrap;
}

.neglected-rank-line {
  position: relative;
  height: 48px;
  margin-inline: 10px;
}

.neglected-rank-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid color-mix(in srgb, var(--topic) 48%, var(--line));
}

.rank-axis-start,
.rank-axis-end {
  position: absolute;
  top: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.rank-axis-start {
  left: 0;
}

.rank-axis-end {
  right: 0;
}

.neglected-rank-line i {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.neglected-rank-line i::after {
  content: attr(data-label);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.neglected-rank-line .is-youth {
  left: var(--youth);
  background: var(--topic);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--topic) 14%, transparent);
}

.neglected-rank-line .is-political {
  left: var(--political);
  border: 2px solid var(--topic);
  background: #fffaf2;
}

.neglected-rank-line .is-political::after {
  color: var(--muted);
}

.neglected-gap {
  justify-self: end;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--topic) 24%, var(--line));
  background: rgba(255, 255, 255, 0.64);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-neglected-card {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid color-mix(in srgb, var(--c) 24%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%),
    rgba(255, 252, 246, 0.78);
}

.profile-neglected-card > header {
  max-width: 780px;
}

.profile-neglected-card h2 {
  margin: 6px 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.profile-neglected-card > header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.profile-neglected-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-neglected-topic {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--topic) 26%, var(--line));
  background: color-mix(in srgb, var(--topic) 7%, #fffaf2);
  color: inherit;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.profile-neglected-topic:hover {
  background: color-mix(in srgb, var(--topic) 12%, #fffaf2);
  transform: translateY(-1px);
}

.profile-neglected-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.profile-neglected-heading span {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.profile-neglected-heading strong {
  color: var(--red);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 0.9;
}

.profile-neglected-ranks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.profile-neglected-track {
  position: relative;
  height: 26px;
}

.profile-neglected-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid color-mix(in srgb, var(--topic) 45%, var(--line));
}

.profile-neglected-track i {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.profile-neglected-track .is-youth {
  left: var(--youth);
  background: var(--topic);
}

.profile-neglected-track .is-political {
  left: var(--political);
  border: 2px solid var(--topic);
  background: #fffaf2;
}

.plot-card {
  margin: 0;
  overflow: hidden;
}

.native-chart {
  position: relative;
  margin: 0;
  overflow: visible;
}

.native-chart:has(.chart-info[open]) {
  z-index: 10;
}

.metric-politician-card {
  display: grid;
  gap: 18px;
}

.metric-politician-card .portrait {
  width: 100%;
}

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

.politician-metrics div {
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line));
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.politician-metrics strong,
.politician-metrics span {
  display: block;
}

.politician-metrics strong {
  font-size: 24px;
}

.politician-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.post-card-rich .post-body {
  gap: 12px;
}

.transcript {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.filter-note {
  max-width: 820px;
  margin: -18px 0 28px;
  color: var(--muted);
  font-weight: 650;
}

.active-filter-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding: 14px 20px;
  border: 2px solid color-mix(in srgb, var(--topic) 50%, var(--line));
  border-left-width: 5px;
  background: color-mix(in srgb, var(--topic) 10%, rgba(255, 255, 255, 0.72));
}

.active-filter-banner span {
  color: color-mix(in srgb, var(--topic), #111 18%);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.active-filter-banner strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  color: color-mix(in srgb, var(--topic), #111 25%);
  line-height: 1;
  flex: 1;
}

.banner-clear {
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.banner-clear:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.topic-meter {
  color: inherit;
}

.topic-card .button {
  align-self: flex-start;
  margin-top: 18px;
}

.native-chart {
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.chart-copy {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.chart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.chart-info {
  position: relative;
  justify-self: end;
}

.chart-info summary {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  list-style: none;
}

.chart-info summary::-webkit-details-marker {
  display: none;
}

.chart-info summary span {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.chart-info-card {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 5;
  width: min(520px, calc(100vw - 44px));
  border: 1px solid var(--line);
  padding: 16px;
  background: #fffaf2;
  box-shadow: var(--shadow);
  text-transform: none;
  letter-spacing: 0;
}

.chart-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chart-info-card p + p {
  margin-top: 10px;
}

.chart-info-card .about-katex-formula {
  margin: 12px 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 23, 19, 0.1);
  overflow-x: auto;
}

.formula {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid rgba(24, 23, 19, 0.1);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.58);
  overflow-x: auto;
}

.formula span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.math {
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.chart-info-card .math {
  font-size: 20px;
}

.math sub,
.math sup {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.48em;
  font-style: normal;
  line-height: 0;
}

.math i {
  font-style: italic;
}

.frac {
  display: inline-grid;
  grid-template-rows: auto auto;
  min-width: 1.8em;
  margin-inline: 0.1em;
  vertical-align: middle;
  text-align: center;
}

.frac b {
  display: block;
  padding-inline: 0.22em;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 0.82em;
  font-weight: 400;
  line-height: 1.05;
}

.frac b:first-child {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.08em;
}

.frac b:last-child {
  padding-top: 0.08em;
}

.sum {
  display: inline-block;
  margin-inline: 0.08em;
  font-size: 1.16em;
  vertical-align: -0.08em;
}

.about-formula {
  margin-block: 16px;
}

.chart-head > div > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chart-copy h2 {
  max-width: 840px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 400;
  line-height: 0.96;
}

.chart-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.method-strip,
.about-grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 54px);
}

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

.method-strip article,
.about-panel {
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.method-strip span,
.about-panel > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method-strip h2,
.about-panel h2 {
  margin: 24px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 0.98;
}

.method-strip p,
.about-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.about-wide {
  margin-top: clamp(28px, 5vw, 54px);
}

.heatmap,
.matrix {
  display: grid;
  grid-template-columns: minmax(86px, 130px) repeat(var(--cols), minmax(54px, 1fr));
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.topic-matrix {
  grid-template-columns: minmax(82px, 110px) repeat(var(--cols), minmax(50px, 1fr));
}

.heatmap-label {
  display: grid;
  align-items: center;
  min-height: 46px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
}

.heatmap-label.top {
  align-items: center;
  justify-content: start;
  min-width: 54px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.heatmap-label.side {
  justify-content: end;
  text-align: right;
}

.heatmap-label.short {
  font-size: 11px;
}

.heat-cell {
  display: grid;
  min-width: 50px;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(24, 23, 19, 0.08);
  background: var(--cell);
}

.heat-cell strong {
  color: var(--ink);
  font-size: 13px;
}

.similarity-matrix .heat-cell strong {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.leader-bars {
  display: grid;
  gap: 12px;
}

.leader-bar {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.leader-bar div {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(24, 23, 19, 0.08);
}

.leader-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--topic);
}

.leader-bar strong {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.slope-grid {
  display: grid;
  max-width: 900px;
  margin-inline: auto;
  gap: 24px;
}

.slope-panel {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.slope-panel h3 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 400;
}

.slope-panel svg {
  display: block;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  height: auto;
}

.slope-panel text {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.slope-panel .axis-label {
  fill: var(--ink);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-bars,
.overlap-bars {
  display: grid;
  gap: 14px;
}

.metric-bar-row,
.overlap-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.overlap-card:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.metric-bar-row {
  grid-template-columns: minmax(130px, 0.35fr) 110px minmax(160px, 1fr) 100px;
  align-items: center;
}

.metric-bar-row span,
.overlap-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dual-bar,
.overlap-card div {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(24, 23, 19, 0.08);
}

.dual-bar i,
.dual-bar b,
.overlap-card i,
.overlap-card b {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dual-bar i {
  width: var(--a);
  background: var(--c);
  opacity: 0.88;
}

.dual-bar b {
  width: var(--b);
  background: var(--blue);
  opacity: 0.52;
}

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

.overlap-card i {
  width: var(--top3);
  background: var(--c);
}

.overlap-card b {
  width: var(--top5);
  background: var(--blue);
}

.profile-overlap-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 18px;
  align-items: center;
}

.profile-overlap-score {
  display: grid;
  gap: 4px;
  min-width: 94px;
}

.profile-overlap-score span,
.profile-overlap-track span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-overlap-score strong {
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 0.9;
}

.profile-overlap-track {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-overlap-track div {
  position: relative;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(24, 23, 19, 0.08);
}

.profile-overlap-track i,
.profile-overlap-track b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
}

.profile-overlap-track i {
  width: var(--top3);
  background: var(--c);
}

.profile-overlap-track b {
  width: var(--top5);
  background: var(--blue);
}

.post-row-list {
  display: grid;
  gap: 10px;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr) minmax(140px, 0.24fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--topic) 12%, transparent), transparent 44%),
    rgba(255, 252, 246, 0.72);
}

.post-row span,
.post-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.post-row strong {
  line-height: 1.35;
}

.post-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.post-row-score {
  font-size: 17px;
  font-weight: 800;
  font-style: normal;
  color: var(--topic);
}

.post-groups {
  display: grid;
  gap: 22px;
}

.post-group {
  border: 1px solid var(--line);
  padding: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--topic) 10%, transparent), transparent 62%),
    rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.post-group header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.post-group header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.post-group h2 {
  margin: 4px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 0.95;
}

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

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

.post-tile {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: space-between;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--topic) 24%, var(--line));
  padding: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--topic) 14%, transparent), transparent 72%),
    rgba(255, 255, 255, 0.56);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.post-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--topic) 54%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--topic) 22%, transparent), transparent 72%),
    rgba(255, 255, 255, 0.72);
}

.post-tile .tile-index {
  color: color-mix(in srgb, var(--topic), #111 22%);
  font-size: 12px;
  font-weight: 950;
}

.post-tile strong,
.post-tile small {
  display: block;
}

.post-tile small,
.post-tile p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.post-tile h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.post-tile p {
  margin: 0;
}

.post-tile em {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.posts-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-label {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chips--wrap {
  gap: 5px;
}

.topic-chip {
  font-size: 12px;
  padding: 7px 10px;
  border-left: 3px solid var(--topic-hint, var(--line));
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.topic-chip--active {
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  border-left-width: 4px;
  border-left-color: var(--chip-bg);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--chip-bg) 22%, transparent),
    0 4px 16px color-mix(in srgb, var(--chip-bg) 30%, transparent);
  position: relative;
}

.topic-chip--active::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  font-size: 12px;
  font-weight: 900;
}

.keyword-active-chip {
  font-size: 13px;
  font-weight: 750;
  max-width: 100%;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 4px;
  border-radius: 6px;
}

.chip-remove {
  margin-left: 6px;
  font-size: 16px;
  font-weight: 900;
  opacity: 0.8;
  line-height: 1;
}

.filter-section--reset {
  padding: 10px 18px;
  background: rgba(24, 23, 19, 0.03);
}

.reset-filters-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}

.reset-filters-link:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.result-limit {
  margin-top: 18px;
}

.results-count {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.results-count strong {
  color: var(--ink);
  font-weight: 850;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.page-control,
.page-number {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255, 252, 246, 0.78);
  font-size: 13px;
  font-weight: 850;
}

.page-number {
  justify-content: center;
  min-width: 38px;
}

.page-number.is-active {
  color: #fff;
  background: var(--ink);
}

.page-control.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .hero,
  .section-grid,
  .preview-band,
  .overview-layout,
  .split-content,
  .post-detail,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .posts-workspace {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .impact-grid,
  .top3-grid,
  .overview-hero-grid,
  .method-strip,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-tile-grid,
  .focused-results,
  .overlap-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .neglected-topic-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .neglected-rank-stats,
  .neglected-rank-line {
    grid-column: 1 / -1;
  }

  .profile-neglected-list {
    grid-template-columns: 1fr;
  }

  .mini-results,
  .post-list.grid,
  .politician-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .post-tile-grid,
  .focused-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  main {
    padding: 24px 14px 64px;
  }

  .topbar {
    padding: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .brand small {
    display: none;
  }

  .nav {
    margin-inline: -12px;
    padding-inline: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .nav a,
  .chip {
    flex: 0 1 auto;
    padding: 9px 11px;
    font-size: 13px;
  }

  .search input {
    padding-block: 12px;
  }

  .hero-copy h1,
  .page-heading h1,
  .profile-name h1,
  .post-detail-copy h1 {
    font-size: clamp(42px, 15vw, 70px);
    line-height: 0.94;
  }

  .hero {
    min-height: 0;
    align-items: start;
  }

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

  .button {
    justify-content: center;
    width: 100%;
  }

  .landing-entry-panel,
  .native-chart,
  .method-strip article,
  .about-panel,
  .post-group {
    padding: 16px;
  }

  .alignment-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .podium-step {
    height: 36px !important;
  }

  .rank-1 .podium-step {
    height: 36px !important;
  }

  .alignment-fourth {
    grid-template-columns: 40px 44px minmax(0, 1fr);
  }

  .fourth-scores {
    display: none;
  }

  .neglected-youth-card > header,
  .neglected-topic-row {
    grid-template-columns: 1fr;
  }

  .neglected-topic-row {
    gap: 12px;
  }

  .neglected-rank-line {
    width: 100%;
  }

  .neglected-gap {
    justify-self: start;
  }

  .mini-results,
  .post-list.grid,
  .politician-grid,
  .topic-grid,
  .post-tile-grid,
  .focused-results,
  .impact-grid,
  .top3-grid,
  .overview-hero-grid,
  .method-strip,
  .about-grid,
  .politician-metrics {
    grid-template-columns: 1fr;
  }

  .chart-head {
    grid-template-columns: 1fr;
  }

  .profile-overlap-card {
    grid-template-columns: 1fr;
  }

  .chart-info {
    justify-self: start;
  }

  .chart-info-card {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }

  .formula {
    margin-inline: -2px;
    padding: 10px;
  }

  .formula span {
    font-size: 9px;
  }

  .chart-info-card .math,
  .math {
    font-size: 18px;
  }

  .heatmap,
  .matrix {
    grid-template-columns: minmax(48px, 58px) repeat(var(--cols), minmax(0, 1fr));
    gap: 3px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .heatmap-label {
    min-width: 0;
    min-height: 34px;
    font-size: 8px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .heatmap-label.top {
    min-width: 0;
    justify-content: center;
  }

  .heatmap-label.side {
    justify-content: end;
    font-size: 8px;
  }

  .heat-cell {
    min-width: 0;
    min-height: 34px;
  }

  .heat-cell strong {
    font-size: clamp(8px, 2.4vw, 10px);
  }

  .overlap-bars {
    grid-template-columns: 1fr;
  }

  .pipeline li {
    grid-template-columns: 1fr;
  }

  .big-insight {
    min-height: 0;
  }

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

  .keyword-map-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-row,
  .topic-meter,
  .leader-bar {
    grid-template-columns: 1fr 48px;
  }

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

  .bar-row div,
  .topic-meter div,
  .leader-bar div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .leader-bar strong,
  .post-row em {
    grid-column: 1 / -1;
  }

  .post-row {
    gap: 8px;
  }

  .post-row span,
  .post-row strong,
  .post-row em {
    min-width: 0;
  }

  .post-group header {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-detail-media,
  .generated-media.big {
    min-height: 280px;
  }

  .filter-panel {
    max-height: none;
    overflow: visible;
  }

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

  .topbar {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand,
  .search,
  .nav {
    grid-column: 1;
  }

  .brand {
    justify-self: start;
  }

  .search input {
    min-height: 44px;
    padding-left: 68px;
  }

  .nav {
    order: 3;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  min-height: calc(100vh - 200px);
  padding: clamp(40px, 6vw, 90px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.about-hero-title {
  display: flex;
  flex-direction: column;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: auto -40px -1px auto;
  width: 36vw;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(189, 67, 44, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(37, 63, 114, 0.16), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  margin: 24px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(56px, 9.5vw, 168px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.about-hero h1 em {
  font-style: italic;
  background: linear-gradient(180deg, transparent 62%, rgba(189, 67, 44, 0.22) 62%);
  padding: 0 0.05em;
}

.about-hero-foot {
  display: grid;
  gap: 24px;
  max-width: 480px;
  align-self: end;
  padding-bottom: 6px;
}

.about-hero-foot p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
}

.about-hero-foot p strong {
  font-weight: 850;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Project section ── */
.about-project {
  margin-top: clamp(56px, 8vw, 96px);
}

.about-project > header {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.about-project > header h2 {
  margin: 18px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 400;
  line-height: 0.96;
}

.about-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.about-project-block {
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.about-project-block:last-child {
  border-right: none;
}

.about-project-block .ix {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-project-block p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
}

/* ── Sources section ── */
.about-sources {
  margin-top: clamp(56px, 8vw, 96px);
}

.about-sources > header {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.about-sources > header h2 {
  margin: 18px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 400;
  line-height: 0.96;
}

.about-sources > header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

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

.about-source-card {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
  align-content: start;
}

.about-source-card .src-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}

.about-source-card h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
}

.about-source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.about-source-card .src-tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Stat band */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-stats article {
  display: grid;
  gap: 6px;
  padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.about-stats article:last-child {
  border-right: none;
}

.about-stats article span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-stats article strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.about-stats article em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Glossary section */
.about-glossary {
  margin-top: clamp(48px, 7vw, 96px);
}

.about-glossary > header {
  max-width: 880px;
}

.about-glossary > header h2 {
  margin: 18px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  line-height: 1;
}

.about-glossary > header p {
  max-width: 600px;
  margin: 0 0 clamp(20px, 3vw, 36px);
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
}

.about-glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.about-glossary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.about-glossary-item dt {
  font-size: 13px;
  color: var(--muted);
  flex: 1 1 auto;
}

.about-glossary-item dd {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 0;
}

.about-glossary-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* Thesis section */
.about-thesis {
  margin-top: clamp(48px, 7vw, 96px);
}

.about-thesis > header {
  max-width: 880px;
}

.about-thesis > header h2 {
  margin: 18px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 0.96;
}

.about-thesis > header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
}

.about-thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.78);
  box-shadow: var(--shadow);
}

.about-thesis-col p.col-kicker {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-thesis-col h3 {
  margin: 8px 0 4px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.05;
}

.about-thesis-col small {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.about-thesis-divider {
  display: grid;
  place-items: center;
  width: 56px;
}

.about-thesis-divider span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.about-rank-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-rank-list li {
  display: grid;
  grid-template-columns: 30px 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.about-rank-list li:last-child {
  border-bottom: none;
}

.about-rank-list .rank {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.about-rank-list .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--topic, var(--ink));
}

.about-rank-list .label {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-rank-list .value {
  color: var(--ink);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.about-rank-list.bars li {
  grid-template-columns: 30px 12px minmax(120px, 1fr) minmax(80px, 0.9fr);
}

.about-rank-list .bar {
  position: relative;
  display: block;
  height: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.about-rank-list .bar > span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--topic, var(--ink));
}

.about-thesis > footer {
  margin-top: 22px;
  max-width: 760px;
}

.about-thesis > footer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Pipeline band */
.about-pipeline-band {
  margin-top: clamp(56px, 8vw, 110px);
}

.about-pipeline-band > header {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.about-pipeline-band > header h2 {
  margin: 18px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 400;
  line-height: 0.96;
}

.about-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.about-pipeline-step {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  padding: clamp(20px, 2vw, 28px) clamp(16px, 1.6vw, 22px) clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.about-pipeline-step:last-child {
  border-right: none;
}

.about-pipeline-step .ix {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.about-pipeline-step .tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-pipeline-step h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 29px);
  font-weight: 400;
  line-height: 1.1;
}

.about-pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Topics chips band */
.about-topics-band {
  margin-top: clamp(56px, 8vw, 110px);
}

.about-topics-band > header {
  max-width: 880px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.about-topics-band > header h2 {
  margin: 18px 0 16px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.about-topics-band > header p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

.about-topics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.about-topic-chip {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.78);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  overflow: hidden;
}

.about-topic-chip::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--topic, var(--ink));
}

.about-topic-chip .ix {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.about-topic-chip strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.about-topic-chip em {
  color: var(--topic, var(--red));
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-topic-chip:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

/* Metrics band */
.about-metrics-band {
  margin-top: clamp(56px, 8vw, 110px);
}

.about-metrics-band > header {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.about-metrics-band > header h2 {
  margin: 18px 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.about-metrics-band > header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

.about-katex-formula {
  overflow-x: auto;
  padding: 4px 0 2px;
}

.about-katex-formula .katex-display {
  margin: 0.4em 0;
}

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

.about-metric {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
}

.about-metric .ix {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(56px, 5vw, 80px);
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}

.about-metric .tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-metric h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
}

.about-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Roster band */
.about-roster-band {
  margin-top: clamp(56px, 8vw, 110px);
}

.about-roster-band > header {
  max-width: 880px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.about-roster-band > header h2 {
  margin: 18px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.about-roster-band > header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}

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

.about-roster-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, var(--a, rgba(255, 255, 255, 0.55)) 0%, transparent 60%),
    rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.about-roster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(58, 46, 27, 0.18);
}

.about-roster-card .portrait {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--photo) center / cover no-repeat;
  border: 2px solid var(--b, var(--ink));
}

.about-roster-card .handle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.about-roster-card h3 {
  margin: 4px 0 4px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.about-roster-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Disclosure */
.about-disclosure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.about-disclosure article {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.about-disclosure article:last-child {
  border-right: none;
}

.about-disclosure article span {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-disclosure article h3 {
  margin: 14px 0 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
}

.about-disclosure article p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Closing */
.about-closing {
  display: grid;
  gap: 18px;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(40px, 6vw, 84px) 0;
  text-align: center;
}

.about-closing .kicker {
  margin: 0;
}

.about-closing h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.94;
}

.about-closing h2 em {
  font-style: italic;
  background: linear-gradient(180deg, transparent 62%, rgba(37, 63, 114, 0.18) 62%);
  padding: 0 0.06em;
}

.about-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .about-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    min-height: 0;
  }

  .about-hero-foot {
    max-width: none;
  }

  .about-project-grid {
    grid-template-columns: 1fr;
  }

  .about-project-block {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about-project-block:last-child {
    border-bottom: none;
  }

  .about-sources-grid {
    grid-template-columns: 1fr;
  }

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

  .about-glossary-grid {
    grid-template-columns: 1fr;
  }

  .about-stats article:nth-child(2) {
    border-right: none;
  }

  .about-stats article:nth-child(1),
  .about-stats article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

  .about-thesis-divider {
    width: 100%;
    height: 56px;
  }

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

  .about-pipeline-step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about-pipeline-step:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

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

  .about-metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .about-disclosure {
    grid-template-columns: 1fr;
  }

  .about-disclosure article {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about-disclosure article:last-child {
    border-bottom: none;
  }
}

@media (max-width: 680px) {
  .about-hero h1 {
    font-size: clamp(48px, 14vw, 80px);
  }

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

  .about-stats article {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about-stats article:last-child {
    border-bottom: none;
  }

  .about-pipeline-grid {
    grid-template-columns: 1fr;
  }

  .about-pipeline-step {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  .about-pipeline-step:last-child {
    border-bottom: none;
  }

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

  .about-roster-grid {
    grid-template-columns: 1fr;
  }

  .about-rank-list li {
    grid-template-columns: 26px 10px minmax(0, 1fr) auto;
    font-size: 13.5px;
  }

  .about-rank-list.bars li {
    grid-template-columns: 26px 10px minmax(0, 1fr);
  }

  .about-rank-list.bars .bar {
    grid-column: 1 / -1;
  }
}

html:has(.research-deck) {
  overflow: hidden;
}

main:has(.research-deck) {
  padding: 0;
  overflow: hidden;
}

.research-deck {
  position: relative;
  isolation: isolate;
  height: calc(100vh - 75px);
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 23, 19, 0.045) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(0deg, rgba(24, 23, 19, 0.035) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--paper);
}

.research-progress {
  position: fixed;
  top: calc(50% + 38px);
  right: clamp(14px, 2vw, 28px);
  z-index: 80;
  display: grid;
  gap: 8px;
  translate: 0 -50%;
}

.research-progress-list {
  display: grid;
  gap: 8px;
  overflow: hidden;
  max-height: calc(100vh - 200px);
}

.research-progress button:not(.research-progress-arrow) {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 252, 246, 0.78);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.research-progress button:not(.research-progress-arrow):hover,
.research-progress button.is-active {
  color: #fffaf2;
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.08);
}

.research-progress-arrow {
  display: grid;
  width: 34px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 252, 246, 0.78);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 9px;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.research-progress-arrow:hover {
  color: #fffaf2;
  background: var(--ink);
  border-color: var(--ink);
}

.research-progress-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.research-slides-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.research-slide {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 0 clamp(18px, 5vw, 72px);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, calc(var(--section-offset, 1) * 100%), 0);
  transition:
    transform 860ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 520ms ease;
  will-change: transform, opacity;
}

.research-slide.is-active {
  pointer-events: auto;
  opacity: 1;
}

.research-slide.is-before,
.research-slide.is-after {
  opacity: 0;
}

.research-slide-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(100%, 1480px);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 44px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.86), rgba(248, 243, 234, 0.7)),
    var(--paper);
  overflow: hidden;
  overscroll-behavior: contain;
}

.research-slide-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.research-slide--question .research-slide-inner {
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1fr);
  background:
    linear-gradient(90deg, rgba(24, 23, 19, 0.035), transparent 44%),
    var(--paper);
}

.research-slide--question .research-slide-inner::before {
  inset: 34px auto 34px 34px;
  width: 7px;
  background: var(--red);
}

.research-slide--scrape .research-slide-inner {
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.05fr);
  background:
    linear-gradient(135deg, rgba(37, 63, 114, 0.06), transparent 50%),
    var(--paper);
}

.research-slide--extract .research-slide-inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(400px, 0.92fr);
  background:
    linear-gradient(180deg, rgba(47, 125, 91, 0.07), transparent 46%),
    var(--paper);
}

.research-slide--result .research-slide-inner {
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1fr);
  background:
    linear-gradient(135deg, rgba(189, 67, 44, 0.07), transparent 52%),
    var(--paper);
}

.research-slide--result .research-slide-inner::before {
  inset: 34px auto 34px 34px;
  width: 7px;
  background: var(--red);
}

.research-slide--compare .research-slide-inner {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.research-slide--compare .research-slide-copy {
  grid-column: 2;
  grid-row: 1;
}

.research-slide--compare .research-slide-aside {
  grid-column: 1;
  grid-row: 1;
}

.research-slide--source .research-slide-inner {
  background:
    linear-gradient(180deg, rgba(37, 63, 114, 0.08), transparent 42%),
    var(--paper);
}

.research-slide--ranking .research-slide-inner {
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.96fr);
}

.research-slide--decision .research-slide-inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.88fr);
  background:
    linear-gradient(135deg, rgba(189, 67, 44, 0.08), transparent 46%),
    var(--paper);
}

.research-slide--topics .research-slide-inner {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
}

.research-slide--roster .research-slide-inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.86fr);
  background:
    linear-gradient(90deg, transparent, rgba(47, 125, 91, 0.08)),
    var(--paper);
}

.research-slide--modal .research-slide-inner {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
}

.research-slide--closing .research-slide-inner {
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: clamp(16px, 3vw, 36px);
  text-align: center;
}

.research-slide--closing .research-slide-copy,
.research-slide--closing .research-slide-aside {
  max-width: 980px;
}

.research-slide--closing .research-slide-aside {
  width: min(760px, 100%);
}

.research-slide-copy,
.research-slide-aside {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 520ms ease 220ms,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1) 220ms;
}

.research-slide.is-active .research-slide-copy,
.research-slide.is-active .research-slide-aside {
  opacity: 1;
  transform: translateY(0);
}

.research-slide-copy h1 {
  max-width: 960px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.research-slide-copy::after {
  content: "";
  display: block;
  width: clamp(64px, 10vw, 144px);
  height: 2px;
  margin-top: clamp(20px, 3vw, 34px);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1) 360ms;
}

.research-slide.is-active .research-slide-copy::after {
  transform: scaleX(1);
}

.research-slide--closing .research-slide-copy::after {
  margin-inline: auto;
  transform-origin: center;
}

.research-slide-text {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: clamp(22px, 3vw, 36px);
}

.research-slide-text p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.68;
}

.research-slide-aside {
  min-width: 0;
}

.research-question-card,
.research-source-card,
.research-closing-card,
.research-modal-card,
.research-compare article,
.research-decision-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.research-question-card,
.research-source-card,
.research-closing-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.8vw, 34px);
}

.research-question-card span,
.research-source-card span,
.research-closing-card span,
.research-modal-card span,
.research-compare span,
.research-decision-grid span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-question-card strong,
.research-closing-card strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}

.question-vs-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  margin-top: 4px;
}

.question-vs-pole {
  display: grid;
  gap: 10px;
}

.question-vs-pole em {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.question-vs-pole strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.question-vs-sep {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-style: italic;
  color: var(--muted);
  text-align: center;
  padding: 0 4px;
}

.research-compare,
.research-decision-grid {
  display: grid;
  gap: 14px;
}

.research-compare article,
.research-decision-grid article {
  display: grid;
  gap: 8px;
  padding: clamp(14px, 1.8vw, 22px);
}

.research-compare strong,
.research-decision-grid strong,
.research-source-card strong,
.research-modal-card strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
}

.research-compare p,
.research-decision-grid p,
.research-source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.research-source-card small {
  width: fit-content;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-rank-preview,
.research-topic-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-rank-preview li,
.research-topic-list li {
  position: relative;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  overflow: hidden;
}

.research-rank-preview li {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 70px;
  padding: 15px 18px;
}

.research-rank-preview li span {
  color: var(--topic);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.research-rank-preview li strong,
.research-topic-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-rank-preview li em,
.research-topic-list em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.research-rank-preview li i {
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  width: var(--w);
  background: var(--topic);
}

.research-topic-list {
  overflow: hidden;
}

.research-topic-list li {
  grid-template-columns: 34px 10px minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 10px 14px;
}

.research-topic-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.research-topic-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--topic);
}

.research-topic-bar {
  grid-column: 1 / -1;
  height: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.research-topic-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--topic);
}

.research-roster-mini {
  display: grid;
  gap: 12px;
}

.research-roster-mini article {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 252, 246, 0.84);
  box-shadow: var(--shadow);
}

.research-roster-mini article > span {
  width: 82px;
  height: 82px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--photo) center / cover no-repeat;
}

.research-roster-mini strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.05;
}

.research-roster-mini em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.research-modal-card {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 38px);
}

.research-modal-card strong {
  border-left: 5px solid var(--blue);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.58);
}

.research-modal-card i {
  width: fit-content;
  margin-top: 6px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fffaf2;
  background: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Compact two-column topic list inside slides (fixes slide 06 overflow) */
.research-slide .research-topic-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.research-slide .research-topic-list li {
  padding: 8px 10px;
}

.research-slide .research-topic-bar {
  display: none;
}

/* Slide 01: enlarged question card with asymmetric VS layout */
.research-question-card.big {
  padding: clamp(28px, 3.5vw, 48px);
  min-height: clamp(340px, 40vh, 460px);
}

.question-vs-asym {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  margin-top: clamp(12px, 1.5vw, 22px);
  padding-block: clamp(20px, 3vw, 36px);
  isolation: isolate;
}

.question-vs-asym .pole {
  display: grid;
  gap: 6px;
  max-width: 70%;
}

.question-vs-asym .pole-a {
  grid-row: 1;
  justify-self: start;
  text-align: left;
}

.question-vs-asym .pole-b {
  grid-row: 2;
  justify-self: end;
  text-align: right;
  margin-top: clamp(40px, 5vw, 64px);
}

.question-vs-asym .pole strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
}

.question-vs-asym .pole small {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}

.question-vs-asym .vs-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 6.6vw, 88px);
  height: clamp(64px, 6.6vw, 88px);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--red);
  z-index: 1;
  box-shadow: 0 6px 22px rgba(189, 67, 44, 0.18);
}

/* Chosen item in decision grid */
.research-decision-grid article.is-chosen {
  border-color: rgba(47, 125, 91, 0.5);
  background: rgba(47, 125, 91, 0.08);
}

.research-decision-grid article.is-chosen > span {
  color: var(--green);
}

/* Third compare item (gap) */
.research-compare-gap {
  border-color: rgba(37, 63, 114, 0.35) !important;
  background: rgba(37, 63, 114, 0.06) !important;
}

.research-compare-gap > span {
  color: var(--blue) !important;
}

/* Slide 03: source stack — adopted source + rejected source below */
.research-source-stack {
  display: grid;
  gap: 14px;
}

.research-source-rejected {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(189, 67, 44, 0.25);
  background: rgba(189, 67, 44, 0.05);
  position: relative;
}

.research-source-rejected::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  opacity: 0.6;
}

.research-source-rejected > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-source-rejected strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(189, 67, 44, 0.55);
}

.research-source-rejected p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Slide 05: forced line break and emphasis on second sentence */
.research-slide-copy h1 .title-break {
  display: block;
  color: var(--red);
}

/* Slide 08: scraping — what we collected, what we did not */
.research-scrape-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
  box-shadow: var(--shadow);
}

.research-scrape-card.big {
  gap: 18px;
  padding: clamp(28px, 3.4vw, 44px);
  min-height: clamp(360px, 50vh, 520px);
  align-content: center;
}

.research-scrape-card > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.scrape-list li {
  display: grid;
  grid-template-columns: 32px minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.scrape-list li::before {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  line-height: 1;
}

.scrape-list li.ok::before {
  content: "✓";
  color: var(--green);
}

.scrape-list li.no::before {
  content: "✕";
  color: var(--red);
}

.scrape-list li.no {
  background: rgba(189, 67, 44, 0.06);
  border-color: rgba(189, 67, 44, 0.22);
}

.scrape-list li b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--ink);
  line-height: 1.1;
}

.scrape-list li em {
  font-style: normal;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
}

/* Slide 09: extraction pipeline */
.research-pipeline-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
}

.research-pipeline-card > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pipe-node {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.pipe-node b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 400;
  color: var(--ink);
}

.pipe-node i {
  font-style: normal;
  font-size: 11px;
  color: var(--green);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pipe-node em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.pipe-merge {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pipe-merge b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 400;
}

.pipe-merge em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 252, 246, 0.7);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Slide 10: result data card — under/over rappresentation */
.research-result-card {
  display: grid;
  gap: 12px;
}

.result-block {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.result-block.under::before,
.result-block.over::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
}

.result-block.under::before { background: var(--red); }
.result-block.over::before { background: var(--blue); }

.result-tag {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-block.under .result-tag { color: var(--red); }
.result-block.over .result-tag { color: var(--blue); }

.result-topic {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.result-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 28px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-cell {
  display: grid;
  gap: 4px;
}

.rank-cell em {
  font-style: normal;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rank-cell.youth b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: var(--green);
}

.rank-cell.youth.low b {
  color: var(--muted);
}

.rank-cell.youth small {
  font-size: 12px;
  font-weight: 850;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rank-arrow {
  font-size: 26px;
  text-align: center;
  color: var(--muted);
  line-height: 1;
}

.result-block.under .rank-arrow { color: var(--red); }
.result-block.over .rank-arrow { color: var(--blue); }

.rank-stack {
  display: grid;
  gap: 4px;
}

.rank-stack span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.rank-stack span i {
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  color: var(--ink);
}

.rank-stack span b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 22px);
}

.result-block.under .rank-stack span b { color: var(--red); }
.result-block.over .rank-stack span b { color: var(--blue); }
.rank-cell.pol.high .rank-stack span { background: rgba(37, 63, 114, 0.06); }

/* Slide 11: intermission — black chapter break */
.research-slide--intermission .research-slide-inner {
  grid-template-columns: 1fr;
  background: var(--ink);
  place-items: center;
  align-content: center;
  text-align: center;
  border-bottom-color: rgba(255, 250, 242, 0.12);
}

.research-slide--intermission .research-slide-inner::before {
  display: none;
}

.research-slide--intermission .research-slide-copy {
  width: 100%;
  max-width: 980px;
}

.research-slide--intermission .kicker {
  display: none;
}

.research-slide--intermission h1 {
  margin: 0 auto;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 1.02;
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  max-width: none;
}

.research-slide--intermission .research-slide-copy::after {
  background: var(--paper);
  margin-inline: auto;
  transform-origin: center;
  height: 2px;
  width: clamp(80px, 10vw, 160px);
}

.research-slide--intermission .research-slide-text {
  max-width: 600px;
  margin-inline: auto;
}

.research-slide--intermission .research-slide-text p {
  color: rgba(255, 252, 246, 0.55);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 850;
  font-family: "Inter", system-ui, sans-serif;
}

.research-slide--intermission .research-slide-aside {
  display: none;
}

/* === Slides 13-18: Metriche di allineamento === */

.research-slide--metrics-src .research-slide-inner {
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1fr);
  background:
    linear-gradient(135deg, rgba(189, 67, 44, 0.06), transparent 48%),
    var(--paper);
}

.research-slide--metrics-rank .research-slide-inner {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
}

.research-slide--metrics-cr .research-slide-inner {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  background:
    linear-gradient(180deg, rgba(37, 63, 114, 0.06), transparent 44%),
    var(--paper);
}

.research-slide--metrics-sens .research-slide-inner {
  grid-template-columns: minmax(0, 0.82fr) minmax(400px, 1fr);
  background:
    linear-gradient(180deg, rgba(47, 125, 91, 0.06), transparent 44%),
    var(--paper);
}

.research-slide--metrics-trio .research-slide-inner {
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
}

.research-slide--metrics-boot .research-slide-inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.9fr);
  background:
    linear-gradient(135deg, rgba(37, 63, 114, 0.06), transparent 50%),
    var(--paper);
}

/* Data source compare cards — 2×2 grid: cards top row, formulas bottom row */
.research-scale-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.research-scale-compare article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.research-scale-compare article span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-scale-compare article strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
}

.research-scale-compare article p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Standalone formula blocks (bottom row of compare grid) */
.research-formula-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: var(--shadow);
}

.research-formula-block > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-formula-block .katex-display {
  margin: 0;
  overflow-x: visible;
}

/* Pipeline strip */
.research-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.research-pipe-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.research-pipe-step span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-pipe-step strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.2;
}

.research-pipe-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.research-pipe-step--accent {
  border-color: var(--red);
  border-left-width: 3px;
  background: rgba(189, 67, 44, 0.05);
}

.research-pipe-step--accent span {
  color: var(--red);
}

.research-pipe-arrow {
  align-self: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--red);
  font-style: italic;
  padding: 0 4px;
}

/* Likert scale rubric */
.research-likert-scale {
  display: grid;
  gap: 12px;
}

.research-likert-label {
  margin: 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.research-likert-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.research-likert-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
}

.research-likert-step .step-n {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.research-likert-step .step-t {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.research-likert-step--active {
  background: var(--red);
  border-color: var(--red);
}

.research-likert-step--active .step-n,
.research-likert-step--active .step-t {
  color: rgba(255, 250, 242, 0.92);
}

.research-likert-step--thr {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: -4px;
}

/* Bullet points list */
.research-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.research-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.55;
}

.research-points li::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--red);
}

.research-points strong {
  color: var(--ink);
}

/* Sensitivity table */
.research-sens-table {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(13px, 1.05vw, 16px);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.research-sens-table th,
.research-sens-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.research-sens-table th:first-child,
.research-sens-table td:first-child {
  text-align: left;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
}

.research-sens-table thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}

.research-sens-table tbody tr:last-child td {
  border-bottom: 1px solid var(--ink);
}

.research-sens-table tfoot td {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0;
  padding-top: 10px;
}

/* Three-metric cards */
.research-metrics-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 100%;
}

.research-metrics-trio article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.research-metrics-trio .metric-sym {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  color: var(--red);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.research-metrics-trio > article > span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.research-metrics-trio strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.research-metrics-trio p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.research-metrics-trio em {
  margin-top: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* Jaccard J₃/J₅ symbol */
.metric-sym--j {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.0;
  min-height: auto;
  font-style: italic;
}

.metric-sym--j span {
  display: block;
  line-height: 1.05;
}

.metric-sym--j sub {
  font-style: normal;
  font-size: 0.52em;
  bottom: -0.06em;
}

/* Metric card formula popup */
.has-formula-popup {
  position: relative;
  cursor: default;
}

.metric-formula-popup {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: auto;
  min-height: calc(100% + 2px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(14px, 1.6vw, 22px);
  background: rgba(255, 252, 246, 0.98);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.has-formula-popup:hover .metric-formula-popup {
  opacity: 1;
  pointer-events: auto;
}

.metric-formula-popup > span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-formula-popup .katex-display {
  margin: 0;
  overflow-x: visible;
}

/* Per-metric colour classes — Spearman blue, Kendall green, Jaccard red */
.research-metrics-trio .metric-sym { color: var(--ink); }
.research-metrics-trio em { color: var(--muted); }

.metric-card--blue {
  border-top: 3px solid var(--blue);
  background: rgba(37, 63, 114, 0.04);
}
.metric-card--blue .metric-sym,
.metric-card--blue > em { color: var(--blue); }
.metric-card--blue .metric-formula-popup { border-top-color: var(--blue); }
.metric-card--blue .metric-formula-popup > span { color: var(--blue); }

.metric-card--green {
  border-top: 3px solid var(--green);
  background: rgba(47, 125, 91, 0.04);
}
.metric-card--green .metric-sym,
.metric-card--green > em { color: var(--green); }
.metric-card--green .metric-formula-popup { border-top-color: var(--green); }
.metric-card--green .metric-formula-popup > span { color: var(--green); }

.metric-card--red {
  border-top: 3px solid var(--red);
  background: rgba(189, 67, 44, 0.04);
}
.metric-card--red .metric-sym,
.metric-card--red > em { color: var(--red); }
.metric-card--red .metric-formula-popup { border-top-color: var(--red); }
.metric-card--red .metric-formula-popup > span { color: var(--red); }

/* Bootstrap confidence bands */
.research-cband-card {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.research-cband-card > span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.research-cband-card > p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.research-cbands {
  display: grid;
  gap: 14px;
}

.research-cband {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.cband-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 400;
}

.cband-track {
  position: relative;
  height: 28px;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.cband-zero {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink);
  opacity: 0.4;
}

.cband-band {
  position: absolute;
  top: 5px;
  bottom: 5px;
  background: rgba(189, 67, 44, 0.22);
  border-radius: 3px;
}

.cband-point {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--paper, #fffaf2);
}

.cband-val {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cband-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Phase placeholder slides (Fase 2, 3, 4) */
.research-phase-wip {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
  max-width: 480px;
}

.research-phase-wip span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-phase-wip strong {
  display: block;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--ink);
}

.research-phase-wip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =====================================================================
   INTERVENTO 4 — Results and conclusion slides
   ===================================================================== */

.research-slide--int4-table .research-slide-inner,
.research-slide--int4-forest .research-slide-inner,
.research-slide--int4-slope .research-slide-inner,
.research-slide--int4-heat .research-slide-inner,
.research-slide--int4-case .research-slide-inner,
.research-slide--int4-heat-notes .research-slide-inner,
.research-slide--int4-limits .research-slide-inner,
.research-slide--int4-close .research-slide-inner {
  grid-template-columns: minmax(310px, 0.58fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3vw, 48px);
  background:
    linear-gradient(135deg, rgba(37, 63, 114, 0.055), transparent 48%),
    var(--paper);
}

.research-slide--int4-heat .research-slide-inner,
.research-slide--int4-heat-notes .research-slide-inner {
  grid-template-columns: minmax(300px, 0.46fr) minmax(0, 1.28fr);
}

.research-slide--int4-slope .research-slide-inner {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1.44fr);
}

.research-slide--int4-close .research-slide-inner {
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(189, 67, 44, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(24, 23, 19, 0.96), rgba(24, 23, 19, 0.9)),
    var(--ink);
}

.research-slide--int4-close .research-slide-aside {
  display: none;
}

.research-slide--int4-close .research-slide-copy {
  width: 100%;
  max-width: min(1120px, 92vw);
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  justify-items: center;
}

.research-slide--int4-close .kicker {
  color: rgba(255, 252, 246, 0.55);
  letter-spacing: 0.32em;
}

.research-slide--int4-close .research-slide-copy h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 72px);
  line-height: 1.08;
  color: var(--paper);
  max-width: 1040px;
}

.research-slide--int4-close .research-slide-copy::after {
  display: none;
}

.research-slide--int4-close .research-slide-text {
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
  justify-items: center;
  max-width: 760px;
}

.research-slide--int4-close .int4-close-question {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.4;
  color: rgba(255, 252, 246, 0.55);
  position: relative;
  padding-top: 18px;
}

.research-slide--int4-close .int4-close-question::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 5vw, 64px);
  height: 1px;
  background: rgba(255, 252, 246, 0.3);
}

.research-slide--int4-close .int4-close-answer {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(88px, 11vw, 170px);
  line-height: 0.9;
  color: var(--red);
  letter-spacing: -0.02em;
}

.research-slide--int4-close .int4-close-detail {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 850;
  color: rgba(255, 252, 246, 0.78);
}

.research-slide--int4-table .research-slide-copy h1,
.research-slide--int4-forest .research-slide-copy h1,
.research-slide--int4-slope .research-slide-copy h1,
.research-slide--int4-heat .research-slide-copy h1,
.research-slide--int4-case .research-slide-copy h1,
.research-slide--int4-heat-notes .research-slide-copy h1,
.research-slide--int4-limits .research-slide-copy h1 {
  font-size: clamp(27px, 2.45vw, 40px);
}

.research-slide--int4-table .research-slide-text p,
.research-slide--int4-forest .research-slide-text p,
.research-slide--int4-slope .research-slide-text p,
.research-slide--int4-heat .research-slide-text p,
.research-slide--int4-case .research-slide-text p,
.research-slide--int4-heat-notes .research-slide-text p,
.research-slide--int4-limits .research-slide-text p {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.6;
}

.int4-alignment-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

.int4-alignment-table th,
.int4-alignment-table td {
  padding: clamp(12px, 1.35vw, 18px);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.int4-alignment-table thead th {
  color: #fffaf2;
  background: #35332e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.int4-alignment-table thead span {
  color: rgba(255, 250, 242, 0.6);
  font-weight: 650;
}

.int4-alignment-table tbody tr {
  background: linear-gradient(90deg, var(--soft), rgba(255, 252, 246, 0.88) 34%);
}

.int4-alignment-table tbody td:first-child {
  border-left: 5px solid var(--profile);
}

.int4-alignment-table strong {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 400;
  line-height: 1.05;
}

.int4-alignment-table td span,
.int4-alignment-table em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.int4-alignment-table b {
  color: var(--ink);
  font-weight: 900;
}

.int4-forest-card,
.int4-case-card,
.int4-close-card {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
}

.int4-forest-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 30px);
  min-height: clamp(390px, 48vh, 520px);
  align-content: center;
}

.int4-forest-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.int4-forest-card header span,
.int4-forest-card header strong {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.int4-forest-card header span { color: var(--red); }
.int4-forest-card header strong { color: var(--muted); }

.int4-forest-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.int4-forest-panel h3,
.int4-slope-panel h3,
.int4-close-card h3 {
  margin: 0 0 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
}

.int4-forest-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: clamp(12px, 1.4vw, 20px);
}

.int4-forest-panel--kendall {
  border-left: 1px solid var(--line);
}

.int4-forest-panel svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.int4-forest-panel .zero {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.55;
}

.int4-forest-panel .axis {
  stroke: var(--line);
  stroke-width: 1.5;
}

.int4-forest-panel text {
  fill: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
}

.int4-forest-panel .name {
  fill: var(--ink);
  font-weight: 800;
}

.int4-forest-panel .value,
.int4-forest-panel .tick {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.int4-forest-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.int4-forest-values span {
  display: grid;
  gap: 2px;
  border-top: 3px solid var(--profile);
  padding: 7px 8px;
  background: rgba(255, 252, 246, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.int4-forest-values b {
  color: var(--ink);
  font-size: 12px;
}

.int4-forest-values em {
  font-style: normal;
}

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

.int4-slope-panel {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.int4-slope-panel h3 {
  margin: 0;
  padding: 12px 14px;
  color: #fffaf2;
  background: var(--profile);
}

.int4-slope-panel svg {
  width: 100%;
  height: auto;
  display: block;
  padding: 8px;
}

.int4-slope-panel text {
  font-family: "Inter", system-ui, sans-serif;
  fill: var(--muted);
  font-size: 10.5px;
}

.int4-slope-panel .axis-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.int4-slope-panel .axis-line {
  stroke: var(--line);
  stroke-width: 1.2;
}

.int4-slope-panel .topic.focus {
  fill: var(--ink);
  font-weight: 850;
}

.int4-heatmap {
  display: grid;
  grid-template-columns: 96px repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
  background: rgba(255, 252, 246, 0.86);
  box-shadow: var(--shadow);
}

.int4-heat-corner,
.int4-heat-rank,
.int4-heat-label,
.int4-heat-side,
.int4-heat-cell {
  display: grid;
  align-items: center;
}

.int4-heat-corner,
.int4-heat-label,
.int4-heat-side {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.int4-heat-rank {
  min-height: 24px;
  justify-items: center;
  color: rgba(24, 23, 19, 0.45);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.int4-heat-label {
  justify-content: start;
  min-width: 54px;
  min-height: 72px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.15;
}

.int4-heat-corner.small {
  justify-items: start;
}

.int4-heat-side {
  justify-content: end;
  min-height: 52px;
  text-align: right;
  color: var(--ink);
  border-right: 5px solid var(--profile);
  padding-right: 10px;
}

.int4-heat-cell {
  position: relative;
  display: grid;
  min-width: 50px;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(24, 23, 19, 0.08);
  background: var(--cell);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.int4-heat-cell strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.int4-heat-cell.is-highlight {
  border-color: var(--profile);
  box-shadow: inset 0 0 0 2px var(--profile);
}

.int4-heat-cell em {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  color: #fffaf2;
  background: var(--profile);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.int4-case-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 30px);
}

.int4-case-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.int4-case-heading {
  display: grid;
  gap: 4px;
}

.int4-case-eyebrow {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.int4-case-topic {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.int4-case-youth {
  display: grid;
  gap: 2px;
  text-align: right;
}

.int4-case-youth em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.int4-case-youth b {
  font-weight: 900;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.int4-case-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.int4-case-chart .case-axis {
  stroke: var(--ink);
  stroke-width: 1.2;
  fill: none;
}

.int4-case-chart .case-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  fill: none;
  opacity: 0.7;
}

.int4-case-chart text {
  font-family: "Inter", system-ui, sans-serif;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}

.int4-case-chart .case-ytick {
  font-size: 14px;
  font-weight: 700;
}

.int4-case-chart .case-bar {
  opacity: 0.94;
}

.int4-case-chart .case-whisker,
.int4-case-chart .case-whisker-cap {
  stroke: var(--ink);
  stroke-width: 2.6;
  fill: none;
}

.int4-case-chart .case-bar-value {
  fill: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.int4-case-chart .case-bar-ci {
  font-size: 13px;
  fill: var(--muted);
  font-weight: 600;
}

.int4-case-chart .case-bar-name {
  fill: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.int4-case-chart .case-bar-meta {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.int4-case-chart .case-axis {
  stroke-width: 2;
}

.int4-case-chart .case-grid {
  stroke-width: 1.4;
}

.int4-case-warning {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(189, 67, 44, 0.25);
  border-left: 3px solid var(--red);
  background: rgba(189, 67, 44, 0.05);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.int4-case-warning strong {
  color: var(--red);
  font-weight: 900;
  margin-right: 4px;
}

/* Legacy decorations no longer used by phase4CaseBars (preserved for any other consumer) */
.int4-case-marker {
  position: absolute;
  left: 28px;
  right: 238px;
  bottom: 10px;
  height: 1px;
  border-top: 1px dashed var(--red);
}

.int4-case-marker span {
  position: absolute;
  right: 0;
  bottom: 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.int4-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: #8b1a1a;
  background: rgba(189, 67, 44, 0.08);
  border-left: 4px solid var(--red);
  font-size: 13px;
  line-height: 1.45;
}

.int4-heat-notes-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: stretch;
}

.int4-profile-notes {
  display: grid;
  gap: 10px;
  align-content: center;
}

.int4-profile-notes p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.int4-profile-notes strong {
  color: var(--ink);
}

.int4-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.int4-limit-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.int4-limit-grid span {
  color: var(--red);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 0.9;
}

.int4-limit-grid strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.1;
}

.int4-limit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.int4-close-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 34px);
  background: rgba(255, 252, 246, 0.95);
}

.int4-close-card section {
  display: grid;
  gap: 8px;
}

.int4-close-card h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.int4-close-card p {
  margin: 0;
  padding: 9px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(24, 23, 19, 0.08);
  font-size: 14px;
  line-height: 1.45;
}

.int4-close-card > strong {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  text-align: center;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
}

@media (max-width: 1000px) {
  .research-slide--int4-table .research-slide-inner,
  .research-slide--int4-forest .research-slide-inner,
  .research-slide--int4-slope .research-slide-inner,
  .research-slide--int4-heat .research-slide-inner,
  .research-slide--int4-case .research-slide-inner,
  .research-slide--int4-heat-notes .research-slide-inner,
  .research-slide--int4-limits .research-slide-inner,
  .research-slide--int4-close .research-slide-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    overflow-y: auto;
  }

  .int4-forest-panels,
  .int4-slope-grid,
  .int4-limit-grid,
  .int4-close-card,
  .int4-heat-notes-wrap,
  .int4-case-card {
    grid-template-columns: 1fr;
  }

  .int4-heatmap {
    min-width: 880px;
  }

  .research-slide--int4-heat .research-slide-aside,
  .research-slide--int4-heat-notes .research-slide-aside {
    overflow-x: auto;
  }

  .int4-case-ranks {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .int4-case-marker {
    right: 28px;
  }
}

@media (max-width: 720px) {
  .int4-alignment-table th,
  .int4-alignment-table td {
    padding: 9px 8px;
    font-size: 12px;
  }

  .int4-alignment-table strong {
    font-size: 16px;
  }

  .int4-case-row {
    grid-template-columns: 66px minmax(0, 1fr) 48px;
  }

  .int4-case-row em {
    grid-column: 2 / -1;
  }

  .int4-case-marker {
    display: none;
  }
}

/* Team slide */
.research-slide--team .research-slide-inner {
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  align-items: center;
}

.research-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(14px, 1.8vw, 22px) clamp(12px, 1.4vw, 18px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
  gap: 0;
}

.team-photo {
  width: clamp(68px, 8vw, 108px);
  height: clamp(68px, 8vw, 108px);
  border-radius: 50%;
  background-image: var(--photo), linear-gradient(135deg, var(--paper-2), var(--paper));
  background-size: cover;
  background-position: center top;
  border: 2px solid var(--line);
  margin-bottom: clamp(10px, 1.2vw, 14px);
  flex-shrink: 0;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.team-member h3 {
  margin: 0;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.team-member blockquote {
  margin: 0;
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.team-member small {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .research-slide {
    padding: 0 clamp(16px, 4vw, 32px);
  }

  .research-slide-inner {
    grid-template-columns: 1fr;
    padding-block: clamp(40px, 8vw, 72px);
  }

  .research-slide--compare .research-slide-copy,
  .research-slide--compare .research-slide-aside {
    grid-column: auto;
    grid-row: auto;
  }

  .research-progress {
    right: 10px;
  }
}

@media (max-width: 720px) {
  html:has(.research-deck) {
    overflow: hidden;
  }

  .research-deck {
    height: calc(100vh - 128px);
    min-height: 560px;
  }

  .research-progress {
    display: none;
  }

  .research-slide-inner {
    padding-inline: 2px;
    gap: 18px;
  }

  .research-slide-copy h1 {
    font-size: clamp(22px, 7vw, 34px);
  }

  .research-slide-text {
    gap: 10px;
    margin-top: 16px;
  }

  .research-slide-text p {
    font-size: 14px;
    line-height: 1.5;
  }

  .research-rank-preview li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .research-topic-list {
    gap: 6px;
  }

  .research-topic-list li {
    padding: 7px 10px;
    font-size: 12px;
  }

  .research-roster-mini article {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .research-roster-mini article > span {
    width: 68px;
    height: 68px;
  }

  .question-vs-asym .pole {
    max-width: 78%;
  }

  .question-vs-asym .pole-b {
    margin-top: 30px;
  }

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

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

  .scrape-list li {
    grid-template-columns: 22px 100px minmax(0, 1fr);
  }

  .research-slide--intermission h1 {
    font-size: clamp(36px, 9vw, 64px);
  }

  .research-slide--team .research-slide-inner {
    grid-template-columns: 1fr;
  }

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

  .team-photo {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-slide,
  .research-slide-copy,
  .research-slide-aside {
    transition-duration: 1ms;
  }
}

/* =====================================================================
   INTERVENTO 2 — Pipeline slides (visual-first horizontal layouts)
   ===================================================================== */

.research-slide--pipe-overview .research-slide-inner,
.research-slide--pipe-scrape .research-slide-inner,
.research-slide--pipe-extract .research-slide-inner,
.research-slide--pipe-scoring .research-slide-inner,
.research-slide--pipe-likert .research-slide-inner,
.research-slide--pipe-valid .research-slide-inner,
.research-slide--pipe-metrics .research-slide-inner,
.research-slide--pipe-choice .research-slide-inner,
.research-slide--pipe-limits .research-slide-inner,
.research-slide--pipe-close .research-slide-inner {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
  align-content: center;
  padding: clamp(40px, 5vw, 80px) clamp(32px, 5vw, 72px);
  width: min(100%, 1480px);
}

.research-slide--pipe-overview .research-slide-aside,
.research-slide--pipe-scrape .research-slide-aside,
.research-slide--pipe-extract .research-slide-aside,
.research-slide--pipe-scoring .research-slide-aside,
.research-slide--pipe-likert .research-slide-aside,
.research-slide--pipe-valid .research-slide-aside,
.research-slide--pipe-metrics .research-slide-aside,
.research-slide--pipe-choice .research-slide-aside,
.research-slide--pipe-limits .research-slide-aside,
.research-slide--pipe-close .research-slide-aside {
  display: block;
}

.research-slide--pipe-overview .research-slide-copy,
.research-slide--pipe-scrape .research-slide-copy,
.research-slide--pipe-extract .research-slide-copy,
.research-slide--pipe-scoring .research-slide-copy,
.research-slide--pipe-likert .research-slide-copy,
.research-slide--pipe-valid .research-slide-copy,
.research-slide--pipe-metrics .research-slide-copy,
.research-slide--pipe-choice .research-slide-copy,
.research-slide--pipe-limits .research-slide-copy,
.research-slide--pipe-close .research-slide-copy {
  max-width: none;
}

.research-slide--pipe-overview .research-slide-copy h1,
.research-slide--pipe-scrape .research-slide-copy h1,
.research-slide--pipe-extract .research-slide-copy h1,
.research-slide--pipe-scoring .research-slide-copy h1,
.research-slide--pipe-likert .research-slide-copy h1,
.research-slide--pipe-valid .research-slide-copy h1,
.research-slide--pipe-metrics .research-slide-copy h1,
.research-slide--pipe-choice .research-slide-copy h1,
.research-slide--pipe-limits .research-slide-copy h1,
.research-slide--pipe-close .research-slide-copy h1 {
  font-size: clamp(30px, 3vw, 48px);
  max-width: 1200px;
  line-height: 1.15;
}

.research-slide--pipe-overview .research-slide-copy::after,
.research-slide--pipe-scrape .research-slide-copy::after,
.research-slide--pipe-extract .research-slide-copy::after,
.research-slide--pipe-scoring .research-slide-copy::after,
.research-slide--pipe-likert .research-slide-copy::after,
.research-slide--pipe-valid .research-slide-copy::after,
.research-slide--pipe-metrics .research-slide-copy::after,
.research-slide--pipe-choice .research-slide-copy::after,
.research-slide--pipe-limits .research-slide-copy::after,
.research-slide--pipe-close .research-slide-copy::after {
  margin-top: clamp(14px, 2vw, 22px);
  width: clamp(80px, 12vw, 160px);
}

.research-slide--pipe-overview .research-slide-text,
.research-slide--pipe-scrape .research-slide-text,
.research-slide--pipe-extract .research-slide-text,
.research-slide--pipe-scoring .research-slide-text,
.research-slide--pipe-likert .research-slide-text,
.research-slide--pipe-valid .research-slide-text,
.research-slide--pipe-metrics .research-slide-text,
.research-slide--pipe-choice .research-slide-text,
.research-slide--pipe-limits .research-slide-text,
.research-slide--pipe-close .research-slide-text {
  display: none;
}

.research-slide--pipe-overview .research-slide-aside,
.research-slide--pipe-scrape .research-slide-aside,
.research-slide--pipe-extract .research-slide-aside,
.research-slide--pipe-scoring .research-slide-aside,
.research-slide--pipe-likert .research-slide-aside,
.research-slide--pipe-valid .research-slide-aside,
.research-slide--pipe-metrics .research-slide-aside,
.research-slide--pipe-choice .research-slide-aside,
.research-slide--pipe-limits .research-slide-aside,
.research-slide--pipe-close .research-slide-aside {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ----- 01 Pipeline overview: horizontal 5-stage bar with fork ------- */
.int2-pipeline-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
}
.int2-stage {
  flex: 1 1 0;
  display: grid;
  gap: 8px;
  padding: 18px 14px;
  text-align: center;
  align-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.int2-stage span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.int2-stage b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}
.int2-stage em {
  font-style: normal;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--muted);
  line-height: 1.45;
}
.int2-stage--key {
  background: var(--ink);
  border-color: var(--ink);
}
.int2-stage--key span { color: rgba(255, 252, 246, 0.6); }
.int2-stage--key em { color: rgba(255, 252, 246, 0.7); }
.int2-stage--key b { color: var(--paper); }

.int2-arrow {
  flex: 0 0 auto;
  min-width: 32px;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--accent);
  font-weight: 200;
}
.int2-arrow--fork {
  flex-direction: column;
  display: flex;
  justify-content: space-around;
  font-size: 22px;
  gap: 4px;
}

.int2-stage-stack {
  flex: 1.05 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.int2-stage-stack .int2-stage {
  flex: 1 1 50%;
  padding: 12px 12px;
}
.int2-stage-stack .int2-stage b { font-size: clamp(15px, 1.35vw, 19px); }

/* ----- 02 Scraping: code block + meta cards ----- */
.int2-scrape-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}
.int2-code-block {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.int2-code-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.int2-code-header span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: rgba(255, 252, 246, 0.6);
  text-transform: uppercase;
}
.int2-code-header b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
}
.int2-code-block pre {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(255, 252, 246, 0.92);
}
.int2-code-block pre .k { color: #ffd58a; }
.int2-meta-stack { display: grid; gap: 10px; align-content: stretch; }
.int2-meta-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.int2-meta-card {
  padding: 18px 20px;
  gap: 6px;
}
.int2-meta-card b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 22px);
}
.int2-meta-card em {
  font-style: normal;
  color: var(--muted);
  font-size: clamp(13.5px, 1vw, 15.5px);
  line-height: 1.5;
}
.int2-meta-card.ok { border-left: 4px solid var(--green); }
.int2-meta-card.no {
  border-left: 4px solid var(--red);
  opacity: 0.78;
}

/* ----- 03 OCR/ASR merge: 3 inputs → unified text ----- */
.int2-merge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: stretch;
}
.int2-merge-inputs { display: grid; gap: 10px; }
.int2-input-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.int2-input-row .int2-tag {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 850;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.int2-input-row b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--ink);
}
.int2-input-row em {
  font-style: normal;
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(13.5px, 1vw, 15.5px);
}
.int2-merge-arrow {
  display: grid;
  place-items: center;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--accent);
  font-weight: 200;
}
.int2-merge-output {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 32px);
  text-align: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.int2-merge-output span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: rgba(255, 252, 246, 0.6);
  text-transform: uppercase;
}
.int2-merge-output b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
}
.int2-merge-output em {
  font-style: normal;
  color: rgba(255, 252, 246, 0.78);
  font-size: clamp(13.5px, 1vw, 15.5px);
}

/* ----- 04 Scoring LLM: prompt → engine → JSON ----- */
.int2-scoring-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: stretch;
}
.int2-flow-step {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}
.int2-flow-step span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.int2-flow-step b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--ink);
}
.int2-flow-step p {
  margin: 0;
  font-size: clamp(13.5px, 1vw, 15.5px);
  color: var(--muted);
  line-height: 1.55;
}
.int2-flow-step small {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.int2-flow-step--key {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.int2-flow-step--key span { color: rgba(255, 252, 246, 0.6); }
.int2-flow-step--key b { color: var(--paper); }
.int2-flow-step--key p,
.int2-flow-step--key small { color: rgba(255, 252, 246, 0.78); }
.int2-flow-step pre {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.6;
  color: var(--ink);
}
.int2-code-block pre {
  font-size: clamp(13.5px, 1.1vw, 18px);
}

/* ----- 05 Likert: horizontal 5-step bar with progressive fill ----- */
.int2-likert-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.int2-likert-step {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 32px) 14px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  position: relative;
}
.int2-likert-step b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  color: var(--ink);
}
.int2-likert-step em {
  font-style: normal;
  font-size: clamp(13.5px, 1.05vw, 16px);
  color: var(--muted);
  line-height: 1.5;
}
.int2-likert--1 { background: rgba(110, 110, 110, 0.08); }
.int2-likert--2 { background: rgba(110, 110, 110, 0.14); }
.int2-likert--3 {
  background: rgba(189, 67, 44, 0.16);
  border-color: rgba(189, 67, 44, 0.45);
}
.int2-likert--4 {
  background: rgba(189, 67, 44, 0.32);
  border-color: rgba(189, 67, 44, 0.6);
}
.int2-likert--5 {
  background: rgba(189, 67, 44, 0.5);
  border-color: rgba(189, 67, 44, 0.85);
}
.int2-likert--3 b,
.int2-likert--4 b,
.int2-likert--5 b { color: var(--ink); }
.int2-likert-caption {
  margin: 22px 0 0;
  text-align: center;
  font-size: clamp(14px, 1.1vw, 17px);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.int2-prompt-sketch {
  margin-top: clamp(28px, 3vw, 44px);
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.78);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.int2-prompt-sketch header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.int2-prompt-sketch header span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.int2-prompt-sketch header em {
  font-style: normal;
  font-size: 11.5px;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  color: var(--muted);
}

.int2-prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.int2-prompt-grid article {
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
  border-top: 2px solid var(--ink);
}

.int2-prompt-grid small {
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.int2-prompt-grid p {
  margin: 0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  color: var(--ink);
}

.int2-prompt-grid strong {
  color: var(--red);
  font-weight: 850;
}

.int2-prompt-out {
  display: block;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: clamp(11.5px, 0.92vw, 13.5px);
  line-height: 1.5;
  padding: 12px 16px;
  background: rgba(24, 23, 19, 0.06);
  border-left: 3px solid var(--red);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .int2-prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- 06 Validation setup: humans ↔ posts grid ↔ models ----- */
.int2-valid-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: stretch;
}
.int2-valid-side {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  align-content: center;
  text-align: center;
}
.int2-valid-side span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.int2-valid-side b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 28px);
  color: var(--ink);
}
.int2-valid-side em {
  font-style: normal;
  font-size: clamp(13.5px, 1vw, 15.5px);
  color: var(--muted);
  line-height: 1.5;
}
.int2-humans-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.int2-humans-row i {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.85;
}
.int2-model-list {
  display: grid;
  gap: 6px;
}
.int2-model-list b {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
}
.int2-model-list b.is-chosen {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.int2-valid-center {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.int2-grid-30 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 0 auto;
  max-width: 100%;
}
.int2-grid-30 i {
  aspect-ratio: 1;
  background: rgba(255, 252, 246, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.22);
}
.int2-grid-30 i.row-end { background: rgba(255, 252, 246, 0.28); }
.int2-valid-center strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 32px);
}
.int2-valid-center em {
  font-style: normal;
  color: rgba(255, 252, 246, 0.78);
  font-size: clamp(12.5px, 1vw, 14px);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

/* ----- 07 Validation metrics: 3 grouped columns ----- */
.int2-metric-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}
.int2-metric-group {
  display: grid;
  gap: 12px;
  align-content: start;
}
.int2-group-head {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.int2-metric-row {
  display: grid;
  gap: 10px;
}
.int2-metric-row article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}
.int2-metric-row article {
  padding: 20px 22px;
  gap: 8px;
}
.int2-metric-row article b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--ink);
}
.int2-metric-row article em {
  font-style: normal;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--muted);
  line-height: 1.55;
}
.int2-metric-row article small {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(189, 67, 44, 0.35);
  font-size: clamp(12.5px, 0.92vw, 14px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
}
.int2-metric-row article small::before {
  content: "→ ";
  color: var(--red);
  font-weight: 900;
}

/* ----- 08 + 09 Bars chart ----- */
.int2-bars-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
}
.int2-bars-card header span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}
.int2-bars { display: grid; gap: 12px; }
.int2-bar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr 80px;
  align-items: center;
  gap: 18px;
}
.int2-bar label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(14px, 1.15vw, 17px);
  color: var(--ink);
  font-weight: 700;
}
.int2-bar-track {
  position: relative;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  overflow: hidden;
}
.int2-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(110, 110, 110, 0.55), rgba(110, 110, 110, 0.7));
}
.int2-bar--win .int2-bar-fill {
  background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 70%, var(--ink)));
}
.int2-bar--lose .int2-bar-fill {
  background: linear-gradient(90deg, rgba(110, 110, 110, 0.4), rgba(110, 110, 110, 0.55));
  opacity: 0.65;
}
.int2-bar--warn .int2-bar-fill {
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 70%, var(--ink)));
}
.int2-bar strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--ink);
  text-align: right;
}
.int2-bar-mean-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.int2-bars-card footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.int2-bars-card footer > div {
  display: grid;
  grid-template-columns: minmax(120px, 160px) repeat(3, 1fr);
  align-items: center;
  gap: 10px;
}
.int2-bars-card footer span {
  font-size: clamp(11.5px, 0.85vw, 13px);
  font-weight: 850;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.int2-bars-card footer b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink);
  font-weight: 700;
}

/* ----- 08 Model choice: 3 mini bar charts side-by-side ----- */
.int2-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}
.int2-mini-bars {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow);
}
.int2-mini-bars > header {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.int2-mini-bars > header span {
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}
.int2-mini-bars > header b {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--muted);
}
.int2-bars--mini { gap: 10px; }
.int2-bars--mini .int2-bar {
  grid-template-columns: minmax(80px, 100px) 1fr minmax(58px, 80px);
  gap: 10px;
}
.int2-bars--mini .int2-bar label {
  font-size: clamp(13px, 1vw, 15px);
}
.int2-bars--mini .int2-bar-track {
  height: 26px;
}
.int2-bars--mini .int2-bar strong {
  font-size: clamp(17px, 1.4vw, 22px);
}
.int2-choice-note {
  margin: clamp(14px, 1.8vw, 22px) 0 0;
  text-align: center;
  font-size: clamp(13.5px, 1.05vw, 16px);
  color: var(--muted);
  line-height: 1.55;
}

/* ----- 10 Closure: big stat row + caveat ----- */
.int2-close-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 24px);
}
.int2-close-stat {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: clamp(20px, 2.4vw, 36px);
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.int2-close-stat span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.int2-close-stat strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  color: var(--ink);
}
.int2-close-stat em {
  font-style: normal;
  font-size: clamp(14px, 1.1vw, 17px);
  color: var(--muted);
  line-height: 1.5;
}
.int2-close-stat--key {
  background: var(--ink);
  border-color: var(--ink);
}
.int2-close-stat--key span { color: rgba(255, 252, 246, 0.6); }
.int2-close-stat--key strong { color: var(--paper); }
.int2-close-stat--key em { color: rgba(255, 252, 246, 0.78); }
.int2-close-arrow {
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5vw, 72px);
  color: var(--accent);
}
.int2-close-note {
  margin-top: clamp(14px, 2vw, 22px);
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  background: rgba(189, 67, 44, 0.05);
}
.int2-close-note span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}
.int2-close-note p {
  margin: 0;
  font-size: clamp(14.5px, 1.1vw, 17px);
  color: var(--ink);
  line-height: 1.6;
}

/* ----- Responsive collapse ----- */
@media (max-width: 960px) {
  .int2-pipeline-bar { flex-wrap: wrap; }
  .int2-scrape-grid,
  .int2-merge-grid,
  .int2-scoring-flow,
  .int2-valid-grid,
  .int2-metric-groups,
  .int2-choice-grid,
  .int2-close-grid {
    grid-template-columns: 1fr;
  }
  .int2-likert-bar { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .int2-likert-step { padding: 12px 6px; }
  .int2-likert-step em { font-size: 10.5px; }
  .int2-bar { grid-template-columns: 120px 1fr 50px; }
}
