:root {
  color-scheme: dark;
  --ink: #050608;
  --surface: #0c1118;
  --surface-2: #111923;
  --paper: #f4f7fb;
  --muted: #9aa8b8;
  --line: rgba(188, 232, 255, 0.18);
  --line-strong: rgba(188, 232, 255, 0.38);
  --blue: #56b8ff;
  --blue-soft: #bce8ff;
  --amber: #f2b84b;
  --green: #56d6a2;
  --red: #ff7a7a;
  --display: "Arial Narrow", "Bahnschrift SemiCondensed", "Aptos Narrow", Arial, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 4px;
}

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

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

.research-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(18px);
}

.research-brand,
.research-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.research-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.research-brand span,
.research-back span {
  color: var(--muted);
  font-weight: 500;
}

.research-back::before {
  content: "←";
  color: var(--blue);
  font-size: 20px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links > a:not(.research-back) {
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.registry-hero {
  position: relative;
  display: grid;
  min-height: min(74vh, 780px);
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.registry-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.78) 47%, rgba(5, 6, 8, 0.36) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 52%),
    url("../assets/cristallo-team-v1.png") center / cover no-repeat;
  opacity: 0.75;
}

.registry-hero-copy {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: clamp(88px, 12vw, 168px) clamp(20px, 7vw, 112px) clamp(52px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 126px);
  font-stretch: condensed;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.registry-hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.registry-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 148px;
  padding: 28px clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.registry-main,
.detail-main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 80px) 120px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-head h2,
.detail-section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-head p,
.detail-section > p {
  margin-bottom: 0;
  color: var(--muted);
}

.experiment-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1.3fr) minmax(180px, 0.55fr) 36px;
  gap: 28px;
  align-items: center;
  min-height: 184px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.experiment-row:last-child {
  border-bottom: 1px solid var(--line);
}

.experiment-row:hover {
  border-color: var(--blue);
  background: linear-gradient(90deg, rgba(86, 184, 255, 0.08), transparent 70%);
}

.experiment-id {
  color: var(--blue);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.experiment-copy h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.experiment-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-fixture {
  color: var(--amber);
}

.status-observed {
  color: var(--green);
}

.status-open {
  color: var(--blue);
}

.status-rejected {
  color: var(--red);
}

.experiment-arrow {
  color: var(--blue);
  font-size: 28px;
  text-align: right;
}

.reading-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.key-item {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.key-item:last-child {
  border-right: 0;
}

.key-item h3 {
  margin: 20px 0 12px;
  font-family: var(--display);
  font-size: 23px;
}

.key-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 68px);
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.detail-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.62) 54%, rgba(5, 6, 8, 0.32)),
    linear-gradient(0deg, var(--ink), transparent 62%);
}

.detail-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1050px, 100%);
  padding: clamp(96px, 12vw, 180px) clamp(20px, 7vw, 112px) clamp(52px, 7vw, 88px);
}

.guardian-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.guardian-mark img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.guardian-mark span {
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.aegis-detail-hero .guardian-mark {
  position: relative;
  padding-bottom: 13px;
}

.aegis-detail-hero .guardian-mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 70px;
  height: 2px;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(121, 207, 255, 0.95), rgba(121, 207, 255, 0.2), transparent);
  background-size: 220% 100%;
  animation: blue-honey-flow 4.8s linear infinite;
}

.detail-hero h1 {
  max-width: 1000px;
  font-size: clamp(50px, 8vw, 116px);
}

.detail-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: #d6e1ec;
  font-size: clamp(18px, 2vw, 25px);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.35fr);
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(56px, 8vw, 108px) 0;
  border-bottom: 1px solid var(--line);
}

.detail-section-copy {
  max-width: 850px;
  min-width: 0;
}

.detail-section-copy > :last-child {
  margin-bottom: 0;
}

.cycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.cycle-step {
  min-height: 240px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

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

.cycle-number {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.cycle-step h3 {
  margin: 46px 0 10px;
  font-family: var(--display);
  font-size: 28px;
}

.cycle-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.aegis-cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aegis-cases .cycle-step:nth-child(3) {
  border-right: 0;
}

.proof-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-column {
  padding: 30px;
  background: var(--surface);
}

.proof-column h3 {
  font-family: var(--display);
  font-size: 23px;
}

.proof-list,
.source-list,
.hash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li,
.source-list li,
.hash-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.proof-list li::before,
.source-list li::before,
.hash-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  color: var(--blue);
  content: "·";
}

.proof-contract {
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
}

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

.contract-row strong {
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
}

.contract-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.hash-list code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: 12px;
}

.source-list a {
  color: var(--paper);
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}

.source-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.manifest-link {
  display: inline-flex;
  margin-top: 26px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.atlas-hero {
  position: relative;
  display: grid;
  min-height: min(82vh, 860px);
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.atlas-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.atlas-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.62) 58%, rgba(5, 6, 8, 0.22)),
    linear-gradient(0deg, var(--ink), transparent 64%);
}

.atlas-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  padding: clamp(110px, 14vw, 200px) clamp(20px, 7vw, 112px) clamp(56px, 8vw, 100px);
}

.atlas-hero-copy h1 {
  max-width: 1000px;
  font-size: clamp(54px, 8.2vw, 118px);
}

.atlas-hero-copy > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: #d6e1ec;
  font-size: clamp(18px, 2vw, 25px);
}

.atlas-main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) 120px;
}

.atlas-section {
  padding: clamp(72px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: var(--project-accent, var(--blue));
  transform: translateY(-3px);
}

.project-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.7fr);
  min-height: 510px;
}

.project-card figure {
  min-height: 270px;
  margin: 0;
  overflow: hidden;
  background: #07111f;
}

.project-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-wide figure {
  min-height: 510px;
}

.project-body {
  align-self: end;
  padding: clamp(26px, 4vw, 44px);
}

.project-kicker {
  margin: 26px 0 12px;
  color: var(--project-accent, var(--blue));
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body h3 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
  text-transform: uppercase;
}

.project-body > p:not(.project-kicker) {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.accent-cyan { --project-accent: #3fe0d0; }
.accent-green { --project-accent: var(--green); }
.accent-coral { --project-accent: #ff927b; }
.accent-blue { --project-accent: var(--blue); }

.ternary-card-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 270px;
  align-content: center;
  padding: clamp(28px, 6vw, 70px);
  background: #07160f;
}

.ternary-card-visual span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(86, 214, 162, 0.5);
  border-radius: 6px;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 800;
}

.ternary-card-visual small {
  grid-column: 1 / -1;
  margin-top: 18px;
  color: #a9cab9;
  font-family: var(--display);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

.hive-card-visual {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background: #07111f;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 800;
}

.hive-card-visual span {
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.hive-card-visual i {
  color: var(--blue);
  font-style: normal;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.door {
  min-height: 300px;
  padding: 30px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.door:last-child {
  border-right: 0;
}

.door:hover {
  background: rgba(86, 184, 255, 0.06);
}

.door-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 72px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.door strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
}

.door p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.direction-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 180px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.direction-row:hover {
  background: linear-gradient(90deg, rgba(86, 184, 255, 0.07), transparent 70%);
}

.direction-index {
  color: var(--blue);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
}

.direction-row h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 42px);
}

.direction-row p {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
}

.wonder-membrane {
  margin-top: clamp(70px, 10vw, 140px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(86, 214, 162, 0.28);
  background:
    radial-gradient(circle at 90% 0%, rgba(86, 214, 162, 0.12), transparent 42%),
    rgba(8, 17, 19, 0.72);
}

.wonder-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.wonder-head h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
  text-transform: uppercase;
}

.wonder-head > p,
.wonder-boundary {
  color: var(--muted);
}

.wonder-row .direction-index {
  color: var(--green);
}

.wonder-row h3 {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.12;
}

.wonder-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--green);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wonder-boundary {
  margin: 28px 0 0;
  font-size: 13px;
}

.wonder-boundary a {
  color: var(--blue-soft);
}

.atlas-memory {
  max-width: 1050px;
}

.atlas-memory h2 {
  max-width: 930px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  text-transform: uppercase;
}

.atlas-memory > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
}

.detail-hero-media-clear {
  opacity: 0.78;
}

.aegis-detail-hero .detail-hero-media {
  object-position: 64% center;
  opacity: 0.72;
}

.aegis-manifesto {
  max-width: 780px;
  margin: 18px 0 12px;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
}

.aegis-detail-hero h1 {
  text-shadow: 0 0 44px rgba(121, 207, 255, 0.14);
}

@keyframes blue-honey-flow {
  from {
    background-position: 100% 50%;
  }

  to {
    background-position: -120% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aegis-detail-hero .guardian-mark::after {
    animation: none;
  }
}

.simple-flow {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr) auto minmax(140px, 1fr) auto minmax(140px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 34px 0;
}

.flow-node {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.flow-node strong {
  display: block;
  margin-bottom: 40px;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 13px;
}

.flow-node span {
  color: var(--muted);
  font-size: 14px;
}

.flow-arrow {
  align-self: center;
  color: var(--blue);
  font-size: 24px;
}

.companion-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.companion-strip span {
  min-height: 92px;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ternary-explainer {
  display: grid;
  grid-template-columns: 1fr auto 0.8fr;
  gap: 24px;
  align-items: center;
  margin: 34px 0;
}

.weight-cloud,
.ternary-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.weight-cloud span,
.ternary-values span {
  display: grid;
  min-height: 76px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--display);
}

.ternary-values span {
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
}

.comparison-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
}

.comparison-table th,
.comparison-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.comparison-table th {
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
}

.comparison-table .row-pass td:last-child {
  color: var(--green);
  font-weight: 800;
}

.comparison-table .row-fail td:last-child {
  color: var(--red);
  font-weight: 800;
}

.plain-note {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
  color: var(--muted);
}

.speed-bars {
  display: grid;
  gap: 24px;
  margin: 30px 0;
}

.speed-bars div {
  display: grid;
  grid-template-columns: 180px minmax(120px, 1fr) 150px;
  gap: 18px;
  align-items: center;
}

.speed-bars span,
.speed-bars strong {
  font-family: var(--display);
  font-size: 13px;
}

.speed-bars strong {
  color: var(--green);
  text-align: right;
}

.speed-bars i {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.speed-bars i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--green);
  content: "";
}

.roasting-hero::after {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.55) 54%, rgba(5, 6, 8, 0.18)),
    linear-gradient(0deg, var(--ink), transparent 64%);
}

.world-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.world-strip article {
  min-height: 250px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.world-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 52px;
  place-items: center;
  border: 1px solid rgba(255, 146, 123, 0.55);
  border-radius: 50%;
  color: #ff927b;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.world-strip h3 {
  font-family: var(--display);
  font-size: 22px;
}

.world-strip p {
  color: var(--muted);
  font-size: 14px;
}

.plain-callout {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
}

.research-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.research-footer a {
  color: var(--paper);
  text-decoration: none;
}

@media (max-width: 980px) {
  .registry-metrics,
  .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-metrics .metric:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .section-head,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .wonder-head {
    grid-template-columns: 1fr;
  }

  .experiment-row {
    grid-template-columns: 160px 1fr 34px;
  }

  .experiment-state {
    grid-column: 2;
  }

  .experiment-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .reading-key,
  .cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-item:nth-child(2),
  .cycle-step:nth-child(2) {
    border-right: 0;
  }

  .key-item:nth-child(-n+2),
  .cycle-step:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .project-card-wide {
    grid-template-columns: 1fr;
  }

  .project-card-wide figure {
    min-height: 380px;
  }

  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .door:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .simple-flow {
    grid-template-columns: 1fr 1fr;
  }

  .simple-flow .flow-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .research-header {
    min-height: 60px;
  }

  .research-brand span,
  .research-back span {
    display: none;
  }

  .header-links {
    gap: 14px;
  }

  .registry-hero {
    min-height: 70vh;
  }

  h1,
  .detail-hero h1 {
    font-size: clamp(46px, 17vw, 74px);
  }

  .registry-metrics,
  .detail-metrics,
  .reading-key,
  .cycle,
  .proof-columns {
    grid-template-columns: 1fr;
  }

  .metric,
  .key-item,
  .cycle-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child,
  .key-item:last-child,
  .cycle-step:last-child {
    border-bottom: 0;
  }

  .detail-metrics .metric:last-child {
    grid-column: auto;
  }

  .experiment-row {
    grid-template-columns: 1fr 30px;
    gap: 16px;
  }

  .experiment-id,
  .experiment-copy,
  .experiment-state {
    grid-column: 1;
  }

  .experiment-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .cycle-step h3 {
    margin-top: 22px;
  }

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

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

  .atlas-hero {
    min-height: 76vh;
  }

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

  .project-grid,
  .door-grid,
  .companion-strip,
  .world-strip,
  .simple-flow,
  .ternary-explainer {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .project-card,
  .project-card-wide {
    min-height: auto;
  }

  .project-card-wide figure,
  .project-card figure {
    min-height: 240px;
  }

  .door {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .door:last-child {
    border-bottom: 0;
  }

  .door-mark {
    margin-bottom: 36px;
  }

  .direction-row {
    grid-template-columns: 48px 1fr;
  }

  .direction-row .status {
    grid-column: 2;
  }

  .weight-cloud,
  .ternary-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .speed-bars div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .speed-bars strong {
    text-align: left;
  }
}

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

  * {
    transition: none !important;
  }
}

/* Atlas V3: real interfaces, measured evidence and open directions stay visually distinct. */
.gx-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  margin-bottom: 20px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070b0f;
}

.gx-feature figure {
  min-height: 620px;
  margin: 0;
  overflow: hidden;
}

.gx-feature figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.gx-feature-copy {
  align-self: center;
  padding: clamp(34px, 5vw, 72px);
}

.gx-feature-copy h3 {
  margin: 16px 0 20px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.94;
  text-transform: uppercase;
}

.gx-feature-copy > p:not(.project-kicker) {
  color: var(--muted);
}

.gx-equation {
  display: grid;
  gap: 8px;
  margin: 30px 0 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.gx-equation i {
  color: var(--blue);
  font-style: normal;
}

.gx-equation strong {
  color: #c9ff59;
}

.project-grid-interfaces .project-card {
  min-height: 610px;
}

.project-grid-interfaces .project-card figure {
  min-height: 330px;
}

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

.evidence-card {
  --project-accent: var(--blue);
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.evidence-card:hover {
  border-color: var(--project-accent);
  transform: translateY(-3px);
}

.evidence-card h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(29px, 3vw, 46px);
  line-height: 0.98;
  text-transform: uppercase;
}

.evidence-card p:not(.project-kicker, .evidence-number) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.evidence-number {
  min-width: 130px;
  margin: 0;
  color: var(--project-accent);
  text-align: right;
}

.evidence-number strong,
.evidence-number span {
  display: block;
}

.evidence-number strong {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.86;
}

.evidence-number span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gx-detail-hero .detail-hero-media {
  object-position: 50% 34%;
}

.gx-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.gx-channel-grid article {
  min-height: 280px;
  padding: clamp(26px, 4vw, 46px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gx-channel-grid span {
  color: #c9ff59;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.gx-channel-grid h3 {
  margin: 64px 0 14px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 46px);
  text-transform: uppercase;
}

.gx-channel-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .gx-feature {
    grid-template-columns: 1fr;
  }

  .gx-feature figure {
    min-height: 430px;
  }

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

@media (max-width: 640px) {
  .aegis-detail-hero .detail-hero-media {
    object-position: 68% center;
  }

  .gx-feature figure {
    min-height: 260px;
  }

  .gx-detail-hero .detail-hero-media {
    object-position: 60% 72%;
    transform: scale(1.22);
    transform-origin: 60% 82%;
  }

  .gx-feature-copy {
    padding: 34px 22px 42px;
  }

  .project-grid-interfaces .project-card {
    min-height: auto;
  }

  .evidence-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .evidence-number {
    text-align: left;
  }

  .gx-channel-grid {
    grid-template-columns: 1fr;
  }

  .gx-channel-grid article {
    min-height: auto;
  }

  .gx-channel-grid h3 {
    margin-top: 32px;
  }
}

/* YOKAI: a broad ecology of bounded roles. HIVE AEGIS is one defensive caste. */
.yokai-detail-hero .detail-hero-media {
  object-position: 62% center;
  opacity: 0.78;
}

.yokai-detail-hero::after {
  background: rgba(3, 7, 12, 0.58);
}

.yokai-manifesto {
  max-width: 780px;
  margin: 18px 0 14px;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
}

.yokai-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yokai-copy-wide {
  max-width: none;
}

.yokai-plain-line {
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.yokai-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.yokai-lane {
  min-height: 310px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.yokai-lane > span,
.yokai-honesty span,
.yokai-doors > a > span {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.yokai-lane h3 {
  margin: 92px 0 12px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.95;
  text-transform: uppercase;
}

.yokai-lane p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.yokai-lane-guard {
  background: #071522;
}

.yokai-lane-guard > span {
  color: var(--blue-soft);
}

.yokai-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.yokai-flow article {
  min-height: 210px;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
}

.yokai-flow article:last-child {
  border-right: 0;
}

.yokai-flow span,
.yokai-flow strong,
.yokai-flow small {
  display: block;
}

.yokai-flow span {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.yokai-flow strong {
  margin: 62px 0 10px;
  font-family: var(--display);
  font-size: 24px;
  text-transform: uppercase;
}

.yokai-flow small {
  color: var(--muted);
  font-size: 13px;
}

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

.yokai-honesty article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.yokai-honesty article:last-child {
  border-right: 0;
}

.yokai-honesty strong {
  display: block;
  margin: 72px 0 12px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  text-transform: uppercase;
}

.yokai-honesty p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.yokai-doors a {
  min-height: 400px;
  padding: clamp(30px, 5vw, 58px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.yokai-doors a:hover {
  border-color: var(--blue);
  background: #0b1722;
}

.yokai-doors h3 {
  margin: 110px 0 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
}

.yokai-doors p {
  max-width: 520px;
  color: var(--muted);
}

.yokai-doors a > strong {
  display: block;
  margin-top: 32px;
  color: var(--blue-soft);
  font-family: var(--display);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .yokai-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yokai-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid var(--line);
  }

  .yokai-flow article {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .yokai-detail-hero .detail-hero-media {
    object-position: 67% center;
  }

  .yokai-metrics,
  .yokai-lanes,
  .yokai-flow,
  .yokai-honesty,
  .yokai-doors {
    grid-template-columns: 1fr;
  }

  .yokai-lane,
  .yokai-flow article,
  .yokai-honesty article,
  .yokai-doors a {
    min-height: auto;
    border-right: 0;
  }

  .yokai-lane h3,
  .yokai-flow strong,
  .yokai-honesty strong,
  .yokai-doors h3 {
    margin-top: 42px;
  }
}
