/* V5 visual refinement: research pages, homepage hero, people */

/* ---------- Research page title contrast ---------- */
.research-page .area-hero,
.research-landing .research-hero { isolation:isolate; }
.research-page .area-copy h1,
.research-page .area-copy h1 em,
.research-landing .research-hero h1,
.research-landing .research-hero h1 em {
  position:relative;
  z-index:5;
  color:#ffffff !important;
  text-shadow:0 2px 24px rgba(0,0,0,.28);
}
.research-page .area-copy h1 em,
.research-landing .research-hero h1 em { color:#76e8e0 !important; }
.research-page .area-copy { position:relative; z-index:4; }
.research-page .area-hero:before,
.research-landing .research-hero:before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(90deg,rgba(5,16,31,.97) 0%,rgba(7,20,38,.92) 46%,rgba(7,20,38,.48) 100%);
}
.research-page .area-hero-grid,
.research-landing .research-hero-grid { position:relative; z-index:2; }

/* ---------- Homepage hero: quieter, editorial network panel ---------- */
.home-hero .hero-visual { display:flex; align-items:center; justify-content:center; }
.home-hero .network-panel {
  position:relative; width:min(570px,100%); height:390px;
  border:1px solid rgba(255,255,255,.13); border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  box-shadow:0 30px 80px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
}
.home-hero .network-panel:before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 50% 48%,rgba(76,220,213,.10),transparent 42%);
}
.home-hero .network-panel-top {
  position:absolute; top:0; left:0; right:0; height:58px; padding:0 22px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:rgba(4,15,29,.30); backdrop-filter:blur(8px);
  font:700 11px/1 Manrope,sans-serif; letter-spacing:.13em; text-transform:uppercase;
  color:#aebdca;
}
.home-hero .network-panel-top:before {
  content:"Network topology"; color:#79e4de; margin-right:auto;
}
.home-hero .network-panel-top span:first-child { display:none; }
.home-hero .network-panel-top:after {
  content:"LIVE"; margin-left:auto; padding:7px 9px; border:1px solid rgba(118,232,224,.25);
  border-radius:999px; color:#9bece7; font-size:9px; letter-spacing:.12em;
}
.home-hero .network-panel .live-dot { display:none; }
.home-hero .network-panel-caption {
  position:absolute; left:22px; bottom:20px; z-index:3; display:flex; gap:8px; align-items:center;
  font-size:11px; color:#9fb0c0; letter-spacing:.04em;
}
.home-hero .network-panel-caption strong { color:#e8f0f5; font-weight:600; }
.home-hero .network-panel-caption strong:after { content:"  ·  "; color:#617487; }
.home-hero .network-panel-caption span { color:#7d91a3; }
.home-hero .hero-stat { background:rgba(7,22,39,.82); }

/* ---------- People: align legacy profile tiles with the new visual system ---------- */
#people {
  background:#f7f9fc !important; color:#26394d !important; padding:78px 24px 100px !important;
}
#people > .container { max-width:1240px; }
#people .page-section-heading {
  color:#091727 !important; font:800 clamp(42px,5vw,62px)/1 Manrope,sans-serif !important;
  letter-spacing:-.045em; margin-bottom:18px;
}
#people .divider-custom { display:none; }
#people .entry-content { background:transparent; }
#people .entry-content > section:first-of-type {
  background:#fff; border:1px solid #e3eaf0; border-radius:28px; padding:38px;
  box-shadow:0 16px 50px rgba(15,35,55,.07); margin-bottom:58px;
}
#people .entry-content > section:first-of-type img { border-radius:22px; }
#people .entry-content h3 strong,
#people .entry-content h4 strong { color:#10283e !important; }
#people .entry-content p { color:#607286; line-height:1.75; }
#people .entry-content a { color:#137f7a; }
#people .entry-content a:hover { color:#0b5f5b; }

/* Group heading strips */
#people .container > .row > div[style*="lightgray"] {
  grid-column:1/-1; width:auto !important; margin:42px 0 2px;
  background:transparent !important; border-radius:0 !important; border-bottom:1px solid #dfe7ed;
  font-size:1rem !important; line-height:1.3 !important; padding:0 0 12px;
}
#people .container > .row > div[style*="lightgray"] h2 {
  color:#091727 !important; padding:0 !important; margin:0 !important;
  font:800 25px/1.2 Manrope,sans-serif !important; letter-spacing:-.02em;
}

/* Every direct group row becomes a responsive card grid */
#people .container > .row {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px;
  margin-left:0; margin-right:0; align-items:stretch;
}
#people .container > .row:first-child { display:block; }
#people .container > .row > .col-md-2,
#people .container > .row > .col-md-3,
#people .container > .row > .col-md-4,
#people .container > .row > .col-md-6 {
  width:auto !important; max-width:none !important; padding:0 !important; margin:0 !important;
}
#people .profile-card {
  height:100%; background:#fff; border:1px solid #e1e8ee; border-radius:20px; overflow:hidden;
  box-shadow:0 10px 30px rgba(17,39,60,.055); transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
#people .profile-card:hover { transform:translateY(-5px); box-shadow:0 18px 42px rgba(17,39,60,.12); border-color:#b8d9d7; }
#people .profile-card figure { margin:0; }
#people .profile-card figure img {
  width:100% !important; height:210px; object-fit:cover; display:block; border-radius:0 !important;
  background:#eaf0f4;
}
#people .profile-card figcaption { padding:17px 17px 18px; text-align:left; }
#people .profile-card figcaption h3,
#people .profile-card figcaption .fig-title {
  color:#122a40 !important; font:700 16px/1.3 Manrope,sans-serif !important; margin:0 0 8px !important;
}
#people .profile-card figcaption b,
#people .profile-card figcaption strong { color:#758698 !important; font-size:11px; font-weight:600; }
#people .profile-card figcaption center { text-align:left; }

/* The PI card remains larger */
#people .entry-content > section:first-of-type .col-sm-4 img,
#people .entry-content > section:first-of-type .col-md-4 img { height:330px; width:100%; object-fit:cover; }

@media(max-width:1050px){
  #people .container > .row { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:780px){
  #people .container > .row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  #people .entry-content > section:first-of-type { padding:24px; }
}
@media(max-width:500px){
  #people .container > .row { grid-template-columns:1fr; }
  #people .profile-card figure img { height:250px; }
}
