:root {
  --paper: #f7f1e8;
  --surface: #fffdf8;
  --ink: #263630;
  --muted: #68746f;
  --sage: #496f63;
  --sage-soft: #dfe9e3;
  --warm: #ad806b;
  --line: #d9d7cf;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(43, 57, 51, .09);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif; font-size: 16px; line-height: 1.75; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--ink); color: var(--surface); padding: 10px 16px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 248, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-shell { max-width: var(--max); min-height: 74px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--sage); font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: .08em; }
nav { display: flex; gap: clamp(18px, 3vw, 42px); }
nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .03em; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--sage); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
:focus-visible { outline: 3px solid rgba(73, 111, 99, .36); outline-offset: 4px; }

.hero { max-width: var(--max); margin: 0 auto; min-height: 650px; padding: 74px 24px 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(42px, 7vw, 96px); align-items: end; border-bottom: 1px solid var(--line); }
.hero-copy { align-self: center; padding-bottom: 56px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; font-size: clamp(64px, 8vw, 104px); line-height: 1.04; letter-spacing: .05em; font-weight: 700; }
.role { margin-bottom: 26px; color: var(--warm); font-family: Arial, sans-serif; font-size: clamp(21px, 1.7vw, 24px); line-height: 1.25; font-weight: 700; }
.summary { max-width: 68ch; margin-bottom: 10px; font-size: 17px; line-height: 1.85; }
.positioning { max-width: 68ch; margin-bottom: 30px; color: var(--muted); font-size: 15px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 26px; }
.metrics > div { padding: 0 28px; border-left: 1px solid var(--line); }
.metrics > div:first-child { padding-left: 0; border-left: 0; }
.metrics strong { display: block; color: var(--sage); font: 700 46px/1 Arial, sans-serif; }
.metrics span { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.contact-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.contact-inline a { text-decoration-color: rgba(73, 111, 99, .4); text-underline-offset: 4px; }
.portrait-frame { align-self: end; margin: 0; overflow: hidden; border-radius: 220px 220px 0 0; background: #e8e1d6; box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 520px; display: block; object-fit: cover; object-position: center 34%; }

.section { max-width: var(--max); margin: 0 auto; padding: 100px 24px; }
.section-heading { display: grid; grid-template-columns: 230px 1fr; align-items: end; margin-bottom: 42px; }
.section-heading > p, .section-heading > div > p { margin-bottom: 8px; color: var(--warm); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2, .contact-section h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.2; letter-spacing: .05em; }
.section-heading h2::after, .contact-section h2::after { content: ""; display: block; width: 42px; height: 3px; margin-top: 17px; background: var(--warm); }
.expertise { background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.expertise-grid article { padding: 28px 0; border-top: 1px solid var(--line); }
.expertise-grid article:last-child { grid-column: 1 / -1; }
.expertise-grid h3 { margin-bottom: 10px; color: var(--sage); font-size: 18px; }
.expertise-grid p { margin-bottom: 0; max-width: 64ch; color: var(--muted); font-family: Arial, "Microsoft YaHei UI", sans-serif; font-size: 14px; line-height: 1.9; }

.career-layout { display: grid; grid-template-columns: 260px 1fr; gap: 68px; }
.career-intro > p { color: var(--muted); font-size: 14px; }
.education { margin-top: 42px; padding-top: 20px; border-top: 2px solid var(--warm); }
.education span { display: block; margin-bottom: 8px; color: var(--warm); font-size: 12px; letter-spacing: .12em; }
.education strong { font-size: 20px; }
.education p { color: var(--muted); }
.career-list { margin: 0; padding: 0; list-style: none; }
.career-list li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 0 0 34px 24px; border-left: 1px solid var(--line); }
.career-list li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.career-list time { color: var(--muted); font: 13px/1.6 Arial, sans-serif; }
.career-list h3 { margin-bottom: 4px; font-size: 18px; }
.career-list p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.projects { max-width: none; padding-left: max(24px, calc((100% - var(--max)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--max)) / 2 + 24px)); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-heading { grid-template-columns: 1fr auto; gap: 30px; }
.project-heading .project-note { align-self: end; max-width: 36ch; margin-bottom: 8px; color: var(--muted); font-size: 13px; text-transform: none; letter-spacing: 0; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.filters button { padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; }
.filters button[aria-pressed="true"] { border-color: var(--sage); color: var(--sage); background: var(--sage-soft); }
.project-list { max-width: var(--max); margin: 0 auto; }
.project { display: grid; grid-template-columns: 165px 1fr; gap: 32px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.project[hidden] { display: none; }
.project-date { color: var(--muted); font: 13px/1.6 Arial, sans-serif; }
.project-body { min-width: 0; }
.project-top { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.client { margin-bottom: 4px; color: var(--warm); font-size: 13px; font-weight: 700; }
.project h3 { margin-bottom: 14px; color: var(--sage); font-size: clamp(20px, 2vw, 26px); line-height: 1.35; }
.project-role { flex: 0 0 auto; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.objective { max-width: 72ch; margin-bottom: 12px; font-size: 15px; }
.tech { margin-bottom: 12px; color: var(--muted); font: 13px/1.75 Arial, "Microsoft YaHei UI", sans-serif; }
.disclosure { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; border-bottom: 1px solid rgba(73, 111, 99, .4); background: transparent; color: var(--sage); cursor: pointer; font-size: 13px; font-weight: 700; }
.disclosure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .2s ease; }
.disclosure[aria-expanded="true"] svg { transform: rotate(180deg); }
.project-detail { max-width: 72ch; padding-top: 14px; color: var(--muted); font-size: 14px; }
.project-detail[hidden] { display: none; }
.project-detail ul { margin: 0; padding-left: 1.2em; }
.project-detail li + li { margin-top: 5px; }
.phase-list { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--sage-soft); background: var(--paper); }
.phase-list p { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.phase-list p:last-child { margin-bottom: 0; }
.phase-list time { color: var(--muted); font-family: Arial, sans-serif; }

.contact-section { max-width: var(--max); margin: 0 auto; padding: 94px 24px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; }
.contact-section > div > p { margin-bottom: 8px; color: var(--warm); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.contact-actions a { color: var(--sage); font-size: 18px; font-weight: 700; text-decoration-color: rgba(73, 111, 99, .3); text-underline-offset: 5px; }
footer { padding: 28px 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: var(--ink); color: var(--surface); }
footer p { margin: 0; font-size: 12px; opacity: .82; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 300px; gap: 34px; }
  .portrait-frame img { height: 430px; }
  .metrics > div { padding: 0 16px; }
  .career-layout { grid-template-columns: 210px 1fr; gap: 44px; }
  .project { grid-template-columns: 135px 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .nav-shell { min-height: 64px; }
  nav { display: none; }
  .hero { min-height: auto; padding-top: 44px; grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(54px, 18vw, 76px); }
  .role { font-size: 22px; }
  .metrics { margin-top: 28px; }
  .metrics strong { font-size: 34px; }
  .metrics span { font-size: 11px; line-height: 1.5; }
  .portrait-frame { width: min(100%, 420px); justify-self: center; border-radius: 180px 180px 0 0; }
  .portrait-frame img { height: 380px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-heading { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid article:last-child { grid-column: auto; }
  .career-layout { grid-template-columns: 1fr; gap: 28px; }
  .career-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .education { margin-top: 0; }
  .career-list li { grid-template-columns: 1fr; gap: 4px; }
  .project-heading { grid-template-columns: 1fr; }
  .project-heading .project-note { text-align: left; }
  .filters { gap: 6px; }
  .filters button { padding: 8px 10px; font-size: 12px; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .project-top { flex-direction: column; gap: 0; }
  .project-role { margin-bottom: 10px; }
  .phase-list p { grid-template-columns: 1fr; gap: 2px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-actions { text-align: left; }
  footer { flex-direction: column; }
}

@media (max-width: 430px) {
  body { font-size: 15px; }
  .hero, .section, .contact-section { padding-left: 18px; padding-right: 18px; }
  .projects { padding-left: 18px; padding-right: 18px; }
  .summary { font-size: 16px; }
  .metrics { grid-template-columns: 1fr; gap: 14px; }
  .metrics > div, .metrics > div:first-child { display: flex; align-items: baseline; gap: 12px; padding: 0 0 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .metrics span { margin-top: 0; }
  .career-intro { grid-template-columns: 1fr; }
  .contact-actions a { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .filters, .disclosure { display: none !important; }
  body { background: #fff; }
  .hero, .section, .contact-section { max-width: none; padding: 18mm; }
  .project-detail[hidden] { display: block; }
}


/* LinkedIn-style public profile hero */
.hero {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(43, 57, 51, .07);
}

.profile-cover {
  height: 260px;
  border-radius: 23px 23px 0 0;
  background: #173c3b url("assets/data-analytics-cover-teal.png") center / cover no-repeat;
}

.hero-copy {
  padding: 146px 64px 64px;
}

.hero h1 {
  margin-bottom: 8px;
  font-size: clamp(48px, 6vw, 72px);
}

.hero .summary,
.hero .positioning { max-width: 78ch; }
.hero .metrics { max-width: 760px; }

.portrait-frame {
  position: absolute;
  z-index: 2;
  top: 176px;
  left: 64px;
  width: 210px;
  height: 210px;
  margin: 0;
  overflow: hidden;
  border: 7px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(23, 44, 39, .22);
}

.portrait-frame::before { content: none; }
.portrait-frame img {
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

@media (min-width: 761px) and (max-width: 900px) {
  .profile-cover { height: 220px; }
  .hero-copy { padding: 124px 40px 56px; }
  .portrait-frame { top: 148px; left: 40px; width: 180px; height: 180px; }
}

@media (max-width: 760px) {
  .hero { padding: 0; gap: 0; }
  .profile-cover { height: 150px; }
  .hero-copy { padding: 100px 18px 48px; }
  .portrait-frame { top: 94px; left: 18px; width: 140px; height: 140px; border-width: 5px; }
  .hero h1 { font-size: clamp(46px, 15vw, 62px); }
}
