*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d2d2d;
  background: #fff;
}
a { color: #1a56a0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── IDENTITY BAR ── */
#identity-bar {
  background-color: rgba(233, 236, 239, 1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 0 2rem;
}
.identity-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.identity-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.identity-raise-logo {
  height: 38px;
  width: auto;
}
#identity-bar nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
#identity-bar nav ul li { margin: 0; padding: 0; }
#identity-bar nav ul li a {
  color: #333;
  font-size: .8rem;
  font-weight: 500;
  padding: 0 .8rem;
  display: flex;
  align-items: center;
  height: 60px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
#identity-bar nav ul li a:hover {
  color: #1a3a6b;
  background: rgba(26,58,107,.08);
  text-decoration: none;
}

/* ── HERO ── */
#hero {
  background: #8DB9CD;
  padding: 3rem 2rem;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.hero-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.hero-text .hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #102C53;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
  line-height: 1.25;
}
.hero-text .dept {
  font-size: .86rem;
  font-weight: 500;
  color: rgba(16, 44, 83, 0.75);
  margin-bottom: .4rem;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: .32rem .8rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  transition: background .2s;
}
.hero-links a:hover {
  background: rgba(255,255,255,.38);
  text-decoration: none;
}

/* ── SECTIONS ── */
section.content-section {
  padding: 3.2rem 2rem;
  background: #fff;
}
#research, #staff {
  background-color: rgba(141, 185, 205, 0.2);
}
.section-inner {
  max-width: 860px;
  margin: 0 auto;
}
h2 {
  color: #102C53;
  border-left: 2px solid #102C53;
  padding: 0.3rem 0.8rem;
  font-size: 14px;
  margin: 0 0 1.6rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: block;
}
h3 {
  font-size: .97rem;
  font-weight: 700;
  color: #1a3a6b;
  margin: 1.4rem 0 .45rem;
}
p { margin-bottom: .85rem; }
ul { padding-left: 1.4rem; margin-bottom: .85rem; }
li { margin-bottom: .3rem; }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: center;
}
.about-group-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
@media (max-width: 680px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-group-photo {
    max-width: 100%;
  }
}

/* ── RESEARCH TOPIC CARDS ── */
.research-area {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.research-area h3 { margin-top: 0; font-size: .95rem; }
.research-area p { font-size: .88rem; color: #444; margin-bottom: .35rem; }
.research-area .contacts {
  font-size: .78rem;
  color: #666;
  font-style: italic;
}

/* ── PROJECTS ── */
.project-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1a3a6b;
  font-size: .7rem;
  font-weight: 700;
  padding: .14rem .5rem;
  border-radius: 10px;
  margin-right: .35rem;
  vertical-align: middle;
}
.project-list { list-style: none; padding-left: 0; }
.project-list li {
  margin-bottom: .55rem;
  font-size: .9rem;
  padding-left: 0;
}
.project-list li a.proj-link {
  margin-left: .25rem;
  font-size: .75rem;
  color: #2563a8;
  opacity: .7;
  vertical-align: middle;
}
.project-list li a.proj-link:hover { opacity: 1; }

/* ── STAFF GRID ── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.staff-card {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.staff-card:hover {
  box-shadow: 0 6px 20px rgba(16,44,83,.13);
  transform: translateY(-3px);
}
.staff-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
}
.staff-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(141, 185, 205, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #102C53;
  letter-spacing: -.02em;
}
.staff-card-body {
  padding: .7rem .9rem .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.staff-name {
  font-weight: 700;
  font-size: .9rem;
  color: #102C53;
  margin-bottom: .12rem;
  line-height: 1.3;
}
.staff-role {
  font-size: .72rem;
  color: #666;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.staff-links {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.staff-links a img {
  width: 22px;
  height: 22px;
  opacity: .65;
  transition: opacity .15s;
  display: block;
}
.staff-links a:hover img { opacity: 1; }

/* ── FOOTER ── */
footer {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #102C53;
}
.footer-top {
  background: #102C53;
  padding: 1.5rem 0;
}
.footer-top .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.footer-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-logo .logo-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.35);
}
.footer-logo .deib-text {
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}
.footer-social ul {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0;
}
.footer-social ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.footer-social ul li a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .hero-top { flex-direction: column; align-items: center; text-align: center; }
  .hero-raise-logo { max-width: 260px; }
  .hero-links { justify-content: center; }
  #identity-bar nav ul li a { padding: 0 .45rem; font-size: .73rem; }
  .identity-name span { display: none; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-top .container { flex-direction: column; align-items: flex-start; }
}
