:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #64727f;
  --line: #d8e1e8;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --accent: #0b7a75;
  --accent-strong: #075d59;
  --blue: #2f6f9f;
  --gold: #c8912e;
  --rose: #a94b5d;
  --violet: #6d5bd0;
  --shadow: 0 18px 45px rgba(27, 46, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(246, 248, 245, 0.84);
  border-bottom: 1px solid rgba(216, 225, 232, 0.75);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.contact-actions,
.tags,
.project-tabs {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.82rem;
}

.nav {
  gap: clamp(12px, 2.5vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-strong);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 248, 245, 0.98) 0%, rgba(246, 248, 245, 0.88) 34%, rgba(246, 248, 245, 0.26) 72%),
    linear-gradient(0deg, rgba(246, 248, 245, 0.72), rgba(246, 248, 245, 0.1));
}

.hero-content {
  width: min(760px, 90vw);
  margin-left: 5vw;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1;
  font-weight: 840;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.hero-subtitle {
  max-width: 650px;
  margin: 28px 0 0;
  color: #3b4a53;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 720;
}

.primary-action {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(11, 122, 117, 0.22);
}

.secondary-action {
  border: 1px solid rgba(23, 32, 38, 0.16);
  background: rgba(255, 255, 255, 0.74);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(720px, 90vw);
  margin: 46px 0 0;
}

.hero-facts div,
.intro-grid article,
.project-card,
.skill-board div {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 225, 232, 0.86);
  border-radius: 8px;
}

.hero-facts div {
  padding: 16px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
}

dd {
  margin: 4px 0 0;
  font-weight: 760;
}

.section {
  padding: clamp(72px, 10vw, 124px) 5vw;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.intro-grid,
.project-grid,
.skill-board,
.profile-grid,
.experience-list {
  display: grid;
  gap: 18px;
}

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

.intro-grid article {
  padding: 28px;
  box-shadow: var(--shadow);
}

.metric {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 820;
}

.intro-grid p,
.project-card p,
.project-card li,
.experience-card li,
.timeline-item p,
.skill-board p,
.contact-section p,
.section-note {
  color: var(--muted);
}

.profile-section {
  background: #fbfcf9;
}

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

.profile-grid div,
.experience-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 225, 232, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-grid div {
  min-height: 104px;
  padding: 22px;
}

.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.profile-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.project-tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

.experience-card {
  padding: 28px;
}

.experience-card ul {
  padding-left: 1.1em;
  margin: 18px 0 24px;
}

.experience-card li + li {
  margin-top: 10px;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 760;
}

.project-card ul {
  padding-left: 1.1em;
  margin: 18px 0 24px;
}

.project-card li + li {
  margin-top: 10px;
}

.tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  padding: 6px 10px;
  border: 1px solid rgba(11, 122, 117, 0.18);
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(11, 122, 117, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(28px, 6vw, 82px);
  background: #edf3f3;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid rgba(100, 114, 127, 0.24);
}

.timeline-item time {
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 760;
}

.skills-section {
  background: #fbfcf9;
}

.skill-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-board div {
  min-height: 220px;
  padding: 24px;
}

.notes-section {
  background: #f6f8f5;
}

.note-list {
  display: grid;
  gap: 14px;
}

.note-list article {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(100, 114, 127, 0.22);
}

.note-list p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 0 5vw 5vw;
  padding: clamp(34px, 6vw, 60px);
  color: #ffffff;
  background: #172026;
  border-radius: 8px;
}

.contact-section .eyebrow {
  color: #84d6c5;
}

.contact-section p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 260px;
}

.contact-actions a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

@media (max-width: 980px) {
  .intro-grid,
  .project-grid,
  .skill-board,
  .profile-grid,
  .experience-list,
  .hero-facts,
  .two-column,
  .contact-section,
  .note-list article {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 12px 4vw;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 58px);
  }

  .hero-content {
    margin-left: 4vw;
    padding-top: 58px;
    padding-bottom: 72px;
  }

  .section,
  .contact-section {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(246, 248, 245, 0.98), rgba(246, 248, 245, 0.7)),
      linear-gradient(0deg, rgba(246, 248, 245, 0.96), rgba(246, 248, 245, 0.26));
  }

  .hero-actions a,
  .contact-actions {
    width: 100%;
  }

  .hero-actions a {
    justify-content: center;
  }

  .card-topline {
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  .site-header,
  .hero-image,
  .hero-overlay,
  .hero-actions,
  .project-tabs,
  .icon-button,
  .hero-facts {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .section,
  .contact-section {
    width: auto;
    margin: 0;
    padding: 24px 0;
  }

  .project-grid,
  .intro-grid,
  .skill-board,
  .profile-grid,
  .experience-list,
  .two-column,
  .contact-section,
  .note-list article {
    grid-template-columns: 1fr;
  }

  .project-card,
  .intro-grid article,
  .skill-board div,
  .hero-facts div {
    box-shadow: none;
  }
}
