:root {
  color-scheme: dark;
  --ink: #eef7ff;
  --muted: #9bb4ca;
  --navy: #041426;
  --navy-2: #071d33;
  --panel: rgba(10, 38, 63, 0.72);
  --line: rgba(126, 185, 226, 0.2);
  --cyan: #36d4ee;
  --blue: #6094ff;
  --amber: #ffb33f;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 12%, rgba(22, 113, 175, 0.18), transparent 33rem),
    linear-gradient(180deg, var(--navy) 0%, #06192b 55%, #04111f 100%);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body.framework-theme {
  --cyan: #a78bfa;
  --blue: #7c5cff;
  --amber: #57d8ed;
  background:
    radial-gradient(circle at 76% 12%, rgba(103, 76, 216, 0.2), transparent 33rem),
    linear-gradient(180deg, #070d21 0%, #0a1027 55%, #050a18 100%);
}

body.archive-theme,
body.publication-theme {
  --cyan: #66e3c4;
  --blue: #5c8cff;
  --amber: #ffd166;
  --panel: rgba(10, 35, 55, 0.76);
  background:
    radial-gradient(circle at 78% 10%, rgba(31, 148, 125, 0.18), transparent 32rem),
    linear-gradient(180deg, #041723 0%, #061b2a 55%, #04121d 100%);
}

body.theme-dna { --cyan: #75e6a4; --blue: #43b581; }
body.theme-compute { --cyan: #83d9ff; --blue: #5c8cff; }
body.theme-light { --cyan: #ffe26f; --blue: #ff9f43; }
body.theme-neuro { --cyan: #c7a8ff; --blue: #8f6cff; }
body.theme-vision { --cyan: #ff9db0; --blue: #ff6b8a; }
body.theme-wearable { --cyan: #63e6d1; --blue: #35b7a3; }
body.theme-ar { --cyan: #81c7ff; --blue: #5a86ff; }

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 0.2em; }
a:hover { color: #8aebf7; }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #061426;
  background: white;
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 20, 38, 0.88);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.brand span { color: var(--cyan); }

.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: white; }

.paper-hero {
  padding: 54px 0 70px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(52, 112, 157, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 112, 157, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
  color: #708ca3;
  font-size: 0.78rem;
}

.breadcrumb a { color: #9bb4ca; text-decoration: none; }

.paper-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: 52px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.dek {
  max-width: 620px;
  margin-bottom: 20px;
  color: #bfd5e7;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.45;
}

.byline { color: var(--muted); font-size: 0.86rem; }
.byline a { color: white; font-weight: 600; text-decoration: none; }

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary { color: #031321; background: var(--cyan); }
.button--primary:hover { color: #031321; background: #7be8f6; }
.button--secondary { color: white; border-color: rgba(141, 198, 236, 0.34); background: rgba(8, 37, 60, 0.68); }
.button--secondary:hover { color: white; border-color: var(--cyan); }
.button--light { color: #041426; background: white; }
.button--light:hover { color: #041426; background: #dff9ff; }

.cover-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(104, 190, 236, 0.34);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.cover-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.cover-frame img { display: block; width: 100%; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  align-items: start;
  gap: 70px;
  padding-top: 86px;
  padding-bottom: 96px;
}

.article-body section + section { margin-top: 82px; }

.article-body h2,
.closing h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.article-body p { color: #b7cada; font-size: 1.02rem; }
.article-body strong { color: #effaff; }

blockquote {
  margin: 34px 0 0;
  padding: 26px 28px;
  border: 1px solid rgba(54, 212, 238, 0.3);
  border-left: 4px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(7, 37, 59, 0.72);
}

blockquote p { margin: 0; color: white !important; font-size: 1.14rem !important; font-weight: 600; }

.routing-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.routing-flow li,
.record-grid > div,
.metrics > div,
.aside-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.routing-flow li { padding: 18px; }
.routing-flow li:nth-child(4) { border-color: rgba(255, 179, 63, 0.56); }
.routing-flow li > span { display: block; color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 0.66rem; }
.routing-flow li:nth-child(4) > span { color: var(--amber); }
.routing-flow strong { display: block; margin: 4px 0 2px; }
.routing-flow small { color: var(--muted); }

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

.record-grid > div { padding: 22px; }
.record-grid strong { display: block; margin-bottom: 6px; }
.record-grid span { display: block; color: var(--muted); font-size: 0.86rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 18px;
}

.metrics > div { padding: 20px 16px; }
.metrics strong { display: block; color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 1.45rem; }
.metrics span { display: block; margin-top: 5px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }

.evidence-note {
  padding: 24px;
  border: 1px solid rgba(255, 179, 63, 0.38);
  border-radius: 12px;
  background: rgba(78, 51, 11, 0.2);
}

.evidence-note > strong { display: block; margin-bottom: 6px; color: var(--amber); }
.evidence-note p { margin: 0; font-size: 0.88rem; }

.artifact-list { display: grid; gap: 12px; margin-top: 28px; }
.artifact-list a { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; color: white; background: var(--panel); text-decoration: none; }
.artifact-list > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; color: white; background: var(--panel); }
.artifact-list a:hover { border-color: rgba(54, 212, 238, 0.62); }
.artifact-list strong { display: block; }
.artifact-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.82rem; }

.paper-aside { position: sticky; top: 28px; display: grid; gap: 16px; }
.aside-card { padding: 22px; }
.aside-card dl { margin: 0; }
.aside-card dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.aside-card dt { color: var(--muted); font-size: 0.72rem; }
.aside-card dd { margin: 2px 0 0; color: white; font-size: 0.86rem; font-weight: 600; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: #bcd7e8; font-size: 0.7rem; }

.closing { padding: 64px 0; background: linear-gradient(100deg, #0a5b76, #10376a); }
.closing__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.closing h2 { max-width: 750px; margin-bottom: 10px; }
.closing p { margin: 0; color: #cfe7f2; }
.closing .section-label { color: #8af0ff; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.site-footer p { margin: 0; }

/* Research archive and journal publication pages */
.archive-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(72, 165, 155, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 165, 155, 0.065) 1px, transparent 1px);
  background-size: 46px 46px;
}

.archive-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: end;
  gap: 64px;
}

.archive-hero h1,
.publication-hero h1 { max-width: 15ch; }
.archive-hero h1 { margin-bottom: 24px; }

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.archive-stats > div {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 28, 43, 0.72);
}

.archive-stats strong {
  display: block;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  line-height: 1;
}

.archive-stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.archive-main { padding: 84px 0 100px; }
.archive-section + .archive-section { margin-top: 88px; }
.archive-section__head { max-width: 750px; margin-bottom: 34px; }
.archive-section__head h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.04em; }
.archive-section__head p { color: #b7cada; }

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

.archive-card {
  position: relative;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: white;
  background: linear-gradient(150deg, rgba(13, 45, 67, 0.94), rgba(5, 25, 40, 0.95));
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.archive-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -62px;
  bottom: -68px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
  content: "";
}

.archive-card:hover { color: white; transform: translateY(-4px); border-color: rgba(102, 227, 196, 0.58); }
.archive-card--current { min-height: 330px; border-color: rgba(102, 227, 196, 0.35); }
.archive-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.archive-card__code { color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.08em; }
.archive-card__year { color: var(--muted); font-size: 0.72rem; }
.archive-card h3 { margin: 34px 0 12px; font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.025em; }
.archive-card p { color: #a9c1d3; font-size: 0.86rem; line-height: 1.6; }
.archive-card__meta { margin-top: auto; padding-top: 18px; color: #d6e7f2; font-size: 0.72rem; }

.timeline-band {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.timeline-band strong { font-family: "JetBrains Mono", monospace; }
.timeline-band__line { height: 1px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.timeline-band small { display: block; color: var(--muted); }

.publication-hero .paper-hero__grid { align-items: stretch; }

.publication-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(135, 203, 225, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 75% 22%, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 13rem),
    linear-gradient(145deg, rgba(12, 50, 71, 0.96), rgba(5, 22, 36, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.publication-visual::before,
.publication-visual::after {
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.18;
  content: "";
}

.publication-visual::before { width: 270px; height: 270px; right: -90px; top: -72px; }
.publication-visual::after { width: 140px; height: 140px; right: 82px; top: 92px; }
.publication-visual__code { position: relative; z-index: 1; color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: 0.8rem; letter-spacing: 0.12em; }
.publication-visual__mark { position: relative; z-index: 1; color: var(--cyan); font-family: "JetBrains Mono", monospace; font-size: clamp(4.2rem, 9vw, 8.5rem); font-weight: 600; line-height: 0.8; letter-spacing: -0.08em; opacity: 0.92; }
.publication-visual__footer { position: relative; z-index: 1; max-width: 32ch; }
.publication-visual__footer strong { display: block; font-size: 1.08rem; }
.publication-visual__footer span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.78rem; }

.citation-box {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(102, 227, 196, 0.3);
  border-left: 4px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(7, 35, 53, 0.76);
}

.citation-box code { color: #d7e9f5; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; white-space: normal; }
.claim-note { color: #9bb4ca; font-size: 0.86rem !important; }
.takeaway-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.takeaway-list li { position: relative; padding: 18px 20px 18px 50px; border: 1px solid var(--line); border-radius: 12px; color: #b7cada; background: var(--panel); }
.takeaway-list li::before { position: absolute; left: 20px; color: var(--cyan); font-family: "JetBrains Mono", monospace; font-weight: 700; content: ">"; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-links a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: white; background: var(--panel); text-decoration: none; }
.related-links a:hover { border-color: var(--cyan); }

@media (max-width: 960px) {
  .paper-hero__grid,
  .article-layout { grid-template-columns: 1fr; }
  .paper-hero__grid { gap: 38px; }
  .cover-frame { max-width: 760px; }
  .article-layout { gap: 54px; }
  .paper-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-hero__grid { grid-template-columns: 1fr; }
  .archive-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header__inner { min-height: 64px; }
  .site-header nav { gap: 12px; }
  .site-header nav a:nth-child(2) { display: none; }
  .paper-hero { padding: 36px 0 52px; }
  .breadcrumb { margin-bottom: 28px; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.3rem); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .article-layout { padding-top: 64px; padding-bottom: 72px; }
  .article-body section + section { margin-top: 64px; }
  .routing-flow,
  .record-grid,
  .metrics,
  .paper-aside { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing__inner,
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__inner { justify-content: center; padding: 24px 0; gap: 5px; }
  .archive-hero { padding: 48px 0 52px; }
  .archive-hero h1,
  .publication-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.15rem);
    overflow-wrap: anywhere;
  }
  .archive-stats,
  .archive-card-grid,
  .related-links { grid-template-columns: 1fr; }
  .archive-stats > div { min-height: 0; }
  .timeline-band { grid-template-columns: 1fr; }
  .timeline-band__line { width: 1px; height: 34px; }
  .publication-visual { min-height: 340px; padding: 26px; }
}

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

/* 2026 editorial research system */
:root {
  --ink: #f3f7fb;
  --muted: #96a4b4;
  --navy: #070b12;
  --navy-2: #0d1420;
  --panel: rgba(15, 22, 33, 0.84);
  --line: rgba(191, 208, 229, 0.14);
  --cyan: #63d8e7;
  --blue: #9477ff;
  --amber: #d8ff75;
  --max: 1220px;
}

body,
body.framework-theme,
body.archive-theme,
body.publication-theme {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 29rem),
    radial-gradient(circle at 9% 36%, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 27rem),
    #070b12;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
}

body.theme-dna { --cyan: #72e4ad; --blue: #4ec68a; }
body.theme-compute { --cyan: #82d8ff; --blue: #718fff; }
body.theme-light { --cyan: #ffe67b; --blue: #ffab4e; }
body.theme-neuro { --cyan: #c5abff; --blue: #9477ff; }
body.theme-vision { --cyan: #ff9caf; --blue: #ff718d; }
body.theme-wearable { --cyan: #68e2cc; --blue: #43bca6; }
body.theme-ar { --cyan: #8dcbff; --blue: #708dff; }

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(20px) saturate(140%);
}

.site-header__inner { min-height: 74px; }
.brand { font-family: "Manrope", sans-serif; font-size: 0.95rem; font-weight: 800; letter-spacing: -0.04em; }
.brand span { color: var(--cyan); }
.site-header nav a { color: #aab5c3; font-size: 0.8rem; }

.paper-hero {
  padding: 60px 0 78px;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 54px 54px;
}

.breadcrumb { margin-bottom: 48px; color: #6f7b8a; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; }
.paper-hero__grid { grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr); gap: clamp(48px, 7vw, 94px); }
.publication-hero .paper-hero__grid { align-items: center; }

h1 {
  max-width: 13ch;
  margin-bottom: 25px;
  font-size: clamp(3.2rem, 5.4vw, 5.55rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.064em;
}

.publication-hero h1 { max-width: 14ch; font-size: clamp(2.85rem, 4.6vw, 4.75rem); }
.dek { color: #b9c4d1; font-size: clamp(1.03rem, 1.7vw, 1.24rem); line-height: 1.58; }
.byline { color: #8895a5; font-size: 0.8rem; }
.eyebrow,
.section-label { font-size: 0.68rem; letter-spacing: 0.12em; }

.button { border-radius: 0; font-size: 0.79rem; }
.button--primary { color: #070b12; background: var(--ink); }
.button--primary:hover { color: #070b12; background: var(--cyan); }
.button--secondary { background: rgba(13, 19, 29, 0.62); }
.button--light { border-radius: 0; }
.cover-frame { border-radius: 2px; }
.cover-frame::after { border-radius: inherit; }

.article-layout { grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: clamp(54px, 8vw, 92px); padding-top: 104px; }
.article-body section + section { margin-top: 90px; }
.article-body h2,
.closing h2 { font-weight: 620; letter-spacing: -0.045em; }
.article-body p { color: #abb8c7; font-size: 1rem; line-height: 1.8; }
.article-body strong { color: #f3f7fb; }

blockquote,
.routing-flow li,
.record-grid > div,
.metrics > div,
.aside-card,
.evidence-note,
.artifact-list a,
.artifact-list > div,
.citation-box,
.takeaway-list li,
.related-links a { border-radius: 2px; }

.paper-aside { top: 104px; }
.aside-card { background: rgba(13, 20, 30, 0.78); }
.aside-card dt { font-size: 0.69rem; }
.aside-card dd { font-size: 0.82rem; }
.topic-list span { border-radius: 1px; }
.closing { background: linear-gradient(110deg, color-mix(in srgb, var(--blue) 33%, #0c1320), color-mix(in srgb, var(--cyan) 20%, #0b1320)); }

/* Research landing */
.archive-v2 .research-masthead {
  padding: 60px 0 0;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 58px 58px;
}

.research-masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .7fr);
  align-items: center;
  gap: clamp(55px, 8vw, 110px);
  padding: 26px 0 88px;
}

.research-masthead h1 { max-width: 10ch; font-size: clamp(4rem, 7vw, 7.2rem); }
.research-masthead .dek { max-width: 700px; }

.research-thesis {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(191, 208, 229, 0.22);
  background: linear-gradient(150deg, rgba(22, 29, 43, 0.95), rgba(9, 14, 22, 0.96));
}

.research-thesis::before { position: absolute; top: -1px; left: -1px; width: 74px; height: 1px; background: var(--cyan); content: ""; }
.research-thesis__label { margin-bottom: 31px; color: #748091; font: 0.62rem/1 "JetBrains Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.research-thesis__lane { display: grid; grid-template-columns: 58px 1fr; gap: 18px; }
.research-thesis__year { color: #718091; font: 0.7rem/1.5 "JetBrains Mono", monospace; }
.research-thesis__lane strong { display: block; margin-bottom: 7px; font-size: .95rem; }
.research-thesis__lane small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.research-thesis__lane--current .research-thesis__year,
.research-thesis__lane--current strong { color: var(--cyan); }
.research-thesis__connector { display: grid; grid-template-columns: 58px 1fr; gap: 18px; height: 48px; }
.research-thesis__connector span { grid-column: 2; width: 1px; margin-left: 7px; background: linear-gradient(var(--line), var(--cyan)); }
.research-thesis__statement { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: white; font-size: .86rem; font-weight: 650; }

.research-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.research-facts > div { min-height: 133px; padding: 24px 25px; }
.research-facts > div + div { border-left: 1px solid var(--line); }
.research-facts dt { color: var(--muted); font-size: .68rem; }
.research-facts dd { margin-top: 17px; font-size: 2.5rem; font-weight: 620; line-height: 1; letter-spacing: -.05em; }

.research-current,
.publication-index { padding: clamp(94px, 11vw, 150px) 0; }
.publication-index { border-top: 1px solid var(--line); background: rgba(10, 14, 22, 0.82); }

.research-section-head { display: grid; grid-template-columns: 1fr minmax(280px, .56fr); gap: 55px; align-items: end; margin-bottom: 54px; }
.research-section-head h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5.1rem); font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.research-section-head > p { max-width: 530px; margin-bottom: 4px; color: var(--muted); }

.featured-paper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  border: 1px solid var(--line);
  background: #0d131d;
}

.featured-paper__cover,
.framework-paper__cover { position: relative; display: block; overflow: hidden; }
.featured-paper__cover { border-right: 1px solid var(--line); }
.featured-paper__cover img,
.framework-paper__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms cubic-bezier(.2,.7,.2,1), filter 200ms ease; }
.featured-paper__cover:hover img,
.framework-paper__cover:hover img { transform: scale(1.018); filter: saturate(1.08); }
.featured-paper__body,
.framework-paper__body { padding: clamp(30px, 5vw, 58px); }
.paper-kicker { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: clamp(40px, 6vw, 72px); color: #7e8b9c; font: .63rem/1.5 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.paper-kicker span:first-child { color: var(--cyan); }
.featured-paper h3,
.framework-paper h3 { margin-bottom: 18px; font-size: clamp(2.1rem, 3.8vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.05em; }
.featured-paper__lede,
.framework-paper__body > p { color: #aab7c6; }
.compact-evidence-list { display: grid; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.compact-evidence-list li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #c5ced9; font-size: .78rem; }
.compact-evidence-list li span { color: #758294; font-family: "JetBrains Mono", monospace; font-size: .62rem; text-transform: uppercase; }
.text-link { align-self: center; color: #bec8d4; font-size: .77rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--cyan); }

.framework-paper { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr); margin-top: 22px; border: 1px solid var(--line); background: #0b111a; }
.framework-paper__cover { border-left: 1px solid var(--line); }
.pillar-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.pillar-line span { padding: 6px 8px; border: 1px solid var(--line); color: #aeb9c7; font-size: .63rem; }

.publication-group { display: grid; grid-template-columns: minmax(220px, .37fr) 1fr; gap: 50px; margin-top: 64px; }
.publication-group + .publication-group { margin-top: 100px; }
.publication-group__label { display: flex; gap: 16px; align-items: flex-start; padding-top: 21px; border-top: 1px solid var(--line-strong); }
.publication-group__label > span { color: var(--cyan); font: .64rem/1.6 "JetBrains Mono", monospace; }
.publication-group__label h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.publication-ledger { border-top: 1px solid var(--line-strong); }

.ledger-row {
  min-height: 128px;
  display: grid;
  grid-template-columns: 42px 1fr minmax(150px, .28fr) 24px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: white;
  text-decoration: none;
  transition: background 180ms ease, padding 180ms ease;
}

.ledger-row:hover { padding-inline: 16px; color: white; background: rgba(99, 216, 231, .035); }
.ledger-row__number { color: #667384; font: .64rem/1 "JetBrains Mono", monospace; }
.ledger-row__title strong { display: block; margin-bottom: 8px; font-size: 1rem; line-height: 1.35; }
.ledger-row__title small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.ledger-row__meta { color: #8491a2; font: .62rem/1.75 "JetBrains Mono", monospace; }
.ledger-row__arrow { color: var(--cyan); font-size: 1.2rem; }

.archive-method { padding: 92px 0; border-top: 1px solid var(--line); background: linear-gradient(120deg, rgba(35, 28, 65, .56), rgba(10, 18, 26, .88)); }
.archive-method__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr); gap: 90px; }
.archive-method h2 { margin-bottom: 0; font-size: clamp(2.6rem, 4.5vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.archive-method p { color: #b5c0cc; }
.archive-method ul { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.archive-method li { padding: 12px 0; border-bottom: 1px solid var(--line); color: #a5b1c0; font-size: .78rem; }
.archive-method li::before { margin-right: 12px; color: var(--cyan); content: "✓"; }

/* Publication concept diagrams */
.publication-visual {
  min-height: 470px;
  padding: 26px;
  border-radius: 2px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(145deg, #111a26, #090e16);
  background-size: 36px 36px, 36px 36px, auto;
}

.publication-visual::before,
.publication-visual::after { display: none; }
.publication-visual__code { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .65rem; }
.publication-visual__footer { padding-top: 18px; border-top: 1px solid var(--line); }
.publication-visual__footer strong { font-size: .88rem; }
.publication-visual__footer span { margin-top: 5px; font-size: .68rem; }

.concept-flow {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-block: auto;
}

.concept-flow > i { color: var(--cyan); font: normal 1rem/1 "JetBrains Mono", monospace; }
.concept-flow--vertical { grid-template-columns: 1fr; width: min(100%, 330px); margin-inline: auto; gap: 7px; }
.concept-flow--vertical > i { text-align: center; }

.concept-node {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 34, .94);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

.concept-node--accent { border-color: color-mix(in srgb, var(--cyan) 55%, transparent); background: color-mix(in srgb, var(--cyan) 7%, #101722); }
.concept-node small { display: block; margin-bottom: 8px; color: var(--cyan); font: .53rem/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.concept-node strong { display: block; font-size: .76rem; line-height: 1.25; }
.concept-node span { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.light-channel { color: #ffe67b !important; text-shadow: 0 0 18px rgba(255,230,123,.7); }

.concept-split { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 14px; margin-block: auto; }
.depth-gate { display: grid; justify-items: center; gap: 9px; color: #7d8998; font: .52rem/1 "JetBrains Mono", monospace; }
.depth-gate i { width: 1px; height: 65px; background: linear-gradient(#596576, var(--cyan)); }
.depth-gate span:last-child { color: var(--cyan); }

.sensor-map { position: relative; z-index: 2; width: 290px; height: 235px; margin: auto; }
.sensor-core { position: absolute; top: 50%; left: 50%; width: 105px; height: 105px; display: grid; place-content: center; border: 1px solid var(--cyan); border-radius: 50%; background: rgba(20, 40, 43, .92); text-align: center; transform: translate(-50%, -50%); }
.sensor-core small { color: var(--cyan); font: .52rem/1 "JetBrains Mono", monospace; }
.sensor-core strong { margin-top: 6px; font-size: .92rem; }
.sensor-map > span { position: absolute; padding: 7px 9px; border: 1px solid var(--line-strong); background: #111a24; color: #aeb9c5; font-size: .62rem; }
.sensor-map > span:nth-of-type(1) { top: 0; left: 50%; transform: translateX(-50%); }
.sensor-map > span:nth-of-type(2) { top: 50%; right: 0; transform: translateY(-50%); }
.sensor-map > span:nth-of-type(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.sensor-map > span:nth-of-type(4) { top: 50%; left: 0; transform: translateY(-50%); }
.sensor-map::before,
.sensor-map::after { position: absolute; top: 50%; left: 50%; z-index: -1; background: var(--line-strong); content: ""; transform: translate(-50%, -50%); }
.sensor-map::before { width: 100%; height: 1px; }
.sensor-map::after { width: 1px; height: 100%; }
.context-output { display: flex; justify-content: center; align-items: center; gap: 13px; color: #8995a4; font-size: .63rem; }
.context-output i { color: var(--cyan); font-style: normal; }
.context-output strong { color: white; }

.ar-stack { position: relative; z-index: 2; display: grid; gap: 7px; width: min(100%, 350px); margin: auto; }
.ar-stack > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(16, 24, 36, .92); }
.ar-stack span { color: var(--cyan); font: .56rem/1.5 "JetBrains Mono", monospace; }
.ar-stack strong { font-size: .73rem; }
.ar-stack > div:nth-child(2) { margin-inline: 6%; }
.ar-stack > div:nth-child(3) { margin-inline: 12%; }
.ar-stack > .ar-stack__result { margin: 9px 18% 0; border-color: color-mix(in srgb, var(--cyan) 58%, transparent); background: color-mix(in srgb, var(--cyan) 7%, #101722); }

@media (max-width: 980px) {
  .research-masthead__grid,
  .featured-paper,
  .framework-paper,
  .publication-group,
  .archive-method__grid { grid-template-columns: 1fr; }
  .research-masthead__grid { gap: 48px; }
  .research-thesis { max-width: 620px; }
  .featured-paper__cover { border-right: 0; border-bottom: 1px solid var(--line); }
  .framework-paper__cover { grid-row: 1; border-bottom: 1px solid var(--line); border-left: 0; }
  .publication-group { gap: 20px; }
  .publication-group__label { max-width: 380px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header nav a:nth-child(2) { display: inline; }
  .site-header nav a:nth-child(3) { display: none; }
  .research-masthead { padding-top: 38px; }
  .research-masthead h1 { font-size: clamp(3.25rem, 16vw, 4.7rem); }
  .research-masthead__grid { padding-bottom: 60px; }
  .research-facts { grid-template-columns: repeat(2, 1fr); }
  .research-facts > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .research-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .research-section-head { grid-template-columns: 1fr; gap: 22px; }
  .research-section-head h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .publication-group + .publication-group { margin-top: 76px; }
  .ledger-row { grid-template-columns: 30px 1fr 20px; gap: 13px; }
  .ledger-row__meta { grid-column: 2; }
  .ledger-row__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .publication-hero h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .publication-visual { min-height: 390px; }
  .concept-flow { grid-template-columns: 1fr; width: 100%; gap: 6px; }
  .concept-flow:not(.concept-flow--vertical) > i { text-align: center; transform: rotate(90deg); }
  .concept-node { padding: 11px 13px; }
  .concept-split { grid-template-columns: 1fr; gap: 8px; }
  .depth-gate { grid-template-columns: 1fr 64px 1fr; align-items: center; }
  .depth-gate i { width: 64px; height: 1px; }
  .sensor-map { width: 260px; height: 205px; }
}
