/* ── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
  /* Copying the base palette from home.css */
  --b900: #0A1628;
  --b500: #3B82F6;
  --b400: #60A5FA;
  --y500: #F59E0B;
  --y400: #FBBF24;
  --grey6: #6B7280;
  --grey4: #A8B5C8;
  --white: #FFFFFF;
  --black: #0C111D;
  --dark:  #131B2E;

  /* Mapping home.css colors to your style.css variable names */
  --navy:       var(--b900);
  --teal:       var(--b500); /* Now using Blue instead of Teal */
  --cyan:       var(--b400);
  --off-white:  var(--white);
  --warm-grey:  var(--grey4);
  --text:       var(--white);
  --subtle:     var(--grey6);
  --alt-bg:     var(--dark);
  --card-bg:    #0D1117; /* Darker card background from home.css */
  --border:     rgba(59,130,246,0.15);
  
  /* Fonts remain similar but ensure they match exactly if needed */
  --mono:       'DM Mono', monospace;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Montserrat', system-ui, sans-serif;
}

/* Update body background to match home.css dark theme */
body {
  background: var(--black);
  color: var(--text);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > footer { margin-top: auto; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--warm-grey); border-radius: 2px; }

/* ── ANIMATIONS ────────────────────────────────────────────────────────────── */
@keyframes pgIn    { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes ticker  { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
@keyframes blink   { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── PAGES ─────────────────────────────────────────────────────────────────── */
.page { display: none; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; animation: pgIn .5s ease both; }
.page.active > *:not(.footer) { flex-shrink: 0; }
.page.active > .footer { margin-top: auto; }

/* ── CONTAINER ─────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%; }

/* ── SECTION ─────────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.bg-alt     { background: var(--alt-bg); }
.bg-primary { background: var(--off-white); }
.bg-dark    { background: var(--navy); }
.text-center { text-align: center; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45,191,184,0.15);
  transition: all .35s ease;
  display: flex; align-items: center;
}
#nav.scrolled {
  border-bottom-color: rgba(45,191,184,0.3);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--off-white); letter-spacing: .01em; }
.logo-sub  { font-family: var(--mono); font-size: 9px; color: var(--teal); letter-spacing: .14em; text-transform: uppercase; margin-top: -1px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-btn {
  padding: 7px 14px; border: none; background: transparent;
  color: var(--warm-grey); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; border-radius: 3px;
  transition: all .2s; font-family: var(--sans); font-weight: 500;
  border-bottom: 1.5px solid transparent;
}
.nav-btn:hover  { color: var(--teal); }
.nav-btn.active { color: var(--off-white); border-bottom-color: var(--teal); background: rgba(45,191,184,.08); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: var(--navy); padding-top: 64px;
}
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.hero-deco { position: absolute; right: -100px; top: 5%; opacity: .04; pointer-events: none; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  padding-top: 60px; width: 100%;
}
.hero-label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.label-line { width: 32px; height: 1px; background: var(--teal); opacity: .6; }
.mono-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.02em; color: var(--off-white);
  margin-bottom: 8px; max-width: 760px;
}
#typewriter { font-style: italic; font-weight: 300; color: var(--teal); }
.cursor { color: var(--teal); animation: blink 1.06s step-end infinite; }
.thin-rule { width: 56px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 1px; margin-bottom: 32px; margin-top: 8px; }
.hero-bio { font-size: 16px; color: var(--warm-grey); line-height: 1.82; max-width: 540px; margin-bottom: 44px; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; }
.hero-hint { font-family: var(--mono); font-size: 11px; color: var(--subtle); margin-top: 32px; opacity: .5; }
.hero-stats {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 3;
}
.stat-card {
  background: rgba(13,27,42,.85); border: 1px solid rgba(45,191,184,.25);
  border-radius: 6px; padding: 18px 22px; text-align: center;
  backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.stat-num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--teal); }
.stat-label { font-family: var(--mono); font-size: 10px; color: var(--warm-grey); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* ── FADE-UP DELAYS ─────────────────────────────────────────────────────── */
.fade-up { opacity: 0; animation: fadeUp .6s ease both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
.d5 { animation-delay: .5s; } .d6 { animation-delay: .6s; }
.d7 { animation-delay: .7s; } .d8 { animation-delay: .8s; }

/* ── REVEAL ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .15s; }

/* ── TICKER ─────────────────────────────────────────────────────────────── */
.ticker-wrap { background: var(--navy); padding: 13px 0; overflow: hidden; border-top: 1px solid rgba(45,191,184,.15); }
.ticker-track { display: flex; animation: ticker 22s linear infinite; white-space: nowrap; }
.ticker-item { padding: 0 22px; font-size: 11px; font-family: var(--mono); letter-spacing: .08em; color: var(--warm-grey); }
.ticker-dot  { padding: 0 8px; font-size: 11px; color: rgba(45,191,184,.3); font-family: var(--mono); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-primary {
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--navy); border: none; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; cursor: pointer; font-family: var(--sans);
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-outline {
  padding: 11px 24px; background: transparent; color: var(--off-white);
  border: 1.5px solid rgba(184,169,154,.35); border-radius: 3px;
  font-size: 11px; font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; cursor: pointer; font-family: var(--sans);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost {
  padding: 9px 20px; background: transparent;
  color: var(--muted); border: 1.5px solid var(--border2);
  border-radius: 3px; font-size: 11px; cursor: pointer;
  font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost-sm {
  padding: 5px 12px; background: transparent;
  color: var(--warm-grey); border: 1px solid rgba(184,169,154,.3);
  border-radius: 3px; font-size: 10px; cursor: pointer; font-family: var(--sans);
  transition: all .2s;
}
.btn-ghost-sm:hover { border-color: var(--teal); color: var(--teal); }

.btn-submit {
  padding: 13px; background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--navy); border: none; border-radius: 3px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans);
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .9; }

/* ── SECTION LABELS & TITLES ─────────────────────────────────────────────── */
.section-label-text { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.section-title { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--text); line-height: 1.15; }
.section-rule { width: 40px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 1px; margin-top: 16px; margin-bottom: 32px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }

/* ── RESEARCH GRID ─────────────────────────────────────────────────────────── */
.research-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.research-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 32px 26px; cursor: pointer; position: relative; overflow: hidden;
  transition: box-shadow .25s, transform .25s; height: 100%;
}
.research-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,27,42,.1); }
.card-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.card-icon  { font-family: var(--mono); font-size: 20px; color: var(--teal); margin-bottom: 18px; }
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.card-desc  { font-size: 13px; color: var(--muted); line-height: 1.75; font-weight: 400; }

/* ── PI SECTION ─────────────────────────────────────────────────────────────── */
.pi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pi-subtitle { font-family: var(--mono); font-size: 11px; color: var(--teal); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; margin-top: 4px; }
.pi-bio  { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 28px; font-weight: 400; }
.pi-btns { display: flex; gap: 10px; margin-top: 32px; }
.pi-btns .btn-outline { color: var(--text); border-color: var(--border2); }
.pi-btns .btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ── TAGS ─────────────────────────────────────────────────────────────────── */
.tags-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-family: var(--mono); letter-spacing: .03em;
  background: rgba(45,191,184,.1); color: var(--teal); border: 1px solid rgba(45,191,184,.25);
}

/* ── CAREER CARD ─────────────────────────────────────────────────────────── */
.career-card { background: var(--alt-bg); border: 1px solid var(--border); border-radius: 8px; padding: 40px; }
.career-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 28px; }
.career-item { display: flex; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.career-item.no-border { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.career-year  { font-family: var(--mono); font-size: 11px; color: var(--teal); min-width: 68px; padding-top: 2px; }
.career-title { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 3px; }
.career-sub   { font-size: 12px; color: var(--subtle); font-weight: 400; }

/* ── NEWS ─────────────────────────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.news-date { font-family: var(--mono); font-size: 11px; color: var(--teal); min-width: 80px; }
.news-text { font-size: 14px; color: var(--muted); line-height: 1.65; font-weight: 400; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--off-white); margin-bottom: 6px; }
.footer-brand-sub { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--warm-grey); line-height: 1.8; max-width: 260px; font-weight: 300; }
.footer-col-head { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.footer-link { font-size: 13px; color: var(--warm-grey); margin-bottom: 10px; cursor: pointer; transition: color .2s; font-weight: 400; }
.footer-link:hover { color: var(--teal); }
.footer-divider { height: 1px; background: rgba(45,191,184,.1); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--subtle); }

/* ── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header { background: var(--navy); padding: 100px 0 0; border-bottom: 1px solid rgba(45,191,184,.15); }
.page-title { font-family: var(--serif); font-size: clamp(40px,5.5vw,64px); font-weight: 700; letter-spacing: -.02em; color: var(--off-white); margin-bottom: 40px; }
.page-title em { font-weight: 300; font-style: italic; color: var(--teal); }

/* ── RESEARCH TABS ──────────────────────────────────────────────────────── */
.research-tabs { display: flex; gap: 0; }
.tab-btn {
  padding: 14px 24px; border: none; background: transparent;
  color: var(--warm-grey); font-size: 12px; font-family: var(--sans); font-weight: 500;
  border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--teal); }
.tab-btn.active { background: rgba(45,191,184,.08); color: var(--teal); border-bottom-color: var(--teal); }
.tab-icon { font-family: var(--mono); opacity: .7; }

/* ── RESEARCH DETAIL ─────────────────────────────────────────────────────── */
.research-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; animation: pgIn .35s ease both; }
.detail-icon  { font-family: var(--mono); font-size: 28px; color: var(--teal); opacity: .5; margin-bottom: 20px; }
.detail-title { font-family: var(--serif); font-size: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-bottom: 4px; }
.detail-rule  { width: 40px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--cyan)); margin-bottom: 28px; margin-top: 12px; border-radius: 1px; }
.detail-desc  { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 28px; font-weight: 400; }
.detail-evidence { background: var(--alt-bg); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; margin-bottom: 32px; }
.detail-evidence-label { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.detail-evidence-text  { font-size: 13px; color: var(--muted); line-height: 1.6; }
.detail-btns  { display: flex; gap: 10px; margin-top: 32px; }
.detail-right { background: var(--alt-bg); border: 1px solid var(--border); border-radius: 8px; padding: 44px; position: relative; overflow: hidden; }
.detail-right-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 32px; }
.detail-pillar { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.pillar-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .6; margin-top: 7px; flex-shrink: 0; }
.pillar-text { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 400; }
.detail-since-label { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--border); }
.detail-since-year  { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--text); }
.research-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border-radius: 6px; overflow: hidden; }
.overview-item { background: var(--card-bg); padding: 28px 32px; cursor: pointer; transition: background .2s; border-left: 3px solid transparent; display: flex; justify-content: space-between; align-items: center; }
.overview-item:hover  { background: var(--alt-bg); }
.overview-item.active { border-left-color: var(--teal); background: rgba(45,191,184,.05); }
.overview-icon  { font-family: var(--mono); font-size: 16px; opacity: .4; margin-right: 10px; }
.overview-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--text); }
.overview-desc  { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 380px; line-height: 1.6; font-weight: 400; }
.overview-arrow { color: var(--subtle); font-size: 16px; }

/* ── PROJECTS ─────────────────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.project-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all .25s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(13,27,42,.1); }
.project-top-bar { height: 3px; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.project-body   { padding: 28px 28px 24px; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.project-name   { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.project-subtitle { font-size: 13px; color: var(--subtle); font-style: italic; font-weight: 400; }
.project-meta   { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.project-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-family: var(--mono); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.status-published { background: rgba(30,138,180,.12); color: var(--cyan); }
.status-active    { background: rgba(45,191,184,.12); color: var(--teal); }
.status-deployed  { background: rgba(184,169,154,.15); color: var(--warm-grey); }
.project-year   { font-family: var(--mono); font-size: 10px; color: var(--subtle); }
.project-desc   { font-size: 13px; color: var(--muted); line-height: 1.78; margin-bottom: 18px; font-weight: 400; }
.project-venue  { font-family: var(--mono); font-size: 11px; color: var(--subtle); margin-top: 12px; }
.project-expanded { padding: 16px 28px 24px; border-top: 1px solid var(--border); display: none; animation: pgIn .3s ease both; }
.project-expanded.open { display: block; }
.project-exp-btn { padding: 8px 16px; border: none; border-radius: 3px; font-size: 11px; cursor: pointer; font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; transition: opacity .2s; }
.project-exp-btn.primary   { background: var(--teal); color: var(--navy); font-weight: 700; }
.project-exp-btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border2); }

/* ── PUBLICATIONS ─────────────────────────────────────────────────────────── */
.pub-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 7px 18px; border: 1.5px solid var(--border); border-radius: 3px; background: transparent; color: var(--warm-grey); font-size: 11px; font-family: var(--mono); letter-spacing: .06em; cursor: pointer; transition: all .2s; }
.filter-btn:hover  { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: var(--navy); font-weight: 700; }
.pub-timeline { position: relative; }
.pub-timeline::before { content: ''; position: absolute; left: 88px; top: 0; bottom: 0; width: 1px; background: rgba(45,191,184,.2); }
.pub-row { display: flex; gap: 0; margin-bottom: 24px; }
.pub-year { width: 80px; padding-top: 26px; font-size: 11px; font-family: var(--mono); color: var(--teal); text-align: right; flex-shrink: 0; }
.pub-dot-col { width: 18px; display: flex; justify-content: center; flex-shrink: 0; padding-top: 30px; }
.pub-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); opacity: .6; border: 2px solid var(--off-white); box-shadow: 0 0 0 1px rgba(45,191,184,.4); }
.pub-card { flex: 1; margin-left: 18px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 22px 26px; transition: box-shadow .2s, transform .2s; }
.pub-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(13,27,42,.08); }
.pub-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pub-venue-badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-family: var(--mono); font-weight: 600; letter-spacing: .06em; background: rgba(45,191,184,.1); color: var(--teal); margin-bottom: 12px; border: 1px solid rgba(45,191,184,.2); }
.pub-title   { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; color: var(--text); }
.pub-authors { font-size: 13px; color: var(--subtle); margin-bottom: 12px; font-weight: 400; }
.pub-btns { display: flex; gap: 8px; flex-shrink: 0; }
.pub-btn  { padding: 7px 14px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 3px; font-size: 11px; cursor: pointer; font-family: var(--sans); transition: all .2s; }
.pub-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ── PEOPLE TABS ──────────────────────────────────────────────────────────── */
.people-tabs { display: flex; gap: 4px; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.people-tab-btn {
  padding: 12px 24px; border: none; background: transparent;
  color: var(--muted); font-size: 12px; font-family: var(--sans); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: all .2s; border-radius: 4px 4px 0 0;
}
.people-tab-btn:hover { color: var(--teal); }
.people-tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); background: rgba(45,191,184,.05); }

/* ── PI CARD ─────────────────────────────────────────────────────────────── */
.pi-card { display: flex; background: var(--card-bg); border: 1.5px solid var(--border2); border-radius: 8px; overflow: hidden; margin-bottom: 56px; }
.pi-photo-col { width: 240px; flex-shrink: 0; background: linear-gradient(135deg, #d6eff0, #b8dfe8); overflow: hidden; position: relative; }
.pi-photo-col img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pi-photo-fallback { width: 100%; height: 100%; min-height: 280px; background: linear-gradient(135deg, var(--teal), var(--cyan)); color: var(--navy); font-weight: 700; font-size: 2.5rem; display: flex; align-items: center; justify-content: center; font-family: var(--serif); }
.pi-avatar-col { width: 180px; background: var(--alt-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; border-right: 1px solid var(--border); }
.avatar { border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--cyan)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--navy); font-weight: 700; }
.avatar.large { width: 80px; height: 80px; font-size: 26px; }
.avatar.small { width: 56px; height: 56px; font-size: 17px; }
.pi-card-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.pi-card-body { padding: 36px 44px; display: flex; flex-direction: column; }
.pi-card-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pi-card-role { font-family: var(--mono); font-size: 11px; color: var(--teal); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.pi-card-bio  { font-size: 14px; color: var(--muted); line-height: 1.82; margin-bottom: 20px; max-width: 560px; font-weight: 400; }

/* ── TEAM GRID ─────────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 24px; margin-bottom: 48px; }
.team-card { border: 1px solid var(--border); border-radius: 8px; text-align: center; background: var(--card-bg); transition: all .22s; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); border-color: var(--border2); }
.team-photo-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(135deg, #d6eff0, #b8dfe8); flex-shrink: 0; }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .3s; }
.team-card:hover .team-photo-wrap img { transform: scale(1.03); }
.team-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, #d6eff0, #b8dfe8); }
.team-info { padding: 18px 16px 20px; background: #e8f4f8; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.team-name { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--cyan); line-height: 1.3; }
.team-role { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; margin-bottom: 0; text-transform: uppercase; }
.team-sub  { font-size: 11px; color: var(--subtle); line-height: 1.55; font-weight: 400; margin-top: 4px; }

/* ── CONTACT ─────────────────────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); margin-top: 64px; }
.contact-left  { background: var(--navy); padding: 72px 64px; border-right: 1px solid rgba(45,191,184,.15); }
.contact-left .section-label-text { color: var(--teal); }
.contact-title { font-family: var(--serif); font-size: 52px; font-weight: 700; letter-spacing: -.02em; color: var(--off-white); line-height: 1.1; }
.contact-title em { font-weight: 300; font-style: italic; color: var(--teal); }
.contact-left .thin-rule { background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.contact-intro { font-size: 15px; color: var(--warm-grey); line-height: 1.85; max-width: 380px; margin-bottom: 48px; font-weight: 300; }
.contact-info-item { display: flex; gap: 20px; margin-bottom: 28px; }
.contact-bar { width: 2px; background: rgba(45,191,184,.3); border-radius: 1px; flex-shrink: 0; }
.contact-info-label { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.contact-info-val { font-size: 14px; color: var(--warm-grey); line-height: 1.7; font-weight: 300; }
.contact-social { margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(45,191,184,.1); }
.contact-right { background: var(--off-white); padding: 72px 64px; display: flex; align-items: center; }
.form-title { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.form-sub   { font-size: 13px; color: var(--subtle); margin-bottom: 32px; font-weight: 400; }
.form-body  { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-label { font-family: var(--mono); font-size: 10px; color: var(--subtle); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
.form-input { width: 100%; padding: 11px 14px; background: var(--card-bg); border: 1px solid var(--border); color: var(--text); border-radius: 3px; font-size: 14px; outline: none; font-family: var(--sans); transition: border-color .2s; resize: vertical; font-weight: 400; }
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(45,191,184,.1); }
.success-check { font-family: var(--serif); font-size: 52px; color: var(--teal); margin-bottom: 16px; opacity: .6; }
.success-title { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.success-sub   { font-size: 14px; color: var(--muted); font-weight: 400; }

/* ── RESEARCH PAGE STATS ROW ─────────────────────────────────────────────── */
.research-stats-row { display: flex; gap: 32px; margin: 32px 0 0; flex-wrap: wrap; }
.research-stat { background: rgba(45,191,184,.07); border: 1px solid rgba(45,191,184,.18); border-radius: 6px; padding: 20px 32px; text-align: center; min-width: 130px; }
.research-stat-num { font-family: var(--mono); font-size: 42px; font-weight: 500; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.research-stat-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ── ICORE RANK BADGE ────────────────────────────────────────────────────── */
.pub-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.icore-badge { display: inline-block; color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
/* ── PROJECT PUB LABEL ───────────────────────────────────────────────────── */
.project-pub-label { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: .06em; margin-left: 4px; opacity: .8; }
.pub-btn-disabled { opacity: .4; cursor: not-allowed; }

/* ── PROJECT CARD CTA ────────────────────────────────────────────────────── */
.project-card-footer { padding: 14px 28px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; }
.project-card-cta { font-family: var(--mono); font-size: 11px; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; transition: gap .2s; }
.project-card:hover .project-card-cta { letter-spacing: .14em; }

/* ── PROJECT DETAIL PAGE ─────────────────────────────────────────────────── */
.pd-hero { background: var(--navy); padding: 100px 0 56px; border-bottom: 1px solid rgba(45,191,184,.15); }
.pd-back-btn { background: transparent; border: 1px solid rgba(45,191,184,.25); color: var(--warm-grey); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: 3px; cursor: pointer; transition: all .2s; margin-bottom: 36px; display: inline-block; }
.pd-back-btn:hover { border-color: var(--teal); color: var(--teal); }
.pd-title { font-family: var(--serif); font-size: clamp(40px,5vw,68px); font-weight: 700; color: var(--off-white); letter-spacing: -.02em; line-height: 1.08; margin-bottom: 12px; }
.pd-subtitle { font-family: var(--sans); font-size: 18px; color: var(--warm-grey); font-weight: 300; margin-bottom: 24px; }
.pd-hero-meta { display: flex; align-items: center; gap: 16px; }
.pd-year { font-family: var(--mono); font-size: 12px; color: var(--subtle); letter-spacing: .1em; }

.pd-body { padding-top: 64px; padding-bottom: 80px; }
.pd-main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }

.pd-left { display: flex; flex-direction: column; gap: 56px; }
.pd-section { display: block; }
.pd-para { font-size: 15px; color: var(--muted); line-height: 1.9; font-weight: 400; margin-bottom: 20px; }
.pd-para:last-child { margin-bottom: 0; }

/* Gallery */
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pd-photo-wrap { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: var(--alt-bg); border: 1px solid var(--border); }
.pd-photo-wrap img { width: 100%; height: 100%; object-fit: contain; background: var(--alt-bg); display: block; transition: transform .3s; }
.pd-photo-wrap:hover img { transform: scale(1.04); }

/* Video */
.pd-video-wrap { position: relative; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; background: var(--navy); }
.pd-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Team */
.pd-team-list { display: flex; flex-wrap: wrap; gap: 16px; }
.pd-team-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 100px; }
.pd-team-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid var(--border2); }
.pd-team-initials { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--cyan)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.pd-team-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.pd-team-role { font-family: var(--mono); font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }

/* Related pubs */
.pd-pub-row { background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 20px 24px; margin-bottom: 12px; transition: box-shadow .2s; }
.pd-pub-row:hover { box-shadow: 0 4px 16px rgba(13,27,42,.08); }

/* Sidebar */
.pd-sidebar { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.pd-sidebar-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; margin-bottom: 10px; }
.pd-sidebar-label { font-family: var(--mono); font-size: 10px; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.pd-sidebar-val { font-size: 14px; color: var(--text); font-weight: 500; }

/* Highlights inside sidebar */
.pd-highlights { display: flex; flex-direction: column; gap: 10px; }
.pd-highlight-item { display: flex; gap: 12px; align-items: flex-start; }
.pd-highlight-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .7; margin-top: 6px; flex-shrink: 0; }
.pd-highlight-text { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
  /* Container & Nav */
  .container  { padding: 0 20px; }
  .nav-inner  { padding: 0 16px; }
  .nav-links  { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; flex-wrap: nowrap; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-btn    { padding: 7px 10px; font-size: 10px; white-space: nowrap; flex-shrink: 0; }

  /* Hero — pull stats out of absolute position into flow */
  .hero         { flex-direction: column; align-items: flex-start; padding-bottom: 0; }
  .hero-content { padding-top: 100px; padding-bottom: 24px; }
  .hero-stats   { position: static; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 24px 20px 40px; gap: 12px; width: 100%; }
  .stat-card    { flex: 1; min-width: 100px; padding: 14px 16px; }
  .hero-btns    { flex-wrap: wrap; }

  /* Sections */
  .section        { padding: 56px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-title  { font-size: 30px; }
  .page-header    { padding-top: 84px; }
  .page-title     { font-size: clamp(28px,6vw,44px); margin-bottom: 24px; }

  /* Research grid & tabs */
  .research-grid        { grid-template-columns: repeat(2,1fr); }
  .research-tabs        { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; padding-bottom: 4px; }
  .research-tabs::-webkit-scrollbar { display: none; }
  .tab-btn              { padding: 12px 14px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .research-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .research-overview-grid { grid-template-columns: 1fr; }
  .overview-desc        { display: none; }
  .detail-title         { font-size: 32px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Publications */
  .pub-timeline::before { left: 60px; }
  .pub-year    { width: 52px; }
  .pub-inner   { flex-direction: column; }
  .pub-btns    { flex-shrink: unset; margin-top: 12px; }

  /* People */
  .people-tabs     { overflow-x: auto; scrollbar-width: none; }
  .people-tabs::-webkit-scrollbar { display: none; }
  .people-tab-btn  { white-space: nowrap; flex-shrink: 0; }
  .team-grid       { grid-template-columns: repeat(2,1fr); gap: 16px; }

  /* PI card — horizontal to vertical */
  .pi-card       { flex-direction: column; }
  .pi-photo-col  { width: 100%; height: 260px; }
  .pi-photo-fallback { min-height: 260px; }
  .pi-avatar-col { width: 100%; flex-direction: row; justify-content: flex-start; gap: 20px; padding: 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .pi-card-body  { padding: 24px; }

  /* Home PI section */
  .pi-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Contact */
  .contact-split { grid-template-columns: 1fr; min-height: auto; }
  .contact-left  { padding: 48px 24px; border-right: none; border-bottom: 1px solid rgba(45,191,184,.15); }
  .contact-right { padding: 48px 24px; }
  .contact-title { font-size: 38px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container  { padding: 0 14px; }
  .logo-sub   { display: none; }
  .logo-name  { font-size: 14px; }
  .hero-h1    { font-size: 34px; }
  .section-title { font-size: 26px; }

  /* Research */
  .research-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .team-photo-placeholder { font-size: 32px; }

  /* Stats */
  .stat-card { padding: 12px 14px; }
  .stat-num  { font-size: 24px; }

  /* Publications — simplify timeline on tiny screens */
  .pub-timeline::before { display: none; }
  .pub-year    { display: none; }
  .pub-dot-col { display: none; }
  .pub-card    { margin-left: 0; }
  .pub-row     { display: block; margin-bottom: 16px; }

  /* Contact */
  .contact-left  { padding: 36px 16px; }
  .contact-right { padding: 36px 16px; }
  .contact-title { font-size: 30px; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
}

/* ── PROJECT DETAIL — STATS ROW ──────────────────────────────────────────── */
.pd-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 0; }
.pd-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 20px; text-align: center; }
.pd-stat-val  { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--teal); line-height: 1.1; margin-bottom: 6px; }
.pd-stat-label { font-family: var(--mono); font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: .1em; }

/* ── PROJECT DETAIL — SECTION TITLE ──────────────────────────────────────── */
.pd-section-title { font-family: var(--mono); font-size: 11px; color: var(--teal); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ── PROJECT DETAIL — PHOTO PLACEHOLDER ──────────────────────────────────── */
.pd-photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4/3; background: var(--alt-bg); border: 1px dashed var(--border2); border-radius: 6px; padding: 20px; text-align: center; }
.pd-photo-placeholder-icon { font-size: 28px; opacity: .4; }
.pd-photo-placeholder-label { font-family: var(--mono); font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; line-height: 1.4; }

/* ── PROJECT DETAIL — VIDEO THUMBNAIL LINK ───────────────────────────────── */
.pd-video-thumb { display: block; position: relative; border-radius: 8px; overflow: hidden; background: #000; text-decoration: none; aspect-ratio: 16/9; }
.pd-video-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.pd-video-thumb:hover .pd-video-thumb-img { opacity: .7; }
.pd-video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.35); transition: background .3s; }
.pd-video-thumb:hover .pd-video-play { background: rgba(0,0,0,.55); }
.pd-video-play-icon { width: 64px; height: 64px; background: #ff0000; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; padding-left: 4px; box-shadow: 0 4px 20px rgba(0,0,0,.5); transition: transform .2s; }
.pd-video-thumb:hover .pd-video-play-icon { transform: scale(1.1); }
.pd-video-play-label { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.9); letter-spacing: .08em; text-transform: uppercase; }

/* ── PROJECT DETAIL — VIDEO PLACEHOLDER ──────────────────────────────────── */
.pd-video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-bottom: 56.25%; position: relative; border-radius: 8px; background: var(--alt-bg); border: 1px dashed var(--border2); }
.pd-video-placeholder > * { position: absolute; }
.pd-video-placeholder-icon { font-size: 40px; opacity: .3; top: 50%; transform: translateY(-70px); }
.pd-video-placeholder-title { font-size: 14px; color: var(--muted); font-weight: 500; top: 50%; transform: translateY(0px); text-align: center; padding: 0 24px; }
.pd-video-placeholder-sub { font-family: var(--mono); font-size: 11px; color: var(--subtle); top: 50%; transform: translateY(24px); }

/* ── PROJECT DETAIL — PROTOTYPE CARDS ────────────────────────────────────── */
.pd-prototypes { display: flex; flex-direction: column; gap: 16px; }
.pd-proto-card { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 20px 24px; }
.pd-proto-num { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--teal); opacity: .25; line-height: 1; padding-top: 4px; }
.pd-proto-body { display: flex; flex-direction: column; gap: 4px; }
.pd-proto-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pd-proto-label { font-family: var(--mono); font-size: 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.pd-proto-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── PROJECT DETAIL — HARDWARE LIST ──────────────────────────────────────── */
.pd-hw-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); line-height: 1.5; }
.pd-hw-item:last-child { border-bottom: none; }
.pd-hw-item::before { content: '›'; color: var(--teal); font-family: var(--mono); flex-shrink: 0; margin-top: 1px; }

/* ── PROJECT DETAIL — RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .pd-main-grid { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .pd-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pd-stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pd-stat-val  { font-size: 22px; }
  .pd-proto-card { grid-template-columns: 1fr; gap: 8px; }
  .pd-proto-num  { font-size: 22px; }
}

/* ── LIGHTBOX ─────────────────────────────────────────────────────────────── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }

.lb-overlay { position: absolute; inset: 0; background: rgba(5,10,18,.92); backdrop-filter: blur(6px); }

.lb-img-wrap { position: relative; z-index: 1; max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.7); display: block; }

.lb-close {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 18px; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.18); }

.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 28px; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; line-height: 1;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(45,191,184,.25); border-color: var(--teal); }

.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5);
  letter-spacing: .1em;
}

@media (max-width: 480px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 22px; }
}

.pd-title-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.pd-project-logo{
  height:100px;
  width:auto;
  object-fit:contain;
}