:root {
  --bg: #ffffff;
  --soft: #f4f6f8;
  --text: #15212b;
  --muted: #5f6c76;
  --line: #dfe5ea;
  --accent: #174d7a;
  --accent-dark: #103852;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 800px; }
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: #fff; border: 2px solid var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 650; font-size: .95rem; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; color: var(--muted); font-size: .92rem; }
.lang-switch strong { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; padding-block: 86px; }
.eyebrow, .section-label { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1 { margin: .25rem 0 1rem; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin: .2rem 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 760px; color: #344550; }
.affiliations { margin-top: 28px; font-size: 1.04rem; }
.muted { color: var(--muted); }
.portrait-card { margin: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--soft); box-shadow: 0 18px 50px rgba(21,33,43,.08); }
.portrait-card img { width: 100%; aspect-ratio: 1.03 / 1; object-fit: cover; object-position: center; }
.portrait-card figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; }

.section { padding-block: 88px; }
.section-soft { background: var(--soft); }
.intro { max-width: 720px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 24px; }
.card p { margin-bottom: 0; color: var(--muted); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 750; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.button-secondary:hover { background: #eef4f8; color: var(--accent-dark); }

.profile-list { display: grid; gap: 10px; margin-top: 28px; }
.profile-list a { display: flex; justify-content: space-between; gap: 24px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.profile-list span { color: var(--muted); }
.profile-list strong { text-align: right; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .92rem; }
.footer-inner p { margin: 0; }

@media (max-width: 820px) {
  .site-header { position: static; }
  .nav-wrap { align-items: flex-start; flex-direction: column; padding-block: 18px; }
  nav { gap: 14px 18px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 54px; }
  .portrait-card { max-width: 560px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding-block: 62px; }
  .profile-list a { flex-direction: column; gap: 2px; }
  .profile-list strong { text-align: left; }
  .footer-inner { flex-direction: column; }
}

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

.subpage-title { font-size: clamp(2.7rem, 6vw, 4.8rem); margin-bottom: 1.4rem; }

.hero-minimal { min-height: calc(100vh - 160px); }
.hero-minimal .lead { max-width: 42rem; }
.sitemap-list { margin: 1.25rem 0 0; padding-left: 1.2rem; }
.sitemap-list li { margin: .45rem 0; }

/* Institutional contact links */
.institution-links .button { gap: 9px; }
.institution-globe { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; background: rgba(255,255,255,.18); }
.institution-globe svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-secondary .institution-globe { background: #eef4f8; }
@media (max-width: 640px) { .institution-links { align-items: stretch; } .institution-links .button { width: 100%; } }

/* Text-only homepage hero */
.hero-text-only {
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-text-only .hero-copy {
  max-width: 900px;
}
.hero-text-only h1 {
  max-width: 900px;
}
.hero-text-only .lead {
  max-width: 760px;
}
