@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --ink: #10110f;
  --ink-soft: #474941;
  --paper: #f3f1e9;
  --paper-warm: #e8e4d8;
  --white: #fbfaf5;
  --line: rgba(16, 17, 15, 0.17);
  --line-dark: rgba(243, 241, 233, 0.18);
  --acid: #d8ff3e;
  --cyan: #52d8d5;
  --violet: #9b7df4;
  --coral: #ff795f;
  --amber: #ffbd4a;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --page: min(1440px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 24px;
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(16, 17, 15, 0.95);
  backdrop-filter: blur(16px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 26px;
  padding: 3px;
  color: rgba(243, 241, 233, 0.64);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.language-switch a,
.language-switch strong {
  min-width: 31px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
}

.language-switch strong {
  color: var(--ink);
  background: var(--acid);
}

.language-switch a:hover {
  color: var(--paper);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 29px;
  height: 18px;
}

.brand-mark i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
}

.brand-mark i:nth-child(2) {
  width: 10px;
  height: 10px;
}

.brand-mark i:nth-child(3) {
  width: 5px;
  height: 5px;
}

.nav {
  display: flex;
  gap: 30px;
  color: rgba(243, 241, 233, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--acid);
}

.topbar-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: rgba(243, 241, 233, 0.58);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(216, 255, 62, 0.7);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 12px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: var(--paper);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 120px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  grid-template-rows: 1fr auto;
  gap: 56px 80px;
  min-height: calc(100vh - 72px);
  padding-top: clamp(92px, 12vh, 150px);
  padding-bottom: 36px;
}

.hero-copy {
  align-self: center;
}

.hero h1,
.section-head h2,
.paper-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 1050px;
  font-size: clamp(54px, 7.5vw, 116px);
  line-height: 0.95;
}

.hero-thesis {
  max-width: 880px;
  margin: 34px 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.1vw, 31px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  color: inherit;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

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

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.primary:hover {
  color: var(--ink);
  background: var(--acid);
}

.text-link,
.work-link,
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.text-link span,
.work-link b,
.paper-link b {
  color: var(--coral);
  font-size: 15px;
}

.text-link:hover,
.work-link:hover,
.paper-link:hover {
  color: var(--coral);
  transform: translateY(-1px);
}

.hero-identity {
  position: relative;
  align-self: center;
  min-height: 500px;
  padding: 36px;
  color: var(--paper);
  background: var(--ink);
}

.hero-identity::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 8px;
  content: "";
  background: var(--acid);
}

.identity-kicker {
  color: var(--acid);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero-identity > strong {
  display: block;
  max-width: 380px;
  margin-top: 94px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero-identity > p {
  margin: 24px 0 50px;
  color: rgba(243, 241, 233, 0.62);
  font-size: 13px;
}

.hero-identity dl {
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.hero-identity dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}

.hero-identity dt,
.hero-identity dd {
  margin: 0;
  font-size: 10px;
}

.hero-identity dt {
  color: rgba(243, 241, 233, 0.42);
  text-transform: uppercase;
}

.hero-signal {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 190px minmax(0, 900px);
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-signal span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-signal p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.03;
}

.section-head > p {
  max-width: 470px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.program-section {
  padding-top: 150px;
}

.direction-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
}

.direction-card {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: 28px;
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  transition: color 180ms ease, background 180ms ease;
}

.direction-card:last-child {
  border-right: 0;
}

.direction-card::before {
  position: absolute;
  right: -72px;
  bottom: -86px;
  width: 230px;
  height: 230px;
  content: "";
  border: 1px solid var(--direction-accent);
  border-radius: 50%;
  transition: transform 400ms ease;
}

.direction-card:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 44px;
  right: -12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--paper);
  content: "→";
  background: var(--ink);
  font-size: 12px;
}

.direction-card:hover {
  color: var(--paper);
  background: var(--ink);
}

.direction-card:hover::before {
  transform: scale(1.35);
}

.direction-card[data-accent="violet"] { --direction-accent: var(--violet); }
.direction-card[data-accent="cyan"] { --direction-accent: var(--cyan); }
.direction-card[data-accent="coral"] { --direction-accent: var(--coral); }
.direction-card[data-accent="amber"] { --direction-accent: var(--amber); }

.direction-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.direction-card h3 {
  min-height: 108px;
  margin: 84px 0 24px;
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.direction-question {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.direction-statement {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.direction-card small {
  margin-top: auto;
  padding-top: 38px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.direction-card:hover .direction-meta,
.direction-card:hover .direction-statement,
.direction-card:hover small {
  color: rgba(243, 241, 233, 0.56);
}

/* A native stretched link makes the whole research card keyboard-accessible. */
.direction-card::before { pointer-events: none; }
.direction-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid currentColor; font-size: 14px; font-weight: 700; }
.direction-link::after { position: absolute; inset: 0; z-index: 3; content: ""; }
.direction-link span { font-size: 24px; transition: transform 200ms ease; }
.direction-card:hover .direction-link span { transform: translate(3px, -3px); }
.direction-card:focus-within { outline: 3px solid var(--direction-accent); outline-offset: 4px; z-index: 4; }
.direction-meta, .direction-card small { font-size: 12px; }
.direction-statement { font-size: 16px; }
.direction-question { font-size: 17px; }
.direction-card { min-height: 630px; }
.direction-card h3 { font-size: clamp(24px, 2.1vw, 34px); overflow-wrap: anywhere; }
.language-switch, .nav, .button, .text-link, .work-link, .paper-link { font-size: 14px; }

.works-section,
.results-section {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - min(1440px, calc(100vw - 48px))) / 2));
  padding-left: max(24px, calc((100vw - min(1440px, calc(100vw - 48px))) / 2));
  color: var(--paper);
}

.works-section {
  background: var(--ink);
}

.works-section .eyebrow,
.works-section .section-head > p,
.results-section .eyebrow,
.results-section .section-head > p {
  color: rgba(243, 241, 233, 0.56);
}

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

.work-card {
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line-dark);
}

.work-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: rgba(243, 241, 233, 0.45);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-meta span:last-child {
  justify-self: end;
  color: var(--acid);
}

.work-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  gap: 70px;
  margin-top: 78px;
}

.work-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 82px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.work-subtitle {
  margin: 14px 0 0;
  color: var(--acid);
  font-family: var(--display);
  font-size: 12px;
}

.work-abstract {
  max-width: 700px;
  margin: 0;
  color: rgba(243, 241, 233, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.work-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 42px;
  align-items: end;
  margin-top: 68px;
}

.work-evidence p {
  margin: 0;
  color: rgba(243, 241, 233, 0.66);
  font-size: 11px;
}

.work-evidence p span {
  display: block;
  margin-bottom: 8px;
  color: rgba(243, 241, 233, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-link {
  color: var(--paper);
  white-space: nowrap;
}

.work-link b {
  color: var(--acid);
}

.work-link:hover {
  color: var(--acid);
}

.results-section {
  background: #22231f;
}

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

.result-row {
  display: grid;
  grid-template-columns: 120px minmax(260px, 0.85fr) minmax(300px, 1.15fr) 125px;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: background 160ms ease;
}

.result-row:hover {
  background: rgba(243, 241, 233, 0.035);
}

.result-row time,
.result-row > strong,
.result-boundary > span {
  color: rgba(243, 241, 233, 0.44);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-row h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.result-row p {
  max-width: 650px;
  margin: 0;
  color: rgba(243, 241, 233, 0.62);
  font-size: 12px;
}

.result-boundary > span {
  display: block;
  margin-bottom: 8px;
}

.result-row > strong {
  justify-self: end;
  color: var(--acid);
  text-align: right;
}

.method-section {
  padding-top: 150px;
}

.surface-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--ink);
}

.surface-card {
  min-height: 380px;
  padding: 32px;
}

.private-surface {
  color: var(--paper);
  background: var(--ink);
}

.public-surface {
  background: var(--white);
}

.surface-card > span,
.quality-target span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.private-surface > span {
  color: var(--acid);
}

.public-surface > span {
  color: var(--coral);
}

.surface-card h3 {
  max-width: 460px;
  margin: 96px 0 20px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.surface-card p {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
}

.private-surface p {
  color: rgba(243, 241, 233, 0.62);
}

.public-surface p {
  color: var(--ink-soft);
}

.surface-card small {
  display: block;
  margin-top: 40px;
  color: rgba(243, 241, 233, 0.42);
  font-size: 9px;
  text-transform: uppercase;
}

.public-surface small {
  color: var(--ink-soft);
}

.surface-arrow {
  display: grid;
  place-content: center;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  text-align: center;
}

.surface-arrow span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-90deg);
}

.surface-arrow b {
  margin-top: 32px;
  color: var(--coral);
  font-size: 28px;
  font-weight: 400;
}

.publication-gate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.gate-step {
  position: relative;
  min-height: 270px;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.gate-step:not(:first-child) {
  padding-left: 24px;
}

.gate-step:last-child {
  border-right: 0;
}

.gate-step::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.gate-step:last-child::before {
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(216, 255, 62, 0.35);
}

.gate-step > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.gate-step h3 {
  margin: 72px 0 14px;
  font-size: 14px;
}

.gate-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.quality-target {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(320px, 1fr) minmax(260px, 0.7fr);
  gap: 50px;
  align-items: end;
  margin-top: 50px;
  padding: 36px;
  color: var(--paper);
  background: var(--ink);
}

.quality-target span {
  display: block;
  color: var(--acid);
}

.quality-target strong {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(50px, 6vw, 86px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.quality-target p,
.quality-target small {
  margin: 0;
  color: rgba(243, 241, 233, 0.65);
}

.quality-target p {
  font-size: 13px;
}

.quality-target small {
  font-size: 10px;
}

.questions-section {
  padding-bottom: 150px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.question-card {
  min-height: 340px;
  padding: 28px;
  border-right: 1px solid var(--ink);
  transition: color 160ms ease, background 160ms ease;
}

.question-card:last-child {
  border-right: 0;
}

.question-card:hover {
  color: var(--paper);
  background: var(--ink);
}

.question-card > span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 700;
}

.question-card h3 {
  margin: 94px 0 20px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.question-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.question-card:hover p {
  color: rgba(243, 241, 233, 0.6);
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 190px;
  padding: 40px max(24px, calc((100vw - min(1440px, calc(100vw - 48px))) / 2));
  color: var(--paper);
  background: var(--ink);
}

.footer p {
  justify-self: center;
  color: rgba(243, 241, 233, 0.48);
  font-size: 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-self: end;
  gap: 20px;
  color: rgba(243, 241, 233, 0.68);
  font-size: 10px;
}

.footer-links a:hover {
  color: var(--acid);
}

/* Public working papers */

.paper-body {
  background: var(--white);
}

.paper-page {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 110px 0 140px;
}

.paper-back {
  margin-bottom: 90px;
}

.paper-header {
  padding-bottom: 70px;
  border-bottom: 1px solid var(--ink);
}

.paper-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.paper-meta div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.paper-meta span {
  display: block;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.paper-title {
  max-width: 1050px;
  font-size: clamp(46px, 7vw, 98px);
  line-height: 0.98;
}

.paper-subtitle {
  max-width: 780px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.paper-abstract {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 44px;
  margin-top: 70px;
}

.paper-abstract h2,
.paper-section > h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-abstract p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.paper-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 44px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.paper-content {
  max-width: 820px;
}

.paper-content > :first-child {
  margin-top: 0;
}

.paper-content > :last-child {
  margin-bottom: 0;
}

.paper-content h3 {
  margin: 48px 0 16px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.paper-content p,
.paper-content li {
  color: var(--ink-soft);
  font-size: 15px;
}

.paper-content strong {
  color: var(--ink);
}

.paper-content ul,
.paper-content ol {
  padding-left: 22px;
}

.paper-content li + li {
  margin-top: 10px;
}

.system-loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 38px 0;
  border: 1px solid var(--ink);
}

.system-loop div {
  position: relative;
  min-height: 150px;
  padding: 18px;
  border-right: 1px solid var(--ink);
}

.system-loop div:last-child {
  border-right: 0;
}

.system-loop div:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -11px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--paper);
  content: "→";
  background: var(--ink);
  font-size: 10px;
  transform: translateY(-50%);
}

.system-loop span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.system-loop strong {
  display: block;
  margin-top: 62px;
  font-size: 11px;
}

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

.architecture-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.architecture-list h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0;
}

.architecture-list p {
  margin: 0;
  font-size: 12px;
}

.evidence-table {
  border-top: 1px solid var(--ink);
}

.evidence-row {
  display: grid;
  grid-template-columns: 115px 1fr 1fr;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-row > strong {
  color: #507100;
  font-size: 10px;
}

.evidence-row div span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-row p {
  margin: 0;
  font-size: 11px;
}

.paper-callout {
  margin: 36px 0;
  padding: 28px;
  color: var(--paper);
  background: var(--ink);
}

.paper-callout span {
  color: var(--acid);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-callout p {
  margin: 16px 0 0;
  color: rgba(243, 241, 233, 0.75);
  font-size: 14px;
}

.citation {
  padding: 24px;
  border: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
}

.paper-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 50px;
  color: var(--ink-soft);
  font-size: 10px;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.has-js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav {
    gap: 18px;
  }

  .hero {
    gap: 50px;
  }

  .hero-identity {
    min-height: 450px;
  }

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

  .direction-card:nth-child(2) {
    border-right: 0;
  }

  .direction-card:nth-child(n + 3) {
    border-top: 1px solid var(--ink);
  }

  .direction-card:nth-child(2)::after {
    display: none;
  }

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

  .work-link {
    justify-self: start;
  }

  .result-row {
    grid-template-columns: 100px minmax(250px, 1fr) minmax(270px, 1fr);
  }

  .result-row > strong {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .surface-split {
    grid-template-columns: 1fr 100px 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 32px);
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    min-height: 64px;
    padding: 0 16px;
  }

  .language-switch {
    margin-right: 7px;
    margin-left: 0;
  }

  .topbar-status {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px 16px 26px;
    flex-direction: column;
    gap: 16px;
    color: var(--paper);
    border-bottom: 1px solid var(--line-dark);
    background: var(--ink);
  }

  .nav.open {
    display: flex;
  }

  .section {
    padding: 84px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 40px;
    min-height: 0;
    padding-top: 86px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .hero-thesis {
    font-size: 18px;
  }

  .hero-identity {
    min-height: 430px;
    padding: 28px;
  }

  .hero-identity > strong {
    margin-top: 72px;
  }

  .hero-signal {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 44px;
  }

  .section-head h2 {
    font-size: clamp(36px, 11vw, 58px);
  }

  .direction-flow,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .direction-card,
  .direction-card:nth-child(2),
  .question-card {
    min-height: 400px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .direction-card:last-child,
  .question-card:last-child {
    border-bottom: 0;
  }

  .direction-card:nth-child(n + 3) {
    border-top: 0;
  }

  .direction-card::after {
    display: none !important;
  }

  .direction-card h3 {
    min-height: 0;
    margin-top: 62px;
  }

  .work-meta {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .work-meta span:nth-child(2) {
    display: none;
  }

  .work-main {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 54px;
  }

  .work-card h3 {
    font-size: clamp(38px, 12vw, 62px);
  }

  .work-evidence {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result-row > strong {
    grid-column: 1;
  }

  .surface-split {
    grid-template-columns: 1fr;
  }

  .surface-card {
    min-height: 350px;
  }

  .surface-arrow {
    min-height: 84px;
    border: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .surface-arrow span {
    transform: none;
  }

  .surface-arrow b {
    margin-top: 4px;
    transform: rotate(90deg);
  }

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

  .gate-step:nth-child(2) {
    border-right: 0;
  }

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

  .quality-target {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .question-card {
    min-height: 300px;
  }

  .question-card h3 {
    margin-top: 64px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 42px 16px;
  }

  .footer p,
  .footer-links {
    justify-self: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .paper-page {
    width: calc(100vw - 32px);
    padding-top: 70px;
  }

  .paper-back {
    margin-bottom: 60px;
  }

  .paper-meta {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 54px;
  }

  .paper-title {
    font-size: clamp(42px, 13vw, 68px);
  }

  .paper-abstract,
  .paper-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .system-loop {
    grid-template-columns: 1fr;
  }

  .system-loop div {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .system-loop div:last-child {
    border-bottom: 0;
  }

  .system-loop div:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -11px;
    transform: translateX(50%) rotate(90deg);
  }

  .system-loop strong {
    margin-top: 34px;
  }

  .architecture-list article,
  .evidence-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .paper-footer {
    flex-direction: column;
  }
}

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

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}
