@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f6f8fb;
  --bg-soft: #eef3fa;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #4c5a73;
  --primary: #0f5bd8;
  --primary-soft: rgba(15, 91, 216, 0.1);
  --border: rgba(15, 23, 42, 0.11);
  --shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, #dde8ff 0%, transparent 38%),
    radial-gradient(circle at 94% 4%, #e6f4ff 0%, transparent 34%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1.15rem;
}

.topbar {
  position: sticky;
  top: 0.7rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}

.brand-block {
  display: grid;
  gap: 0.12rem;
  min-width: 220px;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.top-link {
  display: inline-block;
  border: 1px solid rgba(15, 91, 216, 0.24);
  border-radius: 999px;
  color: #0d4eb9;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.36rem 0.72rem;
  background: var(--primary-soft);
  transition: all 0.2s ease;
}

.top-link:nth-child(2) {
  background: rgba(9, 128, 105, 0.1);
  border-color: rgba(9, 128, 105, 0.24);
  color: #08735e;
}

.top-link:nth-child(3) {
  background: rgba(190, 99, 22, 0.1);
  border-color: rgba(190, 99, 22, 0.24);
  color: #a35213;
}

.top-link:nth-child(4) {
  background: rgba(143, 78, 169, 0.1);
  border-color: rgba(143, 78, 169, 0.24);
  color: #77428e;
}

.top-link:nth-child(5) {
  background: rgba(196, 72, 118, 0.1);
  border-color: rgba(196, 72, 118, 0.24);
  color: #a83263;
}

.top-link:nth-child(6) {
  background: rgba(77, 100, 194, 0.1);
  border-color: rgba(77, 100, 194, 0.24);
  color: #3f52aa;
}

.top-link:hover,
.top-link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  filter: saturate(1.1);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
  padding: 1.35rem;
  animation: fade-up 0.5s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.7rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #e3ebf6;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

p {
  margin: 0.5rem 0;
}

.meta {
  margin: 0.18rem 0;
  color: var(--muted);
}

.meta strong {
  color: var(--text);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.34rem 0.68rem 0.34rem 0.38rem;
  transition: all 0.2s ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.22);
  background: var(--surface-strong);
}

.profile-icon {
  display: inline-grid;
  place-items: center;
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #0d4eb9;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.profile-link:nth-child(2) .profile-icon {
  background: rgba(190, 99, 22, 0.12);
  color: #a35213;
}

.profile-link:nth-child(3) .profile-icon {
  background: rgba(9, 128, 105, 0.12);
  color: #08735e;
}

.profile-link:nth-child(4) .profile-icon {
  background: rgba(77, 100, 194, 0.12);
  color: #3f52aa;
}

.pill {
  display: inline-block;
  background: var(--primary-soft);
  border: 1px solid rgba(15, 91, 216, 0.26);
  color: #0d4eb9;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(15, 91, 216, 0.16);
}

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

ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-plain li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.list-plain li:last-child {
  border-bottom: 0;
}

.list-plain li > strong:first-child {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.list-plain li > strong:not(:first-child) {
  color: var(--muted);
}

.service-list {
  margin: 0;
  padding-left: 1.4rem;
}

.service-list li {
  padding: 0.72rem 0 0.72rem 0.2rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.service-list li:last-child {
  border-bottom: 0;
}

.publication-embed {
  overflow-x: auto;
}

.publication-embed table {
  width: 100%;
}

.publication-embed h1,
.publication-embed h2,
.publication-embed h3 {
  letter-spacing: 0;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.35rem 0 0.75rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .page {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .photo {
    width: min(260px, 65%);
    margin: 0 auto;
  }

  .quick-links {
    justify-content: center;
  }

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

@media (max-width: 560px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-block {
    min-width: 0;
  }
}
