/* Mixed-Curvature Semantic IDs — research proposal page */

:root {
  color-scheme: light dark;
  --bg: #f4f1e7;
  --surface: #fbfaf4;
  --surface-2: #e9e5d8;
  --ink: #171a19;
  --muted: #5c6360;
  --faint: #898f8a;
  --rule: #d6d1c2;
  --rule-strong: #b4ae9d;
  --accent: #0d5c57;
  --accent-2: #a9682a;
  --accent-soft: #deede8;
  --blue: #365b7a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(23, 26, 25, 0.04), 0 18px 44px -28px rgba(23, 26, 25, 0.35);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --surface: #161d1b;
    --surface-2: #1e2725;
    --ink: #eae6da;
    --muted: #a4aaa5;
    --faint: #7d847f;
    --rule: #2b3432;
    --rule-strong: #46524e;
    --accent: #79c9be;
    --accent-2: #dda25e;
    --accent-soft: #1b3330;
    --blue: #8db4d4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -28px rgba(0, 0, 0, 0.8);
  }
}

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

figure {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

/* chrome */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.wordmark:hover {
  color: inherit;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.mark svg {
  display: block;
}

.wordmark-text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex: none;
}

/* hero */

.hero {
  padding: clamp(54px, 7.5vw, 92px) 0 clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(34px, 5.5vw, 68px);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero h1 .line-2 {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.subtitle {
  max-width: 32ch;
  margin: 22px 0 0;
  font-size: clamp(1.16rem, 1.9vw, 1.42rem);
  line-height: 1.34;
  color: var(--ink);
}

.lead {
  max-width: 56ch;
  margin: 20px 0 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

.hero-meta .sep {
  color: var(--rule-strong);
}

/* graphlet plate */

.visual {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.graphlet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mini {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 98px;
  padding: 12px 10px 10px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.mini:nth-child(3n) {
  border-right: 0;
}

.mini:nth-child(n + 4) {
  border-bottom: 0;
}

.mini svg {
  display: block;
  width: 52px;
  height: 36px;
}

.mini span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.mini span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}

.mini.closure {
  --dot: var(--accent);
  color: var(--accent);
}

.mini.cycle {
  --dot: var(--blue);
  color: var(--blue);
}

.mini.star,
.mini.path {
  --dot: var(--accent-2);
  color: var(--accent-2);
}

.visual figcaption {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* sections */

.section {
  padding: clamp(54px, 7vw, 86px) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: clamp(28px, 3.8vw, 42px);
}

.section-label {
  margin: 0;
  padding-top: 7px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label .num {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.section-head h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.prose {
  max-width: 72ch;
  min-width: 0;
}

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

.prose p {
  margin: 0 0 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.55;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: start;
}

.evidence-grid > * {
  min-width: 0;
}

.scope {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent-2);
  background: var(--surface-2);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.scope h3 {
  margin: 0 0 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.scope p {
  margin: 0;
}

.scope p + p {
  margin-top: 8px;
}

/* evidence blocks */

.rq-block {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.rq-block:first-of-type {
  margin-top: 38px;
  padding-top: 0;
  border-top: 0;
}

.rq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.rq-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.rq-head h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.rq-question {
  max-width: 72ch;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* data tables */

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

thead th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

thead th:first-child {
  white-space: normal;
  text-align: left;
}

thead th.symbol {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}

tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:first-child {
  font-family: var(--sans);
  font-size: 13px;
  text-align: left;
  color: var(--ink);
}

td.bar-cell {
  width: 38%;
  min-width: 110px;
}

.bar {
  display: block;
  height: 6px;
  background: var(--surface-2);
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.w100 { width: 100%; }
.w90  { width: 90%; }
.w72  { width: 72%; }
.w59  { width: 59%; }
.w47  { width: 47%; }
.w42  { width: 42%; }

.best-row td {
  background: var(--accent-soft);
  font-weight: 600;
}

.total-row td {
  border-top: 1px solid var(--rule-strong);
  font-weight: 600;
}

.drop-high {
  color: var(--accent-2);
  font-weight: 700;
}

.table-note {
  margin: 9px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
}

.finding {
  max-width: 76ch;
  margin: 12px 0 0;
  padding-left: 13px;
  border-left: 2px solid var(--accent-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.finding strong {
  color: var(--accent-2);
  font-weight: 600;
}

/* synthesis */

.synthesis {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.synthesis h3 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.fact .n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.fact h4 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.multi {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.multi .big {
  font-family: var(--mono);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.multi .big small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.multi p {
  max-width: 70ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.hypothesis {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}

.hypothesis .label {
  margin: 0;
  padding-top: 4px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hypothesis p {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.5;
}

/* proposal */

.proposal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: start;
  margin-bottom: 30px;
}

.proposal-grid > * {
  min-width: 0;
}

.proposal-intro {
  margin-bottom: 0;
}

.principles {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.principles h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

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

.principles strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.geometries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.geo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.geo svg {
  width: 44px;
  height: 44px;
  flex: none;
}

.geo.euclidean svg {
  color: var(--accent);
}

.geo.hyperbolic svg {
  color: var(--accent-2);
}

.geo.spherical svg {
  color: var(--blue);
}

.geo h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.geo p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.step {
  padding: 22px 22px 24px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.step .n {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  margin: 0 0 7px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--muted);
}

.contributions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.contributions article {
  min-width: 0;
}

.contributions h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.contributions p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* plan */

.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-strong);
}

.phase {
  padding: 20px 20px 0 0;
  border-right: 1px solid var(--rule);
}

.phase:last-child {
  border-right: 0;
  padding-right: 0;
}

.phase:not(:first-child) {
  padding-left: 20px;
}

.phase .pnum {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.phase .when {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.phase:first-child .when {
  border-color: var(--accent);
  color: var(--accent);
}

.phase h3 {
  margin: 0 0 7px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.phase p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.open {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
}

.open article {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.open .q {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-2);
}

.open p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.status-note {
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* contact */

.contact {
  padding: clamp(52px, 6vw, 76px) 0;
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: end;
}

.contact h2 {
  max-width: 18ch;
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.024em;
}

.contact p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn .arrow {
  font-size: 12px;
  line-height: 1;
}

/* footer */

.footer {
  padding: 30px 0 52px;
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--muted);
}

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

/* responsive */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .proposal-grid {
    grid-template-columns: 1fr;
  }

  .principles {
    max-width: 620px;
  }

  .visual {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

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

  .scope {
    max-width: 620px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-label .num {
    display: inline;
    margin: 0 10px 0 0;
  }

  .section-head h2 {
    max-width: 28ch;
  }

  .phases {
    grid-template-columns: 1fr 1fr;
  }

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

  .phase:nth-child(3) {
    margin-top: 22px;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 18px;
  }

  .phase:nth-child(4) {
    margin-top: 22px;
    border-top: 1px solid var(--rule);
    padding-top: 18px;
  }
}

@media (max-width: 820px) {
  .facts,
  .geometries,
  .steps,
  .contributions,
  .open {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 110px;
  }

  .topbar .wrap {
    flex-wrap: wrap;
    gap: 4px 14px;
    padding-top: 10px;
    padding-bottom: 8px;
    min-height: 0;
  }

  .status {
    display: none;
  }

  .nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: none;
    font-size: 9.5px;
    padding: 2px 0;
  }

  .hypothesis {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-wrap th:first-child,
  .table-wrap td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--rule);
  }

  .table-wrap thead th:first-child {
    z-index: 2;
  }

  .best-row td:first-child {
    background: var(--accent-soft);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.8rem);
  }

  .subtitle {
    max-width: none;
  }

  .hero-meta {
    display: block;
  }

  table {
    font-size: 12px;
  }

  thead th,
  tbody td {
    padding: 8px 8px;
  }

  td.bar-cell {
    min-width: 80px;
  }

  .hero-meta .sep {
    display: block;
    height: 4px;
    overflow: hidden;
    color: transparent;
  }

  .hero-meta .dot {
    display: none;
  }

  .multi {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .multi .big {
    font-size: 1.9rem;
  }

  .phases {
    grid-template-columns: 1fr;
  }

  .phase,
  .phase:not(:first-child) {
    padding: 16px 0 0;
    border-right: 0;
    border-top: 1px solid var(--rule);
    margin-top: 16px;
  }

  .phase:first-child {
    border-top: 0;
    margin-top: 0;
  }

  .contact-links .btn {
    flex: 1 1 auto;
  }

  .footer .wrap {
    display: block;
  }

  .footer p + p {
    margin-top: 7px;
  }
}

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

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