:root {
  --site-navy: #102a43;
  --site-navy-dark: #071725;
  --site-blue: #1769aa;
  --site-blue-hover: #125487;
  --site-teal: #2a8c82;
  --site-gold: #c7943e;
  --site-focus: #38bdf8;
  --site-radius: 12px;
  --site-shadow: 0 12px 35px rgba(15, 42, 67, 0.09);
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 105, 170, 0.06), transparent 28rem),
    #f5f8fb !important;
}

/* Standalone research pages use dark, high-contrast visual themes. */
body.site-dark-page {
  color: #e5e7eb;
  background: #0d0d1e !important;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(7, 23, 37, 0.14) !important;
}

.navbar .container { max-width: 1180px; }

.navbar-brand {
  font-size: 1.05rem !important;
  letter-spacing: -0.025em !important;
}

.navbar-nav .nav-link {
  background: transparent !important;
  border-radius: 0 !important;
  color: #aebdca !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  bottom: 0.2rem;
  left: 0.7rem;
  height: 2px;
  background: #62c4bb;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; }

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.academic-header {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1rem, 4vw, 2.5rem) !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(42, 140, 130, 0.2), transparent 24rem),
    linear-gradient(115deg, #071725, #14375c 72%, #174864) !important;
}

.academic-header::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -5rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.academic-header-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.academic-header h1 {
  margin: 0 0 0.65rem !important;
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.055em;
  line-height: 1;
}

.academic-header p {
  max-width: 720px;
  color: #c1d0dc !important;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem) !important;
  line-height: 1.65;
}

body > main {
  padding-top: clamp(2rem, 5vw, 4rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--site-focus) !important;
  outline-offset: 3px !important;
}

.site-primary-button,
.site-back-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem !important;
  color: #fff !important;
  background: var(--site-blue) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
  font-family: "Inter", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.site-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  color: var(--site-navy);
  background: #fff;
  border: 1px solid #cdd9e4;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15, 42, 67, 0.06);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-secondary-button:hover {
  color: var(--site-blue-hover);
  border-color: #91adc5;
  box-shadow: 0 7px 18px rgba(15, 42, 67, 0.1);
  transform: translateY(-2px);
}

.site-primary-button:hover,
.site-back-button:hover {
  color: #fff !important;
  background: var(--site-blue-hover) !important;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px) !important;
}

.site-back-button {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 40;
  background: rgba(15, 42, 67, 0.88) !important;
  backdrop-filter: blur(10px);
}

.scroll-top-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 !important;
  color: #fff;
  background: rgba(15, 42, 67, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.scroll-top-button:hover {
  background: var(--site-blue) !important;
  transform: translateY(-2px) !important;
}

/* Shared Bootstrap pages */
.content-card > .container,
.content-card > section.container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.content-card section > header h2 {
  color: var(--site-navy);
  font-size: clamp(1.8rem, 3vw, 2.35rem) !important;
  letter-spacing: -0.035em;
}

.content-card section > header p {
  color: #697b8d !important;
}

.content-card section > header {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.content-card section > header > .rounded-pill {
  width: 3rem !important;
  height: 3px !important;
  margin-top: 0.9rem;
  background: var(--site-teal) !important;
}

.content-card .card {
  overflow: hidden;
  border: 1px solid #e3eaf1 !important;
  border-radius: 10px !important;
  box-shadow: var(--site-shadow) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-card .card:hover {
  border-color: #cad8e4 !important;
  box-shadow: 0 15px 42px rgba(15, 42, 67, 0.12) !important;
  transform: translateY(-2px);
}

.content-card .card h3 {
  color: var(--site-navy);
  font-size: 1.2rem;
}

.content-card .list-group-item {
  background: transparent;
  border-color: #e7edf3;
  line-height: 1.65;
}

.content-card em {
  color: #283d51;
}

.content-card .space-y-4 > * + * { margin-top: 1rem; }
.content-card .space-y-8 > * + * { margin-top: 2rem; }
.content-card .mb-12 { margin-bottom: 3rem !important; }
.content-card .mb-10 { margin-bottom: 2.5rem !important; }

.content-card .border-l-4 {
  padding-left: 0.9rem;
  border-left: 4px solid var(--site-teal);
}

.content-card .text-2xl {
  color: var(--site-navy) !important;
  font-size: 1.4rem;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

.content-card .card p:last-child { margin-bottom: 0; }

.content-card .card p {
  color: #526579;
  line-height: 1.75;
}

/* Homepage */
.profile-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4rem);
  background: #fff;
  border: 1px solid #dce6ee;
  border-top: 3px solid var(--site-teal);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(15, 42, 67, 0.1);
}

.profile-photo {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  border: 5px solid #fff;
  border-radius: 50%;
  outline: 1px solid #d7e2eb;
  box-shadow: 0 10px 28px rgba(15, 42, 67, 0.17);
}

.profile-summary {
  max-width: none;
  margin: 0;
  color: #52606d;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.8;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 !important;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  min-height: 620px;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4.75rem);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 23, 37, 0.98), rgba(16, 54, 80, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(42, 140, 130, 0.45), transparent 35%);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(7, 23, 37, 0.24);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% 35%;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.home-hero-copy,
.home-portrait-wrap {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  margin: 0 0 1rem;
  color: #74c8bf;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.home-lead {
  max-width: 720px;
  margin: 1.65rem 0 0;
  color: #c9d9e6;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.8;
}

.home-role {
  margin: 1.4rem 0 0;
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.65;
}

.home-hero-simple {
  min-height: min(680px, calc(100vh - 10rem));
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.home-portrait-wrap {
  justify-self: center;
  width: min(100%, 240px);
}

.home-portrait-accent {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 7rem;
  height: 7rem;
  border-top: 2px solid var(--site-gold);
  border-right: 2px solid var(--site-gold);
  border-radius: 0 18px 0 0;
}

.home-portrait {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.home-affiliation {
  position: relative;
  width: calc(100% - 2rem);
  margin: -2.2rem auto 0;
  padding: 1rem 1.1rem;
  color: #aebfcd;
  background: rgba(7, 23, 37, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-affiliation-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-focus {
  padding: clamp(4rem, 8vw, 7rem) clamp(0.25rem, 3vw, 2rem);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-intro h2,
.home-cta h2 {
  margin: 0;
  color: var(--site-navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-intro > p:last-child {
  margin: 1rem 0 0;
  color: #617387;
  font-size: 1.05rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.focus-card {
  padding: 1.7rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce6ee;
  border-radius: 14px;
  box-shadow: var(--site-shadow);
}

.focus-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.25rem;
  color: var(--site-blue);
  background: #e9f3fa;
  border-radius: 10px;
}

.focus-card h3 {
  margin: 0 0 0.65rem;
  color: var(--site-navy);
  font-size: 1.12rem;
  font-weight: 700;
}

.focus-card p {
  margin: 0;
  color: #637588;
  font-size: 0.94rem;
}

.home-cta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  background: linear-gradient(120deg, var(--site-blue-hover), var(--site-teal));
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(18, 84, 135, 0.2);
}

.home-cta .home-eyebrow { color: #c6f0ea; }
.home-cta h2 { max-width: 760px; color: #fff; }
.site-secondary-button-light { flex: 0 0 auto; }

footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: 1.25rem 0;
  text-align: left;
}

.footer-identity strong,
.footer-identity span {
  display: block;
}

.footer-identity strong { color: #fff; }
.footer-identity span { color: #8fa3b5; font-size: 0.8rem; }
footer p { margin: 0; white-space: nowrap; }

@media (max-width: 640px) {
  .site-back-button {
    top: 0.85rem;
    left: 0.85rem;
    max-width: calc(100vw - 1.7rem);
  }

  .scroll-top-button {
    right: 1rem;
    bottom: 1rem;
  }

  .content-card .card,
  .content-card .card-body {
    padding: 1.15rem !important;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile-summary { text-align: left; }

  .academic-header { text-align: center !important; }
  .academic-header p { margin-right: auto !important; margin-left: auto !important; }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 14px;
  }

  .home-portrait-wrap {
    width: min(72%, 220px);
  }

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

  .home-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  footer .footer-inner {
    grid-template-columns: 1fr auto;
  }

  footer .footer-inner > p {
    grid-column: 1 / -1;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr 0.65fr; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
