@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --mit-red: #a31f34;
  --mit-dark-red: #8a1529;
  --mit-black: #111111;
  --mit-gray: #8a8b8c;
  --mit-light-gray: #c2c0bf;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --surface-strong: #eeeeeb;
  --ink: #171717;
  --muted: #555555;
  --line: #c9c9c6;
  --blueprint: #2f5f7f;
  --success: #1f6f50;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--mit-black);
}

video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mit-black);
  color: #ffffff;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: #151515;
  color: #f4f4f0;
  border: 1px solid var(--mit-black);
}

code,
.artifact-code,
.progress-label {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.main-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 54px;
}

.progress-sidebar {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
}

.progress-track {
  position: relative;
}

.progress-line,
.progress-line-fill {
  position: absolute;
  left: 7px;
  top: 20px;
  width: 2px;
  bottom: 20px;
  background: var(--line);
}

.progress-line-fill {
  background: var(--mit-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 180ms ease;
}

.progress-item {
  position: relative;
  z-index: 1;
  padding: 12px 0;
}

.progress-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.progress-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  background: var(--paper);
}

.progress-item.active .progress-dot,
.progress-item.passed .progress-dot {
  background: var(--mit-red);
  border-color: var(--mit-red);
}

.progress-label {
  opacity: 0;
  transform: translateX(-8px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: opacity 160ms ease, transform 160ms ease;
}

.progress-item:hover .progress-label,
.progress-item.active .progress-label {
  opacity: 1;
  transform: translateX(0);
}

.hero-flow {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--mit-black);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55)),
    url("assets/figures/hero-rollouts.jpg") center / cover no-repeat;
  color: #ffffff;
}

.hero-shade {
  width: 100%;
  padding: 56px;
}

.venue {
  margin: 0 0 12px;
  color: var(--mit-light-gray);
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 800;
}

.sub-hero-text {
  max-width: 720px;
  margin: 18px 0 0;
  color: #f1f1ed;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
}

.hero-pill-row {
  position: absolute;
  top: 56px;
  left: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  max-width: min(440px, calc(100% - 56px));
  margin: 0;
  z-index: 1;
}

.hero-pill {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.48);
}

.authors {
  margin-top: 24px;
  margin-bottom: 32px;
  color: #f8f8f4;
}

.author-note {
  color: var(--mit-light-gray);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.hero-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.76);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.hero-icon-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.hero-icon-link:first-child {
  background: var(--mit-red);
  border-color: var(--mit-red);
}

.hero-icon-link:hover {
  background: var(--mit-red);
  border-color: var(--mit-red);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-conversion-section {
  margin-top: 32px;
}

.hero-conversion-copy {
  max-width: 940px;
  margin-bottom: 18px;
  margin-top: 32px;
}

.hero-conversion-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-conversion-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 32px auto;
}

.conversion-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--mit-black);
  border-top: 7px solid var(--mit-red);
}

.conversion-card img {
  height: 190px;
  border: 0;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.conversion-card-body {
  min-height: 194px;
  padding: 18px;
}

.conversion-step {
  display: block;
  margin-bottom: 12px;
  color: var(--mit-red);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.conversion-card h2 {
  margin: 0;
  color: var(--mit-black);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.conversion-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.conversion-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 10px;
}

.conversion-arrow svg {
  width: 100%;
  height: 34px;
  overflow: visible;
}

.conversion-arrow path {
  fill: none;
  stroke: var(--mit-red);
  stroke-width: 4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--mit-black);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.cta.primary {
  background: var(--mit-red);
  border-color: var(--mit-red);
  color: #ffffff;
}

.cta.dark {
  background: var(--mit-black);
  border-color: var(--mit-black);
  color: #ffffff;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section,
.card-surface,
.resources-grid,
.figure-pair {
  margin-top: 32px;
}

.card-surface,
.resource-card,
.figure-card,
.metric-grid > div,
.summary-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
}

.intro-section {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}

.teaser-image {
  border-color: var(--mit-black);
}

.figure-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 660px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat-card {
  padding: 18px;
  border-left: 6px solid var(--mit-red);
}

.stat-value {
  display: block;
  color: var(--mit-red);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.tagline {
  margin-top: 54px;
  padding: 14px 18px;
  background: var(--mit-black);
  color: #ffffff;
  border-left: 10px solid var(--mit-red);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.architecture-section {
  margin-top: 32px;
  width: 100%;
  overflow-x: auto;
}

.architecture-image {
  background: transparent;
  border: 0;
}

.scene-gallery-section {
  margin-top: 32px;
}

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

.scene-example-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.scene-example-card:hover,
.scene-example-card:focus-visible {
  border-color: var(--mit-red);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.scene-example-card:focus-visible,
.scene-modal-close:focus-visible,
.scene-mode-tab:focus-visible {
  outline: 3px solid rgba(163, 31, 52, 0.32);
  outline-offset: 2px;
}

.scene-example-card img {
  aspect-ratio: 16 / 10;
  border: 0;
  object-fit: cover;
}

.scene-example-card-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 13px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.scene-example-card-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scene-example-card-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: #000;
}

.scene-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
  padding: 0;
}

.scene-modal[hidden] {
  display: none;
}

.scene-modal-panel {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #f7f7f5;
}

.scene-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(17, 17, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 32px;
  line-height: 36px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.scene-modal-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.14);
  backdrop-filter: blur(10px);
}

.scene-mode-tab {
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
}

.scene-mode-tab.active {
  background: var(--mit-red);
  border-color: var(--mit-red);
  color: #ffffff;
}

.scene-viewer-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #f7f7f5;
}

.scene-viewer-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  border: 0;
  background: #f7f7f5;
  touch-action: none;
}

.scene-viewer-status {
  position: absolute;
  top: 76px;
  left: 18px;
  z-index: 3;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.scene-viewer-status[hidden] {
  display: none;
}

body.scene-modal-open {
  overflow: hidden;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.pipeline-card {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.pipeline-card:last-child {
  border-right: 0;
}

.pipeline-card img,
.pipeline-card video {
  height: 160px;
  object-fit: cover;
}

.pipeline-step {
  min-height: 48px;
  color: var(--mit-red);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.pipeline-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.media-strip-section,
.results-section,
.polaris-section,
.bibtex {
  padding: 24px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}

.split-section > * {
  min-width: 0;
}

.split-section p {
  margin: 0 0 16px;
  color: var(--muted);
}

.physics-prior-section {
  padding: 28px;
}

.physics-copy {
  max-width: 100%;
}

.physics-copy p {
  max-width: 1040px;
  margin: 0 0 16px;
  color: var(--muted);
}

.physics-workflow-figure {
  margin: 22px 0 0;
  overflow-x: auto;
}

.physics-workflow-image {
  min-width: 920px;
}

.sim2real-section {
  margin-top: 32px;
}

.sim2real-lede {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
}

.sim2real-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sim2real-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.sim2real-figure {
  min-width: 0;
  margin: 0;
}

.sim2real-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-color: var(--mit-black);
}

.sim2real-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.sim2real-stage {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--mit-red);
}

.sim2real-step {
  display: block;
  margin-bottom: 12px;
  color: var(--mit-red);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.sim2real-stage h2 {
  margin: 0;
  color: var(--mit-black);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.sim2real-stage p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sim2real-contract-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.sim2real-contract-grid > div {
  min-width: 0;
  padding: 16px;
  background: var(--surface-strong);
  border-left: 6px solid var(--blueprint);
}

.sim2real-contract-grid strong,
.sim2real-contract-grid span {
  display: block;
}

.sim2real-contract-grid strong {
  color: var(--mit-black);
  font-size: 16px;
  line-height: 1.25;
}

.sim2real-contract-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.equation {
  padding: 16px;
  background: var(--surface-strong);
  border-left: 6px solid var(--mit-red);
  color: var(--ink) !important;
  overflow-x: auto;
}

.schema-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
}

.schema-list > div,
.claim-box {
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.schema-list > div {
  border-top: 5px solid var(--mit-red);
  min-width: 0;
}

.schema-list strong,
.schema-list span {
  display: block;
}

.schema-list strong,
.claim-box strong,
.metric-grid strong {
  color: var(--mit-red);
}

.schema-list span,
.metric-grid span {
  color: var(--muted);
  font-size: 14px;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.figure-card {
  padding: 18px;
}

.figure-card img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
}

.results-section > p {
  max-width: 840px;
  color: var(--muted);
}

.polaris-section > p {
  max-width: 920px;
  color: var(--muted);
}

.polaris-figure-image {
  margin-top: 18px;
  background: transparent;
  border: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.results-grid article {
  border: 1px solid var(--line);
  border-top: 6px solid var(--mit-red);
  padding: 16px;
  background: var(--surface-strong);
}

.metric {
  display: block;
  color: var(--mit-black);
  font-size: 24px;
  font-weight: 800;
}

.results-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.polaris-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.polaris-summary-card {
  min-width: 0;
  padding: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blueprint);
}

.polaris-summary-card.warning {
  border-top-color: var(--mit-red);
}

.polaris-summary-card strong {
  display: block;
  color: var(--mit-black);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.polaris-summary-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.polaris-figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 22px 0;
}

.polaris-table {
  margin-top: 22px;
}

.polaris-table td:first-child {
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill.blocked {
  border-color: var(--mit-red);
  color: var(--mit-red);
  background: #fff5f5;
}

.polaris-note {
  margin: 18px 0 0;
  padding: 14px;
  background: var(--surface-strong);
  border-left: 6px solid var(--mit-red);
  color: var(--ink) !important;
}

.artifact-code {
  padding: 16px;
  background: #151515;
  color: #f4f4f0;
  border: 1px solid var(--mit-black);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
}

.claim-box p {
  margin: 6px 0 18px;
}

.claim-box p:last-child {
  margin-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-grid > div {
  padding: 16px;
  border-left: 6px solid var(--blueprint);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

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

.resource-card {
  padding: 22px;
}

.resource-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.resource-card p {
  min-height: 78px;
  margin: 0 0 16px;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--mit-red);
  font-weight: 700;
}

.physics-cluster-section {
  margin-top: 32px;
  padding: 0;
  background: transparent;
  border: 0;
}

.cluster-copy {
  padding: 24px 0 0;
}

.cluster-copy p {
  max-width: 940px;
  margin: 0 0 18px;
  color: var(--muted);
}

.cluster-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.cluster-tab {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cluster-tab.active {
  background: var(--mit-black);
  border-color: var(--mit-black);
  color: #ffffff;
}

.cluster-status {
  padding: 14px;
  background: var(--surface-strong);
  border-left: 6px solid var(--mit-red);
  color: var(--muted);
}

.cluster-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}

.cluster-summary > div,
.cluster-inspector-grid > div {
  min-width: 0;
  padding: 12px;
  background: var(--surface-strong);
  border-left: 5px solid var(--mit-red);
}

.cluster-summary strong,
.cluster-summary span,
.cluster-inspector-grid strong,
.cluster-inspector-grid span {
  display: block;
}

.cluster-summary strong,
.cluster-inspector-grid strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.15;
}

.cluster-summary span,
.cluster-inspector-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.cluster-viz-grid,
.cluster-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  width: 100%;
}

.cluster-detail-grid {
  margin-top: 18px;
}

.cluster-panel {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cluster-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 10px;
}

.cluster-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.cluster-panel-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.cluster-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
}

.cluster-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.cluster-legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
}

.cluster-svg-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cluster-chart-svg {
  display: block;
  width: 100%;
  min-width: 580px;
  height: auto;
}

.cluster-heatmap-svg {
  min-width: 720px;
}

.cluster-svg-bg {
  fill: #ffffff;
}

.cluster-grid-line {
  stroke: #d8d8d4;
  stroke-width: 1;
}

.cluster-axis {
  stroke: var(--ink);
  stroke-width: 2;
}

.cluster-axis-label,
.cluster-point-label,
.cluster-heat-label {
  fill: var(--muted);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.cluster-point {
  cursor: pointer;
  outline: none;
}

.cluster-point:hover circle,
.cluster-point:focus circle,
.cluster-point.selected circle {
  stroke: var(--mit-red);
  stroke-width: 4;
}

.cluster-mass-bar {
  fill: var(--blueprint);
}

.cluster-rank-list {
  display: grid;
  gap: 8px;
}

.cluster-rank-row {
  position: relative;
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.cluster-rank-row:hover,
.cluster-rank-row:focus {
  border-color: var(--mit-red);
}

.cluster-rank-bar {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: 0.18;
}

.cluster-rank-text {
  position: relative;
  display: grid;
  gap: 3px;
}

.cluster-rank-text strong,
.cluster-rank-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.cluster-inspector-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

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

.cluster-inspector p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.polaris-figure-grid {
  width: 100%;
}

@media (min-width: 1400px) {
  .progress-sidebar {
    display: block;
  }
}

@media (max-width: 980px) {
  .main-content {
    padding: 22px 14px 40px;
  }

  .hero-flow {
    min-height: 560px;
  }

  .hero-shade {
    padding: 34px;
  }

  .hero-pill-row {
    top: 20px;
    right: 22px;
    max-width: calc(100% - 44px);
  }

  h1 {
    font-size: 50px;
  }

  .sub-hero-text {
    font-size: 20px;
  }

  .summary-grid,
  .pipeline-grid,
  .scene-example-grid,
  .sim2real-stage-grid,
  .sim2real-contract-grid,
  .results-grid,
  .polaris-summary-grid,
  .cluster-summary,
  .metric-grid,
  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .split-section,
  .figure-pair,
  .sim2real-lede,
  .cluster-viz-grid,
  .cluster-detail-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 820px) {
  .hero-conversion-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .conversion-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero-flow {
    min-height: 620px;
  }

  .hero-shade {
    padding: 24px;
  }

  .hero-pill-row {
    top: 16px;
    right: 18px;
    gap: 7px 10px;
    max-width: calc(100% - 36px);
  }

  .hero-pill {
    font-size: 11px;
  }

  .hero-icon-links {
    gap: 10px 14px;
  }

  .hero-icon-link {
    font-size: 12px;
  }

  h1 {
    font-size: 40px;
  }

  .sub-hero-text {
    font-size: 18px;
  }

  .summary-grid,
  .pipeline-grid,
  .scene-example-grid,
  .video-grid,
  .hero-conversion-flow,
  .sim2real-stage-grid,
  .sim2real-contract-grid,
  .results-grid,
  .polaris-summary-grid,
  .cluster-summary,
  .cluster-inspector-grid,
  .metric-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .hero-conversion-copy p {
    font-size: 16px;
  }

  .conversion-card img {
    height: 210px;
  }

  .sim2real-lede,
  .sim2real-stage {
    padding: 18px;
  }

  .sim2real-copy p {
    font-size: 16px;
  }

  .tagline {
    font-size: 22px;
  }

  .section-heading {
    font-size: 24px;
  }

  .scene-modal-toolbar {
    top: 12px;
    left: 12px;
    max-width: calc(100vw - 78px);
    padding: 6px;
  }

  .scene-modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  th,
  td {
    padding: 10px;
  }

  footer {
    display: block;
  }

  footer span {
    display: block;
    margin-bottom: 8px;
  }
}
