:root {
  color-scheme: dark;
  --ink: #f3f4f7;
  --muted: #9ea2b4;
  --muted-strong: #c4c7d2;
  --bg: #08090e;
  --bg-raised: #0d0f17;
  --panel: rgba(18, 20, 30, 0.78);
  --panel-solid: #12141e;
  --line: rgba(255, 255, 255, 0.105);
  --line-bright: rgba(255, 255, 255, 0.18);
  --cyan: #6ee7e2;
  --cyan-soft: rgba(110, 231, 226, 0.13);
  --violet: #9d83ff;
  --violet-soft: rgba(157, 131, 255, 0.13);
  --amber: #ffbd66;
  --red: #ff738a;
  --green: #7ae2a8;
  --shell: 1180px;
  --narrow: 790px;
  --radius: 18px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 15%, rgba(62, 219, 211, 0.055), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(139, 107, 255, 0.065), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

::selection {
  background: var(--cyan);
  color: #06100f;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

#signal-field {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  pointer-events: none;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.narrow-shell {
  max-width: var(--narrow);
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.025em;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: #06100f;
  font-weight: 750;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 14, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(110, 231, 226, 0.38);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(110, 231, 226, 0.12), rgba(157, 131, 255, 0.08));
  box-shadow: 0 0 24px rgba(110, 231, 226, 0.08);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.site-nav .nav-github {
  margin-left: 5px;
  border: 1px solid var(--line-bright);
  color: var(--muted-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(110, 231, 226, 0.09), 0 0 16px var(--cyan);
}

.home-hero {
  display: grid;
  min-height: 680px;
  padding-block: 110px 90px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 70px;
}

.hero-copy h1,
.archive-hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 620;
  letter-spacing: -0.067em;
  line-height: 0.88;
}

.hero-copy h1 span,
.archive-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #a7f5d6 43%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-intro {
  max-width: 650px;
  margin: 36px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 760;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--cyan);
  color: #07100f;
  box-shadow: 0 14px 40px rgba(110, 231, 226, 0.12);
}

.button-primary:hover {
  background: #8af0ec;
}

.button-secondary {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(110, 231, 226, 0.35);
  background: var(--cyan-soft);
}

.protocol-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(19, 22, 32, 0.93), rgba(11, 13, 20, 0.82));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.03);
}

.protocol-card::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(157, 131, 255, 0.10);
  filter: blur(38px);
  content: "";
}

.protocol-head,
.protocol-foot {
  display: flex;
  padding: 15px 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #797e91;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.protocol-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
}

.protocol-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: pulse 2.2s ease-in-out infinite;
}

.protocol-flow {
  padding: 29px 27px 31px;
}

.protocol-node {
  display: grid;
  min-height: 66px;
  padding: 14px 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  grid-template-columns: 32px 1fr;
}

.protocol-node span {
  color: #606577;
  font-family: var(--mono);
  font-size: 10px;
  grid-row: 1 / 3;
}

.protocol-node strong {
  font-size: 13px;
  font-weight: 690;
}

.protocol-node small {
  color: var(--muted);
  font-size: 11px;
}

.protocol-node.active {
  border-color: rgba(110, 231, 226, 0.36);
  background: linear-gradient(90deg, rgba(110, 231, 226, 0.09), transparent);
  box-shadow: inset 3px 0 var(--cyan), 0 0 30px rgba(110, 231, 226, 0.045);
}

.protocol-node.active span,
.protocol-node.active strong {
  color: var(--cyan);
}

.protocol-link {
  position: relative;
  height: 23px;
  margin-left: 31px;
  border-left: 1px dashed rgba(255, 255, 255, 0.17);
}

.protocol-link i {
  position: absolute;
  top: 8px;
  left: -2px;
  width: 3px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  animation: travel 2.4s linear infinite;
}

.protocol-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

@keyframes travel {
  from { transform: translateY(-7px); opacity: 0; }
  30%, 70% { opacity: 1; }
  to { transform: translateY(10px); opacity: 0; }
}

.metrics-strip {
  border-block: 1px solid var(--line);
  background: rgba(13, 15, 23, 0.68);
}

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

.metrics-grid > div {
  min-height: 122px;
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.metrics-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.metrics-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 520;
  line-height: 1.2;
}

.metrics-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trace-metric strong {
  color: var(--violet);
}

.latest-section,
.principles-section,
.project-experiments,
.benefit-section {
  padding-block: 110px;
}

.section-heading {
  display: flex;
  margin-bottom: 40px;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 53px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  flex: none;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.text-link span {
  margin-left: 8px;
  color: var(--cyan);
}

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

.research-card {
  position: relative;
  display: flex;
  min-height: 345px;
  overflow: hidden;
  padding: 24px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--panel);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.research-card::after {
  position: absolute;
  right: -45px;
  bottom: -60px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(110, 231, 226, 0.10);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(110, 231, 226, 0.025), 0 0 0 48px rgba(110, 231, 226, 0.012);
  content: "";
  transition: transform 240ms ease;
}

.research-card:hover {
  border-color: rgba(110, 231, 226, 0.3);
  background:
    linear-gradient(160deg, rgba(110, 231, 226, 0.07), transparent 50%),
    var(--panel);
  transform: translateY(-4px);
}

.research-card:hover::after {
  transform: scale(1.15);
}

.card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.card-topline,
.project-card-head {
  display: flex;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.card-id,
.project-card-head > .mono {
  color: #74798b;
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #777c8d;
}

.status-running .status-dot,
.status-planned .status-dot {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(110, 231, 226, 0.8);
}

.status-concluded .status-dot {
  background: var(--green);
}

.status-abandoned .status-dot {
  background: var(--red);
}

.research-card h3 {
  position: relative;
  z-index: 1;
  max-width: 350px;
  margin: 38px 0 12px;
  font-size: 23px;
  font-weight: 610;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.research-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #7e8394;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  position: relative;
  z-index: 3;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.tag-row span,
.entry-tags span {
  color: #787d8e;
  font-family: var(--mono);
  font-size: 9px;
}

.principles-section {
  border-top: 1px solid var(--line);
}

.principles-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.principles-grid article,
.benefit-grid article {
  min-height: 260px;
  padding: 32px;
  background: var(--bg-raised);
}

.principle-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 43px;
  place-items: center;
  border: 1px solid rgba(110, 231, 226, 0.25);
  border-radius: 11px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 19px;
}

.principles-grid h3,
.benefit-grid h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.principles-grid p,
.benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home-disclaimer {
  padding-bottom: 110px;
}

.disclaimer {
  display: flex;
  padding: 20px 22px;
  border: 1px solid rgba(255, 189, 102, 0.19);
  border-radius: 13px;
  background: rgba(255, 189, 102, 0.055);
  align-items: flex-start;
  gap: 15px;
  color: #aaa69d;
  font-size: 12px;
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--amber);
}

.disclaimer-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 189, 102, 0.32);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
}

.archive-hero {
  display: grid;
  padding-block: 110px 80px;
  align-items: end;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
}

.archive-hero h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.93;
}

.archive-hero > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
}

.archive-tools {
  display: flex;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 17, 26, 0.75);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.filter-group {
  display: flex;
  gap: 5px;
}

.filter-button {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 670;
}

.filter-button span {
  margin-left: 4px;
  color: #666b7c;
  font-family: var(--mono);
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.archive-search {
  display: flex;
  width: min(100%, 310px);
  align-items: center;
  gap: 9px;
}

.archive-search svg {
  width: 17px;
  fill: none;
  stroke: #6c7182;
  stroke-width: 1.5;
}

.archive-search input {
  width: 100%;
  padding: 8px 3px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.archive-search input::placeholder {
  color: #606576;
}

.archive-results {
  padding-block: 34px 120px;
}

.result-count {
  margin: 0 0 18px;
  color: #656a7b;
  font-size: 9px;
  text-transform: uppercase;
}

.empty-results {
  padding: 100px 20px;
  text-align: center;
}

.empty-results > span {
  color: var(--violet);
  font-size: 44px;
}

.empty-results h2 {
  margin: 10px 0 4px;
  font-size: 25px;
}

.empty-results p {
  margin: 0;
  color: var(--muted);
}

.project-index {
  display: grid;
  padding-bottom: 120px;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-index-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(157, 131, 255, 0.055), transparent 48%), var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-index-card:hover {
  border-color: rgba(157, 131, 255, 0.35);
  transform: translateY(-4px);
}

.project-index-card h2 {
  max-width: 450px;
  margin: 52px 0 13px;
  font-size: 31px;
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.project-index-card > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-card-stats {
  display: grid;
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.project-card-stats strong,
.project-card-stats span {
  display: block;
}

.project-card-stats strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 530;
}

.project-card-stats span {
  color: #707587;
  font-size: 9px;
  text-transform: uppercase;
}

.sample-note {
  position: absolute;
  top: 74px;
  right: -35px;
  padding: 5px 45px;
  background: rgba(157, 131, 255, 0.13);
  color: var(--violet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(38deg);
}

.entry-hero,
.project-hero {
  display: grid;
  min-height: 515px;
  padding-block: 95px 70px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 70px;
}

.entry-kicker,
.project-chips {
  display: flex;
  margin-bottom: 27px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-kicker > .mono {
  color: var(--cyan);
  font-size: 10px;
}

.sample-pill,
.project-chips > span:not(.status-pill) {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(157, 131, 255, 0.25);
  border-radius: 999px;
  background: var(--violet-soft);
  color: #b9aaff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.entry-hero h1,
.project-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(45px, 6.3vw, 76px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.entry-summary,
.page-intro {
  max-width: 730px;
  margin: 27px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.6;
}

.entry-tags {
  display: flex;
  margin-top: 23px;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-signal {
  position: relative;
  width: 250px;
  height: 250px;
  justify-self: end;
}

.signal-ring,
.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.signal-ring {
  border: 1px solid rgba(110, 231, 226, 0.16);
}

.ring-one { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.ring-two { width: 68%; height: 68%; border-style: dashed; animation: spin 12s linear reverse infinite; }
.ring-three { width: 40%; height: 40%; border-color: rgba(157, 131, 255, 0.28); }

.ring-one::before,
.ring-two::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  content: "";
}

.signal-core {
  width: 10px;
  height: 10px;
  background: var(--violet);
  box-shadow: 0 0 30px 8px rgba(157, 131, 255, 0.45);
}

.signal-label {
  position: absolute;
  right: 0;
  bottom: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--muted-strong);
  font-size: 8px;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sample-banner {
  padding: 14px 18px;
  border: 1px solid rgba(157, 131, 255, 0.25);
  border-radius: 11px;
  background: rgba(157, 131, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.sample-banner strong {
  color: #c4b8ff;
}

.entry-facts,
.project-facts {
  display: grid;
  border-block: 1px solid var(--line);
  background: rgba(13, 15, 23, 0.65);
  grid-template-columns: repeat(6, 1fr);
}

.entry-facts > div,
.project-facts > div {
  min-height: 94px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.entry-facts > div:first-child,
.project-facts > div:first-child {
  border-left: 1px solid var(--line);
}

.entry-facts span,
.entry-facts strong,
.project-facts span,
.project-facts strong {
  display: block;
}

.entry-facts span,
.project-facts span {
  margin-bottom: 7px;
  color: #676c7d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-facts strong,
.project-facts strong {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
}

.entry-grid {
  display: grid;
  padding-block: 85px 120px;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: 70px;
}

.aside-sticky {
  position: sticky;
  top: 30px;
}

.aside-title {
  display: block;
  margin-bottom: 16px;
  color: #656a7b;
  font-size: 8px;
  text-transform: uppercase;
}

.entry-aside nav {
  display: grid;
  border-left: 1px solid var(--line);
}

.entry-aside nav a {
  display: flex;
  padding: 7px 13px;
  align-items: center;
  gap: 10px;
  color: #777c8d;
  font-size: 10px;
  transition: color 150ms ease, border-color 150ms ease;
}

.entry-aside nav a:hover,
.entry-aside nav a.active {
  color: var(--cyan);
}

.entry-aside nav a span {
  color: #4d5263;
  font-family: var(--mono);
  font-size: 8px;
}

.timestamp-block {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.timestamp-block span,
.timestamp-block strong {
  display: block;
}

.timestamp-block span {
  color: #626778;
  font-size: 8px;
  text-transform: uppercase;
}

.timestamp-block strong {
  margin-top: 5px;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 520;
}

.prose {
  color: var(--muted-strong);
}

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

.prose h2 {
  margin: 78px 0 20px;
  scroll-margin-top: 30px;
  color: var(--ink);
  font-size: 33px;
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.prose h2::before {
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  content: "";
}

.prose h3 {
  margin: 42px 0 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.8;
}

.prose p {
  margin: 0 0 20px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-block: 18px 28px;
}

.prose li {
  padding-left: 5px;
  margin: 8px 0;
}

.prose li::marker {
  color: var(--cyan);
}

.prose a:not(.button) {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(110, 231, 226, 0.28);
  text-underline-offset: 3px;
}

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

.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--violet);
  background: var(--violet-soft);
  color: #d2ccef;
}

.prose blockquote p {
  margin: 0;
  font-size: 16px;
}

.prose code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: #bfb2ff;
  font-family: var(--mono);
  font-size: 0.85em;
}

.prose pre {
  overflow-x: auto;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0c12;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #cdd0dc;
  line-height: 1.65;
}

.prose table {
  width: 100%;
  margin: 28px 0 36px;
  border-collapse: collapse;
  font-size: 12px;
}

.prose th,
.prose td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(110, 231, 226, 0.06);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose td:first-child {
  color: var(--ink);
  font-weight: 650;
}

.evidence-panel {
  margin-top: 85px;
  padding: 29px;
  border: 1px solid rgba(110, 231, 226, 0.18);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(110, 231, 226, 0.06), transparent 55%), var(--panel);
}

.evidence-panel h2 {
  margin-top: 8px;
}

.section-label {
  color: var(--cyan);
  font-size: 8px;
  text-transform: uppercase;
}

.evidence-list {
  display: grid;
  margin-top: 25px;
  gap: 8px;
}

.evidence-list a {
  display: grid;
  padding: 13px 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted-strong) !important;
  text-decoration: none !important;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
}

.evidence-list a:hover {
  border-color: rgba(110, 231, 226, 0.3);
}

.evidence-list strong {
  font-size: 12px;
}

.evidence-type {
  color: var(--violet);
  font-size: 8px;
}

.next-step {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 2px solid var(--cyan);
  background: rgba(110, 231, 226, 0.045);
}

.next-step span {
  color: var(--cyan);
  font-size: 8px;
  text-transform: uppercase;
}

.next-step p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.entry-content > .disclaimer {
  margin-top: 50px;
}

.project-hero .eyebrow {
  margin-bottom: 20px;
}

.project-orbit {
  position: relative;
  width: 230px;
  height: 230px;
  justify-self: end;
}

.project-orbit span,
.project-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.project-orbit span {
  border: 1px solid rgba(157, 131, 255, 0.18);
}

.project-orbit span:nth-child(1) { width: 100%; height: 100%; }
.project-orbit span:nth-child(2) { width: 67%; height: 67%; border-style: dashed; }
.project-orbit span:nth-child(3) { width: 34%; height: 34%; }
.project-orbit i { width: 12px; height: 12px; background: var(--cyan); box-shadow: 0 0 36px 10px rgba(110, 231, 226, 0.34); }

.project-facts {
  grid-template-columns: repeat(4, 1fr);
}

.project-copy,
.page-hero,
.page-hero + .prose {
  padding-top: 90px;
}

.project-copy {
  padding-bottom: 30px;
}

.benefit-section {
  border-top: 1px solid var(--line);
}

.benefit-number {
  display: block;
  margin-bottom: 50px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 10px;
}

.project-experiments {
  border-top: 1px solid var(--line);
}

.page-hero {
  padding-bottom: 10px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-hero + .prose {
  padding-top: 52px;
  padding-bottom: 120px;
}

.page-hero + .prose > .disclaimer:first-child {
  margin-bottom: 64px;
}

.not-found {
  min-height: 660px;
  padding-block: 150px;
  text-align: center;
}

.error-code {
  color: var(--red);
  font-size: 10px;
}

.not-found h1 {
  max-width: 700px;
  margin: 20px auto;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}

.not-found p {
  margin-bottom: 30px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #08090d;
}

.footer-grid {
  display: grid;
  padding-block: 65px;
  grid-template-columns: 1.8fr 0.6fr 0.8fr;
  gap: 70px;
}

.footer-brand {
  margin-bottom: 17px;
}

.footer-grid p {
  max-width: 360px;
  margin: 0;
  color: #696e7f;
  font-size: 12px;
}

.footer-grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid > div:not(:first-child) a {
  color: #898e9f;
  font-size: 11px;
}

.footer-grid > div:not(:first-child) a:hover {
  color: var(--cyan);
}

.footer-label {
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  color: #555a6b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

  .protocol-card {
    max-width: 580px;
  }

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

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

  .entry-facts > div:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .entry-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 15px;
    left: 15px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line-bright);
    border-radius: 12px;
    background: rgba(13, 15, 23, 0.98);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-github {
    margin: 5px 0 0;
  }

  .home-hero {
    min-height: 0;
    padding-block: 80px 65px;
    gap: 55px;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

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

  .metrics-grid > div:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  .section-heading > .text-link {
    display: block;
    margin-top: 20px;
  }

  .latest-section,
  .principles-section,
  .project-experiments,
  .benefit-section {
    padding-block: 80px;
  }

  .research-grid,
  .principles-grid,
  .benefit-grid,
  .project-index {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    display: block;
    padding-block: 80px 55px;
  }

  .archive-hero > p {
    margin-top: 32px;
  }

  .archive-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    overflow-x: auto;
  }

  .filter-button {
    flex: none;
  }

  .archive-search {
    width: 100%;
  }

  .entry-hero,
  .project-hero {
    min-height: 0;
    padding-block: 75px 55px;
    grid-template-columns: 1fr;
  }

  .entry-signal,
  .project-orbit {
    display: none;
  }

  .entry-facts,
  .project-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-facts > div:nth-child(3),
  .entry-facts > div:nth-child(5),
  .project-facts > div:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .entry-facts > div:nth-child(4) {
    border-left: 0;
  }

  .entry-grid {
    display: block;
    padding-block: 60px 90px;
  }

  .entry-aside {
    display: none;
  }

  .prose h2 {
    margin-top: 62px;
    font-size: 29px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }

  .page-hero,
  .project-copy {
    padding-top: 75px;
  }

  .page-hero + .prose {
    padding-top: 40px;
    padding-bottom: 90px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .protocol-flow {
    padding-inline: 18px;
  }

  .metrics-grid > div {
    padding: 20px 16px;
  }

  .entry-facts,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .entry-facts > div,
  .entry-facts > div:nth-child(n),
  .project-facts > div,
  .project-facts > div:nth-child(n) {
    min-height: 76px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .project-card-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }

  .project-index-card {
    min-height: 420px;
  }

  .evidence-panel {
    padding: 21px;
  }

  .evidence-list a {
    grid-template-columns: 42px 1fr;
  }

  .evidence-list a > :last-child {
    display: none;
  }

  .footer-bottom {
    display: grid;
    gap: 5px;
  }
}

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

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

  #signal-field {
    display: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #111318;
    --muted: #4d515b;
    --muted-strong: #292c33;
    --bg: #fff;
    --bg-raised: #fff;
    --line: #d8dae0;
  }

  body {
    background: #fff;
    color: #111318;
    font-size: 11pt;
  }

  body::before,
  #signal-field,
  .site-header,
  .site-footer,
  .entry-signal,
  .entry-aside,
  .hero-actions {
    display: none !important;
  }

  .shell {
    width: 100%;
  }

  .entry-hero {
    display: block;
    min-height: 0;
    padding: 0 0 20px;
  }

  .entry-hero h1 {
    color: #111318;
    font-size: 28pt;
  }

  .entry-facts {
    border: 1px solid #d8dae0;
    background: #fff;
    grid-template-columns: repeat(3, 1fr);
  }

  .entry-grid {
    display: block;
    padding: 30px 0;
  }

  .prose,
  .prose h2,
  .prose h3,
  .prose strong {
    color: #111318;
  }

  .prose h2 {
    break-after: avoid;
  }

  .prose a {
    color: #111318 !important;
  }

  .evidence-panel,
  .disclaimer {
    border-color: #c7c9cf;
    background: #f7f7f8;
  }
}

