:root {
  --bg: #fbfcf7;
  --surface: #ffffff;
  --surface-soft: #f3f8ee;
  --text: #1e2a28;
  --muted: #687673;
  --line: #dfe8dc;
  --green: #4f8a67;
  --green-dark: #2f6649;
  --yellow: #f6c95d;
  --coral: #ef8f76;
  --shadow: 0 24px 70px rgba(40, 79, 61, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 201, 93, 0.24), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f7faf2 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  border-bottom: 1px solid rgba(223, 232, 220, 0.84);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark,
.initials {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav {
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav a:hover {
  background: rgba(79, 138, 103, 0.1);
  color: var(--green-dark);
}

.section-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 70px 0 90px;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green-dark);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(47, 102, 73, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(223, 232, 220, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 238, 0.92)),
    repeating-linear-gradient(
      135deg,
      rgba(79, 138, 103, 0.06) 0,
      rgba(79, 138, 103, 0.06) 1px,
      transparent 1px,
      transparent 18px
    );
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-panel::after {
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(246, 201, 93, 0.52);
  border-radius: 50%;
  content: "";
}

.profile-card {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.initials {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 18px;
  font-size: 28px;
}

.card-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.profile-card h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.14;
}

.quick-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.quick-facts div {
  display: grid;
  gap: 2px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.quick-facts dd {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
}

.content-section,
.contact-section {
  padding: 86px 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(32px, 5vw, 54px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.about-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.project-card,
.skill-group,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(40, 79, 61, 0.07);
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--green-dark);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.period {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 820;
}

.timeline-item h3,
.project-card h3,
.skill-group h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.org,
.project-type {
  margin: 6px 0 0;
  color: var(--coral);
  font-weight: 760;
}

.details,
.project-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.tag-list span {
  border: 1px solid rgba(79, 138, 103, 0.18);
  border-radius: 999px;
  background: rgba(79, 138, 103, 0.08);
  color: var(--green-dark);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 740;
}

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

.skill-group {
  padding: 24px;
}

.skill-group ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.skill-group li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 238, 0.96)),
    linear-gradient(90deg, rgba(239, 143, 118, 0.11), transparent);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 64px);
}

.contact-card p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-grid,
  .timeline-item,
  .project-grid,
  .skill-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 74px;
  }

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

@media (max-width: 560px) {
  .section-shell,
  .site-header {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-panel,
  .timeline-item,
  .project-card,
  .skill-group {
    padding: 20px;
  }

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .content-section,
  .contact-section {
    padding: 62px 0;
  }
}
