@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f5f7;
  --white: #fff;
  --ink: #17181c;
  --muted: #60636c;
  --line: #d5d6dc;
  --accent: #304bff;
  --blue: #304bff;
  --surface: #ebedf2;
  --salmon: #db7556;
  --mono: "SFMono-Regular", Consolas, monospace;
  --sans: Manrope, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #304bff;
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.06em;
}
em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}
button {
  color: inherit;
}
p {
  max-width: 65ch;
}
.site-wrap {
  max-width: 1560px;
  margin: auto;
  padding: 0 5%;
}
.site-header {
  height: 116px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 2rem;
}
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.monogram {
  display: flex;
  font: 700 2.25rem/0.9 var(--sans);
  letter-spacing: -0.15em;
  color: var(--accent);
  padding-right: 5px;
}
.monogram span {
  transform: translateY(7px);
}
.site-header nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font-size: 0.875rem;
}
.site-header nav a {
  position: relative;
  padding: 12px 0;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--accent);
  left: 0;
  right: 0;
  bottom: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.site-header nav a:hover::after,
.site-header nav a[aria-current]::after {
  transform: scaleX(1);
}
.command-trigger {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: transparent;
  min-height: 44px;
  padding: 8px 16px;
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.8125rem;
  margin-left: 25px;
}
.command-trigger:hover {
  background: var(--white);
}
kbd {
  font: 0.75rem var(--mono);
  color: var(--muted);
}
.eyebrow {
  font: 400 0.75rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 60px 0 76px;
  min-height: 700px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(4rem, 6.7vw, 6.8rem);
  letter-spacing: -0.07em;
  margin-top: 35px;
  line-height: 1.02;
}
.hero-copy h1 em {
  font-size: 1.15em;
  letter-spacing: -0.055em;
}
.hero-intro {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -0.04em;
  margin-top: 28px;
}
.pill-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  padding: 12px 22px;
  margin-top: 28px;
  font-size: 0.875rem;
  transition:
    background 0.2s,
    color 0.2s;
}
.pill-link:hover {
  background: var(--ink);
  color: #fff;
}
.pill-link span {
  font-size: 1.25rem;
}
.hero-current {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 35px;
}
.hero-current a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-art {
  position: relative;
  aspect-ratio: 1/1.1;
  background: #e8ebf3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  isolation: isolate;
}
.art-label,
.art-bottom {
  position: absolute;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1;
  font: 0.75rem/1.5 var(--mono);
  color: #4d5370;
}
.art-label {
  top: 24px;
}
.art-bottom {
  bottom: 24px;
  align-items: center;
}
.art-play {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font: 0.75rem var(--mono);
  color: var(--accent);
}
.art-play:hover {
  text-decoration: underline;
}
.form-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.section-block {
  border-top: 1px solid var(--line);
  padding: 76px 0;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 36px;
}
.section-top h2 {
  font-size: clamp(2.25rem, 4vw, 3.625rem);
  margin-top: 20px;
}
.inline-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.inline-link:hover {
  color: var(--accent);
}
.inline-link span {
  font-size: 1.25rem;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.project-card {
  display: block;
  min-width: 0;
}
.project-art {
  height: auto;
  aspect-ratio: 1.45;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-art svg,
.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover .project-art > svg,
.project-card:hover .project-art > img {
  transform: scale(1.035);
}
.art-chip {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ffffffeb;
  padding: 8px 12px;
  border-radius: 2px;
  font: 0.75rem var(--mono);
  color: var(--ink);
}
.learning-art {
  background: #e5eaff;
}
.emergence-art {
  background: #1c1d21;
  padding: 35px;
}
.emergence-art img {
  height: auto;
  object-fit: contain;
}
.project-caption {
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.project-caption h3 {
  font-size: 1.625rem;
  letter-spacing: -0.045em;
  margin-top: 9px;
}
.project-caption p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 10px;
}
.round-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  margin-top: 18px;
  transition:
    background 0.2s,
    color 0.2s;
}
.project-card:hover .round-arrow {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.home-note {
  padding-bottom: 82px;
}
.featured-note {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  margin-top: 26px;
  align-items: end;
}
.featured-note h2 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
}
.featured-note h2 em {
  color: var(--accent);
}
.featured-note p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38ch;
}
.featured-note .inline-link {
  margin-top: 26px;
}
.home-about {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
}
.home-about h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.875rem);
}
.home-about p:not(.eyebrow) {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 28px 0;
  color: var(--muted);
  max-width: 40ch;
}
.site-footer {
  background: #191b23;
  color: #f6f7fb;
  margin: 0 calc(5% / -0.9);
  padding: 60px calc(5% / 0.9) 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}
.footer-top > p {
  font-size: 1.25rem;
  color: #babdca;
  line-height: 1.5;
}
.footer-top > p > a {
  display: block;
  font-size: 4rem;
  letter-spacing: -0.06em;
  color: #fff;
  line-height: 1.25;
  margin-top: 12px;
}
.footer-top > p > a:hover {
  color: #9aa9ff;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.875rem;
  align-items: center;
}
.footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 8px 0;
}
.footer-links a:hover,
.footer-links button:hover {
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  font: 0.75rem/1.5 var(--mono);
  color: #aeb1c1;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 16px;
  background: var(--accent);
  color: white;
  transform: translateY(-200%);
  z-index: 20;
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.quiet-button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  min-height: 44px;
}
.quiet-button:hover {
  background: #e4e7ef;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 22px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 10px 40px #17181c20;
  z-index: 30;
}
dialog {
  width: min(92vw, 560px);
  max-height: 85dvh;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #151b3855;
  backdrop-filter: blur(8px);
}
.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.command-header h2 {
  font-size: 2rem;
}
#command-search {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 1rem;
  border-radius: 4px;
}
#command-results {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}
#command-results button {
  border: 1px solid transparent;
  background: transparent;
  padding: 14px 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 0.875rem;
  border-radius: 4px;
}
#command-results button[data-selected="true"],
#command-results button:hover {
  background: #e3e8ff;
  border-color: #bac6ff;
}
#command-results button span {
  font-size: 0.75rem;
  color: var(--muted);
}
.command-hint,
#command-empty {
  font: 0.75rem/1.6 var(--mono);
  color: var(--muted);
  margin-top: 20px;
}
@media (max-width: 1000px) {
  .command-trigger {
    margin-left: 0;
  }
  .command-trigger > span {
    display: none;
  }
  .home-hero {
    gap: 2rem;
    min-height: 600px;
  }
  .hero-copy h1 {
    font-size: 7vw;
  }
  .hero-current {
    max-width: 27ch;
  }
  .art-label,
  .art-bottom {
    left: 18px;
    right: 18px;
    font-size: 0.75rem;
  }
  .art-label > span:last-child {
    display: none;
  }
  .featured-note {
    gap: 3rem;
  }
  .site-footer {
    margin: 0 -5.56%;
    padding-left: 5.56%;
    padding-right: 5.56%;
  }
}
@media (max-width: 700px) {
  .site-wrap {
    padding: 0 6%;
  }
  .site-header {
    height: 88px;
    gap: 20px;
  }
  .identity > span:last-child {
    display: none;
  }
  .monogram {
    font-size: 1.875rem;
  }
  .site-header nav {
    gap: 22px;
    font-size: 0.875rem;
  }
  .command-trigger {
    min-height: 36px;
    padding: 6px 10px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    padding: 44px 0;
    gap: 38px;
  }
  .hero-copy h1 {
    font-size: 15vw;
    margin-top: 24px;
  }
  .hero-copy h1 em {
    font-size: 1.06em;
  }
  .hero-intro {
    font-size: 1.4375rem;
    margin-top: 24px;
  }
  .hero-current {
    max-width: none;
    margin-top: 26px;
  }
  .hero-art {
    aspect-ratio: 1.05;
  }
  .section-block {
    padding: 48px 0;
  }
  .section-top {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .section-top h2 {
    font-size: 2.625rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-caption h3 {
    font-size: 1.6875rem;
  }
  .project-art {
    aspect-ratio: 1.35;
  }
  .project-caption p {
    font-size: 0.9375rem;
  }
  .featured-note {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .featured-note h2 {
    font-size: 3.25rem;
  }
  .featured-note p {
    font-size: 1.0625rem;
  }
  .home-about {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-about h2 {
    font-size: 2.875rem;
  }
  .home-about p:not(.eyebrow) {
    font-size: 1.125rem;
  }
  .site-footer {
    margin: 0 -6.82%;
    padding: 44px 6.82% 24px;
  }
  .footer-top {
    flex-direction: column;
    align-items: start;
    gap: 32px;
  }
  .footer-top > p > a {
    font-size: 3.375rem;
  }
  .footer-links {
    gap: 24px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 36px;
  }
  .footer-bottom > span:last-child {
    width: 100%;
  }
  .art-bottom > span {
    font-size: 0.75rem;
  }
  .art-play {
    font-size: 0.75rem;
  }
  .art-chip {
    font-size: 0.75rem;
    left: 16px;
    bottom: 16px;
  }
}
@media (max-width: 380px) {
  .site-header {
    gap: 14px;
  }
  .site-header nav {
    gap: 16px;
  }
  .command-trigger {
    padding: 6px 8px;
  }
  .eyebrow {
    font-size: 0.75rem;
  }
  .hero-art {
    aspect-ratio: 0.95;
  }
  .art-bottom {
    gap: 6px;
  }
  .art-bottom > span {
    max-width: 13ch;
  }
  .footer-top > p {
    font-size: 1.125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header nav,
  .command-trigger,
  .hero-art,
  .project-art,
  dialog,
  .toast {
    display: none !important;
  }
  .site-wrap {
    padding: 0;
  }
  .site-footer {
    margin: 0;
    background: white;
    color: black;
  }
  .home-hero {
    display: block;
    min-height: 0;
  }
  .site-footer a {
    color: black !important;
  }
  .section-block {
    padding: 28px 0;
  }
}
/* Shared page and article language */
.page-heading {
  padding: 72px 0 60px;
  max-width: 1000px;
}
.page-heading h1 {
  font-size: clamp(3.375rem, 6vw, 5.5rem);
  margin: 26px 0;
  line-height: 1.04;
}
.page-heading > p:last-child {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 44ch;
}
.wide-card {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 24px;
}
.wide-card .project-art {
  aspect-ratio: 1.5;
}
.wide-card .project-caption {
  padding: 0;
  align-items: center;
}
.wide-card h3 {
  font-size: 2.375rem;
}
.wide-card .project-caption p {
  font-size: 1rem;
  max-width: 25ch;
}
.form-preview {
  background: #e8ebf3;
}
.form-preview canvas {
  height: 120%;
  width: 90%;
  object-fit: contain;
  pointer-events: none;
}
.lab-index-note {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  margin-top: 60px;
}
.lab-index-note > p:not(.eyebrow) {
  font-size: 1.3125rem;
  max-width: 40ch;
}
.lab-index-note .inline-link {
  grid-column: 2;
  justify-self: start;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 8px 0;
}
.back-link:hover {
  color: var(--accent);
}
.detail-heading {
  padding: 28px 0 40px;
}
.detail-heading > div {
  margin-top: 28px;
}
.detail-heading h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  margin: 16px 0 22px;
}
.detail-heading > div > p:last-child {
  font-size: 1.125rem;
  color: var(--muted);
}
.lab-panel {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.experiment-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #eff1f8;
  padding: 26px;
  border-right: 1px solid var(--line);
}
.canvas-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.canvas-heading .eyebrow,
.live-badge {
  font: 0.75rem/1.5 var(--mono);
}
.live-badge {
  color: var(--accent);
  white-space: nowrap;
}
.field-wrap {
  position: relative;
  padding: 30px 0;
  margin: auto 0;
}
#decision-field {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640/520;
  cursor: crosshair;
}
.axis-label {
  position: absolute;
  font: 0.75rem var(--mono);
  color: #50576b;
}
.axis-y {
  top: 30px;
  left: calc(50% + 6px);
}
.axis-x {
  right: 8px;
  top: calc(50% + 8px);
}
.plot-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 0.75rem/1.5 var(--mono);
  color: var(--muted);
  margin-top: 8px;
}
.plot-footer > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.legend-a {
  border: 2px solid var(--accent);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-b {
  color: #bb4f2d;
  font-size: 1.25rem;
  font-style: normal;
  margin-left: 10px;
}
.experiment-controls {
  padding: 32px;
  min-width: 0;
}
.experiment-controls h2 {
  font-size: 2rem;
  margin: 18px 0;
  letter-spacing: -0.045em;
}
.experiment-controls > p:not(.eyebrow):not(.status-line) {
  font-size: 1rem;
  color: var(--muted);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.control-group {
  margin-top: 24px;
}
.control-group legend {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
}
.segmented {
  display: flex;
  gap: 6px;
}
.segmented button {
  flex: 1;
  border: 1px solid var(--line);
  background: white;
  padding: 10px;
  min-height: 44px;
  font-size: 0.875rem;
  border-radius: 4px;
}
.segmented button[aria-pressed="true"] {
  background: #e6eaff;
  border-color: var(--accent);
  color: #243aca;
}
.segmented button:hover {
  border-color: var(--accent);
}
.train-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.primary-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 14px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 12px 16px;
  min-height: 48px;
  font-size: 0.875rem;
}
.primary-button:hover {
  background: #2139da;
}
.training-progress {
  height: 2px;
  background: var(--line);
  margin-top: 24px;
}
.training-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}
.metrics dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.metrics dd {
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.point-class {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.point-class label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 36px;
}
input[type="radio"] {
  accent-color: var(--accent);
}
.accent {
  color: var(--accent);
}
.blue {
  color: #bb4f2d;
}
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 12px 0;
}
summary:hover {
  color: var(--ink);
}
#point-form {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
#point-form label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
#point-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: white;
  padding: 10px;
  font-size: 1rem;
  border-radius: 3px;
}
#point-form button {
  flex-shrink: 0;
}
.status-line {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
  min-height: 36px;
}
.under-hood {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.under-hood summary {
  display: flex;
  justify-content: space-between;
  list-style: none;
}
.under-hood summary::-webkit-details-marker {
  display: none;
}
.under-hood[open] summary span {
  transform: rotate(45deg);
}
.under-hood p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}
.source-link {
  font-size: 0.875rem;
  color: var(--accent);
  display: inline-block;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 36px;
  accent-color: var(--accent);
  cursor: pointer;
}
.network-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.network-section h2 {
  font-size: 3.5rem;
  margin-top: 22px;
}
.network-section > div > p:last-child {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36ch;
  margin-top: 24px;
}
.network-figure {
  min-width: 0;
}
.figure-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.figure-cross {
  color: var(--accent);
  font-size: 1.5rem;
}
.network-stage {
  aspect-ratio: 500/330;
  display: flex;
  align-items: center;
  margin: 16px 0;
}
.network-stage svg,
.network-fallback {
  width: 100%;
  height: auto;
  display: block;
}
.network-fallback {
  background: #1c1d21;
  padding: 24px;
}
.network-label {
  fill: #565b6d;
  font: 0.75rem var(--mono);
  text-anchor: middle;
  letter-spacing: 0.2px;
}
.network-node {
  stroke-width: 1.4;
}
.network-edge {
  stroke-linecap: round;
}
.probe-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.probe-controls label {
  display: grid;
  grid-template-columns: auto 1fr 4ch;
  align-items: center;
  gap: 8px;
  font: 0.75rem var(--mono);
  color: var(--muted);
}
.network-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  font: 0.75rem/1.6 var(--mono);
  color: var(--muted);
}
.next-note {
  padding: 60px 0;
}
.next-note > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}
.next-note h2 {
  font-size: 2rem;
  line-height: 1.25;
  max-width: 30ch;
}
.next-note > a > span {
  font-size: 2.25rem;
  color: var(--accent);
}
.next-note a:hover h2 {
  color: var(--accent);
}
#automaton {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 768/520;
  margin: auto 0;
  padding: 32px 0;
  image-rendering: pixelated;
}
.seed-cells {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  margin: 8px 0 16px;
}
.seed-cells button {
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 1px solid #9097ac;
  background: #f1f3fa;
  border-radius: 2px;
}
.seed-cells button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.seed-actions {
  display: flex;
  gap: 10px;
}
.seed-actions button {
  flex: 1;
}
.generation-control {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 24px;
}
.generation-control > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.generation-control output {
  color: var(--accent);
}
.notice {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  margin-bottom: 24px;
}
.form-workbench {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.form-stage {
  position: relative;
  min-width: 0;
  background: #e8ebf3;
  display: flex;
  align-items: center;
  aspect-ratio: 1;
}
.form-stage canvas {
  height: auto;
}
.form-controls {
  padding: 38px;
}
.form-controls h2 {
  font-size: 2.375rem;
  line-height: 1.1;
  margin: 18px 0;
}
.form-controls > p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
}
.range-label {
  display: block;
  font-size: 0.875rem;
  margin-top: 24px;
  color: var(--muted);
}
.range-label output {
  float: right;
  color: var(--accent);
}
.range-label input {
  display: block;
  margin-top: 8px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.form-actions button {
  flex: 1;
}
.form-actions button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: #e6eaff;
}
.form-explanation {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}
.form-explanation > p:not(.eyebrow) {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 14px;
}
.form-explanation .inline-link {
  margin-top: 18px;
}
.notes-list {
  border-top: 1px solid var(--line);
}
.note-row {
  display: grid;
  grid-template-columns: 0.25fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.note-number {
  font: 0.875rem var(--mono);
  color: var(--muted);
  padding-top: 5px;
}
.note-row h2 {
  font-size: 2.625rem;
  margin: 16px 0;
}
.note-row p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 48ch;
}
.note-row .round-arrow {
  margin-top: 36px;
}
.note-row:hover h2 em {
  color: var(--accent);
}
.elsewhere {
  border-top: 0;
}
.section-intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 36px;
}
.reference-list {
  border-top: 1px solid var(--line);
}
.reference-list a {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  align-items: baseline;
}
.reference-list a > span:nth-child(2) {
  font-size: 0.875rem;
  color: var(--muted);
}
.reference-list a:hover {
  color: var(--accent);
}
.article-heading {
  max-width: 1100px;
  padding: 28px 0 48px;
}
.article-heading > .eyebrow {
  margin-top: 42px;
}
.article-heading h1 {
  font-size: clamp(2.875rem, 5.5vw, 4.75rem);
  margin: 24px 0;
}
.article-heading > p:last-child {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 52ch;
}
.article-layout {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 64px;
  border-top: 1px solid var(--line);
  padding: 48px 0 80px;
}
.article-aside {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
  font-size: 0.875rem;
  position: sticky;
  top: 30px;
  align-self: start;
}
.article-aside .eyebrow {
  margin-bottom: 12px;
}
.article-aside > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-lab-link {
  color: var(--accent);
  margin-top: 20px;
}
.prose {
  max-width: 740px;
  font-size: 1.125rem;
  line-height: 1.8;
  min-width: 0;
}
.prose > p {
  margin-bottom: 24px;
}
.prose h2 {
  font-size: 1.875rem;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 48px 0 22px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose pre {
  background: #e8ebf3;
  border: 1px solid #dbe0ef;
  border-radius: 4px;
  overflow: auto;
  padding: 24px;
  font: 0.875rem/1.7 var(--mono);
  margin: 28px 0;
}
.architecture-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 24px;
  margin: 30px 0;
  background: #e8edff;
  border-radius: 4px;
}
.architecture-strip > span {
  font-size: 2.25rem;
  font-weight: 500;
  text-align: center;
  color: var(--accent);
  line-height: 1.1;
}
.architecture-strip small {
  display: block;
  font: 0.75rem var(--mono);
  color: var(--muted);
  margin-top: 10px;
}
.architecture-strip i {
  font-style: normal;
  color: var(--muted);
}
.article-callout {
  border-left: 3px solid var(--accent);
  padding: 12px 0 12px 28px;
  margin: 36px 0;
}
.article-callout > p {
  margin: 14px 0 20px;
}
.article-callout .inline-link {
  font-size: 0.875rem;
  text-decoration: none;
}
.article-source {
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 48px;
}
.article-pattern {
  margin: 32px 0;
  background: #1c1d21;
  padding: 28px 28px 18px;
  border-radius: 4px;
}
.article-pattern img {
  display: block;
  width: 100%;
  height: auto;
}
.article-pattern figcaption {
  font: 0.75rem/1.6 var(--mono);
  color: #b5bacb;
  margin-top: 24px;
}
.rule-table {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  background: #e8ebf3;
  padding: 22px 16px;
  border-radius: 4px;
  margin: 28px 0;
  font: 0.75rem var(--mono);
  text-align: center;
}
.rule-table b {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 16px;
  font-weight: 400;
}
.about-heading {
  padding-bottom: 48px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 100px;
  align-items: start;
  padding-bottom: 70px;
}
.about-mark {
  background: var(--accent);
  color: white;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}
.about-mark > span {
  font-size: clamp(7.5rem, 18vw, 16.875rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.15em;
  padding-right: 20px;
  display: flex;
  transform: translateY(-15px);
}
.about-mark > span > span {
  transform: translateY(45px);
}
.about-mark > p {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #dbe1ff;
  font: 0.75rem/1.7 var(--mono);
}
.about-copy {
  font-size: 1.125rem;
  color: var(--muted);
}
.about-copy p {
  margin-bottom: 24px;
  max-width: 42ch;
}
.about-copy .about-lede {
  font-size: 1.75rem;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.04em;
}
.about-copy .inline-link {
  color: var(--ink);
  margin-top: 8px;
}
.about-now {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 100px;
}
.about-now h2 {
  font-size: 2.625rem;
  margin-top: 20px;
  line-height: 1.15;
}
.now-items > div {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
}
.now-items > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.now-items span {
  font: 0.75rem/1.7 var(--mono);
  color: var(--muted);
}
.now-items p {
  font-size: 1rem;
}
.now-items a {
  overflow-wrap: anywhere;
}
.error-page {
  min-height: 70vh;
  padding-bottom: 80px;
}
@media (max-width: 1100px) {
  .lab-panel {
    grid-template-columns: 1.1fr 1fr;
  }
  .experiment-visual {
    padding: 22px;
  }
  .experiment-controls {
    padding: 26px;
  }
  .canvas-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .network-section {
    gap: 50px;
  }
  .form-controls {
    padding: 28px;
  }
  .form-controls h2 {
    font-size: 2rem;
  }
  .form-stage {
    aspect-ratio: auto;
  }
  .form-stage canvas {
    width: 100%;
  }
  .article-layout {
    grid-template-columns: 0.7fr 2fr;
    gap: 36px;
  }
  .about-grid,
  .about-now {
    gap: 60px;
  }
  .plot-footer {
    flex-wrap: wrap;
  }
  .wide-card {
    gap: 36px;
  }
  .wide-card h3 {
    font-size: 2rem;
  }
}
@media (max-width: 800px) {
  .lab-panel,
  .form-workbench {
    grid-template-columns: 1fr;
  }
  .experiment-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .field-wrap {
    width: 100%;
    max-width: 620px;
    align-self: center;
  }
  .canvas-heading {
    flex-wrap: nowrap;
  }
  .form-stage {
    aspect-ratio: 1.15;
    max-height: 650px;
  }
  .form-stage canvas {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  .form-controls h2 br {
    display: none;
  }
  .network-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .network-section h2 {
    font-size: 2.875rem;
  }
  .network-section h2 br {
    display: none;
  }
  .network-section > div > p:last-child {
    max-width: 48ch;
  }
  .network-figure {
    max-width: 650px;
    width: 100%;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .article-aside {
    position: static;
    display: none;
  }
  .prose {
    max-width: 720px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-now {
    gap: 40px;
  }
  .now-items > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .page-heading {
    padding: 44px 0;
  }
  .page-heading h1 {
    font-size: 3.25rem;
    margin: 24px 0;
  }
  .page-heading > p:last-child {
    font-size: 1.125rem;
  }
  .wide-card {
    display: block;
    grid-column: auto;
    margin-top: 0;
  }
  .wide-card .project-art {
    aspect-ratio: 1.35;
  }
  .wide-card .project-caption {
    padding-top: 24px;
    align-items: start;
  }
  .wide-card h3 {
    font-size: 1.6875rem;
  }
  .wide-card .project-caption p {
    font-size: 0.9375rem;
    max-width: none;
  }
  .lab-index-note {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 44px;
  }
  .lab-index-note .inline-link {
    grid-column: auto;
  }
  .lab-index-note > p:not(.eyebrow) {
    font-size: 1.125rem;
  }
  .detail-heading {
    padding: 24px 0 30px;
  }
  .detail-heading > div {
    margin-top: 22px;
  }
  .detail-heading h1 {
    font-size: 3rem;
    margin: 18px 0;
  }
  .detail-heading > div > p:last-child {
    font-size: 1rem;
  }
  .experiment-visual {
    padding: 20px 16px;
  }
  .experiment-controls {
    padding: 26px 20px;
  }
  .experiment-controls h2 {
    font-size: 1.875rem;
  }
  .experiment-controls h2 br {
    display: none;
  }
  .field-wrap {
    padding: 28px 0;
  }
  .metrics {
    gap: 16px;
  }
  .metrics dd {
    font-size: 1.4375rem;
  }
  .network-section {
    padding: 44px 0;
    gap: 30px;
  }
  .network-section > div > p:last-child {
    font-size: 1rem;
  }
  .network-figure figcaption {
    flex-direction: column;
    gap: 4px;
  }
  .probe-controls {
    gap: 18px;
  }
  .next-note {
    padding: 44px 0;
  }
  .next-note h2 {
    font-size: 1.5625rem;
  }
  .next-note > a {
    gap: 18px;
  }
  .next-note > a > span {
    font-size: 1.75rem;
  }
  .form-controls {
    padding: 26px 20px;
  }
  .form-stage .art-label > span:last-child {
    display: none;
  }
  .form-stage .art-bottom {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .form-stage .art-bottom > span {
    max-width: 18ch;
  }
  .form-stage .art-play {
    max-width: 12ch;
    text-align: right;
    line-height: 1.5;
  }
  .note-row {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 32px 0;
  }
  .note-number {
    grid-column: 1/-1;
  }
  .note-row h2 {
    font-size: 2.125rem;
    margin-top: 20px;
  }
  .note-row .round-arrow {
    width: 34px;
    height: 34px;
    margin-top: 46px;
  }
  .note-row p {
    font-size: 1rem;
  }
  .reference-list a {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 24px 0;
  }
  .reference-list a > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .reference-list a > span:last-child {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .article-heading {
    padding: 24px 0 34px;
  }
  .article-heading > .eyebrow {
    margin-top: 28px;
  }
  .article-heading h1 {
    font-size: 2.875rem;
  }
  .article-heading > p:last-child {
    font-size: 1.125rem;
  }
  .article-layout {
    padding: 34px 0 50px;
  }
  .prose {
    font-size: 1.0625rem;
    line-height: 1.8;
  }
  .prose h2 {
    font-size: 1.75rem;
    margin-top: 36px;
  }
  .architecture-strip {
    padding: 24px 16px;
    gap: 6px;
  }
  .architecture-strip > span {
    font-size: 1.875rem;
  }
  .architecture-strip small {
    font-size: 0.75rem;
  }
  .prose pre {
    font-size: 0.8125rem;
    padding: 20px;
  }
  .article-callout {
    padding-left: 20px;
  }
  .article-pattern {
    padding: 22px 16px 16px;
  }
  .rule-table {
    gap: 4px;
    padding: 20px 8px;
    font-size: 0.75rem;
  }
  .rule-table b {
    font-size: 1.375rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 44px;
  }
  .about-mark {
    aspect-ratio: 1.2;
    max-width: 500px;
  }
  .about-mark > span {
    font-size: 12.5rem;
  }
  .about-copy .about-lede {
    font-size: 1.625rem;
  }
  .about-copy {
    font-size: 1.0625rem;
  }
  .about-now {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-now h2 {
    font-size: 2.375rem;
  }
  .now-items > div {
    grid-template-columns: 90px 1fr;
    gap: 16px;
  }
  .now-items > div:first-child {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 380px) {
  .page-heading h1,
  .detail-heading h1 {
    font-size: 2.6875rem;
  }
  .article-heading h1 {
    font-size: 2.5625rem;
  }
  .canvas-heading {
    flex-wrap: wrap;
  }
  .experiment-controls {
    padding: 24px 16px;
  }
  .point-class {
    gap: 16px;
  }
  .seed-cells {
    gap: 3px;
  }
  .form-controls {
    padding: 24px 16px;
  }
  .next-note h2 {
    font-size: 1.4375rem;
  }
  .rule-table {
    font-size: 0.75rem;
  }
  .now-items > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-caption h3 {
    font-size: 1.5625rem;
  }
  .note-row h2 {
    font-size: 1.875rem;
  }
  .note-row .eyebrow {
    max-width: 22ch;
    display: block;
  }
}

.art-bottom a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.art-bottom a:hover {
  color: var(--accent);
}
@media (max-width: 700px) {
  .art-bottom a {
    max-width: 13ch;
    font-size: 0.8125rem;
  }
}

/* Preserve usable text enlargement without fixed-height clipping. */
.site-header {
  height: auto;
  min-height: 116px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.site-header nav {
  flex-wrap: wrap;
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
.segmented button {
  min-width: 0;
  overflow-wrap: anywhere;
}
.metrics dd {
  overflow-wrap: anywhere;
}
.lab-panel,
.form-workbench,
.article-layout,
.about-grid {
  min-width: 0;
}
@media (max-width: 700px) {
  .site-header {
    min-height: 88px;
    padding: 20px 0;
  }
}
