:root {
  --bg-root: #f5f7fb;
  --bg-surface: #eff1f4;
  --bg-panel: #ffffff;
  --bd-muted: #d8dde4;
  --bd-strong: #cfd6de;
  --fg-primary: #181c20;
  --fg-secondary: #48515c;
  --fg-muted: #66707c;
  --fg-subtle: #818995;
  --brand: #6a727d;
  --brand-600: #5c646f;
  --brand-700: #4f5660;
  --brand-800: #434951;
  --research-bg: #f5f7fb;
  --research-surface: #eff1f4;
  --research-panel: #ffffff;
  --research-line: #d8dde4;
  --research-line-strong: #c6ccd4;
  --research-ink: #181c20;
  --research-copy: #48515c;
  --research-muted: #66707c;
  --research-subtle: #818995;
  --research-accent: #4f5660;
  --research-link: #4d7fc9;
}

html { scroll-behavior: smooth; }
body { background: var(--research-bg); color: var(--research-ink); }
.research-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.research-eyebrow { color: var(--research-muted); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.research-hero { background: var(--research-panel); border-bottom: 1px solid var(--research-line); padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.research-hero-grid { display: block; }
.research-title { max-width: 850px; margin-top: 1rem; font-size: clamp(2.2rem, 5.5vw, 4.75rem); font-weight: 760; letter-spacing: -.05em; line-height: .98; }
.research-lede { max-width: 760px; margin-top: 1.5rem; color: var(--research-copy); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }
.research-projects { background: var(--research-surface); }
.research-project { padding: clamp(4rem, 8vw, 7rem) 0; scroll-margin-top: 6rem; }
.research-project + .research-project { border-top: 1px solid var(--research-line); }
.research-project-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.research-project:nth-child(even) .research-media { order: 2; }
.research-project:nth-child(even) .research-copy { order: 1; }
#token-grounding .research-project-grid { grid-template-columns: 1fr; }
#token-grounding .research-copy { max-width: 760px; }
.research-media { display: grid; gap: .75rem; }
.research-frame { overflow: hidden; border: 1px solid var(--research-line-strong); background: var(--research-panel); }
.research-frame img, .research-frame video { display: block; width: 100%; height: auto; }
.research-frame video { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.research-media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
#token-grounding .research-frame video { aspect-ratio: auto; }
.research-caption { color: var(--research-subtle); font-size: .75rem; line-height: 1.5; }
.research-number { color: var(--research-subtle); font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.research-project h2 { margin-top: 1rem; font-size: clamp(1.85rem, 4vw, 3.25rem); font-weight: 740; letter-spacing: -.035em; line-height: 1.04; }
.research-summary { margin-top: 1.35rem; color: var(--research-copy); font-size: 1.03rem; line-height: 1.7; }
.research-affiliation { margin-top: 1rem; color: var(--research-muted); font-size: .82rem; line-height: 1.5; }
.research-affiliation a { color: inherit; text-decoration: underline; text-decoration-color: var(--research-line-strong); text-underline-offset: 3px; }
.research-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.research-tag { border: 1px solid var(--research-line-strong); background: rgba(255, 255, 255, .58); padding: .38rem .65rem; color: var(--research-muted); font-size: .72rem; }
.research-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.research-link { display: inline-flex; align-items: center; min-height: 2.65rem; border: 1px solid var(--research-accent); padding: .65rem .9rem; color: var(--research-ink); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.research-link-primary { background: var(--research-accent); color: #fff; }
.research-link:hover { transform: translateY(-1px); background: var(--research-accent); color: #fff; }
.research-next { background: var(--research-panel); border-top: 1px solid var(--research-line); padding: 3rem 0; }
.research-next-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.research-next h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 730; letter-spacing: -.03em; }
.research-footer { border-top: 1px solid var(--research-line); background: var(--research-bg); padding: 1.25rem 0; }
.research-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--research-muted); font-size: .8rem; }
.research-footer a { color: inherit; }
.research-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.research-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 780px) {
  .research-project-grid { grid-template-columns: 1fr; }
  .research-project:nth-child(even) .research-media, .research-project:nth-child(even) .research-copy { order: initial; }
}

@media (max-width: 520px) {
  .research-media-pair { grid-template-columns: 1fr; }
  .research-links { flex-direction: column; }
  .research-link { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .research-reveal { opacity: 1; transform: none; transition: none; }
  .research-link { transition: none; }
}
