:root {
  color-scheme: light;
  --paper: oklch(95.8% 0.018 86);
  --paper-deep: oklch(91.8% 0.025 82);
  --ink: oklch(19% 0.025 252);
  --ink-soft: oklch(39% 0.025 252);
  --ink-faint: oklch(56% 0.02 252);
  --line: oklch(82% 0.022 80);
  --blue: oklch(52% 0.22 260);
  --blue-dark: oklch(37% 0.18 260);
  --blue-light: oklch(88% 0.065 255);
  --red: oklch(61% 0.22 30);
  --red-soft: oklch(90% 0.055 32);
  --green: oklch(54% 0.13 158);
  --green-soft: oklch(91% 0.04 158);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Instrument Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-state: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), color-mix(in oklch, var(--line) 45%, transparent) 1px) 0 0 / clamp(5rem, 9vw, 9rem) 100%,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-kerning: normal;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: multiply;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: min(100% - 2rem, 90rem);
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
}

.brand-mark span {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--ink-faint);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a,
.header-cta {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--red);
  transition: transform 240ms var(--ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  gap: var(--space-3xl);
  width: min(100% - 2rem, 90rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow,
.section-index,
.result-label,
.source-label,
.closing-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow span {
  width: 2.75rem;
  height: 2px;
  background: var(--red);
}

.hero h1,
.section-heading h2,
.section-intro h2,
.boundary-statement h2,
.usage-section h2,
.closing-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.hero h1 {
  max-width: 13ch;
  margin: 1.5rem 0;
  font-size: clamp(3.4rem, 10vw, 7.6rem);
}

.hero h1 em,
.section-heading h2 em,
.closing-section h2 em {
  position: relative;
  color: var(--blue);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: -0.1em;
  bottom: 0.08em;
  left: -0.05em;
  z-index: -1;
  height: 0.18em;
  background: var(--red-soft);
  transform: rotate(-2deg);
}

.hero-lead {
  max-width: 39rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-form {
  margin-top: 2.5rem;
}

.hero-form > label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.url-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border: 1px solid var(--ink);
  background: oklch(98% 0.01 86);
}

.url-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  color: var(--blue);
  font-size: 1.1rem;
}

.url-control input {
  min-width: 0;
  height: 3.75rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  outline: 0;
}

.url-control button {
  grid-column: 1 / -1;
  min-height: 3.5rem;
  border: 0;
  border-top: 1px solid var(--ink);
  background: var(--blue);
  color: oklch(97% 0.01 260);
  cursor: pointer;
  font-weight: 700;
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.url-control button:hover {
  background: var(--blue-dark);
}

.url-control button:active {
  transform: translateY(1px);
}

.form-note,
.form-error {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
}

.form-note {
  color: var(--ink-faint);
}

.form-note span {
  margin-right: 0.35rem;
  color: var(--green);
}

.form-error {
  min-height: 1.25rem;
  color: var(--red);
  font-weight: 600;
}

.hero-proof {
  position: relative;
  min-height: 36rem;
  display: grid;
  place-items: center;
}

.proof-orbit {
  position: absolute;
  width: min(30rem, 86vw);
  aspect-ratio: 1;
  border: 1px solid color-mix(in oklch, var(--blue) 40%, transparent);
  border-radius: 50%;
}

.proof-orbit::before,
.proof-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.proof-orbit::before {
  inset: 11%;
  border: 1px dashed color-mix(in oklch, var(--ink) 20%, transparent);
  animation: rotate-orbit 18s linear infinite;
}

.proof-orbit::after {
  top: 49%;
  left: -0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--red);
  box-shadow: calc(min(30rem, 86vw) - 0.7rem) 0 0 var(--blue);
}

.proof-sheet {
  position: relative;
  z-index: 1;
  width: min(25rem, 86vw);
  padding: 1.25rem;
  border: 1px solid var(--ink);
  background: oklch(98.5% 0.012 86);
  box-shadow: 1.5rem 1.5rem 0 var(--blue-light);
  transform: rotate(2deg);
  animation: sheet-enter 760ms var(--ease-out) both;
}

.sheet-head,
.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.sheet-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.live-dot::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.sheet-kicker {
  margin-top: 2rem;
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.proof-sheet h2 {
  margin: 0.75rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.3;
}

.scan-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.scan-strip span {
  position: relative;
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.scan-strip span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 45%, color-mix(in oklch, var(--blue) 16%, transparent) 45% 48%, transparent 48%);
  background-size: 100% 1.15rem;
  opacity: 0.7;
}

.scan-strip i,
.scan-strip b {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.scan-strip i {
  color: var(--ink-faint);
  font-size: 0.55rem;
}

.scan-strip b {
  align-self: flex-end;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.completion-seal {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.completion-seal strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
}

.completion-seal span {
  font-size: 0.75rem;
  font-weight: 700;
}

.sheet-foot {
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.margin-note {
  position: absolute;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  transform: rotate(-4deg);
}

.proof-rail {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 1rem max(1rem, calc((100vw - 90rem) / 2));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--blue);
  color: oklch(97% 0.01 260);
  white-space: nowrap;
  scrollbar-color: var(--red-soft) var(--blue-dark);
  scrollbar-width: thin;
}

.proof-rail::-webkit-scrollbar {
  height: 0.35rem;
}

.proof-rail::-webkit-scrollbar-track {
  background: var(--blue-dark);
}

.proof-rail::-webkit-scrollbar-thumb {
  background: var(--red-soft);
}

.proof-rail p,
.proof-rail span {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-rail span {
  color: var(--red-soft);
}

.capability-section {
  width: min(100% - 2rem, 90rem);
  margin: 0 auto;
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.capability-heading {
  display: grid;
  gap: 1.25rem;
  margin-bottom: var(--space-2xl);
}

.capability-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.capability-heading > p:last-child {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.075rem;
}

.route-map {
  border: 1px solid var(--ink);
  background: oklch(98% 0.012 86);
}

.route-input,
.route-output {
  display: grid;
  gap: 0.15rem;
  padding: 1.35rem clamp(1rem, 4vw, 2rem);
}

.route-input {
  background: var(--blue-dark);
  color: oklch(97% 0.01 260);
}

.route-input span,
.route-output span,
.route-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-input strong,
.route-output strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.route-input small,
.route-output small {
  color: currentColor;
  opacity: 0.72;
}

.route-branches {
  display: grid;
}

.route-card {
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.route-card + .route-card {
  border-top: 1px solid var(--ink);
}

.route-image {
  background: var(--paper);
}

.route-video {
  background: var(--blue-light);
}

.route-tag {
  color: var(--blue-dark);
}

.route-card h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
}

.route-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
}

.route-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid color-mix(in oklch, var(--ink) 24%, transparent);
  list-style: none;
}

.route-card li::before {
  content: "↳";
  margin-right: 0.65rem;
  color: var(--red);
  font-weight: 700;
}

.route-output {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.sample-route-note {
  max-width: 55rem;
  margin: 1.25rem 0 0 auto;
  color: var(--ink-soft);
  text-align: right;
}

.sample-route-note span {
  color: var(--red);
  font-size: 1.4rem;
}

.demo-section,
.method-section,
.boundaries-section,
.usage-section,
.closing-section {
  width: min(100% - 2rem, 90rem);
  margin: 0 auto;
  padding: var(--space-4xl) 0;
}

.demo-section {
  display: grid;
  gap: var(--space-2xl);
}

.section-intro h2,
.section-heading h2,
.boundary-statement h2,
.usage-section h2 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.section-intro > p:not(.section-index),
.boundary-statement > p:not(.section-index) {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.075rem;
}

.text-action {
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.demo-app {
  align-self: start;
  border: 1px solid var(--ink);
  background: oklch(98% 0.012 86);
}

.app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.app-identity,
.app-state {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mini-mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid var(--red);
  border-radius: 50%;
}

.app-state i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink-faint);
}

.demo-app[data-state="running"] .app-state i {
  background: var(--red-soft);
  animation: pulse 900ms var(--ease-state) infinite;
}

.demo-app[data-state="success"] .app-state i {
  background: oklch(78% 0.14 155);
}

.demo-app[data-state="error"] .app-state i {
  background: var(--red);
}

.app-body {
  padding: clamp(1rem, 4vw, 2rem);
}

.source-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.source-line p {
  max-width: 38ch;
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readonly-chip {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: oklch(36% 0.1 158);
  font-size: 0.6875rem;
  font-weight: 700;
}

.run-grid {
  display: grid;
  gap: 2rem;
  padding: 1.25rem 0;
}

.run-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.run-steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.75rem;
  border-bottom: 1px solid var(--line);
  transition: color 220ms var(--ease-out), opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.run-steps li:last-child {
  border-bottom: 0;
}

.step-number {
  color: var(--ink-faint);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.run-steps strong,
.run-steps small {
  display: block;
}

.run-steps strong {
  font-size: 0.875rem;
}

.run-steps small {
  margin-top: 0.2rem;
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.step-status {
  color: var(--ink-faint);
  font-size: 0.6875rem;
  font-weight: 600;
}

.run-steps li.is-active {
  transform: translateX(0.25rem);
  color: var(--blue);
}

.run-steps li.is-active .step-status {
  color: var(--red);
}

.run-steps li.is-done .step-number,
.run-steps li.is-done .step-status {
  color: var(--green);
}

.run-meter {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 15rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.meter-orbit {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 9rem;
  aspect-ratio: 1;
  padding-top: 2.75rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.meter-orbit::before,
.meter-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.meter-orbit::before {
  inset: 0.45rem;
  border: 1px dashed var(--line);
}

.meter-orbit::after {
  top: -0.2rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--red);
}

.meter-orbit span {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.meter-orbit small {
  font-size: 0.75rem;
  font-weight: 700;
}

.run-meter p {
  margin: 1rem 0 0;
  color: var(--ink-faint);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.tech-details {
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tech-details summary {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  list-style: none;
}

.tech-details summary::-webkit-details-marker {
  display: none;
}

.tech-details summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.25rem;
}

.tech-details[open] summary::after {
  content: "−";
}

.tech-details p {
  max-width: 58rem;
  margin: 0;
  padding: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.tech-details code {
  font-family: var(--font-body);
  font-weight: 700;
}

.run-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 12rem;
  min-height: 3.25rem;
  padding: 0 1.1rem;
  border: 1px solid var(--ink);
  background: var(--blue);
  color: oklch(97% 0.01 260);
  cursor: pointer;
  font-weight: 700;
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.run-button:hover:not(:disabled) {
  background: var(--blue-dark);
}

.run-button:active:not(:disabled) {
  transform: translateY(1px);
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.demo-app[data-state="success"] .run-button {
  background: var(--green);
}

.runtime-note {
  color: var(--ink-faint);
  font-size: 0.6875rem;
}

.result-panel {
  display: none;
  padding: clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.demo-app[data-state="success"] .result-panel {
  display: block;
  animation: result-enter 560ms var(--ease-out) both;
}

.result-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.result-head h3 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.replay-note {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.result-score {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.result-score strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.result-score span {
  max-width: 8rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.result-meta div {
  padding: 1rem 0;
}

.result-meta span,
.result-meta strong {
  display: block;
}

.evidence-sources {
  display: grid;
  gap: 1px;
  margin-top: 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.evidence-sources article {
  padding: 1.25rem;
  background: oklch(98% 0.012 86);
}

.source-platform {
  color: var(--blue-dark);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.evidence-sources h4,
.evidence-sources p {
  margin: 0;
}

.evidence-sources h4 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.evidence-sources p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.evidence-sources b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.result-meta span {
  color: var(--ink-faint);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-meta strong {
  margin-top: 0.3rem;
  font-size: 0.75rem;
}

.prompt-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.prompt-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.prompt-list > li > span {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
}

.prompt-list h4,
.prompt-list p {
  margin: 0;
}

.prompt-list h4 {
  font-size: 1rem;
}

.prompt-list p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.prompt-list small {
  color: var(--ink-faint);
  font-size: 0.625rem;
}

.result-foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
}

.result-foot p,
.result-foot a {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.result-foot p span {
  color: var(--green);
}

.result-foot a {
  color: var(--blue);
  text-decoration: none;
}

.method-section {
  border-top: 1px solid var(--ink);
}

.section-heading {
  margin-bottom: 3rem;
}

.method-flow {
  border-top: 1px solid var(--ink);
}

.method-flow article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--ink);
}

.method-no {
  display: grid;
  place-items: center;
  align-self: start;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  color: oklch(97% 0.01 260);
  font-size: 0.75rem;
  font-weight: 700;
}

.method-flow h3,
.method-flow p {
  margin: 0;
}

.method-flow h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.method-flow p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.boundaries-section {
  display: grid;
  gap: 3rem;
  border-top: 1px solid var(--ink);
}

.boundary-ledger {
  align-self: end;
  border-top: 1px solid var(--ink);
}

.ledger-row {
  display: grid;
  grid-template-columns: 2rem 5rem 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ink);
}

.ledger-row > span {
  color: var(--ink-faint);
  font-size: 0.6875rem;
}

.ledger-row strong {
  font-size: 0.875rem;
}

.ledger-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.ledger-row.yes strong::before,
.ledger-row.no strong::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
}

.ledger-row.yes strong::before {
  background: var(--green);
}

.ledger-row.no strong::before {
  background: var(--red);
}

.usage-section {
  border-top: 1px solid var(--ink);
}

.usage-section > ol {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.usage-section > ol li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.usage-section > ol span {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.usage-section > ol p {
  margin: 0;
  color: var(--ink-soft);
}

.usage-section > ol strong {
  display: block;
  color: var(--ink);
}

.usage-section details {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.usage-section summary {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.usage-section summary::-webkit-details-marker {
  display: none;
}

.usage-section summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.5rem;
}

.usage-section details[open] summary::after {
  content: "−";
}

.usage-section details div {
  max-width: 48rem;
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
}

.closing-section {
  position: relative;
  overflow: hidden;
  padding-right: 1rem;
  padding-left: 1rem;
  border: 1px solid var(--ink);
  background: var(--blue);
  color: oklch(97% 0.01 260);
}

.closing-kicker {
  color: var(--red-soft);
}

.closing-section h2 {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  margin: 2rem 0;
  font-size: clamp(3rem, 9vw, 7rem);
}

.closing-section h2 em {
  color: var(--red-soft);
}

.closing-section > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid oklch(97% 0.01 260);
  background: oklch(97% 0.01 260);
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.closing-stamp {
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  color: color-mix(in oklch, oklch(97% 0.01 260) 13%, transparent);
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 20rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.65;
  text-align: right;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, 90rem);
  margin: 0 auto;
  padding: 3rem 0 max(3rem, env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

footer > a:last-child {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.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;
}

@keyframes rotate-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sheet-enter {
  from { opacity: 0; transform: translateY(2rem) rotate(0); }
  to { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@keyframes result-enter {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

@media (min-width: 40rem) {
  .url-control {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .url-control button {
    grid-column: auto;
    min-width: 9.5rem;
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

  .result-head,
  .result-foot {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .result-meta div:not(:last-child) {
    border-right: 1px solid var(--line);
    padding-right: 1rem;
  }

  .result-meta div:not(:first-child) {
    padding-left: 1rem;
  }

  .method-flow article {
    grid-template-columns: 3rem 12rem 1fr;
    align-items: start;
  }

  .evidence-sources {
    grid-template-columns: 1fr 1fr;
  }

  .method-flow article div {
    display: contents;
  }

  .usage-section > ol {
    grid-template-columns: repeat(3, 1fr);
  }

  .usage-section > ol li {
    display: block;
    padding: 1.5rem;
    border-right: 1px solid var(--line);
  }

  .usage-section > ol li:first-child {
    padding-left: 0;
  }

  .usage-section > ol li:last-child {
    border-right: 0;
  }

  .usage-section > ol span {
    display: block;
    margin-bottom: 2rem;
  }

  .closing-section {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .route-branches {
    grid-template-columns: 1fr 1fr;
  }

  .route-card + .route-card {
    border-top: 0;
    border-left: 1px solid var(--ink);
  }
}

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.8fr);
    align-items: center;
  }

  .hero-proof {
    min-height: 42rem;
  }

  .run-grid {
    grid-template-columns: minmax(0, 1fr) 13rem;
  }

  .result-panel {
    padding: 2.5rem;
  }

  .boundaries-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  }
}

@media (min-width: 64rem) {
  .site-header,
  .hero,
  .capability-section,
  .demo-section,
  .method-section,
  .boundaries-section,
  .usage-section,
  .closing-section,
  footer {
    width: min(100% - 5rem, 90rem);
  }

  .capability-heading {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.55fr);
    align-items: end;
  }

  .capability-heading .section-index {
    grid-column: 1 / -1;
  }

  .demo-section {
    grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 7rem);
  }

  .demo-intro {
    position: sticky;
    top: 6rem;
    align-self: start;
  }

  .method-section {
    display: grid;
    grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1fr);
    gap: 6rem;
  }

  .section-heading {
    position: sticky;
    top: 6rem;
    align-self: start;
  }

  .method-flow article {
    grid-template-columns: 3rem 11rem 1fr;
  }
}

@media (hover: hover) {
  .proof-sheet {
    transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
  }

  .hero-proof:hover .proof-sheet {
    transform: rotate(0) translateY(-0.5rem);
    box-shadow: 1rem 1.2rem 0 var(--blue-light);
  }
}

@media (pointer: coarse) {
  .site-nav a,
  .text-action,
  .result-foot a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
