/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Bright parchment-cream palette — same family as parltext-site
     but tuned a touch warmer (amber/bronze) to mark MEDIATEXT as the
     news / print sibling of the lab stack. */
  --bg: #f8f3e9;
  --bg-2: #f1ead9;
  --paper: #ffffff;
  --ink: #1f0d35;
  --ink-2: #2e1a47;
  --ink-dim: #5a4e6f;
  --ink-faint: #8d8295;
  --purple: #6d28d9;
  --purple-bright: #8b5cf6;
  --purple-light: #c4b5fd;
  --purple-deep: #4c1d95;
  --purple-soft: rgba(109, 40, 217, 0.08);
  --amber: #b88746;
  --amber-deep: #8a5a1f;
  --amber-soft: rgba(184, 135, 70, 0.10);
  --rose: #be3a4d;
  --live: #16a34a;
  --border: rgba(31, 13, 53, 0.08);
  --border-strong: rgba(31, 13, 53, 0.15);
  --shadow-sm: 0 2px 6px rgba(31, 13, 53, 0.06);
  --shadow-md: 0 8px 28px rgba(31, 13, 53, 0.10);
  --shadow-lg: 0 24px 60px -16px rgba(31, 13, 53, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(139, 92, 246, 0.07), transparent 60%),
    radial-gradient(800px 400px at 0% 30%, rgba(184, 135, 70, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
  color: var(--ink-dim);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: rgba(248, 243, 233, 0.85);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(109, 40, 217, 0.25));
}

.logo-prefix {
  color: var(--ink);
}

.logo-suffix {
  display: inline-block;
  margin-left: 1px;
  background-image: linear-gradient(
    100deg,
    #8b5cf6 0%,
    #6d28d9 60%,
    #4c1d95 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  transition: all 0.18s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--purple-deep);
  background: var(--purple-soft);
}

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 80px 0;
}

/* ---------- Home: hero ---------- */
.home-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 20% 20%, rgba(139, 92, 246, 0.55), transparent 55%),
    radial-gradient(900px 700px at 80% 70%, rgba(184, 135, 70, 0.45), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(190, 58, 77, 0.30), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #2e1a47 50%, #1a0830 100%);
}

.home-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 38px,
      rgba(255, 255, 255, 0.025) 38px,
      rgba(255, 255, 255, 0.025) 39px
    );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 50% 50%, transparent 30%, rgba(15, 6, 28, 0.30) 70%, rgba(15, 6, 28, 0.55) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 56px 32px;
  max-width: 920px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.home-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.85);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.home-title {
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 4px 32px rgba(15, 6, 28, 0.45);
}

.home-title .gradient-text {
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #c4b5fd 50%,
    #a78bfa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.home-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.home-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow:
    0 8px 24px -6px rgba(109, 40, 217, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px -6px rgba(109, 40, 217, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-ghost-on-photo {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.btn-ghost-on-photo:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

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

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple-deep);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.stat {
  text-align: center;
  padding: 6px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.stat-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Home secondary content */
.home-strip {
  padding: 80px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.home-strip-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.home-strip h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.home-strip p {
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.home-strip .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--purple-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 6, 28, 0.20) 0%,
      rgba(15, 6, 28, 0.50) 55%,
      rgba(76, 29, 149, 0.78) 100%);
}

/* Per-page hero variants — distinct gradient palettes per topic */
.page-hero-bg.engine {
  background:
    radial-gradient(900px 700px at 30% 30%, rgba(139, 92, 246, 0.80), transparent 60%),
    radial-gradient(800px 600px at 80% 70%, rgba(184, 135, 70, 0.50), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #2e1a47 100%);
}

.page-hero-bg.newsstand {
  background-image:
    linear-gradient(180deg,
      rgba(15, 6, 28, 0.40) 0%,
      rgba(31, 13, 53, 0.50) 55%,
      rgba(76, 29, 149, 0.85) 100%),
    url("/img/newsstand.jpg");
  background-size: cover, cover;
  background-position: center, center center;
}

.page-hero-bg.pipeline {
  background:
    radial-gradient(900px 700px at 20% 30%, rgba(76, 29, 149, 0.85), transparent 60%),
    radial-gradient(800px 600px at 90% 80%, rgba(139, 92, 246, 0.60), transparent 60%),
    linear-gradient(160deg, #15071f 0%, #1f0d35 100%);
}

.page-hero-bg.deployments {
  background:
    radial-gradient(900px 700px at 70% 20%, rgba(184, 135, 70, 0.65), transparent 60%),
    radial-gradient(800px 600px at 20% 80%, rgba(76, 29, 149, 0.65), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #2e1a47 100%);
}

.page-hero-bg.research {
  background:
    radial-gradient(900px 700px at 40% 50%, rgba(139, 92, 246, 0.65), transparent 55%),
    radial-gradient(700px 500px at 80% 30%, rgba(190, 58, 77, 0.30), transparent 60%),
    linear-gradient(160deg, #1a0830 0%, #2e1a47 100%);
}

.page-hero-bg.contribute {
  background:
    radial-gradient(900px 700px at 60% 30%, rgba(184, 135, 70, 0.55), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, rgba(139, 92, 246, 0.50), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #15071f 100%);
}

.page-hero-bg.news {
  background:
    radial-gradient(900px 700px at 80% 30%, rgba(76, 29, 149, 0.75), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, rgba(184, 135, 70, 0.40), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #2e1a47 100%);
}

.page-hero-bg.team {
  background:
    radial-gradient(900px 700px at 30% 40%, rgba(139, 92, 246, 0.70), transparent 60%),
    radial-gradient(800px 600px at 80% 70%, rgba(190, 58, 77, 0.35), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #1a0830 100%);
}

.page-hero-bg.contact {
  background:
    radial-gradient(900px 700px at 50% 30%, rgba(139, 92, 246, 0.75), transparent 60%),
    radial-gradient(700px 500px at 30% 80%, rgba(184, 135, 70, 0.40), transparent 60%),
    linear-gradient(160deg, #1f0d35 0%, #2e1a47 100%);
}

/* News-ticker pattern overlay — only on subpage heroes that opt in */
.page-hero-bg.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 32px,
      rgba(255, 255, 255, 0.025) 32px,
      rgba(255, 255, 255, 0.025) 33px
    );
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 44px;
  color: #fff;
}

.page-hero-content .section-label {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.page-hero-content h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 3px 22px rgba(15, 6, 28, 0.4);
  max-width: 880px;
}

.page-hero-content h1 .gradient-text {
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ddd6fe 50%,
    #a78bfa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero-content .lead {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 720px;
}

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

.page-hero-credit {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  z-index: 1;
}

.page-hero-credit a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.page-hero-credit a:hover {
  color: #fff;
}

/* ---------- Body section ---------- */
.body-section {
  padding: 72px 32px;
}

.body-inner {
  max-width: 920px;
  margin: 0 auto;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--purple-deep);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 16.5px;
}

.gradient-text {
  background: linear-gradient(
    100deg,
    #8b5cf6 0%,
    #6d28d9 50%,
    #4c1d95 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Prose / generic content ---------- */
.prose {
  max-width: 740px;
  margin: 0 auto;
}

.prose > * + * {
  margin-top: 20px;
}

.prose h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-top: 48px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose h3 {
  font-size: 19px;
  margin-top: 28px;
  margin-bottom: 4px;
  color: var(--ink);
}

.prose p {
  font-size: 16.5px;
  color: var(--ink-dim);
  line-height: 1.75;
}

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

.prose a {
  color: var(--purple-deep);
  border-bottom: 1px solid rgba(109, 40, 217, 0.30);
  font-weight: 500;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.prose a:hover {
  color: var(--ink);
  border-bottom-color: var(--purple-deep);
}

.prose code,
.prose .mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: var(--purple-soft);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--purple-deep);
}

.prose ul,
.prose ol {
  padding-left: 22px;
  color: var(--ink-dim);
  font-size: 16.5px;
  line-height: 1.7;
}

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

/* ---------- Pipeline (5-stage cards) ---------- */
.pipeline-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: stage;
}

.pipeline-stage {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pipeline-stage:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pipeline-stage::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 38px;
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: -0.04em;
  background: linear-gradient(
    100deg,
    #8b5cf6 0%,
    #4c1d95 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  align-self: center;
}

.pipeline-stage .name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin-bottom: 8px;
}

.pipeline-stage h3 {
  font-size: 21px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pipeline-stage p {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}

.pipeline-stage .stack {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--amber-deep);
  letter-spacing: 0.04em;
}

.pipeline-arrow {
  display: block;
  width: 1px;
  height: 22px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--purple-light), transparent);
}

/* ---------- Deployments grid ---------- */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.deploy-card {
  position: relative;
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.deploy-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.deploy-card .row1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.deploy-card .code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deploy-card .lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deploy-card .status-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}

.deploy-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.deploy-card .domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-faint);
  word-break: break-all;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.team-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: start;
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  outline: 2px solid var(--purple-light);
  outline-offset: 1px;
  background: var(--bg-2);
}

.team-card .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--purple-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.team-card .affiliation {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-bottom: 12px;
  line-height: 1.55;
}

.team-card .bio {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.team-card .interests {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-card .contact {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--purple-deep);
}

/* Photoless team card — when no headshot is available, use an
   initial-letter avatar so the layout still looks intentional */
.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--purple-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  border: 2px solid var(--paper);
  outline: 2px solid var(--purple-light);
  outline-offset: 1px;
}

/* ---------- News ---------- */
.news-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.news-item {
  display: block;
  padding: 28px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}

.news-item:hover {
  background: var(--purple-soft);
}

.news-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--purple-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.news-item p {
  font-size: 15.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}

/* ---------- Research citations ---------- */
.cite-list {
  max-width: 820px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: cite;
}

.cite-list li {
  position: relative;
  padding: 22px 24px 22px 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 15.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}

.cite-list li::before {
  content: counter(cite, decimal-leading-zero);
  counter-increment: cite;
  position: absolute;
  left: 22px;
  top: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--purple-deep);
  letter-spacing: 0.05em;
}

.cite-list li a {
  color: var(--purple-deep);
  border-bottom: 1px solid rgba(109, 40, 217, 0.3);
  font-weight: 500;
}

.cite-list li a:hover {
  color: var(--ink);
  border-bottom-color: var(--purple-deep);
}

/* ---------- Capabilities (about) ---------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
  margin-top: 48px;
}

.capability {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.capability-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--purple-deep);
  padding-top: 3px;
  min-width: 24px;
}

.capability-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--ink);
}

.capability-text {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ---------- Contact card ---------- */
.contact-card {
  position: relative;
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card .section-label {
  margin-bottom: 18px;
}

.contact-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.contact-card > p {
  font-size: 16.5px;
  margin-bottom: 28px;
}

.contact-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
}

.contact-extra {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.contact-extra a {
  color: var(--purple-deep);
  font-weight: 500;
  border-bottom: 1px solid rgba(109, 40, 217, 0.3);
}

.contact-extra a:hover {
  color: var(--ink);
  border-bottom-color: var(--purple-deep);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 32px;
  background: var(--paper);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-faint);
  transition: color 0.15s var(--ease);
}

.footer-links a:hover {
  color: var(--purple-deep);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- Reveal-on-scroll (subtle fade-up) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-eyebrow .dot,
  .deploy-card .status-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  section { padding: 48px 0; }

  .nav { padding: 14px 18px; gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 10px; font-size: 12.5px; }

  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .stat:nth-last-child(-n + 2) { border-bottom: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.14); }

  .team-grid,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .pipeline-stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pipeline-stage::before { font-size: 30px; }

  .team-card {
    grid-template-columns: 80px 1fr;
    padding: 22px;
    gap: 16px;
  }
  .team-photo,
  .team-avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .home-strip-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-card { padding: 36px 22px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-hero { min-height: 360px; }
  .page-hero-content { padding: 48px 22px 36px; }
  .body-section { padding: 48px 22px; }
  .home-strip { padding: 56px 22px; }
}
