/* ═══════════════════════════════════════════════════════
   Hypha Labs — Institutional Design System
   Health/biotech tier — clinical depth, warmth, credibility
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Core palette */
  --white: #FFFFFF;
  --off-white: #F7F6F3;
  --paper: #F0EDE7;
  --warm-bg: #FAFAF8;
  --rule: #DDD9D1;
  --navy: #162032;
  --navy-mid: #1E2F47;
  --navy-light: #2A4068;
  --slate: #3D4F63;
  --muted: #687585;
  --light-text: #9BAAB8;
  --accent: #1A4B8C;
  --accent-light: #2762B0;
  --accent-bg: #EBF2FC;
  --accent-rule: #BACED4;
  --teal: #0E7490;
  --teal-light: #E0F2F7;
  --danger: #B91C1C;
  --success: #166534;
  --card-bg: #FFFFFF;
  --card-border: #E2DDD5;

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --radius: 3px;
  --shadow-sm: 0 1px 4px rgba(22,32,50,0.06), 0 1px 2px rgba(22,32,50,0.04);
  --shadow-md: 0 4px 16px rgba(22,32,50,0.10), 0 1px 4px rgba(22,32,50,0.06);
  --shadow-lg: 0 12px 40px rgba(22,32,50,0.14), 0 4px 12px rgba(22,32,50,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--warm-bg);
  color: var(--navy);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
}

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -0.3px; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.1px; }

p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; }

/* ── Navigation ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Solid white — no backdrop-filter/rgba to avoid iOS Safari rendering bugs */
  background: #FFFFFF;
  border-bottom: 1px solid rgba(221,217,209,0.7);
  transition: box-shadow 0.25s ease;
  height: 60px;
  display: block;
}

nav.scrolled {
  box-shadow: 0 1px 24px rgba(22,32,50,0.10);
  background: #FFFFFF;
}

/* Hide-on-scroll (shared.js adds/removes this class) */
nav.hide-nav {
  transform: translateY(-100%);
  transition: transform 0.3s ease, box-shadow 0.25s ease;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: opacity 0.15s;
  height: 32px;
}

.nav-brand:hover { text-decoration: none; color: var(--navy); opacity: 0.8; }

.nav-brand img { height: 32px; width: auto; display: block; }
.nav-brand .nav-icon { height: 28px; width: 28px; border-radius: 4px; flex-shrink: 0; }

/* Standalone square icon in nav (admin/forum/programs/research pages) */
a.nav-icon { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
a.nav-icon:hover { text-decoration: none; opacity: 0.8; }
.nav-square-logo { height: 28px; width: 28px; border-radius: 4px; display: block; object-fit: cover; }

.nav-wordmark { height: 26px; width: auto; display: block; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* NAV FIX v3: !important on ALL properties to beat any cascade/specificity issue */
.nav-links a {
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #3D4F63 !important;
  text-decoration: none !important;
  letter-spacing: 0.25px !important;
  transition: color 0.15s !important;
  white-space: nowrap !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline !important;
}

.nav-links a:hover {
  color: #162032 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-links a.active {
  color: #162032 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  opacity: 1 !important;
  transition: background 0.15s, box-shadow 0.15s !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 1px 4px rgba(22,32,50,0.18) !important;
}

.nav-cta:hover {
  background: #1A3050 !important;
  color: var(--white) !important;
  box-shadow: 0 2px 8px rgba(22,32,50,0.22) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ── Page structure ──────────────────────────────────── */
.page-wrap { margin-top: 0; }

/* ── Rule divider ─────────────────────────────────────── */
.rule { width: 100%; height: 1px; background: var(--rule); }

.rule-section { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.rule-section hr { border: none; height: 1px; background: var(--rule); }

/* ── Section containers ───────────────────────────────── */
.section { max-width: 1160px; margin: 0 auto; padding: 5rem 2rem; }
.section-sm { max-width: 1160px; margin: 0 auto; padding: 3rem 2rem; }
.section-narrow { max-width: 760px; margin: 0 auto; padding: 5rem 2rem; }

/* ── Section label (eyebrow) ──────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: block;
}

/* ── Public notes ─────────────────────────────────────── */
.posts-hero { padding-bottom: 4rem; }
.posts-hero h1 { max-width: 720px; margin-bottom: 1.25rem; }
.posts-hero > p:not(.posts-disclosure) { max-width: 650px; font-size: 1.08rem; }
.posts-disclosure {
  max-width: 680px;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--teal);
  background: var(--teal-light);
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.65;
}
.posts-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.posts-list-heading .section-label { margin-bottom: 0; }
.posts-list-heading p { color: var(--muted); font-size: 0.85rem; }
.posts-grid { max-width: 900px; margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-card { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.post-card h2 { margin: 0.55rem 0 0.65rem; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.post-card h2 a { color: var(--navy); }
.post-card p { max-width: 680px; font-size: 0.95rem; }
.post-meta { display: flex; gap: 1.25rem; color: var(--teal); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.post-read-more { flex-shrink: 0; color: var(--teal); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.post-read-more span { margin-left: 0.35rem; transition: margin-left 0.2s ease; }
.post-read-more:hover span { margin-left: 0.6rem; }
.posts-empty { min-height: 480px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.posts-empty h1 { margin-bottom: 1rem; }
.posts-empty p { max-width: 540px; margin-bottom: 2rem; }
.posts-cta { text-align: center; }
.posts-cta p { max-width: 560px; margin: 0 auto 2rem; }
.post-detail h1 { margin-bottom: 1.25rem; }
.post-detail > .post-meta { margin-bottom: 1.5rem; }
.post-back { display: inline-block; margin-bottom: 3rem; color: var(--teal); font-size: 0.85rem; font-weight: 600; }
.post-summary { max-width: 650px; font-size: 1.08rem; }
.post-prose { padding-top: 3rem; }
.post-prose h1, .post-prose h2, .post-prose h3 { margin: 2.5rem 0 1rem; }
.post-prose h2 { font-size: 1.55rem; }
.post-prose h3 { font-size: 1.15rem; }
.post-prose p { margin-bottom: 1.25rem; }
.post-prose ul, .post-prose ol { margin: 0 0 1.5rem 1.25rem; color: var(--slate); }
.post-prose li { margin-bottom: 0.45rem; padding-left: 0.35rem; }
.post-prose code { padding: 0.12rem 0.3rem; background: var(--paper); color: var(--navy); font-size: 0.88em; }
.post-prose pre { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; overflow-x: auto; background: var(--navy); color: rgba(255,255,255,0.85); border-left: 3px solid var(--teal); }
.post-prose pre code { padding: 0; background: transparent; color: inherit; font-family: monospace; }
.post-contact-cta { margin-top: 4rem; padding: 2rem; background: var(--off-white); border-top: 1px solid var(--rule); }
.post-contact-cta h2 { margin-bottom: 0.75rem; font-size: 1.45rem; }
.post-contact-cta p { margin-bottom: 1.5rem; }

/* ── Funded R&D timeline ──────────────────────────────── */
.timeline-hero { padding-bottom: 4rem; }
.timeline-hero h1 { max-width: 720px; margin-bottom: 1.25rem; }
.timeline-hero > p { max-width: 650px; font-size: 1.08rem; }
.timeline-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.timeline-list-heading .section-label { margin-bottom: 0; }
.timeline-list-heading p { color: var(--muted); font-size: 0.85rem; }
.timeline-list {
  max-width: 900px;
  margin: 1.5rem 0 0 0.5rem;
  padding: 0 0 0 2rem;
  border-left: 2px solid var(--rule);
  list-style: none;
}
.timeline-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 2.35rem;
  left: -2.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.timeline-item:first-child::before { top: 0.35rem; }
.timeline-item-date time { color: var(--teal); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.timeline-item-content h2 { margin: 0.65rem 0 0; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.timeline-empty { min-height: 480px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.timeline-empty h1 { margin-bottom: 1rem; }
.timeline-empty p { max-width: 540px; margin-bottom: 2rem; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--off-white);
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: none;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}

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

.card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.card p { font-size: 0.9rem; line-height: 1.7; }

/* ── Status tag ───────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid var(--accent-rule);
}

.tag-muted {
  background: var(--paper);
  color: var(--muted);
  border-color: var(--rule);
}

.tag-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Patent sections ──────────────────────────────────── */
.patent-section {
  border-top: 2px solid var(--navy);
  padding-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.patent-section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.patent-section-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.patent-card {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.patent-card:hover {
  border-color: var(--accent-rule);
  box-shadow: var(--shadow-sm);
}

.patent-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.patent-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.patent-placeholder {
  text-align: center;
  padding: 3rem;
  border: 1.5px dashed var(--rule);
  border-radius: 4px;
  color: var(--light-text);
}

.patent-placeholder p {
  color: var(--light-text);
  font-size: 0.875rem;
  font-style: italic;
}

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,75,140,0.10);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--light-text); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Alerts ───────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}

.alert.show { display: block; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--success); }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: var(--danger); }

/* ── Tables ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--off-white); border-bottom: 1px solid var(--rule); }

th {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--navy);
  font-size: 0.9rem;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  margin-top: 0;
  position: relative;
}

/* Teal accent line at top of footer */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--teal) 0%,
    rgba(14,116,144,0.4) 50%,
    transparent 100%
  );
}

/* ── Footer logo + horizontal nav row (above tagline) ─ */
.footer-logo-row {
  border-bottom: 1px solid rgba(255,255,255,0.09);
  padding-top: 3px; /* offset the ::before accent line */
}

.footer-logo-row-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.footer-logo-link:hover { opacity: 1; text-decoration: none; }

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

.footer-logo-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
}

.footer-logo-nav a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.footer-logo-nav a:hover {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: rgba(255,255,255,0.35);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  text-decoration: none;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.footer-tagline {
  font-size: 0.825rem;
  line-height: 1.65;
  max-width: 360px;
  color: rgba(255,255,255,0.48);
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── Stats bar ───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stat-block {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}

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

.stat-block .stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  display: block;
}

.stat-block .stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 0.35rem;
  display: block;
}

/* ── Two column ──────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.two-col-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* ── Bio card ─────────────────────────────────────────── */
.bio-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.bio-avatar {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.bio-content h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }

.bio-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.bio-content p { font-size: 0.925rem; line-height: 1.75; }

/* ── Contact layout ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 0.2rem;
  display: block;
}

.contact-detail-value { font-size: 0.9rem; color: var(--navy); }

.form-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  color: var(--navy);
}

/* ── Page hero ────────────────────────────────────────── */
.page-hero {
  padding: 5rem 2rem 4rem;
  max-width: 1160px;
  margin: 0 auto;
}

.page-hero h1 { max-width: 680px; margin-bottom: 1.25rem; }
.page-hero p { max-width: 600px; font-size: 1.05rem; line-height: 1.85; }

/* ── Horizontal rule in content ───────────────────────── */
.content-rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 4rem 0;
}

/* ── Science texture SVG background ──────────────────── */
.texture-bg {
  position: relative;
  overflow: hidden;
}

.texture-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='1.2' fill='%231A4B8C' opacity='0.07'/%3E%3Ccircle cx='0' cy='0' r='1.2' fill='%231A4B8C' opacity='0.07'/%3E%3Ccircle cx='60' cy='0' r='1.2' fill='%231A4B8C' opacity='0.07'/%3E%3Ccircle cx='0' cy='60' r='1.2' fill='%231A4B8C' opacity='0.07'/%3E%3Ccircle cx='60' cy='60' r='1.2' fill='%231A4B8C' opacity='0.07'/%3E%3Cline x1='30' y1='30' x2='60' y2='0' stroke='%231A4B8C' stroke-width='0.5' opacity='0.05'/%3E%3Cline x1='30' y1='30' x2='0' y2='0' stroke='%231A4B8C' stroke-width='0.5' opacity='0.05'/%3E%3Cline x1='30' y1='30' x2='60' y2='60' stroke='%231A4B8C' stroke-width='0.5' opacity='0.04'/%3E%3Cline x1='30' y1='30' x2='0' y2='60' stroke='%231A4B8C' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.texture-bg > * { position: relative; z-index: 1; }

/* ── Hexagonal grid overlay for sections ────────────── */
.hex-texture {
  position: relative;
  overflow: hidden;
}

.hex-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%230E7490' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%230E7490' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hex-texture > * { position: relative; z-index: 1; }

/* ── Molecular dot grid (light sections) ────────────── */
.dot-grid {
  position: relative;
  overflow: hidden;
}

.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(14,116,144,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.dot-grid > * { position: relative; z-index: 1; }

/* ── Section gradient divider ───────────────────────── */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(14,116,144,0.15) 15%,
    rgba(14,116,144,0.3) 50%,
    rgba(14,116,144,0.15) 85%,
    transparent 100%
  );
  margin: 0;
}

/* ── Microscopy-inspired ring pattern for dark bands ── */
.ring-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.03) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(14,116,144,0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Highlighted band ─────────────────────────────────── */
.band-light {
  background: var(--off-white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

/* Faint hexagonal texture on light bands */
.band-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%230E7490' stroke-width='0.4' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.band-light > * { position: relative; z-index: 1; }

.band-navy {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Hex mesh + radial glow for navy sections */
.band-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(14,116,144,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(42,64,104,0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'%3E%3Cpath d='M40 0 L80 23 L80 69 L40 92 L0 69 L0 23 Z' fill='none' stroke='white' stroke-width='0.6' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.band-navy > * { position: relative; z-index: 1; }

/* ── Pill / badge ─────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid rgba(14,116,144,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pill::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Inline icon bullet ───────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--slate);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 L6.5 11.5 L12.5 5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Keyline detail ───────────────────────────────────── */
.keyline-left {
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .page-wrap { margin-top: 0; }
  .section { padding: 3rem 1.25rem; }
  .section-narrow { padding: 3rem 1.25rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col-3-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-block { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat-block:nth-child(even) { border-bottom: none; }
  .bio-card { flex-direction: column; gap: 1.5rem; padding: 1.75rem; }
  .bio-avatar { width: 90px; height: 90px; }
  .footer-logo-row-inner { padding: 1.5rem 1.25rem; gap: 1.25rem; }
  .footer-logo-nav { gap: 0.35rem 1.25rem; }
  .footer-inner { padding: 1.75rem 1.25rem 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .posts-hero { padding-bottom: 3rem; }
  .posts-list-heading { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .post-card { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .post-detail { padding-top: 2.5rem; }
  .post-back { margin-bottom: 2.25rem; }
  .post-contact-cta { padding: 1.5rem; }
  .timeline-list-heading { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .timeline-list { margin-left: 0.25rem; padding-left: 1.5rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .timeline-item::before { left: -1.9rem; }
}
