@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #272b33;
  --muted: #68717d;
  --line: #e6eaf0;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --accent: #2f78d6;
  --accent-deep: #1f5fb5;
  --footer: #202a31;
  --shadow: 0 18px 42px rgba(22, 34, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(23, 32, 42, 0.04);
}

.topbar {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 42px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.brand {
  font-size: 54px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.ircbc-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ircbc-logo-link img {
  width: auto;
  height: 54px;
  display: block;
}

.ircbc-logo-link:hover {
  opacity: 0.82;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 18px;
}

nav a {
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
  padding: 8px 5px;
  border: 3px solid transparent;
  border-radius: 5px;
}

nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #26343a;
}

.page-title-inner,
main {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 38, 44, 0.88) 0%, rgba(25, 38, 44, 0.74) 48%, rgba(25, 38, 44, 0.62) 100%),
    rgba(18, 33, 39, 0.5);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 92px 42px 104px;
}

.hero h1,
.page-title h1 {
  margin: 0 0 32px;
  max-width: 920px;
  font-size: clamp(48px, 6.1vw, 86px);
  line-height: 1.18;
  font-weight: 800;
  color: #ffffff;
}

.tagline {
  margin: 0 0 34px;
  max-width: 920px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.hero-socials {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.hero-socials a {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1d2d35;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(8, 20, 26, 0.18);
}

.hero-socials a:hover {
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.feature-note {
  border-top: 4px solid var(--accent);
  padding-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.page-title-inner {
  padding: 54px 28px;
}

main {
  padding: 42px 28px 74px;
}

section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.essay {
  max-width: 900px;
}

.essay p {
  color: var(--muted);
  font-size: 18px;
}

.question-list {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 18px;
}

.question-list li {
  margin-bottom: 12px;
}

.research-photo {
  margin: 38px 0 0;
}

.research-photo img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
}

.gallery-item {
  border-top: 3px solid var(--line);
  padding-top: 18px;
}

.gallery-item img,
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.gallery-item img {
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}
.research-item,
.simple-item {
  padding-top: 18px;
  border-top: 3px solid var(--line);
}

.research-item p,
.simple-item p,
.muted,
.contact-list {
  color: var(--muted);
}

.publication-list {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--muted);
}

.publication-list li {
  margin-bottom: 16px;
}

.publication-list em {
  color: var(--ink);
}

.person {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.member-frame {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.member-frame:last-child {
  border-bottom: 1px solid var(--line);
}

.member-photo,
.member-photo-placeholder {
  width: 190px;
  aspect-ratio: 1 / 1;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.member-photo {
  object-fit: cover;
}

.member-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}

.member-info p:last-child {
  margin-bottom: 0;
}

.profile-photo {
  width: 230px;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.role {
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.map-frame {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 28px;
  padding: 54px 28px;
  background:
    linear-gradient(135deg, rgba(47, 120, 214, 0.08), rgba(32, 42, 49, 0.07)),
    var(--soft);
}

.map-card {
  max-width: 1120px;
  min-height: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.map-visual {
  position: relative;
  min-height: 420px;
  background: #eef4fb;
}

.amap-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(47, 120, 214, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(47, 120, 214, 0.11) 1px, transparent 1px),
    linear-gradient(135deg, #eef4fb, #f9fbfe);
  background-size: 48px 48px, 48px 48px, auto;
  font-weight: 700;
}

.map-fallback.is-hidden {
  display: none;
}

.map-copy {
  padding: 54px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.map-copy p {
  color: var(--muted);
  font-size: 18px;
}

.map-action {
  width: fit-content;
  margin-top: 10px;
  padding: 12px 18px;
  border: 3px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-weight: 700;
}

.map-action:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.site-footer {
  background: var(--footer);
  color: #ffffff;
  margin-top: 0;
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 24px;
  }

  .brand-group {
    gap: 12px;
  }

  .brand {
    font-size: 40px;
  }

  .ircbc-logo-link img {
    height: 40px;
  }

  nav {
    justify-content: flex-start;
    gap: 10px 14px;
    font-size: 16px;
  }

  .gallery-grid,
  .research-grid,
  .member-frame,
  .person {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding: 76px 24px 86px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .profile-photo {
    width: 100%;
    max-width: 280px;
  }

  .member-photo,
  .member-photo-placeholder {
    width: 100%;
    max-width: 240px;
  }

  .map-frame {
    padding: 32px 24px;
  }

  .map-card {
    grid-template-columns: 1fr;
  }

  .map-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 34px 28px;
  }

  .map-visual {
    min-height: 300px;
  }
}
