@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f5f4ef;
  --panel: #fffefa;
  --ink: #1b2622;
  --muted: #59625b;
  --line: #d5d8ce;
  --blue: #2948bd;
  --blue-deep: #213aa1;
  --mint: #e6eddd;
  --dark: #16251f;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: light;
  scroll-padding-top: 28px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
video:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(2.35rem, 4.4vw, 4.5rem);
  font-weight: 550;
}
h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}
em {
  font-style: normal;
  color: var(--blue);
}
p {
  overflow-wrap: break-word;
}
code,
pre {
  font-family: var(--mono);
}
.wrap {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 52px;
}
.eyebrow,
.mono-label {
  font: 400 0.65rem/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--muted);
}
.mono-label {
  color: var(--muted);
}
.section-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 48ch;
}
.section-heading > .section-intro {
  margin-top: 25px;
}
.split-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
}
.skip-link {
  position: absolute;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--blue);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.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;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 27px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.055em;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand-stop {
  color: var(--blue);
}
.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-header nav a {
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.nav-install {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.nav-install span {
  margin-left: 12px;
}
.small-square {
  width: 6px;
  height: 6px;
  background: var(--blue);
  display: inline-block;
  flex: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 56px;
  padding-top: 64px;
  align-items: center;
}
.hero-title {
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  line-height: 1.035;
  font-weight: 570;
  letter-spacing: -0.065em;
}
.hero-title em {
  font-size: 0.82em;
  letter-spacing: -0.065em;
}
.hero-description {
  font-size: 1.035rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 44ch;
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 27px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 19px;
  min-height: 50px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  background: transparent;
}
.button.primary {
  color: #fff;
  background: var(--blue);
}
.button.primary:hover {
  background: var(--blue-deep);
}
.button.text-button {
  border-color: transparent;
  gap: 10px;
  padding-inline: 12px;
  color: var(--ink);
}
.play-symbol {
  font-size: 1.2rem;
}
.demo-status {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
  max-width: 46ch;
}
.demo-status span {
  margin-right: 5px;
}
.install-command {
  margin-top: 30px;
  max-width: 410px;
}
.install-command > .mono-label {
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}
.copy-button {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  min-height: 48px;
  color: var(--ink);
}
.copy-button:hover {
  background: var(--mint);
}
.copy-button code {
  font-size: 0.74rem;
  white-space: nowrap;
}
.copy-label {
  font-size: 0.67rem;
  white-space: nowrap;
  min-width: 54px;
  text-align: right;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 25px 25px 28px;
  background: #e7eae0;
  border: 1px solid #d0d5c8;
  border-radius: 5px;
}
.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.visual-topline .mono-label {
  font-size: 0.58rem;
  letter-spacing: 0.025em;
}
.recorded-pill {
  border: 1px solid #b8c1ae;
  border-radius: 3px;
  padding: 3px 7px;
  font: 400 0.55rem/1.7 var(--mono);
  white-space: nowrap;
}
.workbench-frame {
  height: 460px;
  overflow: hidden;
  background: #131719;
  border: 1px solid #303733;
  border-radius: 5px;
  box-shadow: 0 18px 32px -24px #16251f99;
}
.hero-capture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transform-origin: center;
}
.hero-visual figcaption {
  position: relative;
  margin: 23px 0 0 18px;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.8;
}
.caption-rule {
  position: absolute;
  left: -18px;
  top: 5px;
  width: 2px;
  height: 32px;
  background: var(--blue);
  transform-origin: top;
}
.caption-muted {
  font-weight: 400;
  font-size: 0.62rem;
  color: var(--muted);
}
.frame-registration {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font: 400 0.5rem var(--mono);
  color: #53604c;
}
.hero-bottom {
  grid-column: 1/-1;
  margin-top: 5px;
  border-top: 1px solid var(--line);
  padding-block: 24px 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 400 0.61rem var(--mono);
  color: var(--muted);
}
.hero-bottom a {
  text-decoration: none;
  color: var(--ink);
}
.hero-bottom a span {
  margin-left: 12px;
}
.problem-section {
  background: var(--panel);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: end;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 50px 1fr 1.05fr;
  margin-top: 62px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.comparison-cell {
  padding: 32px 28px;
}
.comparison-value {
  font-size: clamp(2.7rem, 4.8vw, 4.5rem);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.065em;
  margin-top: 8px;
  white-space: nowrap;
}
.comparison-value span {
  font: 400 0.32em var(--mono);
  letter-spacing: -0.04em;
}
.comparison-cell > p:last-child {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 26ch;
  margin-top: 8px;
}
.comparison-divider {
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  font-weight: 300;
  color: var(--muted);
}
.comparison-outcome {
  background: var(--mint);
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}
.outcome-label {
  font: 400 0.6rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.comparison-outcome strong {
  font-size: 1.3rem;
  line-height: 1.3;
  display: block;
  letter-spacing: -0.035em;
  margin-top: 22px;
}
.comparison-outcome p {
  font-size: 0.75rem;
  color: #435140;
  line-height: 1.8;
  margin-top: 12px;
}
.story-shell {
  position: relative;
}
.story-stage {
  padding-top: 24px;
  padding-bottom: 40px;
}
.story-rail {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  font: 400 0.62rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.story-progress {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  overflow: hidden;
}
.story-progress i {
  display: block;
  background: var(--blue);
  width: 100%;
  height: 100%;
  transform: scaleX(0.333);
  transform-origin: left;
}
.story-panel {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 90px;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 45px;
}
.story-text {
  max-width: 480px;
}
.step-index {
  font: 400 0.7rem var(--mono);
  color: var(--blue);
  display: block;
  margin-bottom: 28px;
}
.story-text h3 {
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  line-height: 1.18;
  font-weight: 550;
}
.story-text p {
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 25px;
}
.step-footnote {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
  font: 400 0.59rem/1.8 var(--mono);
  color: var(--muted);
}
.story-image {
  position: relative;
  padding: 14px 14px 0;
  background: #e7eae0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.story-image img {
  height: 340px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 3px 3px 0 0;
}
.story-image figcaption {
  font-size: 0.6rem;
  color: var(--muted);
  padding-block: 12px;
  line-height: 1.7;
}
.story-scope {
  font: 400 0.59rem/1.8 var(--mono);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pinned-mode .story-panels {
  position: relative;
  height: 460px;
}
.pinned-mode .story-panel {
  position: absolute;
  inset: 0;
  padding-block: 35px;
}
.pinned-mode .story-stage {
  background: var(--paper);
}
.pin-spacer {
  background: var(--paper);
}
.workbench-section {
  background: var(--dark);
  color: #f5f4ef;
  border-color: var(--dark);
}
.workbench-section .eyebrow,
.workbench-section .section-intro {
  color: #bec8ba;
}
.workbench-section .section-heading {
  margin-bottom: 58px;
}
.tour {
  display: grid;
  grid-template-columns: 230px 1fr;
  border: 1px solid #526057;
  border-radius: 4px;
  overflow: hidden;
  background: #1c2d25;
}
.tour-tabs {
  padding: 12px;
  border-right: 1px solid #526057;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tour-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  color: #bec8ba;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.5;
}
.tour-tabs button span {
  font: 400 0.6rem var(--mono);
  color: #a4b39b;
}
.tour-tabs button[aria-selected="true"] {
  background: #dfe8d4;
  color: #1d2c23;
  border-color: #dfe8d4;
}
.tour-tabs button[aria-selected="true"] span {
  color: #46543e;
}
.tour-tabs button:hover {
  border-color: #91a486;
}
.tour-tabs button:focus-visible,
.workbench-section a:focus-visible,
.tour-panel:focus-visible {
  outline-color: #dce8cf;
}
.tour-panel {
  min-width: 0;
}
.tour-image {
  height: 475px;
  overflow: hidden;
  background: #111416;
  padding: 17px 17px 0;
}
.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 3px 3px 0 0;
}
.tour-image.is-trace img {
  object-fit: contain;
  object-position: center;
}
.tour-caption {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  border-top: 1px solid #526057;
}
.tour-caption .mono-label {
  color: #b4c2a9;
  font-size: 0.56rem;
}
.tour-caption h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 10px;
}
.tour-caption p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #bec8ba;
  max-width: 58ch;
  margin-top: 10px;
}
.tour-caption a {
  font-size: 0.66rem;
  white-space: nowrap;
  margin-top: 5px;
  color: #e6eddc;
}
.capture-source {
  font-size: 0.67rem;
  color: #bec8ba;
  line-height: 1.8;
  margin-top: 24px;
  max-width: 100ch;
}
.capture-source a {
  color: #e6eddc;
}
.native-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.native-card {
  padding: 32px 30px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.native-mark {
  display: block;
  font: 400 1.8rem/1 var(--mono);
  color: var(--blue);
  height: 50px;
}
.native-card h3 {
  font-size: 1.1rem;
  margin-top: 10px;
}
.native-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 36ch;
  margin-top: 16px;
}
.native-card a {
  font-size: 0.67rem;
  margin-top: 20px;
  display: inline-block;
}
.boundary-section {
  background: var(--mint);
}
.boundary-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 90px;
}
.boundary-rules article {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #bbc5b1;
}
.boundary-rules article > span {
  font: 400 0.65rem var(--mono);
  padding-top: 3px;
  color: var(--muted);
}
.boundary-rules h3 {
  font-size: 1.05rem;
}
.boundary-rules p {
  font-size: 0.83rem;
  color: #4c5947;
  margin-top: 10px;
  max-width: 47ch;
  line-height: 1.9;
}
.architecture {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.architecture li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.architecture li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -9px;
  top: 42px;
  z-index: 1;
  background: var(--paper);
  color: var(--blue);
  font-size: 1.2rem;
}
.architecture li > span {
  font: 400 0.6rem var(--mono);
  color: var(--muted);
}
.architecture strong {
  font-size: 0.91rem;
  line-height: 1.5;
  letter-spacing: -0.035em;
  margin-top: 25px;
}
.architecture small {
  font-size: 0.69rem;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 12px;
}
.architecture-notes {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: start;
  margin-top: 25px;
  font-size: 0.7rem;
  color: var(--muted);
}
.annotation-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--blue);
  margin-right: 10px;
  vertical-align: middle;
}
.architecture-notes a {
  white-space: nowrap;
}
.film-section {
  background: #e9ece2;
}
.film-frame {
  background: #151a19;
  border: 1px solid #3f4a42;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.film-caption {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 20px;
}
.film-caption p {
  max-width: 80ch;
  line-height: 1.8;
}
.film-caption a {
  white-space: nowrap;
}
.judge-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.judge-path li {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  gap: 22px;
}
.judge-path li > span {
  font: 400 0.65rem var(--mono);
  color: var(--blue);
  padding-top: 4px;
}
.judge-path h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}
.judge-path p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}
.judge-path a {
  font-size: 0.7rem;
  display: inline-block;
  margin-top: 22px;
}
.limits {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 110ch;
}
.limits h3 {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}
.limits p {
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 15px;
}
.limits a {
  font-size: 0.68rem;
  display: inline-block;
  margin-top: 16px;
}
.install-section {
  background: #fffefa;
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.install-grid .section-intro {
  margin-top: 25px;
  font-size: 0.97rem;
}
.install-grid .button {
  margin-top: 28px;
}
.terminal {
  border: 1px solid #425147;
  border-radius: 4px;
  background: #16251f;
  color: #edf1e7;
  min-width: 0;
  overflow: hidden;
}
.terminal-bar {
  padding: 17px 22px;
  border-bottom: 1px solid #425147;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 400 0.58rem/1.8 var(--mono);
  color: #c2cdbb;
}
.terminal-prerequisite {
  padding: 20px 22px 0;
  font-size: 0.71rem;
  color: #b5c3ad;
  line-height: 1.8;
}
.terminal pre {
  margin: 0;
  padding: 26px 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.73rem;
  line-height: 2;
  color: #e3ecd9;
}
.terminal-result {
  padding: 22px;
  border-top: 1px solid #425147;
}
.terminal-result .mono-label {
  color: #c2cdbb;
  font-size: 0.55rem;
}
.terminal-result code {
  display: block;
  color: #d7e7bd;
  font-size: 0.85rem;
  margin-top: 8px;
}
.terminal-result p {
  font-size: 0.65rem;
  line-height: 1.8;
  color: #b5c3ad;
  margin-top: 7px;
}
.install-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 48px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 0.71rem;
  color: var(--muted);
  line-height: 1.9;
}
.install-limits strong {
  color: var(--ink);
}
.reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
}
.reading-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 56px 35px 30px;
  text-decoration: none;
}
.reading-card:hover {
  background: var(--mint);
  border-color: #abb5a0;
}
.reading-card h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 35ch;
}
.reading-card > span:last-child {
  position: absolute;
  right: 26px;
  top: 27px;
  font-size: 1.3rem;
  color: var(--blue);
}
.reading-card .mono-label {
  font-size: 0.6rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 45px;
  padding-bottom: 25px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.footer-top p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
}
.back-top {
  font: 400 0.65rem var(--mono);
  text-decoration: none;
}
.back-top span {
  margin-left: 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-bottom nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-bottom nav a {
  font-size: 0.68rem;
  text-decoration: none;
}
.footer-bottom nav a:hover {
  text-decoration: underline;
}
.motion-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
  min-height: 44px;
  font: 400 0.58rem var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.motion-toggle span {
  margin-left: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  padding: 45px;
  max-width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 48px);
}
dialog::backdrop {
  background: #16251fb8;
}
dialog h2 {
  font-size: 2.35rem;
}
dialog > p:not(.eyebrow) {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 25px;
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  color: var(--ink);
  width: 38px;
  height: 38px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 28px;
}
.dialog-actions > a:not(.button) {
  font-size: 0.8rem;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 78px;
  }
  .workbench-frame {
    height: 500px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 30px;
  }
  .hero-title {
    font-size: 5.8vw;
  }
  .hero-title em {
    font-size: 0.83em;
  }
  .hero-description {
    font-size: 0.92rem;
  }
  .workbench-frame {
    height: 415px;
  }
  .hero-visual {
    padding: 20px;
  }
  .visual-topline .mono-label {
    font-size: 0.5rem;
  }
  .hero-actions {
    gap: 5px;
  }
  .hero-actions .button {
    font-size: 0.73rem;
    padding: 13px 15px;
    gap: 20px;
  }
  .hero-bottom {
    font-size: 0.55rem;
    gap: 10px;
  }
  .problem-grid,
  .split-heading {
    gap: 40px;
  }
  .comparison {
    grid-template-columns: 1fr 28px 1fr 1.05fr;
  }
  .comparison-cell,
  .comparison-outcome {
    padding: 26px 20px;
  }
  .story-panel {
    gap: 50px;
  }
  .tour {
    grid-template-columns: 195px 1fr;
  }
  .tour-tabs button {
    font-size: 0.68rem;
    padding: 17px 9px;
    gap: 8px;
  }
  .tour-image {
    height: 420px;
  }
  .tour-caption {
    display: block;
    padding: 22px;
  }
  .tour-caption a {
    display: inline-block;
    margin-top: 16px;
  }
  .boundary-grid {
    gap: 45px;
  }
  .native-card {
    padding: 27px 23px;
  }
  .architecture li {
    padding-inline: 15px;
  }
  .install-grid,
  .install-limits {
    gap: 40px;
  }
  .footer-bottom nav {
    gap: 18px;
  }
}
@media (max-width: 959px) {
  .hero {
    padding-top: 48px;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .hero-title {
    font-size: 6.1vw;
  }
  .hero-description {
    font-size: 0.88rem;
  }
  .hero .eyebrow {
    font-size: 0.52rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .button {
    min-width: 180px;
    justify-content: space-between;
  }
  .hero-actions .text-button {
    padding-left: 0;
    min-width: 0;
  }
  .demo-status {
    font-size: 0.6rem;
  }
  .copy-button {
    padding: 12px 10px;
  }
  .copy-button code {
    font-size: 0.64rem;
  }
  .copy-label {
    font-size: 0.58rem;
    min-width: 40px;
  }
  .workbench-frame {
    height: 435px;
  }
  .visual-topline {
    flex-direction: column;
    align-items: start;
    gap: 7px;
  }
  .hero-bottom {
    flex-wrap: wrap;
    gap: 12px 30px;
  }
  .hero-bottom a {
    margin-left: auto;
  }
  .section {
    padding-block: 80px;
  }
  .story-rail {
    display: none;
  }
  .story-panel {
    border-top: 1px solid var(--line);
    padding-block: 36px;
    gap: 40px;
  }
  .story-panel:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .story-text h3 {
    font-size: 2rem;
  }
  .story-text p {
    font-size: 0.86rem;
  }
  .story-image img {
    height: 330px;
  }
  .step-footnote {
    font-size: 0.54rem;
  }
  .native-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .architecture {
    grid-template-columns: 1fr;
  }
  .architecture li {
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 20px;
  }
  .architecture li > span {
    grid-row: 1/3;
    padding-top: 3px;
  }
  .architecture strong {
    margin: 0;
  }
  .architecture small {
    margin-top: 5px;
  }
  .architecture li:not(:last-child)::after {
    content: "↓";
    right: 30px;
    top: auto;
    bottom: -14px;
    padding-inline: 6px;
  }
  .judge-path {
    gap: 24px;
  }
  .judge-path li {
    gap: 12px;
  }
  .judge-path h3 {
    font-size: 1rem;
  }
  .judge-path p {
    font-size: 0.75rem;
  }
  .reading-card {
    padding: 25px 48px 28px 25px;
  }
  .reading-card h3 {
    font-size: 1.05rem;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    align-items: start;
    padding-block: 20px;
    flex-direction: column;
    gap: 18px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .site-header nav {
    gap: 22px;
    width: 100%;
    flex-wrap: wrap;
  }
  .site-header nav a {
    font-size: 0.67rem;
  }
  .nav-install {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 36px;
  }
  .hero-title {
    font-size: clamp(3.1rem, 12vw, 5.2rem);
    line-height: 1.03;
  }
  .hero-title em {
    font-size: 0.86em;
  }
  .hero .eyebrow {
    font-size: 0.6rem;
    margin-bottom: 22px;
  }
  .hero-description {
    font-size: 0.98rem;
    max-width: 46ch;
    margin-top: 22px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
  }
  .hero-actions .button {
    min-width: 0;
    font-size: 0.75rem;
    padding: 13px 16px;
    gap: 20px;
  }
  .hero-actions .text-button {
    padding-inline: 10px;
    gap: 7px;
  }
  .demo-status {
    font-size: 0.75rem;
    max-width: 46ch;
  }
  .install-command {
    margin-top: 24px;
    max-width: 410px;
  }
  .copy-button {
    padding: 13px 14px;
  }
  .copy-button code {
    font-size: 0.72rem;
  }
  .copy-label {
    font-size: 0.64rem;
  }
  .hero-visual {
    padding: 17px 17px 24px;
  }
  .visual-topline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  .visual-topline .mono-label {
    font-size: 0.49rem;
  }
  .workbench-frame {
    height: 385px;
  }
  .hero-capture {
    object-position: 50% 17%;
  }
  .hero-visual figcaption {
    margin-top: 18px;
    font-size: 0.7rem;
  }
  .hero-bottom {
    margin-top: 0;
    display: block;
    padding-block: 20px;
  }
  .hero-bottom > span {
    display: block;
    font-size: 0.57rem;
    margin-bottom: 10px;
  }
  .hero-bottom a {
    display: block;
    font-size: 0.59rem;
    margin-top: 18px;
  }
  .section {
    padding-block: 62px;
  }
  h2 {
    font-size: clamp(2rem, 8.3vw, 3rem);
  }
  .eyebrow {
    font-size: 0.6rem;
    margin-bottom: 20px;
  }
  .section-heading {
    margin-bottom: 34px;
  }
  .section-intro {
    font-size: 0.91rem;
    line-height: 1.9;
  }
  .split-heading,
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .problem-grid > .section-intro {
    max-width: 48ch;
  }
  .comparison {
    margin-top: 34px;
    grid-template-columns: 1fr 23px 1fr;
  }
  .comparison-cell {
    padding: 23px 16px;
  }
  .comparison-cell .mono-label {
    font-size: 0.52rem;
    letter-spacing: 0.03em;
  }
  .comparison-value {
    font-size: 2.7rem;
    line-height: 1.5;
  }
  .comparison-cell > p:last-child {
    font-size: 0.67rem;
  }
  .comparison-divider {
    font-size: 1.7rem;
  }
  .comparison-outcome {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 20px;
  }
  .comparison-outcome strong {
    margin-top: 12px;
  }
  .comparison-outcome p {
    max-width: 60ch;
  }
  .story-stage {
    padding-top: 5px;
    padding-bottom: 0;
  }
  .story-panel {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 35px;
  }
  .story-text h3 {
    font-size: 1.8rem;
  }
  .step-index {
    font-size: 0.65rem;
    margin-bottom: 20px;
  }
  .story-text p {
    margin-top: 18px;
    font-size: 0.88rem;
  }
  .step-footnote {
    margin-top: 22px;
    padding-top: 16px;
    font-size: 0.55rem;
  }
  .story-image img {
    height: 340px;
  }
  .story-image figcaption {
    font-size: 0.58rem;
  }
  .story-scope {
    margin-top: 10px;
  }
  .tour {
    display: block;
  }
  .tour-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #526057;
    gap: 5px;
    padding: 9px;
  }
  .tour-tabs button {
    flex: none;
    padding: 13px 11px;
    min-height: 48px;
    font-size: 0.68rem;
    gap: 8px;
    white-space: nowrap;
  }
  .tour-tabs button span {
    font-size: 0.55rem;
  }
  .tour-image {
    padding: 12px 12px 0;
    height: 360px;
  }
  .tour-image img {
    object-position: 50% 15%;
  }
  .tour-caption {
    padding: 22px 18px;
  }
  .tour-caption h3 {
    font-size: 1.07rem;
  }
  .tour-caption p {
    font-size: 0.75rem;
  }
  .capture-source {
    font-size: 0.63rem;
    line-height: 1.9;
  }
  .native-grid {
    grid-template-columns: 1fr 1fr;
  }
  .native-card {
    padding: 23px 17px 27px;
  }
  .native-mark {
    font-size: 1.5rem;
    height: 40px;
  }
  .native-card h3 {
    font-size: 0.99rem;
    line-height: 1.35;
  }
  .native-card p {
    font-size: 0.74rem;
    line-height: 1.9;
    margin-top: 13px;
  }
  .native-card a {
    font-size: 0.61rem;
  }
  .boundary-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .boundary-rules article {
    padding: 22px 0;
    gap: 18px;
  }
  .boundary-rules p {
    font-size: 0.8rem;
  }
  .boundary-rules h3 {
    font-size: 1rem;
  }
  .architecture li {
    grid-template-columns: 85px 1fr;
    padding: 23px 18px;
    gap: 0 16px;
  }
  .architecture strong {
    font-size: 0.85rem;
  }
  .architecture small {
    font-size: 0.67rem;
  }
  .architecture li > span {
    font-size: 0.56rem;
  }
  .architecture-notes {
    display: block;
    font-size: 0.65rem;
    line-height: 1.9;
  }
  .architecture-notes a {
    display: inline-block;
    margin-top: 16px;
  }
  .film-caption {
    display: block;
    font-size: 0.66rem;
    line-height: 1.9;
  }
  .film-caption a {
    display: inline-block;
    margin-top: 14px;
  }
  .judge-path {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .judge-path li {
    gap: 20px;
    padding-top: 22px;
  }
  .judge-path h3 {
    font-size: 1.1rem;
  }
  .judge-path p {
    font-size: 0.8rem;
    max-width: 50ch;
  }
  .judge-path a {
    margin-top: 15px;
  }
  .limits {
    margin-top: 40px;
    padding-top: 25px;
  }
  .limits p {
    font-size: 0.72rem;
  }
  .limits h3 {
    font-size: 0.87rem;
    line-height: 1.5;
  }
  .install-grid,
  .install-limits {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .install-grid .section-intro {
    font-size: 0.9rem;
    margin-top: 22px;
  }
  .install-grid .button {
    font-size: 0.73rem;
    gap: 20px;
  }
  .terminal-bar {
    font-size: 0.51rem;
    padding: 16px 18px;
  }
  .terminal-prerequisite {
    font-size: 0.68rem;
    padding-inline: 18px;
  }
  .terminal pre {
    font-size: 0.65rem;
    padding-inline: 18px;
  }
  .terminal-result {
    padding: 20px 18px;
  }
  .terminal-result code {
    font-size: 0.78rem;
  }
  .install-limits {
    gap: 22px;
    margin-top: 34px;
    padding-top: 23px;
    font-size: 0.68rem;
  }
  .reading-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
  }
  .reading-card h3 {
    font-size: 1.1rem;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 25px;
  }
  .footer-top p {
    font-size: 0.78rem;
  }
  .back-top {
    width: 100%;
    font-size: 0.6rem;
  }
  .footer-bottom {
    display: block;
    margin-top: 30px;
    padding-top: 22px;
  }
  .footer-bottom nav {
    gap: 19px 23px;
  }
  .footer-bottom nav a {
    font-size: 0.65rem;
  }
  .motion-toggle {
    margin-top: 25px;
  }
  .site-footer {
    padding-top: 34px;
  }
  dialog {
    padding: 36px 24px;
  }
  dialog h2 {
    font-size: 2rem;
  }
  dialog > p:not(.eyebrow) {
    font-size: 0.84rem;
  }
  .dialog-actions .button {
    font-size: 0.74rem;
    gap: 15px;
  }
}
@media (max-width: 380px) {
  .site-header nav {
    gap: 14px;
  }
  .site-header nav a {
    font-size: 0.61rem;
  }
  .hero-title {
    font-size: 3.05rem;
  }
  .hero-title em {
    font-size: 0.83em;
  }
  .hero-actions .button {
    font-size: 0.69rem;
    padding-inline: 13px;
  }
  .workbench-frame {
    height: 340px;
  }
  .native-grid {
    grid-template-columns: 1fr;
  }
  .native-card {
    padding: 25px;
  }
  .native-card p {
    font-size: 0.83rem;
  }
  .native-card h3 {
    font-size: 1.1rem;
  }
  .native-mark {
    height: 35px;
  }
  .copy-button code {
    font-size: 0.65rem;
  }
  .comparison-cell {
    padding-inline: 12px;
  }
  .comparison-value {
    font-size: 2.4rem;
  }
  .tour-image {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.film-load {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #101714;
  color: #fff;
  text-align: left;
}
.film-load > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: 0.72;
}
.film-play {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 16px 20px;
  border: 1px solid #ffffff60;
  border-radius: 4px;
  background: #16251f;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: 0 6px 24px #0003;
}
.film-play > span {
  margin-right: 12px;
}
.film-play small {
  display: block;
  margin-top: 5px;
  font: 400 0.64rem var(--mono);
  color: #d6dfd2;
}
.film-load:hover .film-play {
  background: #2948bd;
}
.film-load:focus-visible {
  outline-offset: 6px;
}
@media (max-width: 720px) {
  .film-play {
    left: 14px;
    bottom: 14px;
    padding: 12px 14px;
    font-size: 0.75rem;
  }
  .film-play small {
    font-size: 0.56rem;
  }
}

/* Recorded comparison: values are checked against the frozen summary. */
.heldout-summary { margin-block: 24px; padding: 20px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; line-height: 1.6; max-width: 850px; }
.heldout-summary .eyebrow { margin-bottom: 10px; font-size: 10px; }
.heldout-summary p + p { margin-top: 8px; }
.heldout-main { font-size: 14px; }
.heldout-main strong { display: block; font: 600 clamp(24px, 3vw, 34px)/1.4 var(--mono); letter-spacing: -.04em; color: var(--blue); }
.heldout-summary > a { display: inline-block; font-size: 12px; margin-top: 10px; margin-right: 16px; }
.heldout-limit { border-top: 1px solid var(--line); padding-top: 10px; }
.hero .heldout-summary { margin-top: 22px; padding: 17px; }
.tour-agent-link { margin: 20px 0 34px; max-width: 850px; }
.tour-agent-link p { margin-top: 10px; font-size: 14px; }

/* Current sealed result and contrasting recorded outcomes: no new motion. */
.sealed-summary { margin-block: 24px; padding: 20px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; line-height: 1.6; max-width: 850px; }
.sealed-summary h2 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.035em; line-height: 1.2; margin: 9px 0 15px; }
.sealed-summary p + p { margin-top: 10px; }
.sealed-summary > a { display: inline-block; margin-top: 12px; }
.sealed-metrics { margin: 0 0 14px; }
.sealed-metrics > div + div { margin-top: 10px; }
.sealed-metrics dt { color: var(--muted); font-size: 11px; }
.sealed-metrics dd { margin: 2px 0 0; font: 400 12px/1.6 var(--mono); }
.sealed-metrics dd span { display: block; margin-top: 3px; }
.sealed-metrics strong { color: var(--blue); font-weight: 600; }
.sealed-limit { border-top: 1px solid var(--line); padding-top: 10px; }
.historical-result { max-width: 850px; margin-bottom: 24px; font-size: 12px; }
.historical-result > summary { padding: 10px 0; cursor: pointer; color: var(--blue); }
.historical-result .heldout-summary { margin-top: 6px; }
.judge-scope { max-width: 850px; margin-top: 24px; color: var(--muted); font-size: 14px; }

.prose-evidence-link { max-width: 850px; font-size: 12px; line-height: 1.6; margin-block: 12px 24px; }
.prose-evidence-link span { display: block; color: var(--muted); margin-top: 4px; }
