:root {
  --bg: #07111f;
  --bg-soft: #0d1b31;
  --surface: #11203a;
  --surface-2: #162a48;
  --text: #e8eef9;
  --muted: #9eb2d3;
  --line: #243a5c;
  --accent: #2dd4bf;
  --accent-2: #3b82f6;
  --radius: 16px;
  --shadow: 0 20px 40px rgba(3, 11, 22, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0c0f13 0%, #0b0e12 100%);
  line-height: 1.6;
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: "Space Grotesk", sans-serif;
}

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

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

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 12%, rgba(120, 150, 190, 0.05), transparent 44%),
    radial-gradient(circle at 12% 16%, rgba(90, 110, 140, 0.05), transparent 42%);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 10, 12, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-badge {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #04223c;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: #f2f5f9;
}

.desktop-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.84rem;
  margin-left: auto;
}

.desktop-nav a {
  color: #b0b9c6;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.12rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover {
  color: #f4f7fb;
  border-color: rgba(120, 150, 210, 0.5);
}

.desktop-nav a.nav-active {
  color: #f4f7fb;
  border-color: rgba(160, 190, 240, 0.9);
}

.nav-external {
  color: #9eb5d8;
}

.nav-cta {
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.resume-btn {
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #022745;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.2rem;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(13, 27, 49, 0.95);
  padding: 0.5rem 1.25rem 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  color: var(--muted);
  font-weight: 600;
}

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

.hero {
  min-height: calc(100vh - 58px);
  display: grid;
  align-items: center;
  grid-auto-flow: column;
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  text-align: left;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #8dbbff;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  max-width: 26ch;
}

.hero-sub {
  margin: 0.5rem 0 0;
  color: #c1c9d5;
  font-size: 0.95rem;
  max-width: 60ch;
}

.accent {
  color: #79e9da;
}

.hero-text {
  color: var(--muted);
  max-width: 52ch;
  margin: 0.9rem 0 0;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 20, 26, 0.55);
  color: #cbd3de;
}

.pill-link {
  color: #e2e7ef;
}

.pill-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5fa;
}

.pill--placeholder {
  color: #aeb7c4;
}

.hero-actions .btn {
  background: rgba(18, 22, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e7ef;
}

.hero-actions .btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.button-group {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 22, 28, 0.7);
}

.button-group .group-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e7ef;
}

.button-group .group-btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.button-group .group-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.button-group--muted {
  margin-top: 0.8rem;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(16, 20, 26, 0.55);
}

.button-group--muted .group-btn {
  color: #cbd3de;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: #171b20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e7ef;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8dee8;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe2ec;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.social-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.social-list a {
  color: #cbd3de;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 20, 26, 0.55);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.social-list a:hover {
  color: #f1f5fa;
  background: rgba(255, 255, 255, 0.06);
}

.hero-media {
  justify-self: start;
  order: 1;
  align-self: center;
}

.hero-content {
  order: 2;
}

.hero-media img {
  width: min(240px, 36vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(2, 8, 14, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(200px, 0.9fr) minmax(260px, 1.1fr);
  }

  .hero-media img {
    width: min(220px, 38vw);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 140px 1fr;
    text-align: left;
    justify-items: start;
    padding: 2.2rem 0 2.6rem;
  }

  .hero-actions,
  .social-list {
    justify-content: flex-start;
  }

  .hero-media,
  .hero-content {
    order: unset;
  }

  .hero-media img {
    width: 130px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  h2 {
    font-size: clamp(1.2rem, 4.4vw, 1.5rem);
  }

  h3 {
    font-size: clamp(1rem, 3.6vw, 1.15rem);
  }

  .hero {
    grid-template-columns: 120px 1fr;
    padding: 2rem 0 2.2rem;
    gap: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  }

  .hero-sub {
    font-size: 0.86rem;
  }

  .hero-text {
    font-size: 0.88rem;
  }

  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
  }

  .hero-media img {
    width: 110px;
  }

  .section-title-wrap h2 {
    font-size: 1.35rem;
  }

  .section-intro {
    font-size: 0.9rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.88rem;
  }

  .timeline-item h3 {
    font-size: 1rem;
  }

  .timeline-item p,
  .timeline-item span {
    font-size: 0.86rem;
  }

  .contact-wrap {
    gap: 0.8rem;
  }

  .contact-form {
    padding: 0.85rem;
  }

  .contact-form label {
    font-size: 0.86rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.6rem 0.7rem;
    font-size: 0.88rem;
  }

  .footer-wrap {
    font-size: 0.78rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(1.25rem, 5.6vw, 1.6rem);
  }

  h2 {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  h3 {
    font-size: clamp(0.98rem, 4vw, 1.1rem);
  }

  .hero {
    grid-template-columns: 96px 1fr;
    gap: 0.9rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: clamp(1.15rem, 5.2vw, 1.6rem);
  }

  .hero-sub {
    font-size: 0.82rem;
  }

  .hero-text {
    font-size: 0.84rem;
  }

  .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero-media img {
    width: 88px;
  }

  .section-title-wrap h2 {
    font-size: 1.2rem;
  }

  .section-intro {
    font-size: 0.86rem;
  }

  .card h3 {
    font-size: 0.96rem;
  }

  .card p {
    font-size: 0.84rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.84rem;
  }

  .footer-wrap {
    font-size: 0.74rem;
  }
}

.section {
  padding: 4.7rem 0;
}

.section-title-wrap {
  margin-bottom: 1.4rem;
}

.section-title-wrap h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-link {
  margin-left: 0.4rem;
  font-size: 1em;
  color: #8dbbff;
  font-weight: 600;
}

.section-link:hover {
  color: #cfe1ff;
}

.section-note {
  font-size: 0.7em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

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

.timeline-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 24, 30, 0.6);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.95rem;
}

.timeline-item h3 {
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0.4rem 0;
  color: #cde2ff;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cards-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.05rem;
  background: rgba(20, 24, 30, 0.6);
  box-shadow: 0 4px 14px rgba(2, 8, 14, 0.22);
}

.card .meta {
  color: #83d9cc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 0.55rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0.7rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card a {
  color: #87f1e2;
  font-weight: 700;
  font-size: 0.92rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.project-card img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(121, 233, 218, 0.2);
}

.contact-wrap {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-wrap p {
  margin: 0;
  color: var(--muted);
}

.contact-wrap a {
  color: #a5f7eb;
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(20, 24, 30, 0.6);
}

.contact-form label {
  display: block;
  color: #b7cced;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.35rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 18, 22, 0.8);
  color: var(--text);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(45, 212, 191, 0.32);
  border-color: #4dcfc0;
}

.site-footer {
  border-top: 1px solid rgba(36, 58, 92, 0.75);
  margin-top: 2rem;
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-wrap a {
  color: #acebe2;
  font-weight: 700;
}

.footer-name {
  font-weight: 600;
  color: #e6ebf2;
  letter-spacing: 0.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 22, 28, 0.7);
  color: #e4e9f1;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.is-hidden {
  display: none;
}

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

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.2rem;
  }

  .hero-media {
    justify-self: start;
  }

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

  .contact-wrap,
  .publication-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .desktop-nav,
  .resume-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }
}
