:root {
  --ink: #202124;
  --ink-soft: #34373b;
  --muted: #687076;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7f7f4;
  --surface-tint: #fbfbf8;
  --line: #d9dde2;
  --line-soft: #eceff1;
  --blue: #235f9c;
  --green: #18705f;
  --amber: #a76512;
  --red: #ad443e;
  --violet: #6f5a8c;
  --content-width: 1240px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
}

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

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

.hero {
  background: var(--paper);
  color: var(--ink);
}

.hero-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 34px;
  text-align: center;
}

.hero h1 {
  width: min(1040px, 100%);
  margin: 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
}

.hero-question {
  margin: 22px auto 0;
  max-width: 940px;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.35;
}

.hero-word {
  display: inline;
  font-weight: 780;
}

.expressive-word {
  color: var(--blue);
}

.soft-word {
  color: var(--green);
}

.cheap-word {
  color: var(--amber);
}

.better-word {
  color: var(--red);
}

.authors {
  margin: 26px auto 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}

.authors sup,
.affiliations sup,
.paper-panel sup {
  margin-left: 1px;
  font-size: 0.68em;
  line-height: 0;
}

.affiliations {
  margin: 3px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions,
.paper-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
}

.button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

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

.button.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.abstract-label {
  margin: 34px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 920px;
  margin: 8px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.72;
  text-align: left;
}

.hero-context {
  max-width: 920px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: left;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 22px auto 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stats-strip div {
  min-height: 110px;
  padding: 18px 18px 16px;
  border-right: 1px solid var(--line-soft);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.stats-strip span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.section {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0;
  scroll-margin-top: 24px;
}

.rollouts-section {
  padding-top: 46px;
  padding-bottom: 54px;
}

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

.rollout-card,
.wide-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.rollout-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  object-fit: cover;
}

.rollout-card figcaption,
.wide-figure figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rollout-card figcaption {
  color: var(--ink-soft);
  font-weight: 650;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: start;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.16;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.32;
}

p {
  margin: 0;
}

.lead-stack {
  display: grid;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.soft-idea-card p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.interpretation-section {
  width: 100%;
  max-width: none;
  padding: 58px 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.story-line {
  width: min(var(--content-width), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.soft-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 24px;
}

.soft-idea-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.soft-idea-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soft-idea-card:nth-child(1) span {
  color: var(--blue);
}

.soft-idea-card:nth-child(2) span {
  color: var(--green);
}

.soft-idea-card:nth-child(3) span {
  color: var(--red);
}

.wide-figure {
  background: #ffffff;
}

.wide-figure img {
  width: 100%;
  background: #ffffff;
}

.bridge-figure,
.visuals-section .wide-figure,
.actor-comparison-figure {
  margin-top: 34px;
}

.compute-section,
.paper-section {
  padding-top: 28px;
}

.figure-grid {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.actor-comparison-figure img {
  padding: 8px;
}

.story-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.story-bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
}

.story-bullets li {
  padding-left: 2px;
}

.story-bullets li::marker {
  color: var(--blue);
}

.story-bullets strong {
  color: var(--ink);
}

.paper-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-tint);
}

.paper-panel p {
  margin-top: 10px;
  color: var(--muted);
}

.paper-affiliations {
  font-size: 0.95rem;
}

.paper-actions {
  justify-content: flex-end;
}

.bibtex-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bibtex-head span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bibtex-head h3 {
  margin-top: 3px;
}

.copy-bibtex {
  white-space: nowrap;
}

.bibtex-panel pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #f6f7f8;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.55;
}

.bibtex-panel code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.equation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 34px 0 24px;
}

.equation-block {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfbfb;
}

.equation-block span {
  color: var(--muted);
  font-weight: 700;
}

.math-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  color: var(--ink);
  overflow-x: auto;
  overflow-y: hidden;
}

.math-display mjx-container {
  min-width: max-content;
  margin: 0 !important;
  padding-bottom: 2px;
}

mjx-container[jax="SVG"] {
  max-width: 100%;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .two-column,
  .paper-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-strip,
  .soft-idea-grid,
  .story-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip div:nth-child(2n) {
    border-right: 0;
  }

  .stats-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .paper-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .hero-inner,
  .section,
  .stats-strip,
  .story-line,
  .footer {
    width: min(100% - 30px, 980px);
  }

  .hero-inner {
    padding-top: 42px;
    padding-bottom: 26px;
  }

  .hero-copy {
    text-align: left;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .section {
    padding: 48px 0;
  }

  .rollouts-section {
    padding-top: 34px;
  }

  .rollout-grid,
  .stats-strip,
  .soft-idea-grid,
  .figure-grid,
  .story-line {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .stats-strip div:last-child {
    border-bottom: 0;
  }

  .stats-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .paper-panel,
  .bibtex-panel,
  .soft-idea-card {
    padding: 18px;
  }

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

  .bibtex-panel pre {
    padding: 14px;
    font-size: 0.76rem;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
