:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #525252;
  --ink-3: #8a8a8a;
  --line: #e5e5e5;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --max-w: 1060px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
}

main {
  flex: 1;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-cta,
.btn {
  display: inline-block;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff !important;
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-cta {
  padding: 7px 15px;
  font-size: 12.5px;
}

.btn {
  padding: 10px 20px;
  font-size: 14px;
}

.nav-cta:hover,
.btn:hover {
  background: #404040;
}

/* Home */
/* One screen: the block sits in the middle of whatever height is left over. */
main.home {
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  padding: 36px 0 44px;
}

.hero h1 {
  margin: 0 0 24px;
  max-width: 900px;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.lead {
  margin: 0 0 24px;
  text-wrap: balance;
  max-width: 760px;
  font-size: 17.5px;
  color: var(--ink-2);
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* The figure: prompt, agent status, and the run drawn on a canvas */
.fig {
  transition: opacity 0.25s linear;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 8px 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.35;
  transition: border-color 0.3s ease;
}

.prompt.sent {
  border-color: var(--ink);
}

.chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chip.read {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.ptext {
  flex: 1;
  min-width: 0;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--ink);
  vertical-align: -0.16em;
  animation: blink 1s steps(2, start) infinite;
}

.prompt.sent .caret {
  display: none;
}

@keyframes blink {
  to { visibility: hidden; }
}

.send {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d9d9d9;
  transition: background 0.3s ease;
}

.send::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -2px 0 0 -4px;
  border-left: 1.8px solid #ffffff;
  border-top: 1.8px solid #ffffff;
  transform: rotate(45deg);
}

.prompt.sent .send {
  background: var(--ink);
}

.agent-line {
  height: 18px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.agent-line .blip {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--ink);
  animation: blink 1.1s steps(2, start) infinite;
}

.legend {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-3);
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--c);
}

.run {
  margin-top: 8px;
}

.run canvas {
  display: block;
  width: 100%;
}

/* Sectors: one row; the card of the example being played is marked */
.domains {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
}

.domain {
  padding: 13px 0 0;
  border: none;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.domain:hover,
.domain.active {
  border-top-color: var(--ink);
}

.domain-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.domain-machines {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}

.domain-physics {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* People */
.page {
  padding: 72px 0 96px;
}

.page h1 {
  margin: 0 0 56px;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.group {
  margin-bottom: 64px;
  scroll-margin-top: 96px;
}

/* only the closing section of the page; the people groups sit in their own wrapper */
.container > .group:last-child {
  margin-bottom: 0;
}

.group-title {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}

.avatar {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #b8b8b8;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.person-name {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.person-affil {
  font-size: 14.5px;
  color: var(--ink-2);
}

.person-affil sup,
.footnote sup {
  font-size: 0.7em;
  line-height: 0;
}

.name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 4;
  column-gap: 24px;
  font-size: 15.5px;
}

.name-list li {
  padding: 4px 0;
  break-inside: avoid;
}

.footnote {
  margin: -44px 0 64px;
  font-size: 13px;
  color: var(--ink-3);
}

.collab-text {
  margin: -6px 0 20px;
  max-width: 620px;
  font-size: 16.5px;
  color: var(--ink-2);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 13px;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-inner a:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .name-list {
    columns: 3;
  }
}

@media (max-width: 1000px) {
  .domains {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* wider cards: the physics go back on one line */
  .domain-physics {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .domain-physics span:not(:last-child)::after {
    content: "\00a0\00b7\00a0";
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }
  .nav-links {
    gap: 14px;
  }
  .hero {
    padding: 44px 0 52px;
  }
  .photo-grid,
  .name-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    columns: 2;
  }
  .page h1 {
    margin-bottom: 40px;
  }
  .group {
    margin-bottom: 48px;
  }
  .footnote {
    margin: -30px 0 48px;
  }
  .domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prompt {
    font-size: 13.5px;
  }
  .legend {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .caret,
  .agent-line .blip {
    animation: none;
  }
}
