:root {
  --navy-900: #0B1E36;
  --navy-800: #0F2A47;
  --navy-700: #14365A;
  --navy-600: #1E4A78;
  --teal-700: #1F7E80;
  --teal-600: #2A9D9F;
  --teal-500: #38B6B8;
  --cyan-400: #4FC3D7;

  --ink-900: #0B1E36;
  --ink-700: #2B3D55;
  --ink-500: #56657A;
  --ink-400: #7A8699;
  --ink-300: #A8B1BF;

  --bg: #FBFCFD;
  --bg-soft: #F2F5F8;
  --bg-tint: #EEF4F6;
  --rule: #E4E9EE;
  --rule-strong: #D4DBE3;
  --white: #FFFFFF;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card: 0 1px 0 rgba(11,30,54,0.04), 0 1px 2px rgba(11,30,54,0.04);
  --shadow-hover: 0 1px 0 rgba(11,30,54,0.04), 0 12px 28px -10px rgba(11,30,54,0.18), 0 4px 10px rgba(11,30,54,0.06);

  --content: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 253, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(251, 252, 253, 0.94);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-700);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 150ms, background 150ms;
}
.nav a:hover { color: var(--navy-800); background: var(--bg-soft); }
.nav a.cta {
  margin-left: 8px;
  background: var(--navy-800);
  color: white;
  padding: 9px 16px;
}
.nav a.cta:hover { background: var(--navy-700); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; color: var(--navy-800); }

@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--rule);
    padding: 12px 16px 18px;
    gap: 2px;
  }
  .nav.open a { padding: 12px 14px; font-size: 15.5px; }
  .nav.open a.cta { margin: 6px 0 0; text-align: center; justify-content: center; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg .grid-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-bg .watermark {
  position: absolute;
  right: -160px;
  top: 30px;
  width: 720px;
  opacity: 0.04;
  filter: grayscale(0.3);
}
.hero-bg .glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(42,157,159,0.10), transparent 60%);
  top: -200px; left: -200px;
}
.hero-bg .glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15,42,71,0.08), transparent 65%);
  bottom: -250px; right: -100px;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(42,157,159,0.18);
}
.hero h1 {
  margin-top: 28px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  max-width: 14ch;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--teal-600); }
.hero h1 .underline { position: relative; white-space: nowrap; }
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: linear-gradient(90deg, rgba(42,157,159,0.25), rgba(79,195,215,0.05));
  border-radius: 4px;
  z-index: -1;
}
.hero p.lede {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 56ch;
}
.hero .actions {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 150ms ease, background 150ms, border-color 150ms, box-shadow 150ms;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-800); color: white; }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 6px 16px -6px rgba(15,42,71,0.5); }
.btn-secondary {
  background: white;
  color: var(--navy-800);
  border-color: var(--rule);
}
.btn-secondary:hover { border-color: var(--navy-800); }
.btn-ghost { color: var(--navy-700); padding: 6px 0; }
.btn-ghost:hover { color: var(--teal-600); }
.btn .arrow { transition: transform 150ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* hero stats */
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-stat {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.hero-stat .num .unit { color: var(--teal-600); }
.hero-stat .label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ---------- SECTION SHELL ---------- */
section.block { padding: 96px 0; position: relative; }
section.block.tinted { background: var(--bg-soft); }
section.block.tinted-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 500;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--teal-600);
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 14px;
  max-width: 22ch;
  line-height: 1.08;
}
.section-head .head-meta {
  font-size: 15px;
  color: var(--ink-500);
  max-width: 38ch;
  line-height: 1.55;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid p { font-size: 17px; color: var(--ink-700); margin: 0 0 18px; }
.pillars {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rule-strong);
}
.pillar .icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-700));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar .icon-wrap svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 19px; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--ink-500); line-height: 1.55; margin: 0; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- RESEARCH AREAS ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.research-card {
  background: var(--white);
  padding: 32px 28px 36px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background 200ms;
  cursor: pointer;
}
.research-card:hover { background: var(--bg-tint); }
.research-card .ix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-400);
  letter-spacing: 0.1em;
}
.research-card .icon-art {
  margin: 18px 0 24px;
  height: 90px;
  display: flex; align-items: center;
}
.research-card h3 {
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
.research-card p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.55;
}
.research-card .tags {
  margin-top: 18px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.research-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--ink-500);
}
@media (max-width: 980px) { .research-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .research-grid { grid-template-columns: 1fr; } }

/* ---------- PROJECTS ---------- */
.proj-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.proj-filter {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  border: 1px solid var(--rule);
  color: var(--ink-500);
  transition: all 150ms;
}
.proj-filter.active {
  background: var(--navy-800);
  color: white;
  border-color: var(--navy-800);
}
.proj-filter:not(.active):hover { color: var(--navy-800); border-color: var(--rule-strong); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.proj-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
  cursor: pointer;
}
.proj-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rule-strong);
}
.proj-card .visual {
  height: 168px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.proj-card .visual svg { width: 100%; height: 100%; display: block; }
.proj-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.proj-card .meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-tag.live { background: rgba(42,157,159,0.12); color: var(--teal-700); }
.status-tag.beta { background: rgba(15,42,71,0.10); color: var(--navy-700); }
.status-tag.wip { background: rgba(217,119,6,0.10); color: #b45309; }
.status-tag.archive { background: var(--bg-soft); color: var(--ink-500); }
.proj-card h3 { font-size: 18px; line-height: 1.28; margin-bottom: 8px; }
.proj-card p { font-size: 14px; color: var(--ink-500); line-height: 1.55; margin: 0 0 16px; }
.proj-card .learn {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--navy-800);
}
.proj-card:hover .learn { color: var(--teal-600); }

@media (max-width: 980px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* ---------- PUBLICATIONS ---------- */
.pub-list {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pub-row {
  display: grid;
  grid-template-columns: 90px 1fr 200px 120px;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--rule);
  transition: background 150ms;
}
.pub-row:last-child { border-bottom: none; }
.pub-row:hover { background: var(--bg-tint); }
.pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-400);
  letter-spacing: 0.05em;
}
.pub-title { font-family: 'Sora', sans-serif; color: var(--ink-900); font-weight: 600; font-size: 16px; line-height: 1.35; }
.pub-authors { font-size: 13.5px; color: var(--ink-500); margin-top: 4px; }
.pub-venue { font-size: 13px; color: var(--ink-700); font-style: italic; }
.pub-link {
  text-align: right;
  font-size: 13px; font-weight: 600;
  color: var(--navy-800);
}
.pub-link:hover { color: var(--teal-600); }
.pub-tabs {
  display: flex; gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.pub-tab {
  padding: 12px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms, border-color 150ms;
}
.pub-tab.active { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.pub-tab:not(.active):hover { color: var(--navy-700); }
.pub-tab .count {
  margin-left: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-500);
}
.pub-tab.active .count { background: rgba(42,157,159,0.14); color: var(--teal-700); }

@media (max-width: 880px) {
  .pub-row { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .pub-link { text-align: left; }
  .pub-year { order: -1; }
}

/* ---------- DEMOS ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.demo-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
  min-height: 240px;
}
.demo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--rule-strong); }
.demo-card.feature {
  grid-row: span 2;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: white;
  border-color: var(--navy-800);
}
.demo-card.feature h3 { color: white; font-size: 26px; }
.demo-card.feature p { color: rgba(255,255,255,0.7); }
.demo-card.feature .demo-stage {
  margin-top: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
}
.demo-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.demo-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.demo-card.feature .demo-kind { color: var(--cyan-400); }
.demo-card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.demo-card p { font-size: 14px; color: var(--ink-500); margin: 0 0 14px; line-height: 1.55; }
.demo-card .open {
  margin-top: auto;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy-800);
}
.demo-card.feature .open { color: var(--cyan-400); }
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .demo-card.feature { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 640px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card.feature { grid-column: span 1; }
}

/* live demo gizmo */
.bar-demo { display: flex; align-items: end; gap: 8px; height: 80px; }
.bar-demo .bar { flex: 1; background: linear-gradient(180deg, var(--cyan-400), var(--teal-600)); border-radius: 4px 4px 0 0; transition: height 600ms cubic-bezier(.2,.7,.2,1); }
.attention-demo {
  position: relative;
  height: 110px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  overflow: hidden;
}
.attention-demo .heat {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,90,0.6), transparent 70%);
}
.spark-demo svg { width: 100%; height: 60px; }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--rule-strong); }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.team-card .name { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--ink-900); font-size: 16px; }
.team-card .role { font-size: 13px; color: var(--teal-700); margin-top: 2px; font-weight: 500; }
.team-card .interests { font-size: 12.5px; color: var(--ink-500); margin-top: 12px; line-height: 1.5; }
.team-card.lead { grid-column: span 2; display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.team-card.lead .avatar { width: 140px; height: 140px; margin: 0; font-size: 44px; }
.team-card.lead .name { font-size: 22px; }
.team-card.lead .role { font-size: 14px; }
.team-card.lead .interests { font-size: 13.5px; }

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card.lead { grid-column: span 2; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card.lead { grid-column: span 1; grid-template-columns: 100px 1fr; }
  .team-card.lead .avatar { width: 100px; height: 100px; font-size: 32px; }
}

/* ---------- TEACHING ---------- */
.teach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.teach-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  transition: transform 200ms, box-shadow 200ms;
}
.teach-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.teach-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-700);
}
.teach-icon svg { width: 28px; height: 28px; }
.teach-card .kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.teach-card h3 { font-size: 17px; margin: 6px 0 6px; line-height: 1.3; }
.teach-card p { font-size: 13.5px; color: var(--ink-500); margin: 0 0 12px; line-height: 1.55; }
.teach-card .resource-meta {
  display: flex; gap: 14px;
  font-size: 12px; color: var(--ink-400);
  font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 760px) { .teach-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, #102D4E 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(42,157,159,0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(79,195,215,0.10), transparent 45%);
}
.contact .watermark {
  position: absolute;
  right: -120px; bottom: -120px;
  width: 540px;
  opacity: 0.05;
  filter: brightness(2);
}
.contact .container { position: relative; z-index: 1; }
.contact h2 { color: white; font-size: clamp(36px, 5vw, 56px); max-width: 16ch; }
.contact .lede { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 50ch; margin-top: 18px; }
.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-row {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.contact-row .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding-top: 2px;
}
.contact-row .val { font-size: 15.5px; color: white; }
.contact-row .val a { color: var(--cyan-400); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 13px;
  color: white;
  transition: background 150ms, border-color 150ms;
}
.social-pill:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.contact-form label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.contact-form .field { margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  font-family: inherit;
  font-size: 14px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: rgba(255,255,255,0.08);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .btn-submit {
  width: 100%;
  background: var(--teal-600);
  color: white;
  border-radius: 8px;
  padding: 13px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  transition: background 150ms;
}
.contact-form .btn-submit:hover { background: var(--teal-500); }
.contact-form .submit-success {
  text-align: center;
  padding: 26px 0;
  color: var(--cyan-400);
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- FOOTER ---------- */
footer.foot {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 14px 0;
  font-size: 13px;
}
footer.foot .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
footer.foot .brand img { height: 48px; opacity: 0.95; }
footer.foot a:hover { color: var(--cyan-400); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- SHARED ICON ART ---------- */
.icon-art svg { display: block; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* selection */
::selection { background: rgba(42,157,159,0.22); color: var(--navy-900); }

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Team Groups (group card layout) */
.team-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.team-group-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: white;
  border: 1px solid #E4E9EE;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.team-group-card:hover {
  box-shadow: 0 8px 32px rgba(15,42,71,0.10);
  transform: translateY(-3px);
  border-color: var(--teal-600);
}
.team-group-icon { font-size: 2rem; line-height: 1; }
.team-group-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy-800); margin: 4px 0 0; }
.team-group-card p { font-size: 0.9rem; color: var(--slate-600); line-height: 1.6; flex: 1; margin: 0; }
.team-group-count { font-size: 0.82rem; color: var(--slate-400); }
.team-group-link { font-size: 0.88rem; font-weight: 600; color: var(--teal-600); display: flex; align-items: center; gap: 4px; margin-top: 4px; }

/* Page layout: footer always at bottom */
#root { display: flex; flex-direction: column; min-height: 100vh; }
.page-content { flex: 1; padding-top: 80px; }

/* Team detail page styles */
.team-detail-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 72px 0 56px;
  color: white;
  text-align: center;
}
.team-detail-hero .section-eyebrow { color: var(--teal-500); }
.team-detail-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(28px,4vw,48px); font-weight: 800; color: white; margin: 12px 0 16px; }
.team-detail-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }

.team-lead-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  background: white;
  border: 1px solid #E4E9EE;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 56px;
  box-shadow: 0 4px 24px rgba(15,42,71,0.07);
}
@media (max-width: 640px) {
  .team-lead-card { grid-template-columns: 1fr; }
}
.team-lead-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--teal-600);
}
.team-lead-info .lead-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-600); background: rgba(42,157,159,0.1); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.team-lead-info h2 { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--navy-800); margin: 0 0 6px; }
.team-lead-info .lead-role { font-size: 1rem; font-weight: 600; color: var(--teal-700); margin-bottom: 6px; }
.team-lead-info .lead-edu { font-size: 0.88rem; color: var(--slate-500); font-style: italic; margin-bottom: 14px; }
.team-lead-info .lead-desc { font-size: 0.95rem; color: var(--slate-600); line-height: 1.7; }

.team-section-label { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy-800); border-left: 3px solid var(--teal-600); padding-left: 12px; margin: 40px 0 20px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 12px; }

.member-card {
  background: white;
  border: 1px solid #E4E9EE;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.member-card:hover { box-shadow: 0 6px 24px rgba(15,42,71,0.09); transform: translateY(-2px); }
.member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--teal-600);
}
.member-name { font-size: 1rem; font-weight: 700; color: var(--navy-800); }
.member-role { font-size: 0.82rem; font-weight: 600; color: var(--teal-700); line-height: 1.4; }
.member-edu { font-size: 0.78rem; color: var(--slate-400); font-style: italic; }
.member-desc { font-size: 0.82rem; color: var(--slate-600); line-height: 1.6; }
