* {
  box-sizing: border-box;
}

:root {
  --robust-ink: #172026;
  --robust-muted: #5b6470;
  --robust-line: #d9dde5;
  --robust-panel: #f7f9fb;
  --robust-blue: #1b8fd3;
  --robust-teal: #00a99d;
  --robust-pink: #d84f8a;
  --robust-orange: #f08a32;
  --robust-yellow: #ffd25a;
  --content-max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--robust-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

a {
  color: #126ba1;
}

.robust-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(82, 210, 230, 0.35) 0%, rgba(82, 210, 230, 0) 34%),
    radial-gradient(circle at 70% 26%, rgba(255, 194, 99, 0.32) 0%, rgba(255, 194, 99, 0) 32%),
    radial-gradient(circle at 86% 76%, rgba(238, 126, 166, 0.26) 0%, rgba(238, 126, 166, 0) 36%),
    linear-gradient(124deg, #f9fcff 0%, #eef9f6 42%, #fff4df 72%, #f8e7ee 100%);
}

.header-wrapper {
  overflow: hidden;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  position: relative;
  z-index: 1;
  max-width: 1600px;
  min-height: 610px;
  margin: 0 auto;
  padding: 46px 54px 38px;
}

.header-content {
  flex: 1 1 50%;
  max-width: 760px;
  color: #203142;
  text-align: left;
}

.header-content h1 {
  color: #162536;
  font-weight: 850;
  letter-spacing: 0;
}

.header-content h2 {
  color: #235967;
  font-weight: 760;
}

.header-content p {
  color: #26384a;
  overflow-wrap: anywhere;
}

.header-content strong {
  color: #123f51;
}

.brand-mark {
  display: inline-block;
  background: linear-gradient(95deg, #c94f86 0%, #168fc5 38%, #009c87 68%, #b8790f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-container {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
  gap: 12px;
}

.icon-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #26384a;
  font-size: 0.98rem;
  line-height: 1.45;
}

.icon-item img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  filter: invert(28%) sepia(63%) saturate(787%) hue-rotate(144deg) brightness(82%) contrast(91%);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon.is-small {
  width: 1em;
  height: 1em;
}

.button-container a.button,
.button-container .button {
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 166, 0.78);
  background: #fff4d8;
  color: #111a22;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 750;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-container a.button:hover {
  background: #ffcf4d;
  color: #111820;
}

.button-container .arxiv-tag {
  min-width: 108px;
  border-color: rgba(135, 206, 235, 0.72);
  background: #eaf6ff;
  color: #12364c;
}

.button-container .button-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.header-image {
  flex: 1 1 48%;
  max-width: 720px;
}

.header-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  background: #ffffff;
}

.byline {
  margin-bottom: 32px;
  padding: 14px 5px 16px;
  background: #ffffff;
}

.byline-container {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  gap: 28px;
  justify-content: center;
}

.byline-column {
  min-width: 220px;
}

.byline-column h3 {
  margin-bottom: 0.35em;
  color: var(--robust-muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.robust-byline {
  max-width: 1040px;
  align-items: flex-start;
  justify-content: center;
}

.byline-authors {
  flex: 1.8;
  min-width: 300px;
}

.byline-affiliations {
  flex: 1.7;
  min-width: 320px;
}

.author-list,
.affiliation-list,
.contact-line {
  margin: 0;
  color: var(--robust-ink);
  font-size: 1rem;
  line-height: 1.6;
}

.author-list {
  font-weight: 650;
}

.author-list span {
  display: block;
}

.author-list sup,
.affiliation-list sup {
  color: #126ba1;
  font-weight: 800;
}

.contact-line {
  margin-top: 8px;
  color: var(--robust-muted);
  font-size: 0.94rem;
}

.page-main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 48px 64px;
}

.section {
  margin: 46px 0 58px;
}

.section:first-child {
  margin-top: 22px;
}

.section h1 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.15;
}

.section h2 {
  margin: 34px 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.text {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  color: var(--robust-ink);
  font-size: 1.06rem;
  line-height: 1.68;
}

.abstract {
  font-size: 1.08rem;
}

.figure-block {
  margin: 28px auto;
  max-width: 1040px;
}

.figure-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--robust-line);
  border-radius: 8px;
  background: #ffffff;
}

.figure-block figcaption {
  max-width: 900px;
  margin: 10px auto 0;
  color: var(--robust-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.figure-scroll {
  --figure-mobile-width: 720px;
}

.figure-scroll-wide {
  --figure-mobile-width: 920px;
}

.agent-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 24px auto;
}

.agent-card,
.metric-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--robust-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(25, 36, 48, 0.06);
}

.agent-card h3,
.metric-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.agent-card p,
.metric-card p {
  margin: 0;
  color: var(--robust-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.agent-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 850;
}

.agent-label.arranger {
  background: var(--robust-pink);
}

.agent-label.modeler {
  background: var(--robust-blue);
}

.agent-label.refiner {
  background: var(--robust-teal);
}

.code-panel {
  max-width: 900px;
  margin: 24px auto;
  border: 1px solid #25313d;
  border-radius: 8px;
  overflow: hidden;
  background: #111820;
  color: #e6edf3;
  box-shadow: 0 10px 28px rgba(17, 24, 32, 0.18);
}

.code-panel-header {
  padding: 10px 14px;
  border-bottom: 1px solid #2d3a48;
  color: #aeb8c4;
  font-size: 0.9rem;
}

.code-panel pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.55;
}

.code-panel code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.video-gallery {
  max-width: 1040px;
  margin: 28px auto 0;
}

.video-group {
  margin: 0 0 34px;
}

.video-group h2 {
  max-width: 980px;
  margin: 0 auto 14px;
  color: var(--robust-ink);
  font-size: 1.28rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--robust-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(25, 36, 48, 0.06);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f171d;
  object-fit: contain;
}

.video-card h3 {
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--robust-line);
  color: var(--robust-ink);
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (min-width: 600px) {
  .header-content h1 {
    font-size: 4rem;
  }

  .header-content h2 {
    margin-top: -0.45em;
    font-size: 2rem;
  }

  .header-image img {
    max-width: 96%;
  }
}

@media (max-width: 768px) {
  .header-container {
    display: block;
    min-height: 0;
    padding: 32px 18px 28px;
    overflow: hidden;
    max-width: 100vw;
  }

  .header-content,
  .header-image {
    width: 100%;
    max-width: 354px;
  }

  .header-image {
    margin-left: 0;
    margin-right: 0;
  }

  .header-content h1 {
    font-size: 3.1rem;
  }

  .header-content h2 {
    width: 100%;
    max-width: 100%;
    font-size: 1.46rem;
    overflow-wrap: anywhere;
  }

  .header-content p {
    width: 100%;
    max-width: 100%;
  }

  .icon-item {
    align-items: flex-start;
  }

  .icon-item div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .button-container {
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .button-container a.button,
  .button-container .button {
    margin: 0;
    padding: 10px 13px;
    max-width: 100%;
    font-size: 0.98rem;
  }

  .button-container .button-disabled {
    flex-basis: 100%;
  }

  .header-image img {
    width: 100%;
    max-width: 100%;
  }

  .byline-container {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .robust-byline {
    align-items: center;
    padding: 0 12px;
  }

  .byline-authors,
  .byline-affiliations {
    min-width: 0;
    width: 100%;
  }

  .author-list,
  .affiliation-list,
  .contact-line {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
  }

  .page-main {
    padding: 0 18px 48px;
  }

  .section {
    margin: 36px 0 46px;
  }

  .section h1 {
    font-size: 1.7rem;
  }

  .figure-scroll {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .figure-scroll img {
    width: 100%;
    min-width: var(--figure-mobile-width);
    max-width: none;
  }

  .agent-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-group h2 {
    font-size: 1.14rem;
  }

}
