:root {
  --background: #ffffff;
  --background-soft: #f7f9fc;
  --background-tint: #eef4ff;
  --text: #10213d;
  --text-soft: #44536a;
  --muted: #6f7f96;
  --primary: #1d4ed8;
  --primary-dark: #173ea5;
  --indigo: #4f46e5;
  --border: #dfe7f1;
  --shadow: 0 18px 48px rgba(16, 33, 61, 0.08);
  --radius: 8px;
  --max-width: 1180px;
  --font-sans: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--text);
  color: #fff;
  padding: 0.65rem 0.85rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 241, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.nav-wrap {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--text);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text span:last-child {
  display: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  white-space: nowrap;
}

.nav-link {
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.32rem 0.52rem;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--background-tint);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.58rem 0.86rem;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--primary-dark);
}

.button.secondary:hover {
  background: var(--background-tint);
  color: var(--primary-dark);
}

.button.small {
  min-height: 32px;
  padding: 0.44rem 0.68rem;
  font-size: 0.84rem;
}

main {
  min-height: 64vh;
}

.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 48%, #eef4ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.2rem) 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0;
}

h1 {
  max-width: 850px;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.6vw, 4.7rem);
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0.75rem 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.14rem, 2vw, 1.48rem);
  font-weight: 800;
}

.lead {
  max-width: 790px;
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
}

.hero-actions,
.inline-actions,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.profile-links {
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.48rem 0.68rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 33, 61, 0.04);
}

.social-link:hover {
  border-color: #b9c9e4;
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-card {
  position: relative;
}

.portrait {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  max-height: 440px;
  object-fit: cover;
}

.affiliation-card {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 1.1rem;
}

.affiliation-card p {
  margin: 0.2rem 0;
  color: var(--text-soft);
}

.section {
  padding: clamp(1.6rem, 3.6vw, 3rem) 0;
}

.section.soft {
  background: var(--background-soft);
}

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

.section-header p {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--text-soft);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mini-stat {
  min-width: 82px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #fff;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 8px 18px rgba(16, 33, 61, 0.04);
}

.mini-stat strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
}

.mini-stat span {
  display: block;
  margin-top: 0.18rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

h3 {
  color: var(--text);
  font-size: 1.12rem;
}

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

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

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

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

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

.card,
.publication-item,
.project-card,
.course-card,
.thesis-card,
.news-card,
.filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 33, 61, 0.04);
}

.card,
.project-card,
.course-card,
.thesis-card,
.news-card {
  padding: 1.15rem;
}

.course-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem 1.25rem;
}

.course-card h3 {
  font-size: 1.22rem;
  line-height: 1.22;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  color: var(--muted);
  font-weight: 800;
}

.course-meta .badge {
  flex: 0 0 auto;
  min-width: 96px;
  justify-content: center;
  padding: 0.43rem 0.72rem;
}

.course-institution,
.course-term {
  line-height: 1.25;
}

.course-description {
  max-width: 920px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.course-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.course-topics .badge {
  border-color: #cbd7ea;
  background: #f8fafc;
  color: #1e40af;
  font-size: 0.76rem;
}

.thesis-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem 1.25rem;
}

.thesis-card h3 {
  max-width: 980px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.thesis-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  color: var(--muted);
  font-weight: 800;
}

.thesis-meta .badge {
  border-color: #b7d2c4;
  background: #eef8f2;
  color: #17633a;
  padding: 0.43rem 0.72rem;
}

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

.thesis-detail {
  border: 1px solid #e8eef7;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.85rem;
}

.thesis-detail strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thesis-detail p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
}

.project-card-body {
  display: grid;
  gap: 0.75rem;
}

.project-card h3 {
  font-size: 1.18rem;
  line-height: 1.22;
}

.card p,
.project-card p,
.course-card p,
.news-card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.project-card p {
  margin: 0;
}

.course-card p {
  margin: 0;
}

.page-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 70%);
  padding: clamp(1.15rem, 2.7vw, 2.05rem) 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
  line-height: 1.08;
}

.page-hero .eyebrow {
  margin-bottom: 0.22rem;
  font-size: 0.68rem;
}

.page-hero .lead {
  margin-top: 0.5rem;
  max-width: 920px;
  font-size: 1rem;
  line-height: 1.5;
}

.page-hero + .section {
  padding-top: clamp(0.95rem, 2.1vw, 1.45rem);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem;
  box-shadow: 0 14px 34px rgba(16, 33, 61, 0.07);
}

.stat-item {
  min-height: 72px;
  border: 1px solid #e8eef7;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  padding: 0.65rem 0.7rem;
}

.stat-item strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-flow {
  display: grid;
  gap: 1rem;
}

.content-block {
  border-left: 4px solid var(--primary);
  background: #fff;
  padding: 1.1rem 1.2rem;
}

.content-block p,
.content-block ul {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
}

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

.research-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 33, 61, 0.04);
  padding: 1.15rem 1.2rem 1.15rem 1.45rem;
}

.research-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), #38bdf8);
  content: "";
}

.research-card h2 {
  font-size: 1.2rem;
}

.research-card p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 220px auto;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
}

.filter-panel.projects,
.filter-panel.news {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
}

label {
  display: grid;
  gap: 0.25rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.count-line {
  min-height: 1.5rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-weight: 800;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-item {
  padding: 1rem 1.1rem;
}

.publication-meta,
.project-meta,
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-meta {
  align-items: center;
  gap: 0.65rem;
  margin-top: 0;
}

.project-meta .badge {
  flex: 0 0 auto;
  padding: 0.43rem 0.72rem;
}

.project-area {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.project-overview {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.project-details {
  display: grid;
  gap: 0.5rem;
}

.project-details p {
  color: var(--text-soft);
  line-height: 1.48;
}

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

.project-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.project-methods .badge {
  border-color: #cbd7ea;
  background: #f8fafc;
  color: #1e40af;
  font-size: 0.76rem;
}

.publication-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.project-actions {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
}

.project-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd7ea;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
}

.project-action:hover {
  border-color: #b7c6df;
  background: var(--background-tint);
  color: var(--primary-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cad7ea;
  border-radius: 999px;
  background: #f4f7fc;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.badge.status-active {
  border-color: #b7d2c4;
  background: #eef8f2;
  color: #17633a;
}

.badge.status-planning {
  border-color: #cfd6ea;
  background: #f4f6fc;
  color: #3c4d7a;
}

.badge.status-prototype {
  border-color: #cbd4ff;
  background: #f2f4ff;
  color: #3730a3;
}

.badge.status-completed {
  border-color: #d1d5db;
  background: #f8fafc;
  color: #475569;
}

.badge.level-graduate {
  border-color: #cbd4ff;
  background: #f2f4ff;
  color: #3730a3;
}

.badge.level-undergraduate {
  border-color: #b7d2c4;
  background: #eef8f2;
  color: #17633a;
}

.badge.type-journal {
  border-color: #b7d2c4;
  background: #eef8f2;
  color: #17633a;
}

.badge.type-conference {
  border-color: #cbd4ff;
  background: #f2f4ff;
  color: #3730a3;
}

.badge.type-book {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-soft);
  padding: 1.2rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border-radius: var(--radius);
  background: #edf2f8;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

.timeline {
  display: grid;
  position: relative;
  gap: 0;
  padding-left: 1.75rem;
}

.timeline::before {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 8px;
  width: 2px;
  background: #d7e2f0;
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-top: 0;
  padding: 0 0 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 0.2rem;
  left: -1.75rem;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px #cbd7ea;
  content: "";
}

.timeline-category-education::before {
  background: #0891b2;
}

.timeline-category-academic-appointment::before {
  background: #1d4ed8;
}

.timeline-category-research-experience::before {
  background: #7c3aed;
}

.timeline-category-professional-experience::before {
  background: #15803d;
}

.timeline-year {
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
}

.timeline-body p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.cv-page {
  display: grid;
  gap: 1.25rem;
}

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

.cv-bottom-grid .card:last-child {
  grid-column: 1 / -1;
}

.cv-section {
  display: grid;
  gap: 1rem;
}

.cv-overview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 10px 28px rgba(16, 33, 61, 0.04);
  padding: 1.2rem 1.25rem;
}

.cv-overview-card h2 {
  margin-top: 0.1rem;
}

.cv-overview-card p:last-child {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cv-section.content-block {
  display: grid;
  gap: 0.75rem;
}

.cv-page .section-header {
  align-items: start;
  margin-bottom: 0.85rem;
}

.cv-page .content-block .section-header,
.cv-page .card .section-header {
  margin-bottom: 0;
}

.cv-page h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.cv-page .card,
.cv-page .content-block {
  padding: 1.2rem 1.25rem;
}

.cv-page .content-block {
  border-left-width: 4px;
}

.cv-page .grid.two {
  gap: 1rem;
}

.cv-page .publication-meta {
  gap: 0.45rem;
}

.cv-page ul {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
}

.cv-record-card,
.cv-info-panel,
.cv-service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 33, 61, 0.04);
}

.cv-record-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
}

.cv-record-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.cv-record-card h3 {
  font-size: 1.15rem;
}

.cv-record-org {
  margin: 0;
  color: var(--text-soft);
}

.cv-record-detail {
  border: 1px solid #e8eef7;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.8rem;
}

.cv-record-detail strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-record-detail p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.cv-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-chip-cloud.compact {
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #cbd7ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #1e40af;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0.48rem 0.68rem;
}

.cv-info-panel {
  padding: 1.15rem 1.25rem;
}

.cv-info-panel p {
  max-width: 930px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cv-row-list {
  display: grid;
  gap: 0.75rem;
}

.cv-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 33, 61, 0.04);
  padding: 1rem 1.1rem;
}

.cv-row-main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.cv-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.cv-row-main h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.cv-row-main p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.cv-row-details {
  display: grid;
  gap: 0.45rem;
}

.cv-row-details strong {
  color: var(--text);
}

.cv-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cv-row-tags .cv-chip {
  min-height: 30px;
  font-size: 0.76rem;
  padding: 0.4rem 0.58rem;
}

.cv-row-side {
  justify-self: end;
  max-width: 190px;
}

.cv-row-side .badge {
  justify-content: center;
  text-align: center;
  white-space: normal;
}

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

.cv-service-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.cv-service-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.cv-utility-card {
  display: grid;
  gap: 0.8rem;
}

.cv-contact-list {
  display: grid;
  gap: 0.65rem;
}

.cv-contact-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  border-top: 1px solid #eef2f8;
  padding-top: 0.65rem;
}

.cv-contact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.cv-contact-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cv-contact-row a,
.cv-contact-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cv-timeline {
  position: relative;
  gap: 0;
  padding-left: 0;
}

.cv-timeline-tools {
  align-items: center;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.58rem;
}

.timeline-key {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-key.education {
  background: #0891b2;
}

.timeline-key.appointment {
  background: #1d4ed8;
}

.timeline-key.research {
  background: #7c3aed;
}

.timeline-key.professional {
  background: #15803d;
}

.cv-timeline::before {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 150px;
  width: 2px;
  background: #d7e2f0;
  content: "";
}

.cv-timeline .timeline-item {
  position: relative;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 3rem;
  border-top: 0;
  padding: 0 0 1.35rem;
}

.cv-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.cv-timeline .timeline-item::before {
  position: absolute;
  top: 0.2rem;
  left: 143px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px #cbd7ea;
  content: "";
}

.cv-timeline .timeline-category-education::before {
  background: #0891b2;
}

.cv-timeline .timeline-category-academic-appointment::before {
  background: #1d4ed8;
}

.cv-timeline .timeline-category-research-experience::before {
  background: #7c3aed;
}

.cv-timeline .timeline-category-professional-experience::before {
  background: #15803d;
}

.cv-timeline .badge.timeline-category-education {
  border-color: #a5f3fc;
  background: #ecfeff;
  color: #0e7490;
}

.cv-timeline .badge.timeline-category-academic-appointment {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.cv-timeline .badge.timeline-category-research-experience {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.cv-timeline .badge.timeline-category-professional-experience {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.cv-timeline .timeline-year {
  font-size: 0.98rem;
  line-height: 1.3;
}

.cv-timeline .timeline-body {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 33, 61, 0.04);
  padding: 1rem 1.1rem;
}

.cv-timeline .timeline-body .publication-meta {
  margin-top: 0;
}

.cv-timeline .timeline-body h3 {
  margin-top: 0.45rem;
}

.print-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-page {
  background: var(--background-soft);
}

.admin-shell {
  min-height: 100vh;
}

.admin-masthead {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.admin-masthead-inner,
.admin-console-head,
.admin-editor-head,
.admin-json-head,
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-masthead-inner {
  min-height: 64px;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  padding: 2rem 0;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 33, 61, 0.06);
}

.admin-login-panel {
  width: min(100%, 540px);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.admin-login-panel h1,
.admin-console-head h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.admin-muted {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.admin-password-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.admin-password-form label,
.admin-field label,
.admin-control span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.admin-console {
  padding: clamp(1.5rem, 4vw, 2.6rem) 0;
}

.admin-console-head {
  align-items: end;
  margin-bottom: 1.2rem;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem;
}

.admin-control {
  display: grid;
  gap: 0.35rem;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.button.danger {
  border-color: #fecaca;
  color: #991b1b;
}

.button.danger:hover {
  background: #fef2f2;
  color: #7f1d1d;
}

.admin-note {
  margin: 0.8rem 0 1rem;
  color: var(--text-soft);
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-record-panel,
.admin-editor {
  padding: 1rem;
}

.admin-list-head {
  margin-bottom: 0.85rem;
}

.admin-list-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-record-list {
  display: grid;
  max-height: 68vh;
  overflow: auto;
  gap: 0.55rem;
  padding-right: 0.2rem;
}

.admin-record-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid #e4ecf6;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 0.72rem 0.75rem;
  text-align: left;
}

.admin-record-button:hover,
.admin-record-button.is-active {
  border-color: #bcd0ec;
  background: #f8fbff;
}

.admin-record-button strong,
.admin-record-button small {
  display: block;
}

.admin-record-button strong {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.admin-record-button small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}

.admin-status {
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.32rem 0.45rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status.active {
  border-color: #b7d2c4;
  background: #eef8f2;
  color: #17633a;
}

.admin-status.inactive {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.admin-editor {
  display: grid;
  gap: 1rem;
}

.admin-editor-head {
  align-items: start;
}

.admin-editor h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

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

.admin-field {
  display: grid;
  gap: 0.34rem;
}

.admin-field.full {
  grid-column: 1 / -1;
}

.admin-check {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.55rem 0.7rem;
}

.admin-check input {
  width: 18px;
  height: 18px;
}

.admin-json-panel {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.admin-json-head {
  align-items: end;
}

.admin-json-head h3 {
  font-size: 1.05rem;
}

.admin-json-output {
  min-height: 340px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-message {
  min-height: 1.4rem;
  margin: 0;
  color: #17633a;
  font-weight: 800;
}

.admin-message.is-error {
  color: #991b1b;
}

.admin-page input:not([type="checkbox"]),
.admin-page select,
.admin-page textarea {
  width: 100%;
  border: 1px solid #cbd7ea;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  padding: 0.62rem 0.7rem;
}

.admin-page textarea {
  min-height: 108px;
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: #95b7e8;
  outline: 3px solid rgba(29, 78, 216, 0.16);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #10213d 0%, #132b4e 100%);
  color: #dbe5f3;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.footer-inner {
  display: grid;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  justify-content: space-between;
}

.footer-main {
  display: grid;
  gap: 0.38rem;
  max-width: 620px;
}

.footer-main p {
  margin: 0;
  color: #dbe5f3;
}

.site-footer a {
  color: #fff;
}

.footer-main .footer-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-link-panel {
  display: grid;
  gap: 0.75rem;
  justify-self: end;
  width: min(100%, 520px);
}

.footer-heading {
  margin: 0;
  color: #b9c8dc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.footer-chip:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.footer-chip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.footer-chip span {
  min-width: 0;
}

.footer-main .footer-note {
  margin-top: 0.65rem;
  color: #b9c8dc;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1060px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 52px 0 auto 0;
    display: none;
    max-height: calc(100vh - 52px);
    overflow: auto;
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 1rem;
  }

  .site-nav.is-open {
    display: grid;
    gap: 0.25rem;
  }

  .nav-link {
    border-radius: 8px;
    padding: 0.8rem;
  }

  .site-nav .button {
    width: 100%;
    margin-top: 0.4rem;
  }

  .hero-grid,
  .page-hero-grid,
  .grid.two,
  .grid.three,
  .timeline-item,
  .cv-overview-grid,
  .cv-bottom-grid,
  .cv-service-grid,
  .cv-list-row,
  .footer-content,
  .research-grid,
  .thesis-body,
  .filter-panel,
  .filter-panel.projects,
  .filter-panel.news,
  .admin-toolbar,
  .admin-layout,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
  }

  .admin-console-head,
  .admin-editor-head,
  .admin-json-head {
    display: grid;
    justify-content: stretch;
  }

  .section-actions,
  .mini-stats,
  .admin-action-row {
    justify-content: flex-start;
  }

  .timeline-legend {
    justify-content: flex-start;
  }

  .cv-row-side {
    justify-self: start;
    max-width: 100%;
  }

  .footer-link-panel {
    justify-self: stretch;
    width: 100%;
  }

  .stats-panel {
    max-width: 520px;
  }

  .cv-timeline::before {
    left: 8px;
  }

  .cv-timeline .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-left: 2rem;
  }

  .cv-timeline .timeline-item::before {
    left: 1px;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .brand-text span:last-child {
    display: none;
  }

  .hero-actions .button,
  .inline-actions .button,
  .admin-password-row .button,
  .admin-action-row .button {
    width: 100%;
  }

  .admin-password-row {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .profile-links,
  .nav-toggle,
  .button,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
  }

  .page-hero,
  .section,
  .section.soft {
    border: 0;
    background: #fff;
    padding: 0.4in 0 0;
  }

  .container {
    width: 100%;
  }

  .card,
  .publication-item,
  .project-card,
  .news-card,
  .content-block {
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
