/* ============================================================
   INOCULUM — Fear Inoculum–inspired design system
   Palette: near-black, warm amber/gold, muted teal, parchment
   ============================================================ */

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

/* ── Design tokens ── */
:root {
  --black:       #08090c;
  --deep:        #0d0f14;
  --surface:     #13151c;
  --surface-2:   #1a1d26;
  --border:      #242736;
  --border-hi:   #333750;

  --amber:       #c8922a;
  --amber-dim:   #a07320;
  --amber-glow:  rgba(200,146,42,0.12);
  --amber-faint: rgba(200,146,42,0.05);

  --teal:        #4a8f87;
  --teal-dim:    #376e68;
  --teal-glow:   rgba(74,143,135,0.12);

  --parchment:   #d4c9a8;
  --text:        #b8b0a0;
  --text-dim:    #7a7468;
  --text-bright: #e8e0ce;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    4px;
  --radius-lg: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1100px;
  --max-w-text: 720px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  /* subtle grain texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

::selection { background: var(--amber-glow); color: var(--amber); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

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

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; color: var(--text); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--parchment); }

strong { color: var(--text-bright); font-weight: 500; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--teal);
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.container--text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ── Noise overlay pseudo ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 9, 12, 0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  position: relative;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--amber);
  border-bottom-color: var(--amber-dim);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

/* Radial amber glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(200,146,42,0.06) 0%,
    rgba(74,143,135,0.03) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Orbital ring decoration */
.hero__ring {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  opacity: 0.07;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal);
}

.hero__title {
  margin-bottom: 0.3em;
  max-width: 800px;
}

.hero__title .accent { color: var(--amber); font-style: italic; }

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__meta-value {
  font-size: 0.9rem;
  color: var(--parchment);
  font-weight: 400;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--amber);
  color: var(--black);
  border: 1px solid var(--amber);
}
.btn--primary:hover {
  background: var(--parchment);
  border-color: var(--parchment);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn--outline:hover {
  border-color: var(--amber-dim);
  color: var(--amber);
  transform: translateY(-1px);
}

/* ── Section headers ── */
.section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 1000px;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Abstract / About block ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.fact-card:hover {
  border-left-color: var(--parchment);
  background: var(--surface-2);
}

.fact-card__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.fact-card__value {
  font-size: 1rem;
  color: var(--text-bright);
  font-weight: 400;
}

/* ── Challenge/approach cards ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.pillar:hover::before { opacity: 1; }

.pillar__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--amber);
}

.pillar__title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-bright);
}

.pillar__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

/* ── Objectives ── */
.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: obj;
}

.objective {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
  counter-increment: obj;
}

.objective:hover { border-color: var(--border-hi); }

.objective__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--amber-dim);
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
  opacity: 0.7;
}

.objective__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--parchment);
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}

.objective__desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

/* ── Tasks timeline ── */
.tasks-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.tasks-grid::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.task-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.task-item:last-child { border-bottom: none; }

.task-item__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.task-item__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.task-item__badge--teal {
  border-color: var(--teal-dim);
  color: var(--teal);
}

.task-item__dates {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.task-item__content {}

.task-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.task-item__title {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin: 0;
}

.task-item__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.task-item__tag--research {
  background: var(--amber-faint);
  color: var(--amber-dim);
  border: 1px solid rgba(200,146,42,0.2);
}

.task-item__tag--management {
  background: var(--teal-glow);
  color: var(--teal-dim);
  border: 1px solid rgba(74,143,135,0.2);
}

.task-item__tag--dev {
  background: rgba(74,143,135,0.08);
  color: var(--teal);
  border: 1px solid rgba(74,143,135,0.25);
}

.task-item__leader {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.task-item__desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ── Milestones ── */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.milestone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: border-color var(--transition);
}

.milestone:hover { border-color: var(--border-hi); }

.milestone__id {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--teal-dim);
  line-height: 1;
  min-width: 2.5rem;
}

.milestone__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.milestone__title {
  font-size: 0.92rem;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.milestone__desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ── Team grid (side-by-side, bigger photos) ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 0;
  border-bottom: none;
}

.team-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--amber);
  flex-shrink: 0;
}

.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-hi);
  flex-shrink: 0;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.team-card__name {
  font-size: 1.1rem;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0;
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--transition);
  width: fit-content;
}

.team-card__link:hover { color: var(--parchment); }

/* ── Publications (flowing academic-list style) ── */
.pub-year-group {
  margin-bottom: 2.5rem;
}

.pub-year-heading {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-entry {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.pub-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-entry__title {
  font-size: 1rem;
  color: var(--text-bright);
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.pub-entry__title a {
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hi);
  transition: color var(--transition), border-color var(--transition);
}

.pub-entry__title a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.pub-entry__authors {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.3rem;
}

.pub-entry__venue {
  font-size: 0.85rem;
  color: var(--teal);
  font-style: italic;
  margin: 0;
}

.pub-entry__venue a {
  color: var(--teal);
  text-decoration: underline;
}

.pub-entry__award {
  display: inline-block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--amber-faint);
  border: 1px solid rgba(200,146,42,0.2);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.6rem;
}

/* ── Software / Tools list (same flowing style) ── */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-entry {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.tool-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tool-entry__name {
  font-size: 1rem;
  color: var(--text-bright);
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.tool-entry__name a {
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hi);
  transition: color var(--transition), border-color var(--transition);
}

.tool-entry__name a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.tool-entry__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.6rem;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.15rem 0.45rem;
}

.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ── News / posts ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.news-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.news-card__body {
  padding: 1.5rem;
}

.news-card__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.news-card__title {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.news-card__link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Page header (inner pages) ── */
.page-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-header__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.page-header__title { margin-bottom: 0.75rem; }

.page-header__desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 1000px;
}

/* ── Funding footer bar ── */
.funding-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.funding-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.funding-bar__text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 1000px;
  margin: 0;
}

.funding-bar__ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
}

/* ── Footer ── */
.footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer__brand {}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer__brand-name span { color: var(--amber); }

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-style: italic;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

.footer__institution {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ── Prose content ── */
.prose h2 { font-size: 1.6rem; margin: 2em 0 0.75em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 0.6em; color: var(--parchment); }
.prose p  { font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; font-size: 0.95rem; color: var(--text); }
.prose a  { color: var(--amber); border-bottom: 1px solid var(--amber-dim); }
.prose a:hover { color: var(--parchment); border-bottom-color: var(--parchment); }

/* ── Utility ── */
.text-amber   { color: var(--amber); }
.text-teal    { color: var(--teal); }
.text-dim     { color: var(--text-dim); }
.text-bright  { color: var(--text-bright); }
.text-mono    { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

.hero__ring svg {
  animation: rotateSlow 60s linear infinite;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,9,12,0.98);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav__links.open a { font-size: 1.2rem; }
  .nav__hamburger { display: flex; z-index: 101; position: relative; }

  .about-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  .task-item { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .tasks-grid::before { left: 1.5rem; }

  .pub-entry, .tool-entry { padding-bottom: 1rem; }

  .hero__ring { display: none; }
  
  .hero .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  .hero .container img {
    margin: 0 auto;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 7rem; }
  .milestones-grid { grid-template-columns: 1fr; }
}
