@font-face {
  font-family: Inter;
  src: local("Inter");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #080c10;
  color: #edf3ee;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 0 48px;
}
header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #20292f;
}
.wordmark {
  font-size: 27px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1px;
  color: #e9efeb;
}
.wordmark span {
  color: #b8f77c;
}
.wordmark i {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  margin-left: 8px;
  color: #789084;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #87988f;
  font-size: 12px;
}
.header-right a {
  color: #c8d6cd;
  margin-left: 25px;
  text-decoration: none;
}
.dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 100%;
  background: #b8f77c;
  box-shadow: 0 0 10px #b8f77555;
}
.intro {
  padding: 52px 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #829389;
  margin: 0 0 19px;
}
h1 {
  font-size: clamp(30px, 3.5vw, 49px);
  letter-spacing: -2px;
  line-height: 1.15;
  font-weight: 550;
  margin: 0;
}
h1 span {
  color: #90a49a;
}
.lede {
  color: #9aae9f;
  font-size: 14px;
  margin: 19px 0 0;
}
.video-link {
  font-size: 12px;
  color: #c6d6cb;
  text-decoration: none;
  border-bottom: 1px solid #506457;
  padding-bottom: 6px;
  white-space: nowrap;
}
.experiment {
  border: 1px solid #2c3a36;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1218;
  box-shadow: 0 30px 100px #0004;
}
.topbar {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #11191e;
  border-bottom: 1px solid #24313a;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #81978f;
}
.topbar .dot {
  margin-right: 8px;
}
.credit {
  color: #5a7567;
}
.stage {
  height: 480px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 35% 70%, #132b31, #09121c 65%);
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fly-label,
.brain-label {
  position: absolute;
  top: 29px;
  font:
    12px ui-monospace,
    monospace;
  color: #b4c8bd;
}
.fly-label {
  left: 28px;
}
.brain-label {
  right: 28px;
  text-align: right;
}
.fly-label span,
.brain-label span {
  display: block;
  font-size: 9px;
  line-height: 2;
  color: #587a73;
}
.speech {
  position: absolute;
  left: 17%;
  top: 105px;
  border: 1px solid #a5cabc3a;
  padding: 9px 15px;
  border-radius: 10px 10px 10px 0;
  background: #1e302be8;
  font:
    13px ui-monospace,
    monospace;
  transform: rotate(-3deg);
  color: #d8f0de;
}
.editor {
  position: absolute;
  left: 37%;
  top: 102px;
  width: 33%;
  border: 1px solid #3d6358;
  border-radius: 7px;
  background: #0b141bed;
  box-shadow: 0 12px 40px #0009;
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
}
.editor-head {
  padding: 13px;
  color: #adbfba;
  font:
    11px ui-monospace,
    monospace;
  border-bottom: 1px solid #25382f;
}
.editor-head span {
  color: #a7f58e;
  margin-right: 9px;
}
.editor-head small {
  float: right;
  color: #f99c95;
}
.editor pre {
  margin: 0;
  padding: 20px 15px;
  min-height: 121px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #bbd2ef;
  font:
    12px/1.7 ui-monospace,
    monospace;
}
.terminal {
  border-top: 1px solid #29382f;
  padding: 10px 15px 14px;
  min-height: 83px;
}
.terminal > span {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #618475;
}
.terminal p {
  font:
    11px/1.5 ui-monospace,
    monospace;
  color: #dda7a1;
  margin: 6px 0 0;
}
.raster {
  position: absolute;
  right: 25px;
  bottom: 64px;
  width: 24%;
  padding: 10px;
  background: #071419b3;
  border: 1px solid #2a4643;
  border-radius: 5px;
}
.raster p {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 0.7px;
  color: #7bb8a5;
  margin: 0 0 7px;
}
.raster p span {
  float: right;
  font-size: 8px;
  letter-spacing: 0;
  color: #90a79c;
}
.raster canvas {
  width: 100%;
  height: 55px;
  display: block;
}
.stage-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 23px;
  display: flex;
  justify-content: space-between;
  background: #071017c9;
  border-top: 1px solid #284238;
  font:
    11px ui-monospace,
    monospace;
  color: #b9d2bf;
}
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 23px;
  background: #111b1e;
  flex-wrap: wrap;
}
.task-select label {
  display: block;
  color: #628471;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1.1px;
  margin-bottom: 6px;
}
select {
  background: transparent;
  border: 0;
  color: #daeadc;
  max-width: 210px;
  font-size: 12px;
  padding: 0 18px 0 0;
}
select option {
  background: #142024;
}
button {
  cursor: pointer;
  background: #bef58a;
  color: #172017;
  border: 0;
  border-radius: 6px;
  padding: 13px 23px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: transparent;
  border: 1px solid #324439;
  color: #a9c0b1;
  padding: 12px 16px;
}
.ablation {
  margin-left: auto;
  color: #89a392;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ablation input {
  accent-color: #bef58a;
}
#sound {
  font-size: 10px;
  padding: 10px;
}
.steps {
  display: flex;
  justify-content: space-around;
  background: #0d1619;
  padding: 15px;
  border-top: 1px solid #283d31;
  color: #567566;
  font:
    10px ui-monospace,
    monospace;
}
.steps .active {
  color: #c1fa90;
}
.steps .done {
  color: #8eb580;
}
.under {
  display: flex;
  gap: 80px;
  padding: 30px 4px 40px;
  border-bottom: 1px solid #243129;
}
.under > p {
  font-size: 21px;
  letter-spacing: -0.5px;
  min-width: 280px;
  margin: 0;
}
.under > p span {
  font-size: 11px;
  color: #789082;
  letter-spacing: 0;
}
.under div {
  max-width: 550px;
}
.under strong {
  font-size: 13px;
  font-weight: 500;
}
.under div p {
  font-size: 12px;
  line-height: 1.6;
  color: #7e9888;
  margin: 8px 0 0;
}
details {
  border-bottom: 1px solid #243129;
}
summary {
  padding: 24px 0;
  cursor: pointer;
  color: #a9c0b0;
  font-size: 13px;
  list-style: none;
}
summary span {
  float: right;
  color: #75977f;
}
.explanation {
  padding: 0 0 30px;
  max-width: 880px;
  color: #a4b8ab;
  font-size: 14px;
  line-height: 1.7;
}
.explanation h2 {
  color: #e3eee5;
  font-size: 22px;
  font-weight: 500;
}
.metrics {
  display: flex;
  gap: 60px;
  margin: 25px 0;
}
.metrics b {
  display: block;
  color: #c3f594;
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 500;
}
.metrics span {
  font-size: 11px;
  color: #809e87;
}
.small {
  font-size: 12px;
}
.evidence-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.evidence-links a,
footer a {
  color: #b5d5bd;
  text-decoration: none;
  font-size: 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 45px;
  color: #657e6d;
  font-size: 10px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #bcf889;
  outline-offset: 4px;
}
@media (max-width: 800px) {
  main {
    padding: 0 20px;
  }
  header {
    height: 70px;
  }
  .header-right {
    font-size: 0;
    gap: 0;
  }
  .header-right a {
    font-size: 11px;
  }
  .intro {
    padding-top: 32px;
    display: block;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }
  .video-link {
    display: inline-block;
    margin-top: 20px;
  }
  .stage {
    height: 590px;
  }
  .editor {
    left: 5%;
    width: 90%;
    top: 240px;
  }
  .editor pre {
    font-size: 10px;
    padding: 12px;
    min-height: 90px;
  }
  .editor-head {
    font-size: 9px;
    padding: 10px;
  }
  .terminal p {
    font-size: 9px;
  }
  .fly-label {
    left: 15px;
    top: 20px;
    font-size: 10px;
  }
  .brain-label {
    right: 15px;
    top: 20px;
    font-size: 10px;
  }
  .brain-label span {
    max-width: 145px;
    line-height: 1.5;
    font-size: 8px;
  }
  .speech {
    left: 5%;
    top: 100px;
    font-size: 10px;
    padding: 8px;
  }
  .raster {
    right: 5%;
    width: 90%;
    bottom: 55px;
  }
  .raster canvas {
    height: 38px;
  }
  .raster p span {
    display: none;
  }
  .stage-footer {
    font-size: 8px;
    padding: 13px;
  }
  .topbar {
    padding: 0 12px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .credit {
    display: none;
  }
  .controls {
    padding: 16px;
    gap: 9px;
  }
  .controls button {
    padding: 12px 15px;
  }
  .task-select {
    flex: 1;
  }
  .ablation {
    margin: 6px 0 0;
    font-size: 10px;
  }
  .steps {
    font-size: 8px;
    padding: 13px 6px;
  }
  .under {
    gap: 24px;
    display: block;
  }
  .under > p {
    margin-bottom: 20px;
  }
  .metrics {
    gap: 25px;
  }
  .metrics b {
    font-size: 25px;
  }
  .metrics span {
    font-size: 9px;
  }
  footer {
    gap: 15px;
    flex-wrap: wrap;
  }
  .explanation {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
