:root {
  --primary: #8ab4ff;
  --primary-dark: #4a90ff;
  --accent: rgba(138, 180, 255, 0.18);
  --background: #050911;
  --surface: rgba(12, 18, 32, 0.9);
  --surface-raised: rgba(16, 24, 41, 0.92);
  --surface-soft: rgba(20, 30, 52, 0.88);
  --text: #e5ecff;
  --muted: #c0c9e6;
  --border: rgba(138, 180, 255, 0.28);
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(3, 8, 20, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  background-image: url("/img/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 17, 0.82), rgba(5, 9, 17, 0.92));
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  background-color: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
  background-color: var(--accent);
  border-color: var(--border);
}

.nav-links a.active {
  color: #050911;
  background-color: var(--primary);
  border-color: var(--primary);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}



.button {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button.primary {
  background-color: var(--primary);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.button.secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.button.secondary:hover,
.button.secondary:focus {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* hero rename: name+affiliation */
.hero {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 180, 255, 0.14), rgba(138, 180, 255, 0));
}

.hero-content {
  max-width: min(58ch, 640px);
  justify-self: start;
}

.hero-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.35rem, 2.6vw + 1.6rem, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}

.hero-subheading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.1rem, 0.85vw + 1rem, 1.4rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.hero-text {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-cta {
  margin-top: clamp(1.75rem, 2.5vw, 2.5rem);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-photo {
  margin: 0;
  max-width: min(100%, 430px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  background: var(--surface);
  justify-self: center;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 861px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .hero-photo {
    justify-self: end;
    align-self: center;
  }
}

@media (max-width: 860px) {
  .hero-photo {
    max-width: min(85vw, 420px);
  }
}

.section {
  margin-top: 3rem;
  background-color: var(--surface);
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section h2 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.75rem;
}

.section p {
  margin: 0.75rem 0 0;
}

.research-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}

.research-grid h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.research-grid p {
  margin: 0.75rem 0 0;
  color: var(--text);
}

@media (min-width: 720px) {
  .research-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.1rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 0 0 4px rgba(138, 180, 255, 0.2);
}

.timeline {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.timeline li {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(138, 180, 255, 0.12);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline-date {
  min-width: 140px;
  font-weight: 600;
  color: var(--primary);
}

.timeline-description {
  color: var(--text);
}

.page-heading {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.page-heading h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 2.4vw + 1.2rem, 3rem);
  color: var(--text);
}

.page-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
}

.research-quote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(138, 180, 255, 0.18), rgba(74, 144, 255, 0.08));
  border: 1px solid rgba(138, 180, 255, 0.28);
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.35);
  position: relative;
  overflow: hidden;
}

.research-quote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 6rem;
  color: rgba(138, 180, 255, 0.16);
  font-family: "Georgia", "Times New Roman", serif;
}

.research-quote p {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.research-quote footer {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.research-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.75);
  border: 1px solid rgba(138, 180, 255, 0.32);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover,
.quick-link:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #050911;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .page-heading {
    text-align: center;
  }

  .research-quote::before {
    left: 50%;
    transform: translateX(-50%);
  }

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

.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background-color: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.card h3 {
  margin-top: 0;
  color: var(--text);
}

.card p {
  margin-bottom: 0;
}

.hobby-splash {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(138, 180, 255, 0.15) 0%, rgba(74, 144, 255, 0.12) 45%, rgba(5, 9, 17, 0.85) 100%);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
}

.hobby-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hobby-card {
  position: relative;
  background: var(--surface-raised);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(138, 180, 255, 0.2);
}

.hobby-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(138, 180, 255, 0.18);
  pointer-events: none;
}

.hobby-card--outdoor {
  background: radial-gradient(circle at 15% 20%, rgba(255, 214, 102, 0.28), transparent 55%), var(--surface-raised);
}

.hobby-card--chess {
  background: radial-gradient(circle at 80% 15%, rgba(132, 168, 255, 0.32), transparent 60%), var(--surface-raised);
}

.hobby-emoji {
  font-size: clamp(2.5rem, 3vw, 3.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: var(--accent);
}

.hobby-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1vw + 1.35rem, 1.8rem);
  color: var(--text);
}

.hobby-card p {
  margin: 0;
  color: var(--muted);
}

.hobby-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.hobby-tags li {
  background-color: rgba(138, 180, 255, 0.14);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.hobby-stats {
  margin-top: auto;
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--primary);
}

.hobby-stats span {
  background-color: rgba(138, 180, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
}

.hobby-callout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hobby-callout-inner {
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(120deg, rgba(16, 24, 41, 0.92), rgba(12, 18, 32, 0.85));
  color: var(--text);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
}

.hobby-callout-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 1vw + 1.4rem, 1.9rem);
}

.hobby-callout-inner a {
  color: var(--primary);
  font-weight: 600;
}

.hobby-callout-inner a:hover,
.hobby-callout-inner a:focus {
  color: #ffd37d;
}

.publication-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.75rem;
}

.publication-list li {
  background-color: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.publication-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.publication-meta {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.publication-links a {
  font-weight: 600;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.site-footer {
  background-color: rgba(6, 10, 20, 0.92);
  color: var(--muted);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary);
}

.placeholder {
  background-color: rgba(138, 180, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-container {
    justify-content: center;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .timeline li {
    flex-direction: column;
    gap: 0.35rem;
  }

  .timeline-date {
    min-width: auto;
  }

  .section {
    padding: 1.75rem;
  }

  .hero-cta {
    justify-content: center;
  }

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

  .footer-content {
    justify-content: center;
    text-align: center;
  }

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

/* projects page refresh */
.muted {
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.92), rgba(5, 9, 17, 0.7));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.project-figure {
  margin: 0 0 10px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card h2 {
  margin: 4px 0 8px;
  line-height: 1.2;
}

.projects-sep {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

figure.feature-figure,
figure.hobby-figure {
  margin: 1.75rem 0 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

figure.feature-figure img,
figure.hobby-figure img {
  display: block;
  width: 100%;
  height: auto;
}

figure.feature-figure figcaption,
figure.hobby-figure figcaption {
  margin: 0;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(5, 9, 17, 0.75), rgba(5, 9, 17, 0.9));
}

.project-list-compact {
  margin: 0;
  padding-left: 18px;
}

.project-list-compact li {
  margin: 4px 0;
}
