:root {
  --bg: #f6f9fc;
  --panel: #ffffff;
  --muted: #5a6b7b;
  --text: #0f1b2d;
  --accent: #2f7de1;
  --accent-2: #5ac8c2;
  --border: #dfe7f3;
  --shadow: 0 16px 50px rgba(15, 27, 45, 0.12);
  --radius: 16px;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 18% 20%, #e8f1ff, transparent 40%),
    radial-gradient(circle at 82% 10%, #e1f7ff, transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(246, 249, 252, 0.9);
  border-bottom: 1px solid rgba(223, 231, 243, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.nav nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav a:hover {
  color: var(--text);
}

.nav__logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.nav__cta {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(47, 125, 225, 0.18), rgba(90, 200, 194, 0.18));
  color: var(--text);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  padding: 96px 32px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.highlight {
  color: var(--accent);
}

.lede {
  font-size: 1.05rem;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  color: var(--text);
  background: rgba(47, 125, 225, 0.08);
}

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
}

.hero__media {
  display: grid;
  gap: 14px;
}

.photo-stack {
  display: grid;
  gap: 12px;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: linear-gradient(180deg, rgba(47, 125, 225, 0.08), rgba(90, 200, 194, 0.06));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.photo-frame--small {
  aspect-ratio: 16 / 10;
}

.photo-frame--wide {
  aspect-ratio: 16 / 9;
}

.hero__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero__card .tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 125, 225, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.section__lede {
  max-width: 720px;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.about__card {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(47, 125, 225, 0.05), rgba(90, 200, 194, 0.04));
  border: 1px solid var(--border);
}

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

.project {
  padding: 18px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 225, 0.4);
}

.project__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 125, 225, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.project__links {
  display: inline-flex;
  gap: 12px;
  font-weight: 700;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.skill {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(47, 125, 225, 0.04);
  transition: border-color 160ms ease, transform 160ms ease;
}

.skill:hover {
  border-color: rgba(47, 125, 225, 0.4);
  transform: translateY(-2px);
}

.contact {
  padding-bottom: 72px;
}

.contact__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: center;
}

.snapshot__text h2 {
  margin: 8px 0 8px;
}

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

.thesis-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.thesis__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px 32px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.8);
}

.footer__links {
  display: flex;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav nav {
    width: 100%;
    justify-content: center;
  }

  .nav__cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .nav {
    position: static;
  }

  body {
    padding-top: 0;
  }

  .section {
    padding: 24px;
  }
}
