@font-face {
  font-family: Instrument Sans;
  src: url("media/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Mono;
  src: url("media/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #1b1b1e;
  --body: #353539;
  --muted: #626269;
  --accent: #635987;
  --frontier: #516fa1;
  --other-model: #858591;
  --selected-point: #9c5f38;
  --display: "STIX Two Text", Georgia, "Times New Roman", serif;
  --line: #dedee2;
  --soft: #f3f3f5;
  --pale: #fafafa;
  --amber: #885525;
  --warm: #e4ad6c;
  --dark: #232327;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(18px, 4.5vw, 64px);
  --radius: 7px;
  color: var(--ink);
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  scroll-padding-top: 86px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-width: 300px;
  background: white;
}
button,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--ink);
  text-underline-offset: 0.21em;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #5f5bbc;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 7px;
  left: 10px;
  z-index: 100;
  color: white;
  background: var(--ink);
  padding: 10px 15px;
}
.wrap,
.header-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e5e7;
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
}
.brand > span > span {
  color: var(--ink);
}
.brand img {
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  height: 100%;
}
.desktop-nav > a,
.results-menu summary {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}
.desktop-nav > a:hover,
.results-menu summary:hover,
.results-menu.current summary,
.desktop-nav > a[aria-current="location"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.mobile-menu {
  display: none;
}
.results-menu {
  position: relative;
  height: 100%;
}
.results-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.results-menu summary::-webkit-details-marker {
  display: none;
}
.results-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.results-menu[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}
.result-links {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 205px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px;
  box-shadow: 0 9px 28px #17171c17;
}
.result-links a {
  display: block;
  padding: 8px 10px;
  font-size: 0.92rem;
  color: var(--body);
  text-decoration: none;
  border-radius: 5px;
}
.result-links a:hover,
.result-links a[aria-current="location"] {
  color: var(--ink);
  background: var(--soft);
}
summary {
  cursor: pointer;
}
.hero {
  overflow: hidden;
  background: #fff;
}
.title-brand {
  color: var(--ink);
}
.hero-copy {
  text-align: center;
  padding: clamp(24px, 3.2vw, 50px) var(--gutter) clamp(36px, 4vw, 64px);
}
h1 {
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(2.25rem, 3.74vw, 3.38rem);
  font-weight: 480;
  letter-spacing: -0.033em;
  line-height: 1.11;
  text-wrap: balance;
}
.resources {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(23px, 2.5vw, 37px);
}
.resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.97rem;
  font-weight: 650;
  text-decoration: none;
  min-height: 46px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.resource:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px #17171c16;
}
.github {
  background: #202024;
  color: white;
}
.github img {
  filter: brightness(0) invert(1);
}
.hub {
  border-color: #d1d1d5;
  background: #fff;
  color: #26262b;
}
.section {
  padding: clamp(42px, 5.4vw, 74px) 0;
  scroll-margin-top: 20px;
}
.section-intro {
  margin-bottom: clamp(18px, 2.4vw, 31px);
  max-width: 850px;
}
.section-intro h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 450;
  line-height: 1.065;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.section-intro p {
  max-width: 760px;
  margin-top: 13px;
  font-size: clamp(1rem, 1.33vw, 1.14rem);
  line-height: 1.55;
  color: var(--muted);
}
h3 {
  font-size: 1.43rem;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h4 {
  font-weight: 650;
  line-height: 1.35;
}
.select-label {
  font-size: 0.86rem;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.select-label select {
  appearance: none;
  max-width: 100%;
  font-size: 0.95rem;
  min-height: 40px;
  border: 1px solid #cfcfd4;
  border-radius: 6px;
  color: var(--ink);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%2356565e' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  padding: 7px 35px 7px 12px;
  cursor: pointer;
}
.diagnostics,
.atlas {
  background: white;
  border-block: 1px solid var(--line);
}
.citation {
  background: var(--pale);
  border-top: 1px solid var(--line);
}
.citation-box {
  border: 1px solid #d9d9dd;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}
.citation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f7f7f8;
  padding: 10px 18px;
}
.citation-head span,
.citation-box pre {
  font-family: var(--mono);
}
.citation-head span {
  font-size: 0.87rem;
}
.citation-head button,
.dialog-tools button {
  font-size: 0.87rem;
  background: white;
  border: 1px solid #c9c9ce;
  border-radius: 6px;
  padding: 6px 11px;
  font-weight: 550;
}
.citation-box pre {
  --continuation-indent: clamp(3ch, 7.5vw, 12ch);
  white-space: normal;
  overflow-wrap: anywhere;
  padding: clamp(12px, 1.4vw, 16px) clamp(12px, 1.7vw, 20px);
  margin: 0;
  font-size: clamp(0.8rem, calc(0.75rem + 0.15vw), 0.87rem);
  line-height: 1.65;
  color: #35353d;
}
.citation-box code {
  font: inherit;
  display: block;
}
.bib-field {
  display: block;
  padding-inline-start: var(--continuation-indent);
  text-indent: calc(0px - var(--continuation-indent));
}
.bib-key {
  white-space: pre;
}
footer {
  padding: 21px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.footer-inner > a:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}
#image-dialog {
  max-width: min(96vw, 1350px);
  max-height: 94dvh;
  padding: 12px 14px 16px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 16px 70px #17171c30;
}
#image-dialog::backdrop {
  background: #16161bd1;
}
.dialog-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 9px;
}
#dialog-image {
  width: auto;
  max-width: 100%;
  max-height: 76dvh;
  object-fit: contain;
  margin: auto;
}
#dialog-caption {
  margin: 10px 3px 0;
  color: var(--body);
  font-size: 0.92rem;
}
body.dialog-open {
  overflow: hidden;
}
@media (max-width: 840px) {
  .section {
    padding: 57px 0;
  }
}
@media (max-width: 660px) {
  :root {
    --gutter: 18px;
    scroll-padding-top: 68px;
  }
  .header-inner {
    height: 54px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .mobile-menu summary {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 0 8px 10px;
    color: var(--body);
    font-size: 0.91rem;
    font-weight: 550;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .menu-lines {
    width: 14px;
    height: 8px;
    border-block: 1.5px solid var(--body);
  }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    width: 225px;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 25px #17171c1b;
  }
  .mobile-menu nav a {
    padding: 8px 10px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 4px;
  }
  .mobile-menu nav a:hover {
    background: var(--soft);
  }
  .hero-copy {
    padding: 24px var(--gutter) 34px;
  }
  h1 {
    font-size: clamp(2.05rem, 7.95vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -0.032em;
  }
  .resources {
    margin-top: 21px;
    gap: 9px;
  }
  .resource {
    min-height: 44px;
    padding: 8px 15px;
  }
  .section-intro h2 {
    font-size: clamp(1.8rem, 6.9vw, 2.4rem);
  }
  .section {
    padding: 43px 0;
    scroll-margin-top: 10px;
  }
  .section-intro {
    margin-bottom: 23px;
  }
  .citation-head {
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
.copy-buffer {
  position: fixed;
  left: -9999px;
  top: 0;
}

/* Supplement navigation and figure captions. */
.appendix-gallery {
  min-width: 0;
}
.gallery-tabs,
.gallery-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.gallery-tabs {
  column-gap: clamp(14px, 2.25vw, 30px);
  border-bottom: 1px solid var(--line);
}
.gallery-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  padding: 8px 0 10px;
  font-size: 0.95rem;
  font-weight: 550;
}
.gallery-tab:hover {
  color: var(--ink);
}
.gallery-tab[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}
.phase-tabs {
  gap: 0 clamp(10px, 1.55vw, 22px);
}
.phase-tabs .gallery-tab {
  font-size: 0.89rem;
}
.gallery-choices {
  gap: 5px;
  margin-top: 12px;
}
.gallery-choices[hidden] {
  display: none;
}
.gallery-choice {
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 11px;
}
.gallery-choice:hover {
  background: var(--soft);
  color: var(--ink);
}
.gallery-choice[aria-pressed="true"] {
  background: var(--dark);
  color: white;
}
.appendix-plate {
  margin: clamp(16px, 2.4vw, 28px) auto 0;
}
.plate-caption {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--body);
}
.plate-caption strong {
  color: var(--ink);
  font-weight: 650;
}
#image-dialog {
  width: min(94vw, 1380px);
  max-width: 94vw;
  max-height: 95dvh;
  margin: auto;
}
#image-dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-tools {
  gap: 7px;
  flex: none;
}
#dialog-viewport {
  overflow: auto;
  max-height: 74dvh;
  overscroll-behavior: contain;
}
#dialog-image {
  max-height: 73dvh;
}
.actual-size #dialog-image {
  max-width: none;
  max-height: none;
  margin: 0 auto;
}
#dialog-caption {
  max-height: 10dvh;
  overflow: auto;
  flex: 0 0 auto;
}
@media (max-width: 660px) {
  .gallery-tab {
    padding-block: 7px;
    font-size: 0.89rem;
  }
  .gallery-choice {
    padding: 6px 10px;
  }
  .phase-tabs {
    column-gap: 14px;
  }
  .phase-tabs .gallery-tab {
    font-size: 0.81rem;
  }
  .gallery-choices {
    margin-top: 9px;
  }
  .appendix-plate {
    margin-top: 14px;
  }
  .plate-caption {
    margin-top: 10px;
    font-size: 0.84rem;
  }
}
.task-choice-name {
  display: none;
}
@media (min-width: 900px) {
  #task-list {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 5px;
    align-items: stretch;
  }
  #task-list .gallery-choice {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 10px;
    text-align: left;
  }
  .task-choice-name {
    display: inline;
    font:
      500 0.78rem/1.27 "Instrument Sans",
      Arial,
      sans-serif;
  }
}

#photo-wall {
  width: min(100%, 1380px);
  margin: clamp(6px, 0.8vw, 14px) auto 0;
}
#agent-figure {
  --ec-agent-figure-width: 32rem;
}
#agent-figure[data-agent-layout="stacked"] {
  --ec-agent-figure-width: 23rem;
}
@media (min-width: 902px) {
  #agent-figure {
    --ec-agent-figure-width: clamp(25rem, 43.4%, 32rem);
  }
}

/* Held-out and transfer scores use the same row order and 0–100 scales. */
.transfer-study + .transfer-study {
  margin-top: clamp(25px, 3vw, 42px);
}
.transfer-study-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.transfer-study-head h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}
.transfer-study-head small {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0;
  font-weight: 450;
}
.transfer-key,
.transfer-key span {
  display: inline-flex;
  align-items: center;
}
.transfer-key {
  gap: 12px;
  color: var(--body);
  font-size: 0.86rem;
  line-height: 1.4;
}
.transfer-key span {
  gap: 5px;
}
.series-baseline {
  --bar-fill: #89c2d9;
  --bar-edge: #478faf;
}
.series-egochem {
  --bar-fill: #d96b27;
  --bar-edge: #9c420a;
}
.transfer-key i {
  width: 12px;
  height: 9px;
  background: var(--bar-fill);
  border: 1px solid var(--bar-edge);
}
.transfer-plots {
  display: grid;
  gap: 17px;
}
.transfer-plot {
  width: 100%;
  height: auto;
  display: block;
  font-family: "Instrument Sans", Arial, sans-serif;
}
.transfer-model-heading {
  font-size: 13px;
  fill: var(--muted);
  font-weight: 550;
}
.transfer-heading {
  font-size: 15px;
  fill: var(--ink);
  font-weight: 650;
}
.transfer-model-name {
  font-size: 14px;
  fill: var(--body);
}
.transfer-model-name.transfer-trained,
.transfer-best {
  font-weight: 650;
  fill: var(--ink);
}
.transfer-value {
  font-size: 13px;
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}
.transfer-tick {
  font-size: 11px;
  fill: var(--muted);
}
.transfer-bar {
  fill: var(--bar-fill);
  stroke: var(--bar-edge);
  stroke-width: 0.8px;
}
.transfer-origin {
  stroke: #92949a;
  stroke-width: 1px;
}
.transfer-grid {
  stroke: #cdd7df;
  stroke-dasharray: 2 4;
}
@media (max-width: 660px) {
  .transfer-model-name {
    font-size: 12.4px;
  }
  .transfer-value {
    font-size: 12px;
  }
  .transfer-heading {
    font-size: 14px;
  }
  .transfer-key {
    font-size: 0.8rem;
  }
  .transfer-study-head {
    margin-bottom: 10px;
  }
}
