@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fbfffc;
  --mint: #e9f7f1;
  --deep: #032c26;
  --green: #06372f;
  --teal: #007b70;
  --muted: #536f65;
  --line: #c9dfd4;
  --light: #75d9ca;
  --amber: #f1c784;
  --duration: 680ms;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--deep);
  background: var(--paper);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled,
select:disabled,
input:disabled {
  cursor: default;
  opacity: 0.5;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 44px;
  padding: 9px 17px;
  background: var(--paper);
  color: var(--deep);
  font-weight: 650;
  font-size: 13px;
  transition: background 0.15s;
}
button:hover:enabled {
  background: #dfefe6;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover:enabled {
  background: var(--green);
}
:focus-visible {
  outline: 3px solid #b17a2e;
  outline-offset: 4px;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
}
p {
  overflow-wrap: break-word;
}
button,
summary,
a {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 12px;
  background: white;
  z-index: 50;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  margin-right: auto;
}
.brand img {
  width: 167px;
  height: 44px;
  object-fit: contain;
}
.header-note {
  font-size: 12px;
  color: var(--muted);
}
.back {
  font-size: 13px;
  text-decoration: none;
  font-weight: 650;
}
.back span {
  margin-left: 14px;
}
.hero {
  padding-block: 66px 54px;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 6px;
}
h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.065em;
}
h1 em {
  font-style: normal;
  color: var(--teal);
}
.lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.chapter-nav {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.chapter-nav a {
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}
.chapter-nav span {
  font-size: 10px;
  color: var(--teal);
}
.chapter-nav b {
  margin-left: 5px;
}
.hero-note {
  color: var(--teal);
  transform: rotate(-7deg);
}
.hero-note svg {
  width: 240px;
}
.hero-note text {
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 600;
}
.hero-note p {
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.chapter {
  padding-top: 30px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 26px;
}
.section-heading .eyebrow {
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 640;
}
.section-heading > p {
  max-width: 460px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.exhibit {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px #06372f08;
}
.exhibit-top {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: #f4faf6;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 7px;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
}
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #fff;
}
.reset {
  font-size: 22px;
  width: 44px;
  padding: 0;
}
.speed {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--deep);
  background: white;
  min-height: 44px;
  padding: 0 8px;
}
.machine {
  padding: 24px;
  background: var(--deep);
  color: #f4fff9;
}
.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 0 25px;
  margin: 0;
  font-size: 11px;
  color: #a6c0b6;
}
.stages li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stages li span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #507369;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 10px;
}
.stages li.active {
  color: var(--light);
}
.stages li.active span {
  background: var(--light);
  border-color: var(--light);
  color: var(--deep);
}
.generation-grid {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 24px;
  align-items: stretch;
}
.stage-panel {
  border: 1px solid #355a4e;
  border-radius: 13px;
  background: #0b3a30;
  padding: 20px;
  min-width: 0;
  transition: border-color 0.2s;
}
.panel-label {
  font-size: 11px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-square {
  width: 7px;
  height: 7px;
  background: var(--light);
  border-radius: 2px;
}
.mini-square.amber {
  background: var(--amber);
}
.role-label {
  display: block;
  font-size: 8px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #a9c7ba;
  margin-bottom: 5px;
}
.source-row {
  margin-top: 19px;
  padding-bottom: 13px;
  border-bottom: 1px solid #325b4d;
  font-size: 10px;
  color: #cbe1d5;
}
.source-row summary {
  line-height: 1.6;
  min-height: 30px;
}
.source-row details p {
  padding: 9px 0;
  font-size: 11px;
  line-height: 1.75;
}
.prompt {
  margin-top: 14px;
}
.prompt p {
  font-size: 13px;
  font-weight: 550;
}
.prefix {
  margin-top: 18px;
  padding: 12px;
  background: #163f35;
  border-radius: 7px;
}
.prefix p {
  font-size: 12px;
  min-height: 3.2em;
  max-height: 6.4em;
  overflow: auto;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: #659c89 transparent;
  overflow-wrap: anywhere;
}
.panel-foot {
  margin-top: 12px;
  font-size: 9px;
  line-height: 1.7;
  color: #b3cdbf;
}
.model-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  min-width: 0;
}
.model-orbit {
  width: 150px;
  height: 150px;
  border: 1px solid #3d6e5e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.model-orbit:before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed #335e50;
  border-radius: 50%;
}
.network {
  width: 125px;
  color: #82bba5;
}
.network-lines {
  opacity: 0.25;
}
.network-signal {
  color: var(--light);
  opacity: 0.3;
}
.model-panel h3 {
  font-size: 20px;
  font-weight: 550;
  line-height: 1.3;
  margin-top: 20px;
}
.model-panel p {
  font-size: 9px;
  color: #b3cdbf;
  margin-top: 8px;
  line-height: 1.7;
}
.flow-arrow {
  position: absolute;
  top: 45%;
  font-size: 24px;
  color: #6f9e8a;
  left: -22px;
}
.flow-arrow:last-child {
  left: auto;
  right: -22px;
}
.prob-hint {
  font-size: 9px;
  color: #c2d9cc;
  margin-top: 8px;
}
.candidates {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  min-height: 172px;
}
.candidate {
  position: relative;
  min-height: 34px;
  border-radius: 5px;
  overflow: hidden;
  background: #154438;
  border: 1px solid transparent;
}
.candidate-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #2b6751;
  transition: width 0.25s;
}
.candidate:first-child .candidate-fill {
  background: #456d49;
}
.candidate-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
  padding: 5px 10px;
  min-height: 32px;
  font-size: 12px;
}
.candidate-label code {
  font: inherit;
  white-space: pre;
}
.candidate-label span {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.candidate.selected {
  border-color: var(--amber);
}
.candidate.selected .candidate-fill {
  background: #6d6036;
}
.chosen {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #325b4d;
  font-size: 10px;
  color: var(--amber);
  min-height: 33px;
}
.return-path {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8bb7a2;
  padding: 14px 10px;
  font-size: 10px;
}
.return-path > span:first-child,
.return-path > span:last-child {
  font-size: 20px;
}
.return-path i {
  height: 1px;
  background: #3d6e5b;
  flex: 1;
}
.answer-panel {
  background: #e9f7f1;
  border-radius: 12px;
  color: var(--deep);
  padding: 20px;
}
.answer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.toggle {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  cursor: pointer;
  line-height: 1.6;
}
.toggle input {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.answer-text {
  font-size: 20px;
  font-weight: 520;
  line-height: 1.95;
  min-height: 120px;
  padding: 12px 0 20px;
  overflow-wrap: anywhere;
}
.empty {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.token {
  border-radius: 3px;
  padding: 2px 0;
  white-space: pre-wrap;
}
.show-boundaries .token:nth-child(4n + 1) {
  background: #d2e9df;
}
.show-boundaries .token:nth-child(4n + 2) {
  background: #bbded1;
}
.show-boundaries .token:nth-child(4n + 3) {
  background: #ddedcf;
}
.show-boundaries .token:nth-child(4n) {
  background: #c2e3db;
}
.token.last {
  background: var(--teal) !important;
  color: white;
}
.end-token {
  font-size: 10px;
  background: #c4dfd3;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 6px;
}
.scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #c8dfd3;
  padding-top: 13px;
  font-size: 9px;
  color: var(--muted);
}
.scrubber input {
  flex: 1;
  min-width: 40px;
  height: 26px;
  accent-color: var(--teal);
}
.scrubber output {
  font-family: ui-monospace, monospace;
  min-width: 2em;
  text-align: right;
}
.caption {
  background: #f0f8f3;
  padding: 17px 24px;
  font-size: 12px;
  line-height: 1.8;
  min-height: 77px;
  border-top: 1px solid var(--line);
}
.exhibit[data-phase="0"] .input-panel {
  border-color: var(--light);
}
.exhibit[data-phase="1"] .model-orbit {
  border-color: var(--light);
  box-shadow: 0 0 28px #75d9ca18;
}
.exhibit[data-phase="1"] .network-signal {
  opacity: 1;
}
.exhibit[data-phase="2"] .probability-panel {
  border-color: var(--amber);
}
.exhibit[data-phase="3"] .return-path {
  color: var(--light);
}
.exhibit[data-phase="3"] .return-path i {
  background: var(--light);
}
.below-exhibit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 23px;
  font-size: 12px;
  color: var(--muted);
}
.below-exhibit strong {
  color: var(--deep);
}
summary {
  font-weight: 600;
  min-height: 44px;
  padding: 8px 0;
  color: inherit;
}
.sampling {
  align-self: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}
.sampling summary {
  padding-top: 0;
  font-size: 12px;
  color: var(--deep);
}
.sampling p {
  margin-bottom: 12px;
}
.sampling button {
  margin-bottom: 12px;
}
.small {
  font-size: 10px;
}
.sample-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
#sample-result {
  margin-bottom: 10px;
}
.bridge {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 76px 44px;
  color: var(--muted);
}
.bridge > span {
  font-size: 56px;
  font-weight: 300;
  color: var(--teal);
}
.bridge p {
  font-size: 18px;
  line-height: 1.7;
}
.bridge strong {
  font-weight: 600;
  color: var(--deep);
}
.context-exhibit {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--mint);
}
.context-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.turn-tabs {
  display: flex;
  gap: 5px;
}
.turn-tabs button {
  border-color: transparent;
  background: transparent;
}
.turn-tabs button.selected {
  background: var(--deep);
  color: white;
}
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
}
.chat-column {
  padding: 28px;
  background: #f4faf6;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.column-title > span {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.column-title h3 {
  font-size: 22px;
  font-weight: 550;
  margin-top: 7px;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 24px;
  min-height: 330px;
}
.bubble {
  font-size: 11px;
  padding: 12px 15px;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.75;
}
.bubble.user {
  background: #d5eadf;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.bubble.assistant {
  border: 1px solid var(--line);
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.bubble .bubble-role {
  display: block;
  color: #355749;
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 700;
}
.bubble.pending {
  border-style: dashed;
  color: var(--muted);
}
.chat-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
.chat-foot > span {
  font-size: 24px;
}
.packet-column {
  padding: 28px;
  min-width: 0;
}
.packet {
  margin-top: 24px;
  border: 1px solid #bdd9ca;
  border-radius: 9px;
  overflow: hidden;
  background: #fbfffc;
}
.packet-item {
  padding: 11px 16px 11px 20px;
  border-bottom: 1px solid #d3e6db;
  border-left: 4px solid transparent;
  position: relative;
  transition: background 0.15s;
}
.packet-item:last-child {
  border-bottom: none;
}
.packet-item b {
  display: block;
  font-size: 10px;
  font-weight: 700;
}
.packet-item > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 3px;
}
.packet-item.system {
  border-left-color: #ac955e;
  background: #f8f5e9;
}
.packet-item.material {
  border-left-color: #b1baad;
}
.packet-item.user {
  border-left-color: #008578;
}
.packet-item.assistant {
  border-left-color: #92b6a0;
}
.packet-item.new-item {
  background: #e0f1e8;
}
.packet-item.scanning {
  background: #c4e9db;
  box-shadow: inset 0 0 0 2px #007b70;
}
.packet-item.omitted {
  opacity: 0.45;
  text-decoration: line-through;
}
.packet-tail {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 12px;
  font-size: 9px;
  color: var(--muted);
}
.packet-tail > span:first-child {
  font-size: 20px;
}
.context-model {
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 10px;
  background: var(--deep);
  color: white;
  padding: 15px;
}
.context-model b {
  display: block;
  font-size: 12px;
}
.context-model div > span {
  display: block;
  font-size: 9px;
  color: #b4d5c5;
  margin-top: 4px;
}
.model-symbol {
  font-size: 30px;
  color: var(--light);
}
.loop-symbol {
  font-size: 30px;
  margin-left: auto;
  color: var(--light);
}
.context-model.working {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.packet-return {
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.context-experiment {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  background: #f4faf6;
}
.context-experiment .toggle {
  font-size: 11px;
  flex: 1;
}
.context-experiment p {
  font-size: 11px;
  flex: 1;
  color: var(--muted);
}
.takeaway {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.takeaway-mark {
  font-size: 85px;
  line-height: 1;
  color: #8abaaa;
  align-self: start;
}
.takeaway p {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.6;
  letter-spacing: -0.025em;
}
.takeaway strong {
  font-weight: 650;
}
.takeaway > span {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.notes {
  padding-block: 80px 64px;
}
.notes h2 {
  font-size: 28px;
}
.notes .eyebrow {
  margin-bottom: 13px;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 34px;
}
.note-number {
  font-size: 10px;
  color: var(--teal);
  display: block;
  margin-bottom: 15px;
}
.note-grid h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 12px;
}
.note-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}
.sources {
  margin-top: 36px;
  border-block: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.sources summary {
  padding-block: 16px;
  color: var(--deep);
}
.sources p {
  margin-bottom: 14px;
}
.sources li {
  margin: 6px 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
}
.footer a {
  text-decoration: none;
  font-weight: 650;
}
.footer a:first-child > span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.no-js {
  padding: 20px;
  border: 1px solid var(--line);
  margin-top: 20px;
  font-size: 13px;
}
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  transform: none;
}
.is-playing[data-phase="1"] .network-signal {
  stroke-dasharray: 24 140;
  animation: network-pass 0.68s linear;
}
.return-path i {
  position: relative;
  overflow: hidden;
}
.is-playing[data-phase="3"] .return-path i:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #b2ffda;
  transform-origin: right;
  animation: return-pass 0.55s ease-out;
}
.token.last {
  animation: token-arrive 0.25s ease-out;
}
.context-model.working .loop-symbol {
  animation: context-turn 1s ease-in-out;
}
@keyframes network-pass {
  from {
    stroke-dashoffset: 164;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes return-pass {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes token-arrive {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@keyframes context-turn {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-block: 80px 70px;
  }
  .generation-grid {
    grid-template-columns: 1fr 210px 1fr;
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    grid-template-columns: 1fr 190px;
  }
  .hero-note svg {
    width: 190px;
  }
  .generation-grid {
    grid-template-columns: 1fr 125px 1fr;
    gap: 18px;
  }
  .model-orbit {
    width: 106px;
    height: 106px;
  }
  .network {
    width: 100px;
  }
  .stage-panel {
    padding: 15px;
  }
  .model-panel h3 {
    font-size: 17px;
  }
  .model-panel p {
    font-size: 8px;
  }
  .stages {
    gap: 8px;
    font-size: 9px;
  }
  .section-heading {
    gap: 35px;
  }
  .chat-column,
  .packet-column {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  .header {
    height: 80px;
  }
  .header-note {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 42px 34px;
  }
  .hero-note {
    display: none;
  }
  h1 {
    font-size: 54px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .section-heading > p {
    max-width: 100%;
  }
  .generation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .input-panel {
    grid-column: 1;
  }
  .model-panel {
    grid-column: 2;
    grid-row: 1;
    min-height: 260px;
  }
  .model-orbit {
    width: 140px;
    height: 140px;
  }
  .network {
    width: 120px;
  }
  .model-panel h3 {
    font-size: 20px;
  }
  .model-panel p {
    font-size: 10px;
  }
  .model-panel .flow-arrow {
    left: -15px;
  }
  .model-panel .flow-arrow:last-child {
    top: auto;
    bottom: -24px;
    left: 50%;
    right: auto;
    transform: rotate(90deg);
  }
  .probability-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    align-items: start;
  }
  .probability-panel .panel-label {
    grid-column: 1;
  }
  .prob-hint {
    grid-column: 1;
  }
  .candidates {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
    min-height: 160px;
  }
  .chosen {
    grid-column: 1;
  }
  .stages {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 10px;
  }
  .answer-text {
    font-size: 18px;
    min-height: 140px;
  }
  .below-exhibit {
    gap: 24px;
  }
  .context-grid {
    grid-template-columns: 1fr;
  }
  .chat-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chat-messages {
    min-height: 0;
  }
  .packet-column .column-title {
    margin-top: 4px;
  }
  .bubble {
    max-width: 88%;
    font-size: 12px;
  }
  .context-experiment {
    align-items: start;
    gap: 16px;
  }
  .context-toolbar {
    padding: 16px;
    flex-wrap: wrap;
  }
  .turn-tabs {
    flex: 1;
  }
  .turn-tabs button {
    flex: 1;
  }
  .note-grid {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .note-grid article {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .note-number {
    float: left;
    margin-right: 16px;
  }
  .note-grid p {
    margin-left: 30px;
  }
  .bridge {
    padding-block: 48px 30px;
  }
  .notes {
    padding-block: 52px 36px;
  }
  .takeaway > span {
    display: none;
  }
}
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .brand img {
    width: 143px;
  }
  .header {
    gap: 15px;
  }
  .back {
    font-size: 11px;
  }
  .back span {
    margin-left: 6px;
  }
  .hero {
    padding-top: 34px;
  }
  h1 {
    font-size: 46px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .lead {
    font-size: 14px;
  }
  .desktop-break {
    display: none;
  }
  .chapter-nav {
    gap: 4px 16px;
    margin-top: 20px;
  }
  .chapter-nav a {
    font-size: 10px;
  }
  .chapter {
    padding-top: 25px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  h2 {
    font-size: 27px;
  }
  .exhibit,
  .context-exhibit {
    border-radius: 14px;
  }
  .exhibit-top {
    padding: 14px;
    font-size: 10px;
  }
  .mono {
    font-size: 10px;
  }
  .controls {
    padding: 12px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .controls button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .controls .reset {
    font-size: 23px;
  }
  .speed {
    font-size: 10px;
    gap: 5px;
  }
  .machine {
    padding: 15px;
  }
  .generation-grid {
    gap: 13px;
  }
  .stage-panel {
    padding: 12px;
  }
  .input-panel {
    grid-column: 1 / -1;
  }
  .model-panel {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    flex-direction: row;
    gap: 18px;
    padding: 6px 0;
  }
  .model-orbit {
    height: 82px;
    width: 82px;
    flex-shrink: 0;
    margin-inline: 8px;
  }
  .network {
    width: 80px;
  }
  .model-panel h3 {
    font-size: 16px;
    margin: 0;
    text-align: left;
  }
  .model-panel p {
    display: none;
  }
  .model-panel .flow-arrow {
    left: 50%;
    top: -19px;
    transform: rotate(90deg);
    font-size: 20px;
  }
  .model-panel .flow-arrow:last-child {
    bottom: -19px;
  }
  .probability-panel {
    grid-template-columns: 1fr;
    margin-top: 3px;
  }
  .probability-panel .panel-label,
  .prob-hint,
  .chosen,
  .candidates {
    grid-column: 1;
    grid-row: auto;
  }
  .candidates {
    margin-top: 15px;
    min-height: 152px;
    gap: 6px;
  }
  .prefix {
    margin-top: 13px;
  }
  .prefix p {
    min-height: 1.6em;
    max-height: 4.8em;
  }
  .panel-foot {
    display: none;
  }
  .prompt {
    margin-top: 12px;
  }
  .source-row {
    margin-top: 12px;
    padding-bottom: 8px;
  }
  .role-label {
    font-size: 8px;
  }
  .answer-panel {
    padding: 14px;
  }
  .answer-heading {
    align-items: start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .answer-heading .panel-label {
    padding-block: 7px;
  }
  .answer-text {
    min-height: 125px;
    font-size: 17px;
    line-height: 2;
  }
  .scrubber {
    gap: 8px;
    flex-wrap: wrap;
  }
  .scrubber label {
    font-size: 8px;
  }
  .scrubber input {
    min-width: 50px;
  }
  .caption {
    padding: 15px;
    font-size: 11px;
    min-height: 96px;
  }
  .return-path {
    font-size: 8px;
    gap: 5px;
    padding: 12px 0;
  }
  .return-path i {
    min-width: 6px;
  }
  .below-exhibit {
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 11px;
  }
  .sampling summary {
    font-size: 11px;
  }
  .bridge {
    gap: 16px;
    padding-block: 42px 25px;
  }
  .bridge > span {
    font-size: 40px;
  }
  .bridge p {
    font-size: 15px;
  }
  .context-toolbar {
    padding: 12px;
    gap: 10px;
  }
  .turn-tabs {
    width: 100%;
  }
  .turn-tabs button {
    font-size: 10px;
    padding-inline: 8px;
  }
  .context-toolbar > .primary {
    width: 100%;
    font-size: 12px;
  }
  .chat-column,
  .packet-column {
    padding: 18px;
  }
  .column-title h3 {
    font-size: 20px;
  }
  .bubble {
    font-size: 11px;
  }
  .context-experiment {
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }
  .context-experiment .toggle {
    font-size: 10px;
  }
  .context-model {
    gap: 10px;
    padding: 12px;
  }
  .context-model b {
    font-size: 11px;
  }
  .context-model div > span {
    font-size: 8px;
  }
  .model-symbol,
  .loop-symbol {
    font-size: 24px;
  }
  .packet-item {
    padding: 10px 12px;
  }
  .takeaway {
    gap: 12px;
  }
  .takeaway-mark {
    font-size: 65px;
  }
  .takeaway p {
    font-size: 17px;
  }
  .notes h2 {
    font-size: 25px;
  }
  .footer {
    flex-direction: column;
    gap: 18px;
  }
}
@supports (overflow: clip) {
  @media (max-width: 760px) {
    .exhibit,
    .context-exhibit {
      overflow: clip;
    }
    .controls,
    .context-toolbar {
      position: sticky;
      top: 0;
      z-index: 5;
      box-shadow: 0 4px 16px #032c260b;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .controls,
  .scrubber,
  .context-toolbar,
  .sampling button,
  .chapter-nav,
  .hero-note {
    display: none;
  }
  .wrap {
    width: 100%;
  }
  .machine {
    background: #fff;
    color: #032c26;
  }
  .stage-panel {
    background: white;
    color: #032c26;
  }
  .chapter,
  .note-grid article {
    break-inside: avoid;
  }
  .hero {
    padding-block: 20px;
  }
  .notes {
    padding-block: 20px;
  }
}
