/* =========================================================
   TIE Project Page - Stylesheet
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-tinted: #eef1f7;
  --text: #1a1f2e;
  --text-soft: #4a556b;
  --text-muted: #7a849b;
  --border: #e3e7ef;
  --border-strong: #c8d0dd;
  --accent: #5b6cff;
  --accent-2: #00a878;
  --accent-3: #8b5cf6;
  --accent-soft: #eef0ff;
  --good: #16a34a;
  --bad: #dc2626;
  --max-w: 1080px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 22, 41, 0.06);
  --shadow: 0 8px 28px rgba(15, 22, 41, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 22, 41, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-2); }

img, video { max-width: 100%; height: auto; display: block; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stat-icon svg,
.principle-icon svg,
.card-icon svg,
.overview-icon svg,
.metric-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

section:first-of-type { border-top: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 18px;
}

h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 8px;
}

h2 + .section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 36px;
}

h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

p { margin: 0 0 18px; }

p.lead {
  font-size: 18px;
  color: var(--text-soft);
}

.muted { color: var(--text-muted); }

/* =========================================================
   Top nav
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.topbar nav a {
  color: var(--text-soft);
}
.topbar nav a:hover { color: var(--text); }

@media (max-width: 720px) {
  .topbar nav { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 80px 0 56px;
  text-align: center;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(91, 108, 255, 0.12), transparent 60%),
    radial-gradient(700px 380px at 88% 18%, rgba(0, 168, 120, 0.08), transparent 60%);
  border-top: none;
}

.venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d8def8;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

h1.title {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.04;
}

h1.title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-sub {
  font-size: 24px;
  font-weight: 650;
  color: var(--text);
  margin: 8px auto 22px;
}

.hero-mantra {
  max-width: 720px;
  margin: 0 auto 22px;
  padding: 14px 0 10px;
  color: var(--text);
  line-height: 1.05;
}

.hero-mantra p {
  margin: 0;
  font-size: 30px;
  font-weight: 780;
}

.hero-mantra em {
  display: inline-block;
  margin-top: 6px;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-soft);
}

.tagline {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 18px;
}

.hero-result {
  width: fit-content;
  max-width: min(760px, 100%);
  margin: 0 auto 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(91, 108, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.08), rgba(0, 168, 120, 0.08));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.hero-result span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-result strong {
  font-size: 25px;
  line-height: 1;
  color: var(--accent);
}

.hero-result em {
  font-size: 16px;
  font-style: normal;
  color: var(--text-soft);
}

.authors {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 820px;
  margin: 0 auto 8px;
  line-height: 1.85;
}
.authors .corresp { color: inherit; font-weight: inherit; }
.authors .star { color: var(--accent); font-weight: 700; }
.authors .dagger { color: var(--accent-2); font-weight: 700; }

.affiliations {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 6px auto 0;
  line-height: 1.7;
}

.affiliations sup { color: var(--text-soft); font-weight: 600; margin-right: 2px; }

.legend {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}
.authors-section,
#authors {
  background: #fbfcff;
  text-align: center;
}
#authors .authors {
  margin-top: 18px;
}
#authors .affil-strip {
  margin-top: 26px;
}
.role-dot {
  color: var(--accent-3);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
}
.btn.primary:hover { color: white; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.disabled {
  color: var(--text-muted);
  background: var(--bg-soft);
  border-color: var(--border);
  box-shadow: none;
  cursor: default;
}
.btn.disabled:hover {
  transform: none;
  box-shadow: none;
  color: var(--text-muted);
}

/* =========================================================
   Teaser video
   ========================================================= */
.teaser {
  margin: 30px auto 0;
  max-width: 960px;
}
.teaser-kicker {
  margin: 0 auto 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1f2e 0%, #2a3149 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure-frame {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.figure-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero-figure {
  max-width: 920px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.method-figure {
  max-width: 820px;
  margin: 28px auto 0;
}
.wide-figure {
  max-width: 940px;
  margin: 22px auto 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 40px;
  position: relative;
  z-index: 2;
}
.video-placeholder .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.video-placeholder .play svg {
  width: 26px;
  height: 26px;
  fill: white;
  margin-left: 3px;
}
.video-placeholder .label {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.video-placeholder .hint {
  font-size: 13px;
  opacity: 0.65;
  font-family: var(--font-mono);
}

/* subtle scan-line decoration on placeholders */
.video-frame.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px, transparent 8px);
  pointer-events: none;
}

.caption {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
}

/* =========================================================
   TL;DR card
   ========================================================= */
.tldr {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 0 auto;
  max-width: 920px;
}
.tldr h3 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.tldr h3::before {
  content: "TL;DR";
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--text);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.tldr p { margin-bottom: 0; color: var(--text-soft); }

.evidence-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.evidence-tag.insight {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d8def8;
}
.evidence-tag.theory {
  color: var(--accent-2);
  background: #e9f7ee;
  border: 1px solid #cfe7df;
}
.evidence-tag.experiment {
  color: var(--accent-3);
  background: #f3efff;
  border: 1px solid #dfd4ff;
}

.claim-strip {
  max-width: 920px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
}
.claim-strip div {
  padding: 18px 18px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.claim-strip div:last-child {
  border-right: 0;
}
.claim-strip span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.claim-strip em {
  display: block;
  margin-top: 5px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
  font-style: italic;
  color: var(--text-soft);
}

.tldr-proof {
  max-width: 920px;
  margin: 16px auto 0;
  padding: 16px 20px;
  border: 1px solid #cfe7df;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 168, 120, 0.08), rgba(91, 108, 255, 0.06));
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.proof-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 7px;
}
.tldr-proof strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}
.proof-formula {
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  white-space: normal;
  overflow-x: auto;
  line-height: 1.55;
}
.proof-formula span {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 6px;
}

.evidence-grid {
  max-width: 920px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.evidence-card {
  min-height: 190px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-sm);
}
.evidence-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}
.evidence-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.evidence-formula {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  overflow-x: auto;
}
.evidence-formula span {
  margin: 0 7px;
  color: var(--text-muted);
  font-size: 12px;
}
.evidence-value {
  margin: 10px 0 8px;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.evidence-sub {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f7ee;
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 860px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card { min-height: 0; }
}

/* =========================================================
   Stat cards (the dramatic numbers)
   ========================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}
@media (max-width: 820px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.12), rgba(0, 168, 120, 0.1));
  border: 1px solid rgba(91, 108, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stat .value .from { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.stat .value .arrow { color: var(--text-muted); font-size: 14px; }
.stat .value .to { color: var(--accent); }
.stat .delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--good);
  background: #e9f7ee;
  padding: 2px 8px;
  border-radius: 999px;
}
.stat .delta.bad { color: var(--bad); background: #fde9e9; }
@media (max-width: 520px) {
  .stat { padding: 16px 12px; }
  .stat .label { font-size: 10.5px; letter-spacing: 0.06em; }
  .stat .value { font-size: 20px; gap: 4px; }
  .stat .delta { font-size: 11px; }
}

.hero-proof {
  max-width: 900px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.proof-card {
  min-width: 0;
  padding: 15px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}
.proof-cost {
  border-color: rgba(0, 168, 120, 0.34);
  background: linear-gradient(180deg, rgba(0, 168, 120, 0.10), rgba(255, 255, 255, 0.86));
}
.proof-kicker {
  display: inline-block;
  margin: 0 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-proof strong {
  display: block;
  color: var(--accent);
  font-size: 29px;
  line-height: 1;
}
.hero-proof .proof-card > span:not(.proof-kicker) {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-proof em {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .hero-proof { grid-template-columns: 1fr; }
}

.pull-claim,
.method-claim,
.result-claim {
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
}
.pull-claim {
  padding: 18px 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pull-claim span,
.pull-claim em,
.method-claim span,
.method-claim em,
.result-claim span:not(.evidence-tag),
.result-claim em {
  display: block;
}
.pull-claim span {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.14;
  font-style: italic;
  font-weight: 650;
  color: var(--text);
}
.pull-claim em {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  font-style: italic;
  color: var(--text-soft);
}
.method-claim {
  margin-top: 24px;
}
.method-claim span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
}
.method-claim em {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.12;
  font-style: italic;
  font-weight: 650;
  color: var(--text);
}
.result-claim {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 22px;
}
.result-claim span:not(.evidence-tag) {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}
.result-claim em {
  max-width: 360px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
  font-style: italic;
  color: var(--text-soft);
}
.robustness-claim {
  margin-top: 0;
  margin-bottom: 24px;
}

/* =========================================================
   Two-column problem section
   ========================================================= */
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 820px) {
  .cmp-grid { grid-template-columns: 1fr; }
}

.cmp-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.cmp-card.bad { border-top: 3px solid var(--bad); }
.cmp-card.good { border-top: 3px solid var(--good); }

.cmp-card .pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.cmp-card.bad .pill { background: #fdecec; color: var(--bad); }
.cmp-card.good .pill { background: #e7f6ec; color: var(--good); }
.cmp-card h3 { margin-bottom: 8px; font-size: 17px; }
.cmp-card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* =========================================================
   Method principles
   ========================================================= */
.score-context {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: center;
  max-width: 940px;
  margin: 26px auto 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(0, 168, 120, 0.08), rgba(82, 103, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.score-context h3 {
  margin: 8px 0 8px;
  font-size: 18px;
}
.score-context p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
}
.context-eq {
  background: white;
  border: 1px solid rgba(82, 103, 255, 0.18);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.context-eq mjx-container {
  margin: 0 !important;
}
.context-eq span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 820px) {
  .score-context { grid-template-columns: 1fr; }
}

.name-clarifier {
  max-width: 840px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(82, 103, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-soft);
  font-size: 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.name-clarifier strong {
  color: var(--text);
  font-weight: 750;
}

@media (max-width: 720px) {
  .name-clarifier {
    border-radius: 16px;
    line-height: 1.45;
  }
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  min-width: 0;
}
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

.principle {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  position: relative;
  min-width: 0;
}
.principle-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--accent-2);
  background: white;
  border: 1px solid rgba(0, 168, 120, 0.18);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.principle .num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.principle h3 { margin-bottom: 8px; }
.principle p { margin: 0; color: var(--text-soft); font-size: 15px; }
.principle-eq {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: white;
  border: 1px solid rgba(0, 168, 120, 0.14);
  border-radius: 10px;
  color: var(--text);
  max-width: 100%;
  overflow-x: auto;
}
.principle-eq mjx-container {
  margin: 0 !important;
}

.equation-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 22px auto 0;
  max-width: 820px;
  font-size: 15.5px;
  text-align: center;
  overflow-x: auto;
}
.equation-block .eq-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
}
.figure-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tie-visualize-figure {
  padding: 14px;
}
.tie-visualize-figure img {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.figure-caption {
  margin: 12px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.method-caption {
  max-width: 820px;
}

/* =========================================================
   Demo gallery
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

.gallery .item {
  display: flex;
  flex-direction: column;
}
.gallery .item h3 {
  font-size: 16px;
  margin: 14px 0 4px;
}
.gallery .item .desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* =========================================================
   Results table
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  margin: 24px auto 0;
  max-width: 940px;
}
@media (max-width: 720px) {
  .table-wrap { max-width: calc(100vw - 36px); }
}
table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.results th, table.results td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.results th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-soft);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.results td:first-child, table.results th:first-child {
  text-align: left;
  font-weight: 500;
}
table.results tr:last-child td { border-bottom: none; }
table.results tr.highlight td {
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.05), rgba(139, 92, 246, 0.05));
  font-weight: 600;
}
table.results tr.highlight td:first-child { color: var(--accent); }
table.results .best { color: var(--accent); font-weight: 700; }
table.results .arrow-up::after { content: " ↑"; color: var(--text-muted); font-weight: 400; }
table.results .arrow-down::after { content: " ↓"; color: var(--text-muted); font-weight: 400; }

.metric-note {
  max-width: 940px;
  margin: 22px auto 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}
.metric-note .overview-icon {
  margin: 0;
}
.metric-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.metric-grid {
  max-width: 940px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-grid.trajectory {
  grid-template-columns: repeat(3, 1fr);
}
.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.metric-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d8def8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}
.metric-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.mini-eq {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-x: auto;
}
@media (max-width: 920px) {
  .metric-grid,
  .metric-grid.trajectory {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .metric-note {
    grid-template-columns: 1fr;
  }
  .metric-grid,
  .metric-grid.trajectory {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Datasets section
   ========================================================= */
.dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 820px) { .dataset-grid { grid-template-columns: 1fr; } }

.dataset {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 22px;
  position: relative;
  overflow: hidden;
}
.dataset::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.dataset h3 { margin-bottom: 4px; font-size: 17px; }
.dataset img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: white;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.dataset h3,
.dataset .count,
.dataset p {
  padding-left: 22px;
  padding-right: 22px;
}
.dataset .count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.dataset p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

.dataset-stat-table {
  max-width: 1040px;
}
.dataset-stat-table table.results th {
  white-space: normal;
  min-width: 112px;
  line-height: 1.25;
  vertical-align: bottom;
}
.dataset-stat-table table.results th:first-child,
.dataset-stat-table table.results th:nth-child(2) {
  min-width: 96px;
}

.dataset-overview {
  max-width: 940px;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 16px;
}
.dataset-overview > div {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.overview-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d8def8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dataset-overview p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.dataset-overview pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: #0f1424;
  color: #d6dcf0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
}

/* =========================================================
   Citation box
   ========================================================= */
.bibtex-wrap {
  position: relative;
  max-width: 840px;
  margin: 24px auto 0;
}
.bibtex {
  background: #0f1424;
  color: #d6dcf0;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}
.copy-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }
.copy-btn.copied { background: var(--good); border-color: var(--good); color: white; }

/* =========================================================
   Matrix Team chip in topbar
   ========================================================= */
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: #0f1424;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #1f253b;
  transition: transform 0.15s ease;
}
.team-chip:hover { transform: translateY(-1px); color: white; }
.team-chip img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 540px) {
  .team-chip .text { display: none; }
  .team-chip { padding: 5px; }
}

/* =========================================================
   Affiliation logo strip
   ========================================================= */
.affil-strip {
  margin: 30px auto 0;
  max-width: 980px;
  padding: 24px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.affil-strip-label {
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.aff-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  width: 118px;
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
  filter: none;
  opacity: 1;
  background: white;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.aff-logo:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.aff-logo img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.aff-logo.logo-wide {
  width: 138px;
}
.aff-logo.logo-compact {
  width: 92px;
}
.aff-logo.logo-ink {
  background: white;
  border-color: var(--border);
}
.aff-logo.logo-ink:hover {
  background: white;
  border-color: var(--border-strong);
}
.aff-logo.logo-ink img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(31%) saturate(962%) hue-rotate(184deg) brightness(91%) contrast(92%);
}

/* =========================================================
   Top badges row (arXiv, stars, etc.)
   ========================================================= */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.badges a { transition: transform 0.15s ease; }
.badges a:hover { transform: translateY(-1px); }
.badge-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: white;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}
.badge-chip span,
.badge-chip strong {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
}
.badge-chip span {
  background: #555;
  font-weight: 400;
}
.badge-chip strong {
  background: var(--accent);
  font-weight: 600;
}
.badge-chip.arxiv strong { background: #b31b1b; }
.badge-chip.method strong { background: var(--good); }
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(0, 168, 120, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.25;
}
.data-badge strong {
  color: var(--accent-3);
  font-weight: 700;
}
.data-badge span {
  color: var(--text-soft);
}
@media (max-width: 720px) {
  .data-badge {
    justify-content: center;
    width: 100%;
    max-width: 360px;
    flex-wrap: wrap;
    text-align: center;
  }
}

/* =========================================================
   "Presented by" callout
   ========================================================= */
.presented-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 6px 14px 6px 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.presented-by .pb-logo {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0f1424;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.presented-by .pb-logo img {
  width: 14px; height: 14px;
  filter: brightness(0) invert(1);
}
.presented-by strong { color: var(--text); }

/* =========================================================
   News timeline
   ========================================================= */
.news-list {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}
.news-list li {
  position: relative;
  padding: 8px 0 18px 22px;
  font-size: 15px;
  color: var(--text-soft);
}
.news-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--accent);
}
.news-list li:first-child::before {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.15);
}
.news-list .date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 10px;
  letter-spacing: 0.02em;
}
.news-list strong { color: var(--text); }
.news-list .pill-new {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.gallery .video-frame {
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.qualitative-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 34px auto 0;
  max-width: 940px;
}
.qualitative-strip .figure-frame {
  box-shadow: var(--shadow);
}

/* =========================================================
   Robustness section
   ========================================================= */
.robustness-section {
  background: linear-gradient(180deg, #fbfcff 0%, #f5fbf8 100%);
}
.robustness-lead {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}
.robustness-lead p {
  margin: 0;
  color: var(--text-soft);
}
.theorem-panel {
  max-width: 940px;
  margin: 0 auto 22px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid #cfe7df;
  background: white;
  box-shadow: var(--shadow);
}
.theorem-title {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 12px;
}
.theorem-eq {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
  overflow-x: auto;
}
.theorem-eq mjx-container {
  margin: 0 !important;
}
.theorem-plain {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-soft);
}
.theorem-plain strong {
  color: var(--text);
  font-size: 16px;
}
.theorem-panel p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.theorem-panel code,
.robustness-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
  white-space: normal;
}
.robustness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px auto 0;
  max-width: 940px;
}
.robustness-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--accent-2);
  background: #e9f7ee;
  border: 1px solid #cfe7df;
  display: flex;
  align-items: center;
  justify-content: center;
}
.robustness-card .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 8px;
}
.robustness-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.robustness-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.58;
}
.robustness-card strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}
.robustness-verdict {
  max-width: 940px;
  margin: 28px auto 0;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: #0f1424;
  color: white;
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
  line-height: 1.18;
  text-align: center;
  box-shadow: var(--shadow);
}
.robustness-figure {
  margin-top: 22px;
}
@media (max-width: 900px) {
  .robustness-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .robustness-verdict {
    font-size: 21px;
    padding: 16px 18px;
  }
}

@media (max-width: 820px) {
  .tldr-proof,
  .dataset-overview {
    grid-template-columns: 1fr;
  }
  .proof-formula {
    white-space: normal;
    font-size: 15px;
  }
}

/* =========================================================
   Related work cards (Matrix Team showcase)
   ========================================================= */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: var(--text);
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
  color: var(--text);
}
.related-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.related-card h3 { font-size: 16px; margin-bottom: 6px; }
.related-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.related-card .arrow {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   Visitor map / analytics
   ========================================================= */
.visitor-section {
  background: var(--bg-soft);
}
.visitor-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}
@media (max-width: 820px) { .visitor-grid { grid-template-columns: 1fr; } }

.visitor-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.visitor-card .v-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.visitor-card h3 { margin-bottom: 4px; font-size: 17px; }

.globe-frame {
  flex: 1;
  min-height: 280px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 30%, rgba(91, 108, 255, 0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.18), transparent 55%),
    linear-gradient(160deg, #0f1424 0%, #1a2238 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
.globe-frame .globe-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.globe-frame .globe-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  padding: 16px;
}
.globe-frame .globe-overlay .small {
  font-size: 12px;
  font-family: var(--font-mono);
  opacity: 0.6;
  margin-top: 6px;
}

.counter-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.counter-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.counter-card .v-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.counter-card .big {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.counter-card .sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.counter-card img.shield-badge {
  display: inline-block;
  margin: 6px auto 0;
  height: 24px;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
footer p { margin: 0 0 8px; }
footer a { color: var(--text-soft); }

/* =========================================================
   Responsive type
   ========================================================= */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  h1.title { font-size: 39px; }
  .title-sub { font-size: 18px; }
  .hero-mantra p { font-size: 22px; }
  .hero-mantra em { font-size: 26px; }
  .tagline { font-size: 17px; }
  .hero-result {
    display: grid;
    justify-items: center;
    gap: 5px;
    border-radius: 18px;
  }
  .hero-result strong { font-size: 26px; }
  .claim-strip { grid-template-columns: 1fr; }
  .claim-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .claim-strip div:last-child { border-bottom: 0; }
  .pull-claim span { font-size: 28px; }
  .pull-claim em { font-size: 21px; }
  .method-claim em { font-size: 27px; }
  .result-claim {
    display: block;
  }
  .result-claim span:not(.evidence-tag) { font-size: 44px; }
  .result-claim em {
    max-width: none;
    margin-top: 8px;
    text-align: center;
    font-size: 22px;
  }
  h2 { font-size: 24px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 40px; }
}
