:root {
  --bg: #f4f1ea;
  --bg-soft: #fbf8f1;
  --ink: #142421;
  --muted: #64746f;
  --line: rgba(20, 36, 33, 0.12);
  --emerald: #0d5b50;
  --emerald-dark: #063c37;
  --gold: #c99d4b;
  --sage: #dce8df;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(20, 36, 33, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 91, 80, 0.12), transparent 34rem),
    linear-gradient(135deg, #fbf8f1 0%, var(--bg) 44%, #eef3ee 100%);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.65;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.ambient-one {
  background: rgba(201, 157, 75, 0.22);
  height: 20rem;
  right: -7rem;
  top: 8rem;
  width: 20rem;
}

.ambient-two {
  background: rgba(13, 91, 80, 0.16);
  bottom: 4rem;
  height: 24rem;
  left: -9rem;
  width: 24rem;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 60px rgba(20, 36, 33, 0.08);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 50%;
  max-width: 1160px;
  padding: 0.65rem 0.8rem;
  position: sticky;
  top: 1rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 2.75rem;
  justify-content: center;
  letter-spacing: -0.04em;
  width: 2.75rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 0.85rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(13, 91, 80, 0.1);
  color: var(--emerald-dark);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 2.75rem;
  width: 2.75rem;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 0.35rem auto;
  width: 1.3rem;
}

main {
  margin: 0 auto;
  max-width: 1160px;
  padding: 5rem 1rem 2rem;
}

.section-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.hero {
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding: 2rem 0 4rem;
}

.hero-copy,
.profile-card,
.section-heading,
.feature-list,
.project-stack,
.publication-list,
.course-grid {
  min-width: 0;
}

.eyebrow {
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.4rem);
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 58ch;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  box-shadow: 0 16px 34px rgba(13, 91, 80, 0.22);
  color: var(--white);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--emerald-dark);
}

.profile-card,
.card-panel,
.highlight-card,
.contact-section {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.profile-card {
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.profile-card::before {
  background:
    linear-gradient(120deg, rgba(13, 91, 80, 0.92), rgba(6, 60, 55, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 10rem);
  border-radius: 1.5rem;
  content: "";
  display: block;
  height: 17rem;
  margin-bottom: 1.5rem;
}

.orbital {
  height: 13rem;
  left: 50%;
  position: absolute;
  top: 4rem;
  transform: translateX(-50%);
  width: 13rem;
  z-index: 1;
}

.orbital span {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  inset: 0;
  position: absolute;
}

.orbital span:nth-child(2) {
  transform: rotate(58deg) scaleX(0.55);
}

.orbital span:nth-child(3) {
  transform: rotate(-58deg) scaleX(0.55);
}

.portrait {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #f5d78c);
  border: 8px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--emerald-dark);
  display: flex;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  height: 9.5rem;
  justify-content: center;
  left: 50%;
  letter-spacing: -0.08em;
  position: absolute;
  top: 5.75rem;
  transform: translateX(-50%);
  width: 9.5rem;
  z-index: 2;
}

.profile-card p,
.profile-card dd,
.profile-card dt {
  color: var(--muted);
}

.profile-card dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  margin: 1.35rem 0 0;
  padding-top: 1.35rem;
}

.profile-card div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.profile-card dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-card dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 6rem;
}

.stats article {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.3rem;
}

.stats strong {
  color: var(--emerald);
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 0.6rem;
}

.content-section {
  margin: 0 0 7rem;
  scroll-margin-top: 7rem;
}

.section-heading {
  max-width: 46rem;
}

.feature-list,
.project-stack,
.publication-list {
  display: grid;
  gap: 1rem;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list article,
.project-stack article,
.publication-list article {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.35rem;
}

.feature-list p,
.project-stack p,
.publication-list p,
.card-panel p,
.contact-section p,
.sources p {
  color: var(--muted);
}

.icon {
  align-items: center;
  background: var(--sage);
  border-radius: 999px;
  color: var(--emerald-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.6rem;
}

.timeline-section {
  background: linear-gradient(135deg, rgba(13, 91, 80, 0.96), rgba(6, 60, 55, 0.98));
  border-radius: 2rem;
  color: var(--white);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.timeline-section .eyebrow,
.timeline-section p {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline article {
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0.25rem 0 0.25rem 1.4rem;
  position: relative;
}

.timeline article::before {
  background: var(--gold);
  border-radius: 50%;
  content: "";
  height: 0.68rem;
  left: -0.37rem;
  position: absolute;
  top: 0.55rem;
  width: 0.68rem;
}

.timeline time {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.split-section {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.88fr 1.12fr;
}

.card-panel {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.course-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-grid span {
  align-items: flex-end;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(220, 232, 223, 0.72));
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  display: flex;
  font-weight: 800;
  min-height: 8rem;
  padding: 1.1rem;
}

.project-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-stack .highlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(245, 215, 140, 0.28));
  grid-column: 1 / -1;
}

.highlight-card span,
.publication-list span {
  color: var(--gold);
  font-weight: 900;
}

.publications .section-heading {
  margin-bottom: 2rem;
}

.publication-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.publication-list article {
  min-height: 18rem;
}

.publication-list a {
  color: var(--emerald);
  font-weight: 900;
}

.contact-section {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  margin-bottom: 3rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.sources {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.sources h2 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.sources a {
  color: var(--emerald);
  font-weight: 800;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 1rem 2.5rem;
}

.site-footer a {
  color: var(--emerald);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .section-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.7rem, 13vw, 6.6rem);
    overflow-wrap: break-word;
  }

  .stats,
  .publication-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1120px) {
  .site-header {
    border-radius: 1.3rem;
  }

  .brand strong {
    max-width: 12rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: rgba(251, 248, 241, 0.98);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: min(18rem, calc(100vw - 2rem));
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  main {
    padding-top: 3rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 4.7rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .lead {
    font-size: 1rem;
  }

  .feature-list,
  .project-stack,
  .course-grid,
  .stats,
  .publication-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
