:root {
  --bg: #f7f8fb;
  --bg-alt: #f1f4f8;
  --surface: #ffffff;
  --surface-strong: #111728;
  --surface-soft: #161f36;
  --text: #0f172a;
  --muted: #5d6880;
  --muted-strong: #94a3b8;
  --accent: #3f63db;
  --accent-soft: #e1e8ff;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.topnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.topnav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topnav-links a:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(63, 99, 219, 0.08);
}

.topnav-links a.active {
  color: var(--accent);
  background: rgba(63, 99, 219, 0.10);
  border-color: rgba(63, 99, 219, 0.18);
  box-shadow: inset 0 0 0 1px rgba(63, 99, 219, 0.06);
}

.hero {
  background:
    radial-gradient(circle at top left, rgba(69, 103, 255, 0.10), transparent 30%),
    linear-gradient(135deg, var(--surface-strong), var(--surface-soft));
  color: #f8fbff;
  padding: 3.25rem 0 2.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #9db2ff;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.15rem, 3.9vw, 3.55rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
}

.lede {
  max-width: 58ch;
  color: rgba(248, 251, 255, 0.8);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.hero-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.9);
  font-size: 0.92rem;
}

.hero-actions,
.contact-list,
.link-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.15rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-facts span {
  color: rgba(248, 251, 255, 0.78);
  font-size: 0.9rem;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fbff;
  font-weight: 600;
}

.button.primary {
  background: #ffffff;
  color: #0b1329;
  border-color: #ffffff;
}

.hero-portrait-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 0.7rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.hero-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.hero-portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.hero-note {
  margin: 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 42ch;
}

.section {
  padding: 3.3rem 0;
}

.section-compact {
  padding: 2.7rem 0 3rem;
}

.alt {
  background: var(--bg-alt);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.section-header p,
.body-copy,
.meta,
.role,
.timeline-place,
.timeline-date,
.card p,
.compact-list,
.footer {
  color: var(--muted);
}

.tag-row {
  margin-top: 1.25rem;
}

.tag {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #2842c7;
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.timeline-meta {
  display: grid;
  gap: 0.2rem;
}

.timeline-date {
  font-weight: 600;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}

.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.link-row {
  margin-top: 1rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.5rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-list {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.footer {
  padding: 2rem 0 3rem;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .hero-side,
  .contact-panel,
  .timeline-item {
    grid-template-columns: 1fr;
  }

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

  .topnav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0 1rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.9rem;
  }

  h1 {
    max-width: none;
  }

  .topnav-links {
    gap: 0.75rem;
  }
}
