:root {
  --bg: #f4f1ea;
  --bg-alt: #eef6f1;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: #ffffff;
  --text: #1d1d1f;
  --muted: #5c625d;
  --line: rgba(29, 29, 31, 0.09);
  --primary: #1c7f5d;
  --primary-dark: #165b45;
  --accent: #e7f5ec;
  --shadow: 0 18px 45px rgba(16, 38, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f7f3ee 0%, #f2f8f4 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 238, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.socials a:hover,
.socials a:focus-visible {
  color: var(--primary-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border-color: rgba(28, 127, 93, 0.2);
  color: var(--text);
}

.hero {
  padding: 72px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 660px;
}

.lead {
  margin: 20px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 18px;
  color: var(--muted);
}

.highlights strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.profile-visual {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(28, 127, 93, 0.12);
  box-shadow: var(--shadow);
  background: #fff;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-card {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px 24px 20px;
}

.panel-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mini-metrics div {
  padding: 16px 12px 14px;
  border-radius: 18px;
  background: var(--accent);
  border: 1px solid rgba(28, 127, 93, 0.08);
}

.mini-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.mini-metrics strong {
  font-size: 1.02rem;
}

.section {
  padding: 88px 0;
}

.alt {
  background: rgba(144, 177, 160, 0.05);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: end;
}

.two-col h2,
.section-heading h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.two-col p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: var(--shadow);
}

.project-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
}

.project-card h3 {
  margin: 18px 0 12px;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.project-card p,
.timeline-content p {
  margin: 0;
  color: var(--muted);
}

.project-card p + p,
.timeline-content p + p,
.info-card p + p {
  margin-top: 10px;
}

.project-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.project-card li::before {
  content: "•";
  color: var(--primary);
  font-weight: 800;
  margin-right: 10px;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 20px;
  padding: 20px 22px;
}

.timeline-date {
  color: var(--primary-dark);
  font-weight: 700;
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.research-image {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  margin-bottom: 18px;
  background: #f3f4f1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-wrap span {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.site-footer {
  padding: 80px 0 30px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding-bottom: 28px;
}

.contact-box {
  min-width: 220px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.contact-box a {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-box p {
  margin: 0;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .project-grid,
  .info-grid,
  .footer-wrap,
  .video-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .main-nav {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-box {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 52px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
  }
}
