/* ============================================================
   Lu Lab – style.css  (v2 – data-driven)
   ============================================================ */
:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --navy-light: #1a3557;
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --gold-pale:  #f5e9c8;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --accent:     #2563eb;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --radius: 12px; --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font-sans);color:var(--gray-800);background:var(--white);line-height:1.7;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
::selection{background:var(--gold);color:var(--navy)}
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:var(--navy)}
::-webkit-scrollbar-thumb{background:var(--gold);border-radius:3px}

/* ── NAV ── */
#navbar{position:fixed;top:0;left:0;right:0;z-index:1000;padding:1.5rem 0;transition:background var(--transition),box-shadow var(--transition),padding var(--transition)}
#navbar.scrolled{background:rgba(10,22,40,.97);backdrop-filter:blur(16px);box-shadow:0 1px 0 rgba(201,168,76,.2);padding:1rem 0}
.nav-container{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between}
.nav-logo{display:flex;flex-direction:column;gap:1px}
.logo-main{font-family:var(--font-serif);font-size:1.3rem;font-weight:700;color:var(--gold);letter-spacing:.02em;line-height:1}
.logo-sub{font-size:.65rem;color:rgba(255,255,255,.5);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.nav-links{display:flex;align-items:center;gap:.25rem;list-style:none}
.nav-links a{color:rgba(255,255,255,.75);font-size:.875rem;font-weight:500;padding:.5rem .75rem;border-radius:var(--radius-sm);transition:color var(--transition),background var(--transition);letter-spacing:.02em}
.nav-links a:hover,.nav-links a.active-nav{color:var(--gold-light);background:rgba(201,168,76,.08)}
.nav-links a.nav-cta{color:var(--gold);border:1px solid rgba(201,168,76,.4);padding:.4rem .9rem}
.nav-links a.nav-cta:hover{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.nav-right{display:flex;align-items:center;gap:.75rem}
.nav-edit-btn{display:none;align-items:center;gap:.4rem;font-size:.75rem;font-weight:600;color:rgba(255,255,255,.5);border:1px solid rgba(255,255,255,.15);padding:.3rem .75rem;border-radius:var(--radius-sm);transition:var(--transition);letter-spacing:.04em}
.admin-mode .nav-edit-btn{display:inline-flex}
.nav-edit-btn svg{width:14px;height:14px}
.nav-edit-btn:hover{color:var(--gold);border-color:rgba(201,168,76,.4)}
#mobileMenu{display:none}
.mobile-close-btn{display:none}
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.hamburger span{display:block;width:22px;height:2px;background:rgba(255,255,255,.8);border-radius:2px;transition:var(--transition)}

/* ── HERO / LANDING ── */
.hero{position:relative;background:var(--navy);overflow:hidden;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding-top:5rem}
#particleCanvas{position:absolute;inset:0;pointer-events:none;opacity:.4}
.hero-bg-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(201,168,76,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(201,168,76,.04) 1px,transparent 1px);background-size:60px 60px;pointer-events:none}
.hero::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 20% 60%,rgba(201,168,76,.07) 0%,transparent 55%),radial-gradient(ellipse at 80% 20%,rgba(37,99,235,.05) 0%,transparent 50%);pointer-events:none}
.hero-content{position:relative;z-index:2;max-width:1200px;width:100%;min-width:0;margin:0 auto;padding:3rem 2rem 5rem;display:grid;grid-template-columns:1fr 210px;gap:3rem;align-items:center;flex:1}
.hero-text{display:flex;flex-direction:column;gap:0}
.hero-badge{display:inline-block;font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);background:rgba(201,168,76,.1);border:1px solid rgba(201,168,76,.25);padding:.35rem .9rem;border-radius:100px;width:fit-content}
.hero-badge-2{color:var(--gold);background:rgba(201,168,76,.1);border-color:rgba(201,168,76,.25)}
.hero-title{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.75rem}
.hero-name-en{font-family:var(--font-serif);font-size:clamp(1.8rem,3vw,2.6rem);font-weight:700;color:var(--white);line-height:1.1;letter-spacing:-.01em;animation:fadeUp .8s .1s ease both}
.hero-name-zh{font-family:var(--font-serif);font-size:clamp(1.6rem,2.8vw,2.3rem);font-weight:700;color:var(--gold);animation:fadeUp .8s .15s ease both}
.hero-subtitle{font-size:.95rem;color:rgba(255,255,255,.55);font-weight:400;letter-spacing:.04em;margin-bottom:1.25rem;animation:fadeUp .8s .2s ease both}
.hero-desc{max-width:520px;font-size:.95rem;color:rgba(255,255,255,.7);line-height:1.8;margin-bottom:1.5rem;animation:fadeUp .8s .3s ease both}
.hero-tags{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:.4rem;margin-bottom:2rem;animation:fadeUp .8s .4s ease both;-ms-overflow-style:none;scrollbar-width:none;min-width:0;max-width:100%;align-self:center;justify-content:center}
.hero-tags::-webkit-scrollbar{display:none}
.hero-tags span{font-size:.7rem;font-weight:500;color:rgba(255,255,255,.65);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);padding:.3rem .75rem;border-radius:100px;letter-spacing:.02em;transition:var(--transition);white-space:nowrap;flex-shrink:0}
.hero-tags span:hover{background:rgba(201,168,76,.1);border-color:rgba(201,168,76,.3);color:var(--gold-light)}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap;animation:fadeUp .8s .5s ease both}
.hero-portrait-wrap{width:180px;height:225px;border-radius:var(--radius);overflow:hidden;border:1px solid rgba(201,168,76,.25);box-shadow:0 8px 32px rgba(0,0,0,.35);flex-shrink:0;animation:fadeUp .8s .2s ease both}
.hero-portrait-img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
/* Centered landing hero */
.hero-content-centered{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
.hero-text-centered{align-items:center;max-width:780px;min-width:0;width:100%}
.hero-text-centered .hero-desc{text-align:center;max-width:640px;width:100%}
.hero-badges{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-bottom:1.75rem;animation:fadeUp .8s ease both}
.hero-welcome{font-size:clamp(1rem,2vw,1.3rem);font-weight:400;color:rgba(255,255,255,.55);letter-spacing:.06em;text-transform:uppercase;margin-bottom:.3rem;animation:fadeUp .8s .1s ease both}
.hero-lab-name{font-family:var(--font-serif);font-weight:700;color:var(--white);line-height:1.1;letter-spacing:-.02em;margin-bottom:1.25rem;animation:fadeUp .8s .15s ease both;display:flex;flex-direction:column;align-items:center}
.lab-line-1{display:block;white-space:nowrap;font-size:min(3.2vw,2rem)}
.lab-line-2{display:block;font-size:min(3.2vw,2rem)}
.mobile-br{display:inline;line-height:0;font-size:0}
.hero-lab-name em{color:var(--gold);font-style:normal}
/* Scroll indicator */
.hero-scroll-indicator{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.4rem;color:rgba(255,255,255,.4);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;transition:color .3s;z-index:2;animation:fadeUp 1s 1s ease both}
.hero-scroll-indicator:hover{color:var(--gold)}
.scroll-arrow{font-size:1.1rem;animation:scrollBounce 1.8s ease-in-out infinite}
@keyframes scrollBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;padding:.75rem 1.75rem;border-radius:var(--radius-sm);border:1.5px solid transparent;cursor:pointer;transition:var(--transition);letter-spacing:.03em}
.btn-primary{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.btn-primary:hover{background:var(--gold-light);border-color:var(--gold-light);transform:translateY(-1px);box-shadow:0 8px 24px rgba(201,168,76,.35)}
.btn-ghost{background:transparent;color:rgba(255,255,255,.8);border-color:rgba(255,255,255,.25)}
.btn-ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.4);color:var(--white)}
.btn-outline{background:transparent;color:var(--navy);border-color:var(--navy)}
.btn-outline:hover{background:var(--navy);color:var(--white)}
.btn-sm{font-size:.8rem;padding:.5rem 1.25rem}

/* ── STATS BAR ── */
.stats-bar{background:var(--navy-mid);border-top:1px solid rgba(201,168,76,.15);border-bottom:1px solid rgba(201,168,76,.15)}
.stats-container{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;align-items:stretch;justify-content:center}
.stat-item{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:1.5rem 2.5rem;text-align:center}
.stat-number{font-family:var(--font-serif);font-size:1.6rem;font-weight:700;color:var(--gold);line-height:1}
.stat-label{font-size:.75rem;color:rgba(255,255,255,.5);letter-spacing:.08em;text-transform:uppercase}
.stat-divider{width:1px;background:rgba(201,168,76,.15);margin:1.5rem 0;align-self:stretch}

/* ── SECTIONS ── */
.section{padding:5rem 0}
.section-alt{background:var(--off-white)}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}
.section-header{text-align:center;margin-bottom:3rem}
.section-header.section-header-left{text-align:left}
.section-header.section-header-left .section-desc{margin:0}
.section-title-row{display:flex;align-items:center;gap:1rem}
.edit-inline-btn{font-size:.75rem;font-weight:600;padding:.3rem .75rem;border-radius:100px;border:1px solid rgba(201,168,76,.4);background:transparent;color:var(--gold);cursor:pointer;transition:all .2s;white-space:nowrap}
.edit-inline-btn:hover,.edit-inline-btn.active{background:var(--gold);color:var(--navy)}
#piBio[contenteditable="true"]{outline:2px dashed var(--gold);border-radius:6px;padding:.5rem;cursor:text}
.member-card .reorder-btns{display:none;position:absolute;top:4px;right:4px;flex-direction:column;gap:2px}
.team-reorder-mode .member-card{position:relative}
.team-reorder-mode .member-card .reorder-btns{display:flex}
.reorder-btn{width:20px;height:20px;border:none;border-radius:3px;background:rgba(201,168,76,.15);color:var(--gold);cursor:pointer;font-size:.7rem;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
.reorder-btn:hover{background:var(--gold);color:var(--navy)}
.edit-save-bar{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:var(--navy);border:1px solid var(--gold);border-radius:100px;padding:.6rem 1.5rem;display:flex;align-items:center;gap:1rem;z-index:9999;box-shadow:0 4px 20px rgba(0,0,0,.3);font-size:.85rem;color:var(--white)}
.edit-save-bar .save-btn{background:var(--gold);color:var(--navy);border:none;border-radius:100px;padding:.4rem 1.2rem;font-weight:600;cursor:pointer;font-size:.8rem}
.edit-save-bar .cancel-btn{background:transparent;color:rgba(255,255,255,.6);border:none;cursor:pointer;font-size:.8rem}
.section-label{display:inline-block;font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);background:rgba(201,168,76,.08);border:1px solid rgba(201,168,76,.2);padding:.35rem 1rem;border-radius:100px;margin-bottom:1rem}
.section-label-lg{font-size:1rem;letter-spacing:.06em;padding:.5rem 1.4rem;margin-bottom:.5rem}
.section-title{font-family:var(--font-serif);font-size:clamp(1.5rem,2.5vw,2.2rem);font-weight:700;color:var(--navy);line-height:1.2;margin-bottom:.75rem}
.section-desc{max-width:560px;margin:0 auto;color:var(--gray-600);font-size:1rem;line-height:1.75}
.section-desc a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}

/* ── ABOUT ── */
.about-grid{display:grid;grid-template-columns:220px 1fr;gap:3.5rem;align-items:start}
.portrait-frame{aspect-ratio:3/4;background:linear-gradient(135deg,var(--navy-mid),var(--navy-light));border-radius:var(--radius);overflow:hidden;border:1px solid rgba(201,168,76,.2);box-shadow:var(--shadow-lg);position:relative}
.portrait-frame::before{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 70%,rgba(10,22,40,.35));pointer-events:none;z-index:1}
.portrait-photo{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform .5s ease}
.portrait-frame:hover .portrait-photo{transform:scale(1.03)}
.portrait-name-overlay{position:absolute;bottom:0;left:0;right:0;z-index:2;background:linear-gradient(to top,rgba(10,22,40,.75) 0%,transparent 100%);padding:.75rem 1rem .6rem;color:#fff;font-size:1.05rem;font-weight:600;letter-spacing:.04em;text-align:center}
.portrait-affiliations{margin-top:1.5rem;display:flex;flex-direction:column;gap:.35rem}
.affil-item{display:flex;align-items:flex-start;gap:.75rem;font-size:.82rem;color:var(--gray-600)}
.affil-dot{width:6px;height:6px;background:var(--gold);border-radius:50%;margin-top:.55rem;flex-shrink:0}
.affil-role{font-weight:600;color:var(--navy);display:block;line-height:1.3}
.affil-sep{color:var(--gray-400);margin:0 .1rem}
.affil-inst{color:var(--gray-600);display:block;line-height:1.25;font-size:.78rem;margin-top:.05rem}
.about-lead{font-family:var(--font-serif);font-size:.92rem;color:var(--navy);line-height:1.75;margin-bottom:1.5rem}
.about-info-grid{margin-top:2rem;display:flex;flex-direction:column;gap:1rem}
.info-card{display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.25rem;background:var(--gray-50);border-radius:var(--radius-sm);border:1px solid var(--gray-200);transition:var(--transition)}
.info-card:hover{border-color:rgba(201,168,76,.3);box-shadow:var(--shadow-sm)}
.info-icon{font-size:1.1rem;color:var(--gold);line-height:1.4;flex-shrink:0}
.info-label{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gray-400);margin-bottom:.2rem}
.info-value{font-size:.9rem;color:var(--navy);font-weight:500}
a.info-value:hover{color:var(--accent);text-decoration:underline}

/* ── RESEARCH ── */
.research-overview-block{background:var(--white);border:1px solid var(--gray-200);border-left:4px solid var(--gold);border-radius:var(--radius-sm);padding:1.5rem 2rem;margin-bottom:2.5rem}
.research-block-title{font-family:var(--font-serif);font-size:1.25rem;font-weight:700;color:var(--navy);margin-bottom:.75rem}
.research-topics-label{margin-bottom:1.25rem;margin-top:.5rem}
.research-overview-text{color:var(--gray-600);line-height:1.85;font-size:.95rem}
.research-topics{display:flex;flex-direction:column;gap:1.75rem}
.research-topic{display:grid;grid-template-columns:40px 1fr;gap:1.25rem;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:1.5rem 1.75rem;transition:var(--transition)}
.research-topic:hover{border-color:rgba(201,168,76,.4);box-shadow:var(--shadow-sm)}
.research-topic-num{width:36px;height:36px;background:var(--navy);color:var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-weight:700;font-size:1rem;flex-shrink:0;margin-top:.15rem}
.research-topic-title{font-family:var(--font-serif);font-size:1.05rem;font-weight:700;color:var(--navy);margin-bottom:.6rem}
.research-topic-body p{color:var(--gray-600);font-size:.9rem;line-height:1.9}
.topic-lead{color:var(--navy);font-weight:600}
.citation{color:var(--accent);font-size:.85em;font-weight:500}

/* ── PUBLICATIONS ── */
.pub-filter{display:flex;gap:.5rem;justify-content:center;margin-bottom:2.5rem;flex-wrap:wrap}
.pub-filter-btn{font-size:.8rem;font-weight:500;padding:.45rem 1.1rem;border-radius:100px;border:1.5px solid var(--gray-200);background:none;color:var(--gray-600);cursor:pointer;transition:var(--transition)}
.pub-filter-btn:hover,.pub-filter-btn.active{background:var(--navy);border-color:var(--navy);color:var(--white)}
.pub-list{display:flex;flex-direction:column;border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden}
.pub-item{display:grid;grid-template-columns:80px 1fr;border-bottom:1px solid var(--gray-200);transition:background var(--transition)}
.pub-item:last-child{border-bottom:none}
.pub-item:hover{background:var(--gray-50)}
.pub-item.hidden{display:none}
.pub-year{display:flex;align-items:flex-start;justify-content:center;padding:1.75rem .75rem;font-family:var(--font-mono);font-size:.8rem;font-weight:500;color:var(--gold);background:var(--navy);border-right:1px solid rgba(201,168,76,.15)}
.pub-content{padding:1.5rem 2rem}
.pub-badge{display:inline-block;font-size:.7rem;font-weight:600;letter-spacing:.06em;color:var(--accent);text-transform:uppercase;margin-bottom:.5rem}
.pub-title{font-family:var(--font-serif);font-size:1rem;font-weight:600;color:var(--navy);line-height:1.5;margin-bottom:.4rem}
.pub-authors{font-size:.82rem;color:var(--gray-600);margin-bottom:.75rem}
.pub-links{display:flex;gap:.5rem;flex-wrap:wrap}
.pub-link{font-size:.72rem;font-weight:600;padding:.2rem .6rem;border-radius:var(--radius-sm);border:1px solid var(--gray-200);color:var(--gray-600);transition:var(--transition);letter-spacing:.04em}
.pub-link:hover{border-color:var(--navy);color:var(--navy)}
.pub-link.highlight{background:rgba(201,168,76,.1);border-color:rgba(201,168,76,.3);color:var(--gold)}
.pub-more{text-align:center;margin-top:2.5rem}

/* ── GRANTS ── */
.grants-table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--gray-200)}
.grants-table{width:100%;border-collapse:collapse;font-size:.9rem}
.grants-table th{background:var(--navy);color:rgba(255,255,255,.75);font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.875rem 1.25rem;text-align:left;white-space:nowrap}
.grants-table td{padding:.875rem 1.25rem;border-bottom:1px solid var(--gray-200);vertical-align:top}
.grants-table tr:last-child td{border-bottom:none}
.grants-table tr:hover td{background:var(--gray-50)}
.grant-year{font-family:var(--font-mono);font-size:.8rem;color:var(--gold);font-weight:500;white-space:nowrap}
.grant-source{font-weight:600;color:var(--navy);font-size:.85rem;white-space:nowrap;padding-right:.5rem}
.grant-title{color:var(--gray-600);line-height:1.55}
.grant-num{font-family:var(--font-mono);font-size:.72rem;color:var(--gray-400);margin-left:.5rem}
.grant-amount{font-weight:700;color:var(--navy);white-space:nowrap;text-align:right}

/* ── AWARDS ── */
.awards-list{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;max-width:900px;margin:0 auto}
.award-item{display:flex;align-items:flex-start;gap:1.25rem;padding:1rem 1.25rem;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-sm);transition:var(--transition)}
.award-item:hover{border-color:rgba(201,168,76,.3);box-shadow:var(--shadow-sm)}
.award-year{font-family:var(--font-mono);font-size:.8rem;font-weight:600;color:var(--gold);white-space:nowrap;padding-top:.1rem}
.award-text{font-size:.875rem;color:var(--gray-700);line-height:1.5}

/* ── TEAM ── */
.team-pi{margin-bottom:2rem}
.team-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:2rem;transition:var(--transition)}
.team-card:hover{box-shadow:var(--shadow);border-color:rgba(201,168,76,.3)}
.team-card-pi{display:flex;gap:2rem;align-items:center;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);border-color:rgba(201,168,76,.2)}
.team-avatar{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-light));display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:1.25rem;font-weight:700;color:var(--navy);flex-shrink:0;letter-spacing:.05em}
.team-card-pi .team-avatar{width:160px;height:160px}
.team-avatar-photo{background:none;overflow:hidden;border:3px solid var(--gold);box-shadow:0 0 0 4px rgba(201,168,76,.2)}
.team-avatar-photo img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.team-card-pi .team-info h3{font-family:var(--font-serif);font-size:1.4rem;color:var(--white);margin-bottom:.35rem}
.name-zh{color:var(--gold-light);font-size:1rem;font-weight:400;margin-left:.5rem}
.team-role{font-size:.8rem;color:rgba(255,255,255,.5);letter-spacing:.06em;text-transform:uppercase;margin-bottom:.75rem}
.team-links a{font-size:.85rem;color:var(--gold-light);transition:var(--transition)}
.team-links a:hover{color:var(--gold)}

.team-category{margin-top:2rem;border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden;background:var(--white);transition:var(--transition)}
.team-category:hover{box-shadow:var(--shadow-sm)}
.team-category-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;background:linear-gradient(90deg,var(--navy) 0%,var(--navy-light) 100%);border-bottom:2px solid rgba(201,168,76,.3)}
.team-cat-label{font-size:.65rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);background:rgba(201,168,76,.12);border:1px solid rgba(201,168,76,.25);padding:.25rem .75rem;border-radius:100px;white-space:nowrap}
.team-cat-title{font-family:var(--font-serif);font-size:1.15rem;font-weight:600;color:var(--white)}
.team-members-grid{display:flex;flex-wrap:wrap;gap:1.25rem;padding:1.5rem}
.member-card{display:flex;flex-direction:column;align-items:center;gap:.4rem;width:190px;text-align:center}
.member-photo-wrap{width:136px;height:136px;border-radius:50%;overflow:hidden;border:2px solid var(--gray-200);flex-shrink:0;transition:border-color var(--transition),transform var(--transition)}
.member-card:hover .member-photo-wrap{border-color:var(--gold);transform:scale(1.05)}
.member-photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.member-photo-placeholder{background:linear-gradient(135deg,var(--navy-mid),var(--navy-light));display:flex;align-items:center;justify-content:center;font-family:var(--font-serif);font-size:1.75rem;font-weight:700;color:var(--gold-light)}
.member-name-primary{font-size:1rem;font-weight:700;color:var(--navy);line-height:1.4;margin-top:.28rem}
.member-role{font-size:.82rem;color:var(--gray-400);letter-spacing:.02em;line-height:1.4;margin-top:.15rem}
.member-track{font-size:.76rem;color:var(--gray-400);letter-spacing:.03em;display:inline-block;margin-top:.1rem}
.member-affil{margin-top:.22rem}
.member-affil-line{font-size:.78rem;color:var(--gray-500);line-height:1.45;letter-spacing:.01em}
.member-direction{font-size:.78rem;color:var(--gold);font-style:normal;line-height:1.45;margin-top:.22rem;letter-spacing:.01em}
.alumni-section{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--gray-200)}
.alumni-title{font-family:var(--font-serif);font-size:1.15rem;font-weight:700;color:var(--navy);margin-bottom:1rem}
.alumni-table{width:100%;border-collapse:collapse;font-size:.875rem}
.alumni-table th{background:var(--navy);color:var(--gold-light);font-weight:600;padding:.6rem 1rem;text-align:left;font-size:.8rem;letter-spacing:.04em}
.alumni-table td{padding:.55rem 1rem;border-bottom:1px solid var(--gray-100);color:var(--gray-700);vertical-align:top;line-height:1.5}
.alumni-table tr:last-child td{border-bottom:none}
.alumni-table tr:hover td{background:var(--gray-100)}
.alumni-table td:first-child{font-weight:600;color:var(--navy);white-space:nowrap}
.team-join{margin-top:2.5rem}
.join-card{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);border-radius:var(--radius);padding:3rem;text-align:center;border:1px solid rgba(201,168,76,.2)}
.join-card h3{font-family:var(--font-serif);font-size:1.75rem;color:var(--white);margin-bottom:1rem}
.join-card p{color:rgba(255,255,255,.65);max-width:520px;margin:0 auto 2rem;line-height:1.75}

/* ── GALLERY ── */
.gallery-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  grid-template-rows:auto;
  gap:1rem;
  align-items:start
}
.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  background:var(--gray-100);
  box-shadow:0 4px 20px rgba(0,0,0,.08)
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease
}
.gallery-item:hover img{transform:scale(1.04)}
.gallery-item--wide{aspect-ratio:4/3}
.gallery-item--tall{aspect-ratio:3/4}
.gallery-caption{
  position:absolute;
  bottom:0;left:0;right:0;
  padding:.6rem 1rem;
  background:linear-gradient(transparent,rgba(0,0,0,.45));
  color:rgba(255,255,255,.9);
  font-size:.78rem;
  letter-spacing:.04em;
  opacity:0;
  transition:opacity .3s
}
.gallery-item:hover .gallery-caption{opacity:1}
.admin-mode .gallery-caption{opacity:1;cursor:text;outline:1px dashed rgba(201,168,76,.4)}
.gallery-del-btn{position:absolute;top:.5rem;right:.5rem;width:28px;height:28px;border-radius:50%;border:none;background:rgba(220,50,50,.85);color:#fff;font-size:1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;z-index:3}
.gallery-item:hover .gallery-del-btn{opacity:1}
.gallery-item--add{aspect-ratio:1;border:2px dashed rgba(201,168,76,.35);background:rgba(201,168,76,.04);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:14px;transition:all .3s}
.gallery-item--add:hover{border-color:var(--gold);background:rgba(201,168,76,.1)}
.gallery-add-inner{display:flex;flex-direction:column;align-items:center;gap:.5rem;color:rgba(201,168,76,.7);font-size:.85rem}
.gallery-add-icon{font-size:2rem;line-height:1;color:var(--gold)}

/* ── NEWS ── */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.news-item{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:1.75rem;display:flex;flex-direction:column;gap:.5rem;transition:var(--transition);position:relative;overflow:hidden}
.news-item::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold-light));transform:scaleX(0);transform-origin:left;transition:transform var(--transition)}
.news-item:hover{box-shadow:var(--shadow);border-color:rgba(201,168,76,.25);transform:translateY(-3px)}
.news-item:hover::after{transform:scaleX(1)}
.news-item.featured{grid-column:span 2;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 100%);border-color:rgba(201,168,76,.2)}
.news-item.featured .news-date{color:rgba(255,255,255,.4)}
.news-item.featured .news-tag{background:rgba(201,168,76,.15);color:var(--gold-light);border-color:rgba(201,168,76,.3)}
.news-item.featured h4{color:var(--white)}
.news-date{font-family:var(--font-mono);font-size:.72rem;color:var(--gray-400);letter-spacing:.06em}
.news-tag{display:inline-block;font-size:.65rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--navy);background:rgba(10,22,40,.06);border:1px solid rgba(10,22,40,.1);padding:.2rem .6rem;border-radius:100px;width:fit-content;border-color:color-mix(in srgb,var(--tag-color,#666) 30%,transparent);color:var(--tag-color,#666);background:color-mix(in srgb,var(--tag-color,#666) 8%,transparent)}
.news-item h4{font-family:var(--font-serif);font-size:1rem;color:var(--navy);line-height:1.5}

/* ── CONTACT ── */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.contact-info h3{font-family:var(--font-serif);font-size:1.4rem;color:var(--navy);margin-bottom:.75rem}
.contact-info>p{color:var(--gray-600);margin-bottom:2rem;line-height:1.75}
.contact-items{display:flex;flex-direction:column;gap:1.25rem}
.contact-item{display:flex;align-items:flex-start;gap:1rem}
.contact-icon{width:40px;height:40px;background:var(--navy);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.contact-icon svg{width:18px;height:18px;color:var(--gold)}
.contact-label{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gray-400);margin-bottom:.2rem}
.contact-value{font-size:.9rem;color:var(--navy);line-height:1.6}
a.contact-value:hover{color:var(--accent);text-decoration:underline}
.map-placeholder{background:linear-gradient(135deg,var(--navy-mid),var(--navy));border-radius:var(--radius);overflow:hidden;border:1px solid rgba(201,168,76,.2);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.map-inner{text-align:center;color:rgba(255,255,255,.6);display:flex;flex-direction:column;align-items:center;gap:1rem}
.map-inner svg{color:var(--gold);opacity:.7}
.map-inner p{font-size:.875rem;line-height:1.6}
.map-inner .btn-outline{color:var(--gold);border-color:rgba(201,168,76,.4);font-size:.8rem}
.map-inner .btn-outline:hover{background:var(--gold);color:var(--navy)}

/* ── FOOTER ── */
.footer{background:var(--navy);border-top:1px solid rgba(201,168,76,.15)}
.footer-container{max-width:1200px;margin:0 auto;padding:4rem 2rem 2rem;display:flex;gap:4rem;justify-content:space-between}
.footer-logo{font-family:var(--font-serif);font-size:1.5rem;font-weight:700;color:var(--gold);margin-bottom:.75rem}
.footer-tagline{font-size:.8rem;color:rgba(255,255,255,.4);line-height:1.7}
.footer-links{display:flex;gap:4rem}
.footer-col{display:flex;flex-direction:column;gap:.6rem}
.footer-col-title{font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:.25rem}
.footer-col a{font-size:.85rem;color:rgba(255,255,255,.5);transition:var(--transition)}
.footer-col a:hover{color:rgba(255,255,255,.9)}
.footer-bottom{max-width:1200px;margin:0 auto;padding:1.5rem 2rem;border-top:1px solid rgba(255,255,255,.07);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}
.footer-bottom p{font-size:.78rem;color:rgba(255,255,255,.3)}
.footer-credit a{color:rgba(255,255,255,.4);transition:var(--transition)}
.footer-credit a:hover{color:var(--gold)}

/* ── ANIMATIONS ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes scrollPulse{0%,100%{transform:scaleY(1);opacity:.6}50%{transform:scaleY(.6);opacity:1}}
.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .about-grid{grid-template-columns:200px 1fr;gap:2.5rem}
  .research-bullets{grid-template-columns:repeat(2,1fr)}
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .news-item.featured{grid-column:span 2}
  .stat-item{padding:1.25rem 2rem}
  .awards-list{grid-template-columns:1fr}
  .hero-content{grid-template-columns:1fr 160px;gap:2rem}
  .hero-portrait-wrap{width:150px;height:190px}
}
@media(max-width:768px){
  #mobileMenu{
    display:flex;
    visibility:hidden;opacity:0;pointer-events:none;
    transform:translateY(-18px) scale(.98);
    transition:opacity .32s ease,transform .32s cubic-bezier(.4,0,.2,1),visibility 0s linear .32s;
    position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999;
    background:#0a1628;
    flex-direction:column;align-items:center;justify-content:center;
    gap:1.75rem;padding:2rem
  }
  #mobileMenu.open{
    visibility:visible;opacity:1;pointer-events:auto;
    transform:translateY(0) scale(1);
    transition:opacity .32s ease,transform .32s cubic-bezier(.4,0,.2,1),visibility 0s linear 0s
  }
  #mobileMenu a{
    color:rgba(255,255,255,.85);font-size:1.2rem;font-weight:500;letter-spacing:.03em;
    text-decoration:none;
    opacity:0;transform:translateY(10px);
    transition:color .15s,transform .2s ease,opacity .2s ease
  }
  #mobileMenu.open a{opacity:1;transform:translateY(0)}
  #mobileMenu.open a:nth-child(1){transition-delay:.05s}
  #mobileMenu.open a:nth-child(2){transition-delay:.09s}
  #mobileMenu.open a:nth-child(3){transition-delay:.13s}
  #mobileMenu.open a:nth-child(4){transition-delay:.17s}
  #mobileMenu.open a:nth-child(5){transition-delay:.21s}
  #mobileMenu.open a:nth-child(6){transition-delay:.25s}
  #mobileMenu.open a:nth-child(7){transition-delay:.29s}
  #mobileMenu.open a:nth-child(8){transition-delay:.33s}
  #mobileMenu.open a:nth-child(9){transition-delay:.37s}
  #mobileMenu a:hover,#mobileMenu a:active{color:var(--gold-light);transform:translateX(4px)}
  #mobileMenu .mob-cta{color:var(--gold);border:1px solid rgba(201,168,76,.5);padding:.5rem 1.4rem;border-radius:100px;margin-top:.5rem}
  .mobile-close-btn{
    display:flex;align-items:center;justify-content:center;
    position:absolute;top:1.1rem;right:1.1rem;
    width:40px;height:40px;
    background:none;border:1px solid rgba(255,255,255,.15);border-radius:50%;
    color:rgba(255,255,255,.6);font-size:1.1rem;cursor:pointer;
    transition:color .2s,background .2s,border-color .2s
  }
  .mobile-close-btn:hover{color:var(--gold);background:rgba(255,255,255,.06);border-color:rgba(201,168,76,.4)}
  .nav-links{display:none !important}
  .hamburger{display:flex}
  .hero{min-height:100svh}
  .hero-content{grid-template-columns:minmax(0,1fr);padding:2rem 1.25rem 6rem}
  .lab-line-1{font-size:min(7vw,2rem);white-space:normal;text-align:center}
  .lab-line-2{font-size:min(7vw,2rem)}
  .mobile-br{display:block;height:0}
  .hero-portrait-wrap{display:none}
  .hero-tags{flex-wrap:wrap;overflow-x:visible;justify-content:center;max-height:none}
  .hero-tags span{flex-shrink:1}
  .hero-badges{flex-direction:column;gap:.4rem}
  .hero-badge,.hero-badge-2{font-size:.62rem}
  .about-grid{grid-template-columns:1fr;gap:2rem}
  .portrait-frame{max-width:200px}
  .research-bullets{grid-template-columns:1fr;max-width:100%}
  .grants-table th:nth-child(3),.grants-table td:nth-child(3){display:none}
  .news-grid{grid-template-columns:1fr}
  .news-item.featured{grid-column:span 1}
  .gallery-grid{grid-template-columns:1fr}
  .gallery-item--wide,.gallery-item--tall{aspect-ratio:4/3}
  .contact-grid{grid-template-columns:1fr}
  .stats-container{flex-wrap:wrap}
  .stat-divider{display:none}
  .stat-item{flex:1 1 120px;padding:1.25rem 1rem}
  .footer-container{flex-direction:column;gap:2rem}
  .footer-links{flex-direction:column;gap:2rem}
  .footer-bottom{flex-direction:column;text-align:center}
  .section{padding:4rem 0}
}
@media(max-width:480px){
  .hero-actions{flex-direction:column}
  .btn{text-align:center;justify-content:center}
  .grants-table th:nth-child(4),.grants-table td:nth-child(4){display:none}
  .team-card-pi{flex-direction:column;align-items:center;text-align:center}
  .team-card-pi .team-links{justify-content:center;display:flex}
  .team-card-pi .team-info h3{text-align:center}
  .team-members-grid{justify-content:center}
  .award-item{flex-direction:column;gap:.25rem}
  .container{padding:0 1rem}
  .section{padding:3rem 0}
}
