@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --bg:         #0A0E1A;
  --bg-2:       #111827;
  --bg-card:    #1A2340;
  --border:     #2D3A5C;
  --text:       #E8F4F8;
  --text-muted: #7A90B0;
  --teal:       #00C2B2;
  --violet:     #7B4FFF;

  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-head:  'Space Grotesk', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --nav-h:      72px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

button, input, select, textarea {
  font: inherit;
}

/* ── Base ───────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  max-width: 70ch;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Monospace ──────────────────────────────────────────── */
code, kbd, samp, pre,
.tag, .dot-bracket {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--teal);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.dot-bracket {
  color: var(--violet);
  letter-spacing: 0.04em;
}

.mono {
  font-family: var(--font-mono);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.25s ease, backdrop-filter 0.25s ease,
              box-shadow 0.25s ease;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  max-width: 1300px;
  margin-inline: auto;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-right: auto;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo-mark {
  display: flex;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.nav__logo-text em {
  font-style: italic;
  color: var(--teal);
}

.nav__logo:hover .nav__logo-text {
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a,
.nav__link {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__link:hover {
  color: var(--text);
  text-decoration: none;
}

/* CTA button in nav */
.nav__links a.nav__cta,
.nav__link--cta {
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  transition: background 0.2s, color 0.2s;
}

.nav__links a.nav__cta:hover,
.nav__link--cta:hover {
  background: var(--teal);
  color: var(--bg);
  text-decoration: none;
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 1rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding-block: 3rem;
}

.footer__brand {
  flex: 0 0 auto;
  max-width: 260px;
}

.footer__logo {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer__logo em {
  font-style: italic;
  color: var(--teal);
}

.footer__logo:hover {
  text-decoration: none;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: none;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  flex: 1;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer__col li {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__heading {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__bottom-inner span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__bracket {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  opacity: 0.35;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn--teal,
.btn--primary {
  background: var(--teal);
  color: var(--bg);
  border: 1px solid var(--teal);
}

.btn--teal:hover,
.btn--primary:hover {
  background: #00a99a;
  border-color: #00a99a;
  text-decoration: none;
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
}

/* ── Section system ─────────────────────────────────────── */
.section {
  padding-block: 6rem;
}

.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.section__inner--center {
  text-align: center;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.section__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

.section__label--center {
  justify-content: center;
}

.section__h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}

.section__h2--center {
  max-width: none;
  text-align: center;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 3.5rem;
  max-width: 60ch;
}

.section__lead--center {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}

/* ── Legacy section labels ──────────────────────────────── */
.section-label {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 0.2em 0.65em;
  margin-bottom: 1rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0, 194, 178, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(123, 79, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.18;
  pointer-events: none;
}

/* Inner flex row — used for the hero content + visual */
.hero__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: calc(100svh - var(--nav-h));
  padding-block: 5rem 6rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 1;
  max-width: 560px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero__h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__h1 span {
  background: linear-gradient(135deg, var(--teal) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__rna-canvas {
  width: 100%;
  max-width: 520px;
}

/* Bracket ticker at the bottom of the hero */
.hero__bracket-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(0, 194, 178, 0.18);
  white-space: nowrap;
  letter-spacing: 0.06em;
  animation: bracketTicker 30s linear infinite;
  will-change: transform;
}

@keyframes bracketTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Legacy hero element names (kept for backward compat) */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  pointer-events: none;
}

.hero__copy {
  max-width: 560px;
}

.hero__headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* ── RNA SVG illustration ───────────────────────────────── */
.rna-svg {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.rna-label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--text-muted);
}

.rna-dg {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--teal);
}

.rna-db {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--violet);
  letter-spacing: 0.05em;
}

/* ── Stats bar (V1) ─────────────────────────────────────── */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--teal) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--teal); /* fallback */
  margin-bottom: 0.375rem;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Legacy stats bar ───────────────────────────────────── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.stats__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--teal) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--teal);
}

.stats__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Services grid ──────────────────────────────────────── */
.services {
  padding-block: 6rem;
}

/* V1 6-card grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Legacy 3-card grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Service cards ──────────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  border-color: rgba(0, 194, 178, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 194, 178, 0.12);
  text-decoration: none;
}

.service-card:hover::before {
  opacity: 1;
}

/* Legacy card children (h3/p-based) */
.service-card h3 {
  font-size: 1.125rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-card__link {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
}

/* V1 card children (div-based) */
.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  flex-shrink: 0;
}

.service-card__title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service-card__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  max-width: none;
}

.service-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

/* ── Homepage pub list ──────────────────────────────────── */
.research {
  padding-block: 6rem;
  background: var(--bg-2);
}

.research__header {
  margin-bottom: 2.5rem;
}

.research__header h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.research__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.pub-entry {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pub-entry__year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.pub-entry__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

.pub-entry__journal {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--teal);
}

.research__more {
  margin-top: 0.5rem;
}

/* ── Tags ───────────────────────────────────────────────── */
.pub-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.tag--teal {
  color: var(--teal);
  border-color: rgba(0, 194, 178, 0.35);
  background: rgba(0, 194, 178, 0.06);
}

.tag--violet {
  color: var(--violet);
  border-color: rgba(123, 79, 255, 0.35);
  background: rgba(123, 79, 255, 0.06);
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  padding-block: 6rem;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 20ch;
}

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  padding-block: 160px 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  max-width: 720px;
}

.page-hero__inner .section-tag {
  margin-bottom: 1.25rem;
}

.page-hero__inner h1 {
  margin-bottom: 1rem;
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

/* ── Research intro (RST-rendered) ──────────────────────── */
.research-intro {
  padding-block: 3.5rem 1.5rem;
  max-width: 760px;
}

.research-intro > h1:first-child { display: none; }

.research-intro p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.research-intro h2 {
  font-size: 1.125rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.research-intro .directions-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.research-intro .direction-item {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.research-intro .direction-item:hover {
  border-color: var(--teal);
  color: var(--text);
}

/* ── Publication list (research page) ───────────────────── */
.pub-list-section {
  padding-block: 1rem 5rem;
}

.pub-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.pub-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.pub-item__year-rail {
  padding-top: 0.2rem;
}

.pub-item__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(0, 194, 178, 0.08);
  border: 1px solid rgba(0, 194, 178, 0.25);
  border-radius: 4px;
  padding: 0.2em 0.55em;
  white-space: nowrap;
}

.pub-item__title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.pub-item__authors {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.875rem;
  max-width: none;
}

.pub-item__authors strong {
  color: var(--text);
  font-weight: 600;
}

.pub-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.pub-item__journal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid rgba(0, 194, 178, 0.3);
  border-radius: 4px;
  padding: 0.2em 0.6em;
  white-space: nowrap;
}

.pub-item__citation {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pub-item__type {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}

.pub-item__type--journal-article {
  color: var(--teal);
  border-color: rgba(0, 194, 178, 0.3);
  background: rgba(0, 194, 178, 0.06);
}

.pub-item__type--review-article {
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.06);
}

.pub-item__type--conference-article {
  color: var(--violet);
  border-color: rgba(123, 79, 255, 0.3);
  background: rgba(123, 79, 255, 0.06);
}

.pub-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.pub-item__doi {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}

.pub-item__doi:hover {
  color: var(--teal);
  text-decoration: none;
}

/* ── Services content (RST-rendered) ────────────────────── */
.services-content {
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--teal);
  padding-top: 3rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.services-content h2:first-child {
  padding-top: 0;
  border-top: none;
}

.services-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 72ch;
  margin-bottom: 1rem;
}

.services-content strong {
  color: var(--text);
  font-weight: 600;
}

.services-content .tools-list {
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.services-content .tools-list p {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  border-left: 2px solid var(--teal);
  padding-left: 0.875rem;
  margin-bottom: 0;
}

.services-content .tools-list strong {
  color: var(--teal);
  font-weight: 500;
}

/* ── Engagement models ──────────────────────────────────── */
.engagement {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: 6rem;
}

.engagement h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
}

.engagement__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.engagement-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.engagement-card--featured {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet);
}

.engagement-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.8em;
  border-radius: 20px;
  white-space: nowrap;
}

.engagement-card h3 {
  font-size: 1.125rem;
  color: var(--text);
}

.engagement-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.engagement-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.engagement-card__features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.engagement-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.75rem;
  top: 0.1em;
}

/* ── About content (RST-rendered) ──────────────────────── */
.about-content {
  padding-block: 4rem 2rem;
  max-width: 760px;
}

.about-content > h1:first-child {
  display: none;
}

.about-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-content .pull-quote {
  margin-block: 2rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
}

.about-content .pull-quote p {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── About external links ────────────────────────────────── */
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 4rem;
  max-width: 760px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4em 0.9em;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.about-link:hover {
  color: var(--teal);
  border-color: var(--teal);
  text-decoration: none;
}

/* ── Expertise pills ─────────────────────────────────────── */
.expertise-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem;
}

.expertise-section h2 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.expertise-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.expertise-pills li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  transition: color 0.2s, border-color 0.2s;
  cursor: default;
}

.expertise-pills li:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* ── Contact layout ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
  padding: 64px;
  margin-block: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.contact-layout::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -140px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 79, 255, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Contact form ────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__group--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form__label span {
  color: var(--teal);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 194, 178, 0.15);
}

.contact-form__select-wrap {
  position: relative;
}

.contact-form__select {
  cursor: pointer;
  padding-right: 2.5rem;
}

.contact-form__select option {
  background: var(--bg-card);
  color: var(--text);
}

.contact-form__select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.65;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.contact-form__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-form__note span {
  color: var(--teal);
}

.contact-form__submit {
  gap: 0.5rem;
}

/* ── Contact details panel ───────────────────────────────── */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contact-details__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-details__icon {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 0.1rem;
}

.contact-details__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-details__value {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

a.contact-details__value:hover {
  color: var(--teal);
  text-decoration: none;
}

.contact-details__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.contact-details__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-details__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-details__link:hover {
  color: var(--teal);
  text-decoration: none;
}

/* ── Abstract toggle ────────────────────────────────────── */
.abstract-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.35rem 0;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.abstract-toggle:hover {
  color: var(--teal);
}

.abstract-toggle[aria-expanded="true"] {
  color: var(--teal);
}

.abstract-body {
  margin-top: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 194, 178, 0.05);
  border-left: 2px solid var(--teal);
  border-radius: 0 6px 6px 0;
}

.abstract-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
  font-style: italic;
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── Responsive: 1024px ─────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__inner {
    padding: 0 1.5rem;
  }

  .nav__links {
    gap: 1.5rem;
  }

  .container,
  .section__inner {
    padding-inline: 1.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    flex-direction: column;
    min-height: unset;
    padding-block: 5rem;
  }

  .hero__content {
    max-width: none;
  }

  .hero__visual {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }

  .stats-bar__inner,
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }

  .services-grid,
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-details {
    position: static;
    order: -1;
  }

  .footer__inner {
    gap: 2.5rem;
  }

  .footer__cols {
    gap: 1.5rem;
  }
}

/* ── Responsive: 768px ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav__inner {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 1rem 0 1.25rem;
    order: 3;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a,
  .nav__link {
    display: block;
    font-size: 0.9375rem;
    padding: 0.625rem 1rem;
  }

  .nav__links a.nav__cta,
  .nav__link--cta {
    display: block;
    margin: 0.5rem 1rem 0;
    width: calc(100% - 2rem);
    text-align: center;
    padding: 0.625rem 1rem;
  }

  .container,
  .section__inner {
    padding-inline: 1rem;
  }

  .hero__inner {
    flex-direction: column;
    padding-block: 3.5rem 4rem;
    gap: 2.5rem;
  }

  .hero__rna-canvas {
    max-width: 360px;
  }

  .stats-bar__inner,
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }

  .section {
    padding-block: 4rem;
  }

  .services-grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .pub-entry {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .pub-item {
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
  }

  .pub-item__meta {
    gap: 0.375rem;
  }

  .pub-item__type {
    font-size: 0.625rem;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-band__inner h2 {
    max-width: none;
  }

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

  .contact-layout {
    padding: 1.5rem;
    margin-block: 2rem;
    border-radius: 12px;
  }

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

  .page-hero {
    padding-block: 80px 48px;
  }

  .services-content {
    padding-block: 3rem;
  }

  .research-intro {
    padding-block: 2rem 1rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
    padding-block: 2rem;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

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

  .hero__rna-canvas {
    max-width: 280px;
  }
}
