@font-face {
  font-family: "Geist Local";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono Local";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-sans: "Geist Local", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono Local", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  --page: #09090b;
  --page-soft: #0d0d0f;
  --surface: #111113;
  --surface-raised: #17171a;
  --surface-hover: #1c1c20;
  --line: #27272a;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --text-soft: #b1b1b9;
  --text-faint: #777780;
  --inverse: #18181b;
  --inverse-text: #fafafa;
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.13);
  --violet-line: rgba(167, 139, 250, 0.32);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.1);
  --emerald-line: rgba(52, 211, 153, 0.22);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.1);
  --amber-line: rgba(251, 191, 36, 0.24);
  --danger: #f87171;
  --radius: 10px;
  --radius-lg: 14px;
  --shell: min(1200px, calc(100vw - 48px));
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] {
  --page: #f7f7f8;
  --page-soft: #f0f0f2;
  --surface: #ffffff;
  --surface-raised: #f7f7f8;
  --surface-hover: #efeff1;
  --line: #dedee3;
  --line-soft: rgba(9, 9, 11, 0.08);
  --text: #09090b;
  --text-soft: #52525b;
  --text-faint: #71717a;
  --inverse: #18181b;
  --inverse-text: #fafafa;
  --violet: #6d4fd1;
  --violet-soft: rgba(109, 79, 209, 0.09);
  --violet-line: rgba(109, 79, 209, 0.25);
  --emerald: #047857;
  --emerald-soft: rgba(4, 120, 87, 0.08);
  --emerald-line: rgba(4, 120, 87, 0.22);
  --amber: #a16207;
  --amber-soft: rgba(161, 98, 7, 0.08);
  --amber-line: rgba(161, 98, 7, 0.22);
  --danger: #b91c1c;
  --shadow: 0 24px 70px rgba(9, 9, 11, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection {
  background: var(--violet);
  color: var(--inverse);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--page);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  width: var(--shell);
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.brand img {
  width: 24px;
  height: 27px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 16px;
  margin-left: 2px;
  background: var(--line);
}

.brand-research {
  color: var(--text-soft);
  font-weight: 430;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px;
  transition:
    color 0.16s ease,
    background 0.16s ease;
}

.desktop-nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--inverse);
  color: var(--inverse-text);
}

.button-primary:hover {
  opacity: 0.88;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: color-mix(in srgb, var(--line) 70%, var(--text));
  background: var(--surface-hover);
}

.button-large {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 9px;
  font-size: 15px;
}

.header-cta {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: 13px;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.icon-button:hover {
  border-color: var(--line-soft);
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-sun,
html[data-theme="light"] .icon-moon {
  display: none;
}

html[data-theme="light"] .icon-sun {
  display: block;
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 790px;
  padding: 94px 0 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: clamp(52px, 6vw, 92px);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle at 76% 42%,
      color-mix(in srgb, var(--violet) 10%, transparent),
      transparent 31%
    ),
    linear-gradient(180deg, var(--page-soft), var(--page) 78%);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0.42;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-eyebrow {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-rule {
  width: 38px;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(49px, 5.4vw, 77px);
  font-weight: 520;
  line-height: 0.99;
  letter-spacing: -0.057em;
}

.hero-emphasis {
  position: relative;
  display: inline;
  color: var(--violet);
}

.hero-emphasis::after {
  content: "";
  position: absolute;
  right: 0.05em;
  bottom: 0.05em;
  left: 0.05em;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.hero-summary {
  max-width: 635px;
  margin-top: 29px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.018em;
}

.hero-actions {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-signals {
  margin: 34px 0 0;
  padding: 22px 0 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-signals li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-signals li span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

.hero-console {
  position: relative;
  z-index: 1;
}

.console-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20%),
    var(--surface);
  box-shadow: var(--shadow);
}

.console-window::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background:
    linear-gradient(to right, transparent 49.8%, var(--line-soft) 50%, transparent 50.2%),
    radial-gradient(circle at 100% 0, var(--violet-soft), transparent 32%);
  opacity: 0.24;
}

.console-topbar {
  position: relative;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--page-soft);
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
}

.window-controls span:first-child {
  background: color-mix(in srgb, var(--danger) 75%, var(--line));
}

.console-path {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.console-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

.console-label {
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.console-heading {
  position: relative;
  padding: 23px 22px 21px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.console-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-heading h2 {
  max-width: 350px;
  font-size: 20px;
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.status-pill {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.status-active {
  border-color: var(--violet-line);
  background: var(--violet-soft);
  color: var(--violet);
}

.evidence-rail {
  position: relative;
  padding: 7px 22px 4px;
}

.evidence-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 7px;
  min-height: 90px;
}

.step-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-index {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.step-line {
  flex: 1 1 auto;
  width: 1px;
  background: var(--line);
}

.step-body {
  padding: 1px 0 19px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.step-type {
  font-size: 13px;
  font-weight: 560;
}

.step-state {
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.step-state-proof {
  color: var(--emerald);
}

.step-state-human {
  color: var(--amber);
}

.step-body p {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.step-body code {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--page-soft);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-footer {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.console-footer span:last-child {
  margin-left: auto;
  color: var(--amber);
}

.console-caption {
  margin-top: 13px;
  color: var(--text-faint);
  font-size: 11px;
  text-align: center;
}

.section {
  padding: 118px 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 46px;
  border-top: 1px solid var(--line-soft);
}

.section-index {
  position: relative;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-index::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 48px;
  height: 1px;
  background: var(--line);
}

.section-index span {
  color: var(--violet);
}

.section-content {
  min-width: 0;
}

.section-heading {
  max-width: 790px;
}

.section-heading h2 {
  margin-top: 15px;
  font-size: clamp(37px, 4.3vw, 58px);
  font-weight: 510;
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: 58px;
  align-items: end;
}

.split-heading > p {
  padding-bottom: 5px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.abstract-grid {
  margin-top: 61px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 80px;
}

.abstract-lead p {
  font-size: clamp(25px, 2.5vw, 35px);
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.abstract-note {
  padding-top: 5px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.abstract-note p + p {
  margin-top: 18px;
}

.thesis-strip {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.thesis-strip span {
  min-height: 92px;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.thesis-strip span + span {
  border-left: 1px solid var(--line);
}

.method-list {
  margin: 66px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-step {
  min-height: 170px;
  padding: 28px 4px;
  display: grid;
  grid-template-columns: 60px minmax(190px, 0.75fr) minmax(280px, 1.15fr) minmax(
      145px,
      0.62fr
    );
  gap: 25px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.method-number {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.method-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.method-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
}

.method-icon svg {
  width: 17px;
  height: 17px;
}

.method-title h3 {
  padding-top: 3px;
  font-size: 18px;
  font-weight: 540;
  line-height: 1.35;
  letter-spacing: -0.024em;
}

.method-step > p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.method-output {
  padding-top: 7px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.evidence-comparison {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proof-panel {
  min-height: 300px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.proof-weak {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 8px,
      var(--line-soft) 8px,
      var(--line-soft) 9px
    ),
    var(--surface);
}

.proof-strong {
  border-color: var(--emerald-line);
  background:
    linear-gradient(145deg, var(--emerald-soft), transparent 52%),
    var(--surface);
}

.proof-head {
  display: flex;
  align-items: center;
}

.proof-label {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-mark {
  width: 25px;
  height: 25px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.proof-strong .proof-mark {
  border-color: var(--emerald-line);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.proof-panel blockquote {
  margin: 38px 0 34px;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.032em;
}

.proof-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 13px;
}

.proof-panel li {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}

.proof-panel li::before {
  content: "—";
  margin-right: 8px;
  color: var(--text-faint);
}

.proof-strong li::before {
  content: "✓";
  color: var(--emerald);
}

.question-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.question-card {
  min-height: 220px;
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.question-label {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-card h3 {
  max-width: 430px;
  margin-top: 28px;
  font-size: 21px;
  font-weight: 510;
  line-height: 1.35;
  letter-spacing: -0.028em;
}

.question-card p {
  margin-top: 17px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 86px;
  align-items: start;
}

.boundary-summary {
  max-width: 540px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-list {
  border-top: 1px solid var(--line);
}

.boundary-list article {
  min-height: 136px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.boundary-code {
  padding-top: 3px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.boundary-list h3 {
  font-size: 17px;
  font-weight: 520;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.boundary-list p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.cta-section {
  position: relative;
  min-height: 390px;
  margin-bottom: 46px;
  padding: 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 110%, var(--violet-soft), transparent 40%),
    var(--surface);
}

.cta-grid {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(100deg, black, transparent 65%);
}

.cta-mark {
  position: absolute;
  top: 50%;
  right: 12%;
  opacity: 0.045;
  transform: translateY(-50%) rotate(-8deg);
}

.cta-mark img {
  width: 330px;
  height: auto;
  filter: grayscale(1);
}

.cta-copy,
.cta-section > .button {
  position: relative;
  z-index: 1;
}

.cta-copy {
  max-width: 700px;
}

.cta-copy h2 {
  margin-top: 18px;
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 510;
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.cta-copy > p:last-child {
  max-width: 610px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.72;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  padding: 31px 0 37px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 28px;
  height: 32px;
  object-fit: contain;
}

.footer-brand span {
  font-size: 13px;
  font-weight: 570;
}

.footer-brand p {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
}

.footer-meta {
  display: flex;
  gap: 22px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.error-shell {
  min-height: 100vh;
  padding-block: 48px;
  display: grid;
  place-items: center;
}

.error-card {
  max-width: 620px;
  text-align: center;
}

.error-mark {
  width: 64px;
  height: auto;
  margin: 0 auto 28px;
}

.error-title {
  margin-top: 16px;
  font-size: clamp(42px, 10vw, 72px);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.error-copy {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 17px;
}

.error-actions {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay {
  transition-delay: 0.09s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(47px, 5.4vw, 65px);
  }

  .section {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 30px;
  }

  .boundary-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(390px, 1.2fr);
    gap: 54px;
  }

  .method-step {
    grid-template-columns: 46px minmax(180px, 0.75fr) minmax(250px, 1.15fr);
  }

  .method-output {
    grid-column: 2 / -1;
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition:
      max-height 0.24s ease,
      border-color 0.24s ease;
  }

  .mobile-nav.is-open {
    max-height: 330px;
    border-top-color: var(--line);
  }

  .mobile-nav a {
    width: var(--shell);
    margin-inline: auto;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-soft);
    font-size: 15px;
  }

  .mobile-nav .mobile-cta {
    color: var(--text);
    font-weight: 600;
  }

  .hero {
    min-height: auto;
    padding: 78px 0 88px;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 720px;
  }

  .hero-console {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .section {
    padding: 91px 0;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-index {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .section-index::before {
    position: static;
    width: 34px;
    order: -1;
  }

  .abstract-grid,
  .split-heading,
  .boundary-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .abstract-grid {
    margin-top: 45px;
  }

  .thesis-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .thesis-strip span:nth-child(3) {
    border-left: 0;
  }

  .thesis-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .method-step {
    grid-template-columns: 42px minmax(180px, 0.75fr) minmax(250px, 1.25fr);
  }

  .cta-section {
    padding: 48px;
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    height: 58px;
    gap: 10px;
  }

  .brand {
    font-size: 14px;
  }

  .brand img {
    width: 21px;
    height: 24px;
  }

  .brand-divider,
  .brand-research {
    display: none;
  }

  .hero {
    padding: 62px 0 66px;
    gap: 48px;
  }

  .eyebrow {
    margin-bottom: 23px;
    gap: 8px;
    font-size: 9px;
  }

  .eyebrow-rule {
    width: 20px;
  }

  .hero h1 {
    max-width: 580px;
    font-size: clamp(43px, 13vw, 60px);
    line-height: 0.99;
    letter-spacing: -0.055em;
  }

  .hero-summary {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-actions {
    margin-top: 28px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-signals {
    gap: 13px 18px;
    margin-top: 29px;
  }

  .console-topbar {
    height: 44px;
    padding-inline: 12px;
  }

  .console-label {
    display: none;
  }

  .console-heading {
    padding: 19px 17px 18px;
  }

  .console-heading h2 {
    font-size: 17px;
  }

  .status-pill {
    padding: 4px 7px;
    font-size: 8px;
  }

  .evidence-rail {
    padding-inline: 17px;
  }

  .evidence-step {
    grid-template-columns: 36px 1fr;
    gap: 5px;
    min-height: 96px;
  }

  .step-index {
    width: 27px;
    height: 27px;
  }

  .step-body p {
    font-size: 11px;
  }

  .step-body code {
    font-size: 8px;
  }

  .console-footer {
    gap: 9px;
    padding-inline: 13px;
    font-size: 7.5px;
  }

  .console-caption {
    padding-inline: 10px;
    font-size: 10px;
  }

  .section {
    padding: 72px 0;
    gap: 28px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 10.6vw, 47px);
  }

  .section-index {
    font-size: 9px;
  }

  .abstract-grid {
    margin-top: 36px;
  }

  .abstract-lead p {
    font-size: 23px;
  }

  .abstract-note {
    font-size: 14px;
  }

  .thesis-strip {
    margin-top: 48px;
    grid-template-columns: 1fr;
  }

  .thesis-strip span {
    min-height: 64px;
    padding: 16px;
  }

  .thesis-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .method-list {
    margin-top: 44px;
  }

  .method-step {
    padding: 24px 0;
    grid-template-columns: 26px 1fr;
    gap: 12px 10px;
  }

  .method-title {
    gap: 11px;
  }

  .method-step > p,
  .method-output {
    grid-column: 2;
  }

  .method-step > p {
    margin-top: 3px;
    font-size: 13px;
  }

  .method-title h3 {
    font-size: 17px;
  }

  .evidence-comparison {
    margin-top: 44px;
    grid-template-columns: 1fr;
  }

  .proof-panel {
    min-height: 0;
    padding: 20px;
  }

  .proof-panel blockquote {
    margin: 31px 0 26px;
    font-size: 22px;
  }

  .question-grid {
    margin-top: 36px;
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 0;
    padding: 23px;
  }

  .question-card h3 {
    margin-top: 20px;
    font-size: 19px;
  }

  .boundary-list article {
    grid-template-columns: 54px 1fr;
  }

  .cta-section {
    width: calc(100% - 20px);
    min-height: 0;
    margin-bottom: 20px;
    padding: 34px 22px;
    border-radius: 12px;
  }

  .cta-copy h2 {
    font-size: 34px;
  }

  .cta-section > .button {
    width: 100%;
  }

  .footer-inner {
    padding: 26px 0 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .footer-meta {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 8px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
