:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #202020;
  --muted: #5d5d5d;
  --line: #dedede;
  --accent: #b5121b;
  --accent-dark: #7d0c13;
  --accent-soft: #f8e8e9;
  --gold: #c99700;
  --shadow: 0 12px 28px rgba(32, 32, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.institution-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 8px;
}

.cityu-mark img {
  display: block;
  width: clamp(145px, 16vw, 220px);
  height: auto;
}

.brand {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  width: 100%;
  background: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  font-size: 1.08rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  color: #ffffff;
  font-weight: 700;
}

.nav a:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(222, 222, 222, 0.8);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: 52px clamp(22px, 4vw, 56px);
  border-bottom: 5px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, #ffffff 0%, #fff8f8 45%, #f6e3e4 100%);
}

.hero-copy h1 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.bio {
  max-width: 900px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.profile-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait {
  display: block;
  width: min(100%, 190px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 22px;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}

.profile-panel h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  line-height: 1.16;
}

.profile-panel p {
  color: var(--muted);
}

.profile-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.profile-panel dl div {
  min-height: 112px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--bg);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.section {
  padding: 54px clamp(22px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact h2 {
  color: var(--accent);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

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

.feature-grid {
  grid-template-columns: 1fr;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.project-grid article,
.timeline article {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 0;
  background: var(--surface);
}

.feature-grid article {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) 1fr;
  gap: 24px;
  align-items: center;
  min-height: 112px;
  padding: 20px 26px;
}

.feature-grid article h3 {
  margin: 0;
}

.feature-grid article p {
  margin: 0;
}

.project-role {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  line-height: 1.25;
}

.subsection-title {
  margin: 30px 0 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.18rem;
}

article p,
.compact-list,
.media-section p {
  color: var(--muted);
}

.bio,
.lead,
.feature-grid article p,
.project-grid article p,
.timeline article p,
.publication-list li,
.compact-list li,
.media-section p,
.contact h2 {
  text-align: justify;
  text-justify: inter-word;
}

.publication-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 24px;
}

.publication-list li {
  padding: 0 0 18px 8px;
  border-bottom: 1px solid var(--line);
}

.doi-button {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.doi-button:hover {
  background: var(--accent);
  color: #ffffff;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.two-column > div {
  display: grid;
  grid-template-rows: auto 1fr;
}

.timeline {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
}

.timeline article {
  min-height: 210px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.output-list {
  margin-bottom: 10px;
}

.media-section {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.gallery-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 28px;
  align-items: end;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .institution-bar {
    align-items: center;
  }

  .hero,
  .two-column,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  main,
  .institution-bar,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    overflow-x: auto;
  }

  .nav-inner {
    width: max-content;
    min-width: 100%;
    padding: 0 14px;
  }

  .nav a {
    min-height: 40px;
    padding: 0 10px;
  }

  .hero {
    min-height: auto;
    padding: 46px 0;
  }

  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel dl {
    grid-template-columns: 1fr;
  }

  .media-section {
    padding: 24px;
  }
}
