:root {
  --bg: #071225;
  --bg-2: #0b1b32;
  --panel: rgba(18, 39, 67, 0.74);
  --panel-2: rgba(17, 54, 82, 0.7);
  --text: #f8fafc;
  --muted: #b6c2d4;
  --soft: #dbe7f7;
  --accent: #8B0000;
  --accent-2: #0ea5a4;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(29, 78, 216, 0.28), transparent 28%),
    radial-gradient(circle at 90% 35%, rgba(14, 165, 164, 0.18), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 18, 37, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1520px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 22px rgba(73, 163, 255, 0.22);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; }

.layout {
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 390px 1fr;
  min-height: calc(100vh - 77px);
}

.profile-panel {
  padding: 44px 28px 34px;
  min-height: calc(100vh - 77px);
  position: sticky;
  top: 77px;
  align-self: start;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 64, 121, 0.38), rgba(11, 27, 50, 0.16));
  border-right: 1px solid var(--line);
}

.profile-photo-wrap {
  width: 250px;
  height: 250px;
  border-radius: 999px;
  margin: 0 auto 30px;
  padding: 3px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-photo,
.photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, #0b4a6f, #163c7a);
}

.photo-fallback {
  display: none;
  place-items: center;
  font-size: 4.8rem;
  font-weight: 800;
  color: white;
}

.profile-panel h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.pronouns {
  margin: 26px 0 10px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-panel h2 {
  color: var(--accent);
  margin: 0;
  font-size: 1.5rem;
}

.affiliation {
  color: var(--soft);
  margin: 22px 0 30px;
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--soft);
  text-decoration: none;
  font-weight: 800;
}

.social-links a:hover {
  background: rgba(85, 167, 255, 0.2);
  color: white;
}

.content-panel {
  padding: 42px 44px 60px;
}

.section {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.34);
  color: var(--accent);
  border: 1px solid rgba(85, 167, 255, 0.2);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}

.eye-icon {
  font-size: 36px;
}

.section h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section p {
  color: var(--soft);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 900px;
}

.lead {
  font-size: 1.28rem !important;
  color: #ffffff !important;
  font-weight: 700;
}

.action-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.button.primary {
  background: linear-gradient(135deg, #1462ff, var(--accent-2));
  color: white;
  box-shadow: 0 20px 45px rgba(20, 98, 255, 0.25);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.timeline article,
.card,
.publication,
.essay-list article {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.timeline strong {
  color: var(--accent);
  font-size: 1.05rem;
}

.timeline p { margin-bottom: 0; font-size: 1rem; }

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

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(85, 167, 255, 0.28);
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 800;
}

.card h3,
.publication h3,
.essay-list h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.card p,
.publication p,
.essay-list p {
  margin: 0;
  font-size: 1rem;
}

.publication-list,
.essay-list {
  display: grid;
  gap: 18px;
}

.publication a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-links a {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--soft);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 44px 36px;
  color: #102a43;
  border-top: 1px solid rgba(15, 23, 42, 0.16);
}

@media (max-width: 1050px) {
  .layout { grid-template-columns: 1fr; }
  .profile-panel {
    position: relative;
    top: 0;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .footer { padding-left: 44px; }
  .timeline, .card-grid, .card-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .menu-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.2rem;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(7, 18, 37, 0.98);
    border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .content-panel { padding: 34px 20px 50px; }
  .profile-panel { padding: 34px 20px; }
  .profile-photo-wrap { width: 190px; height: 190px; }
  .footer { padding: 24px 20px 34px; }
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.education-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  min-height: 145px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(24, 49, 80, 0.92), rgba(13, 43, 69, 0.92));
  border: 1px solid rgba(104, 156, 205, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.school-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.education-content strong {
  display: block;
  color: #49a3ff;
  font-size: 1.02rem;
  margin-bottom: 9px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.education-content ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.education-content li {
  margin-bottom: 4px;
  line-height: 1.35;
  color: #ffffff;
  font-size: 0.98rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.education-content p {
  margin: 0;
  color: #d8e7f5;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

@media (max-width: 800px) {
  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    align-items: flex-start;
    padding: 22px;
  }

  .school-logo {
    width: 74px;
    height: 74px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 30px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24, 49, 80, 0.92), rgba(13, 43, 69, 0.92));
  border: 1px solid rgba(104, 156, 205, 0.25);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 480px;
  max-height: none;
  object-fit: contain;
  display: block;
  background: rgba(5, 18, 34, 0.7);
}

.gallery-item figcaption ul {
  margin: 0;
  padding-left: 10px;
}

.gallery-item figcaption li {
  margin-bottom: 2px;
  line-height: 1.0;
}

.gallery-item figcaption {
  position: relative;
  padding: 18px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(8, 36, 82, 0.96), rgba(26, 94, 178, 0.88));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

/* Research Outputs page refinements */

.output-subheading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.output-subheading .icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.publication {
  padding: 16px 20px;
  border-radius: 16px;
}

.publication h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.publication p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.publication a {
  display: inline-block;
  margin-top: 4px;
}

.output-number {
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}

/* Smaller headings for Research Outputs subsections */
#publications .section-heading h2,
#presentations .section-heading h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.05;
}

/* Publication graphical abstract slider */

.section-intro {
  color: #d8e7f5;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.publication-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.slider-window {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(104, 156, 205, 0.28);
  background: rgba(9, 28, 49, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.slider-track {
  display: flex;
  transition: transform 0.55s ease;
}

.slide {
  min-width: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.slide img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.slide-caption {
  padding: 18px 22px;
  background: linear-gradient(145deg, rgba(24, 49, 80, 0.96), rgba(13, 43, 69, 0.96));
  border-top: 1px solid rgba(104, 156, 205, 0.25);
}

.slide-caption strong {
  display: block;
  color: #49a3ff;
  font-size: 1rem;
  margin-bottom: 6px;
  font-family: "Inter", sans-serif;
}

.slide-caption span {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.45;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(104, 156, 205, 0.35);
  background: rgba(37, 99, 235, 0.28);
  color: #8B0000;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.slider-btn:hover {
  background: rgba(73, 163, 255, 0.35);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: #b3bfc9;
  cursor: pointer;
}

.slider-dots button.active {
  background: #49a3ff;
}

@media (max-width: 900px) {
  .publication-slider {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    display: none;
  }

  .slide img {
    height: auto;
    max-height: 520px;
  }
}

/* Research vision and themes */

.research-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24, 49, 80, 0.92), rgba(13, 43, 69, 0.92));
  border: 1px solid rgba(104, 156, 205, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

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

.research-text h3 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 800;
}

.research-text p {
  color: #d8e7f5;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.research-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(104, 156, 205, 0.22);
}

.research-image img {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  display: block;
}

@media (max-width: 950px) {
  .research-feature,
  .research-feature.reverse {
    grid-template-columns: 1fr;
  }

  .research-image img {
    max-height: none;
  }
}

/* History overview section */

.history-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24, 49, 80, 0.92), rgba(13, 43, 69, 0.92));
  border: 1px solid rgba(104, 156, 205, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

.history-text p {
  color: #d8e7f5;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.history-text .lead {
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 700;
}

.history-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  border: 1px solid rgba(104, 156, 205, 0.22);
  padding: 14px;
}

.history-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

@media (max-width: 950px) {
  .history-feature {
    grid-template-columns: 1fr;
  }

  .history-image img {
    max-height: none;
  }
}


.history-feature.history-vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.history-feature.history-vertical .history-image {
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  border: none;
  padding: 0;
}

.history-feature.history-vertical .history-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.history-feature.history-vertical .history-text {
  max-width: 100%;
}

.research-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.research-title-row .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.research-title-row h3 {
  margin: 0;
}

.small-heading h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f4f7fb;
}

.video-section {
  margin-top: 36px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(24, 49, 80, 0.95), rgba(13, 43, 69, 0.95));
  border: 1px solid rgba(104, 156, 205, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.video-section p {
  margin-top: 14px;
  margin-bottom: 20px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 18px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}

.research-feature.research-vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.research-feature.research-vertical .research-text {
  max-width: 100%;
}

.research-feature.research-vertical .research-image {
  width: 100%;
}

.research-image.wide-image {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
}

.research-image.wide-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 22px;
}

.history-points {
  margin: 18px 0 0 0;
  padding-left: 22px;
}

.history-points li {
  margin-bottom: 16px;
  line-height: 1.65;
  color: #e8f1fb;
}

.image-caption {
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #d8e7f5;
}

.research-feature.research-vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.research-feature.research-vertical .research-image {
  width: 100%;
}

.research-feature.research-vertical .research-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 18px;
}

.research-feature.research-vertical .research-text {
  max-width: 100%;
}

.history-photo-block {
  margin: 0;
  width: 100%;
}

.history-photo-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.history-photo-block figcaption {
  margin-top: 12px;
  color: #d8e7f5;
  font-size: 0.95rem;
  line-height: 1.55;
  font-family: "Inter", sans-serif;
}

.outputs-only-layout,
.history-only-layout,
.research-only-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 44px 80px;
  min-height: calc(100vh - 77px);
}

.outputs-only-layout .content-panel,
.history-only-layout .content-panel,
.research-only-layout .content-panel {
  padding: 0;
}

.outputs-only-layout .section p,
.history-only-layout .section p,
.research-only-layout .section p {
  max-width: none;
  width: 100%;
}
