:root {
  --ink: #121712;
  --ink-soft: #1d241f;
  --muted: #596159;
  --paper: #f5f7f4;
  --white: #ffffff;
  --line: #d7ddd7;
  --line-dark: #384039;
  --signal: #b8f500;
  --teal: #087f73;
  --coral: #e95137;
  --max: 1180px;
  --header: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  border-bottom: 1px solid rgba(18, 23, 18, .16);
  background: rgba(245, 247, 244, .93);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--ink);
  color: var(--signal);
  font-size: 13px;
  font-weight: 900;
}

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 800; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a { border-bottom: 2px solid transparent; padding: 8px 0 6px; }
.site-nav a:hover { border-color: var(--teal); color: var(--teal); }

.site-nav .nav-contact {
  min-width: 86px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  text-align: center;
}

.site-nav .nav-contact:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.nav-toggle { display: none; }

.hero {
  min-height: 710px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  align-items: center;
  gap: 76px;
  padding-block: 72px;
}

.eyebrow,
.section-number {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 8px; height: 8px; background: var(--teal); }

.hero h1 {
  margin-bottom: 10px;
  font-size: 104px;
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.hero-role {
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.25;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 184px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--teal); border-color: var(--teal); }
.button-secondary:hover { background: var(--signal); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hero-meta li { min-width: 0; }
.hero-meta span { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 900; }

.portrait-wrap { position: relative; padding: 22px 20px 20px 0; }
.portrait-wrap::before { content: ""; position: absolute; inset: 0 0 0 26px; border: 1px solid var(--ink); }
.portrait-wrap::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; height: 22%; background: var(--signal); z-index: -1; }

.portrait-index {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 8px 11px;
  background: var(--signal);
  font-size: 10px;
  font-weight: 900;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  object-fit: cover;
  object-position: center top;
  filter: saturate(.82) contrast(1.04);
}

.portrait-caption {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
}

.portrait-caption span { color: #aab2ab; }
.portrait-caption strong { color: var(--signal); }

.impact-band { background: var(--signal); border-block: 1px solid var(--ink); }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.impact-grid article {
  min-height: 146px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid rgba(18, 23, 18, .35);
}

.impact-grid article:first-child { padding-left: 0; }
.impact-grid article:last-child { border-right: 0; }
.impact-grid strong { flex: 0 0 auto; font-size: 39px; line-height: 1; }
.impact-grid span { font-size: 11px; font-weight: 700; line-height: 1.5; }

.section { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.section-heading .section-number { grid-column: 1; }

.section-heading h2,
.heading-row h2,
.method-title h2,
.education-intro h2,
.footer-title h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 em { color: var(--teal); font-style: normal; }

.about { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.about .section-heading { display: block; }
.large-copy { margin-bottom: 34px; font-size: 26px; font-weight: 700; line-height: 1.55; }
.copy-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; color: var(--muted); font-size: 14px; }
.copy-columns p { margin-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag-list span { padding: 7px 10px; border: 1px solid var(--line); background: var(--white); font-size: 10px; font-weight: 800; }

.section-ink { background: var(--ink); color: var(--white); }
.section-number-light { color: #aab2ab; }

.heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 64px;
}

.heading-row > p { margin: 0; color: #aab2ab; font-size: 14px; }
.heading-row-light > p { color: var(--muted); }
.section-ink h2 em { color: var(--signal); }

.match-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }

.match-item {
  min-height: 388px;
  padding: 30px 26px 26px;
  border-right: 1px solid var(--line-dark);
}

.match-item:first-child { padding-left: 0; }
.match-item:last-child { border-right: 0; }
.match-no { color: var(--signal); font-size: 11px; font-weight: 900; }
.match-item h3 { margin: 52px 0 16px; font-size: 21px; }
.match-item p { color: #aab2ab; font-size: 13px; }
.match-item ul { margin: 28px 0 0; padding: 0; list-style: none; font-size: 11px; }
.match-item li { margin-top: 8px; }
.match-item li::before { content: "+"; margin-right: 9px; color: var(--signal); }

.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 54px; padding: 54px 0; border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 11px; }
.timeline-meta time { color: var(--teal); font-weight: 900; }
.timeline-title { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.timeline-title p { margin-bottom: 5px; color: var(--muted); font-size: 13px; font-weight: 800; }
.timeline-title h3 { margin-bottom: 0; font-size: 29px; }

.company-type {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: #dff4ee;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.company-type-coral { background: #fee6e0; color: var(--coral); }
.timeline-summary { max-width: 780px; margin: 22px 0 30px; color: var(--muted); }

.result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.result-list li { min-height: 112px; padding: 18px; border: 1px solid var(--line); background: var(--white); }
.result-list strong { display: block; margin-bottom: 7px; color: var(--teal); font-size: 20px; }
.result-list span { display: block; color: var(--muted); font-size: 12px; }
.result-list-compact li { min-height: 100px; }

.project-band { background: var(--white); }
.project-heading { margin-bottom: 76px; }
.project { display: grid; grid-template-columns: 236px minmax(0, 1fr); border-top: 1px solid var(--ink); }
.project-second { margin-top: 90px; }
.project-aside { padding: 30px 30px 30px 0; border-right: 1px solid var(--line); }
.project-aside > span, .project-aside time { display: block; font-size: 10px; font-weight: 900; }
.project-aside > span { color: var(--teal); }
.project-aside time { margin-top: 8px; color: var(--muted); }
.project-stat { margin-top: 128px; }
.project-stat strong { display: block; font-size: 41px; line-height: 1; }
.project-stat small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.project-body { padding: 32px 0 0 42px; }
.project-domain { margin-bottom: 14px; color: var(--coral); font-size: 10px; font-weight: 900; }
.project-body h3 { margin-bottom: 20px; font-size: 36px; line-height: 1.22; }
.project-lead { max-width: 780px; margin-bottom: 36px; color: var(--muted); font-size: 16px; }
.project-details { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.project-details > div { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); }
.project-details > div:first-child { padding-left: 0; }
.project-details > div:last-child { border-right: 0; }
.project-details h4 { margin-bottom: 12px; font-size: 13px; }
.project-details p { margin: 0; color: var(--muted); font-size: 12px; }
.tech-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tech-line span { padding: 6px 9px; background: var(--paper); font-size: 10px; font-weight: 800; }

.flow { display: grid; grid-template-columns: auto 20px auto 20px auto 20px auto 20px auto; align-items: center; gap: 5px; margin: 34px 0; }
.flow span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--ink); font-size: 11px; font-weight: 800; text-align: center; }
.flow i { color: var(--teal); font-style: normal; text-align: center; }

.method-band { padding-block: 82px; background: var(--teal); color: var(--white); }
.method-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 72px; align-items: end; }
.method-title .section-number { color: #b9ded8; }
.method-title h2 { font-size: 49px; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.55); list-style: none; }
.method-steps li { min-height: 180px; padding: 22px 20px 0 0; }
.method-steps span { display: block; color: var(--signal); font-size: 10px; font-weight: 900; }
.method-steps strong { display: block; margin-top: 28px; font-size: 17px; }
.method-steps p { margin: 8px 0 0; color: #c7e4df; font-size: 11px; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.skills-grid article { position: relative; min-height: 285px; padding: 30px 36px 30px 0; border-bottom: 1px solid var(--line); }
.skills-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.skills-grid article:nth-child(even) { padding-left: 36px; }
.skills-grid article > span { position: absolute; top: 30px; right: 30px; color: #b8beb8; font-size: 36px; font-weight: 900; }
.skills-grid h3 { margin-bottom: 12px; font-size: 22px; }
.skills-grid p { max-width: 480px; color: var(--muted); font-size: 13px; }
.skills-grid ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 0; padding: 0; list-style: none; }
.skills-grid li { padding: 6px 9px; background: var(--white); border: 1px solid var(--line); font-size: 10px; font-weight: 800; }

.education-band { padding-block: 110px; border-top: 1px solid var(--ink); background: #eef1ee; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.education-intro h2 { font-size: 52px; }
.education-intro > p:last-child { max-width: 520px; margin: 30px 0 0; color: var(--muted); }
.education-list { border-top: 1px solid var(--ink); }
.education-list article { position: relative; padding: 28px 0; border-bottom: 1px solid var(--line); }
.education-list time { display: block; color: var(--teal); font-size: 10px; font-weight: 900; }
.education-list h3 { margin: 14px 0 4px; font-size: 27px; }
.education-list p { margin: 0; color: var(--muted); }

.site-footer { padding: 105px 0 26px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.eyebrow-light { color: #aab2ab; }
.eyebrow-light span { background: var(--signal); }
.footer-title h2 { font-size: 57px; }
.footer-title h2 em { color: var(--signal); }
.contact-panel > p { max-width: 540px; margin-bottom: 28px; color: #aab2ab; }
.contact-panel > a { display: grid; grid-template-columns: 70px 1fr 24px; align-items: center; min-height: 67px; border-top: 1px solid var(--line-dark); }
.contact-panel > a:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-panel > a:hover { color: var(--signal); }
.contact-panel a span { color: #818a82; font-size: 10px; }
.contact-panel a strong { min-width: 0; overflow-wrap: anywhere; font-size: 16px; }
.contact-panel a i { font-style: normal; text-align: right; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 38px; margin-top: 82px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #7f8880; font-size: 10px; font-weight: 800; }
.footer-bottom a:hover { color: var(--signal); }

body.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
body.reveal-ready [data-reveal][data-visible] { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; }
  .hero h1 { font-size: 78px; }
  .hero-role { font-size: 25px; }
  .heading-row { gap: 40px; }
  .section-heading h2, .heading-row h2 { font-size: 52px; }
  .impact-grid article { align-items: flex-start; flex-direction: column; gap: 10px; }
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-item { min-height: 330px; border-bottom: 1px solid var(--line-dark); }
  .match-item:nth-child(2) { border-right: 0; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header: 68px; }
  .site-header { height: var(--header); }
  .brand-copy small { display: none; }
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); }
  .site-nav { position: absolute; top: var(--header); left: 0; right: 0; display: none; padding: 18px 24px 24px; border-bottom: 1px solid var(--ink); background: var(--paper); }
  .site-nav[data-open] { display: grid; gap: 5px; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .site-nav .nav-contact { margin-top: 8px; justify-content: center; }

  .hero { min-height: auto; grid-template-columns: 1fr; gap: 46px; padding-block: 56px; }
  .hero-copy { order: 1; }
  .portrait-wrap { order: 2; width: min(100%, 430px); }
  .hero h1 { font-size: 72px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid article { min-height: 132px; padding: 22px; border-bottom: 1px solid rgba(18, 23, 18, .35); }
  .impact-grid article:nth-child(2) { border-right: 0; }
  .impact-grid article:first-child { padding-left: 22px; }

  .section { padding-block: 84px; }
  .about, .section-heading, .heading-row, .education-grid, .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .section-heading h2, .heading-row h2, .education-intro h2, .footer-title h2 { font-size: 47px; }
  .copy-columns { grid-template-columns: 1fr; gap: 14px; }
  .heading-row { align-items: start; }
  .match-item:first-child { padding-left: 26px; }
  .timeline-item { grid-template-columns: 1fr; gap: 18px; }
  .timeline-meta { flex-direction: row; justify-content: space-between; }
  .result-list { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project-aside { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-stat { grid-column: 1 / -1; margin-top: 25px; }
  .project-body { padding: 28px 0 0; }
  .project-details { grid-template-columns: 1fr; }
  .project-details > div, .project-details > div:first-child { min-height: auto; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-details > div:last-child { border-bottom: 0; }
  .flow { grid-template-columns: 1fr; }
  .flow i { transform: rotate(90deg); }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid article, .skills-grid article:nth-child(even) { min-height: 245px; padding: 28px 0; border-right: 0; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom span:nth-child(2) { display: none; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .hero h1 { font-size: 59px; }
  .hero-role { font-size: 22px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .portrait-wrap { padding: 16px 14px 14px 0; }
  .impact-grid strong { font-size: 32px; }
  .section-heading h2, .heading-row h2, .education-intro h2, .footer-title h2 { font-size: 40px; }
  .large-copy { font-size: 22px; }
  .match-grid { grid-template-columns: 1fr; }
  .match-item, .match-item:first-child { min-height: auto; padding: 30px 0; border-right: 0; }
  .match-item h3 { margin-top: 30px; }
  .timeline-title { flex-direction: column; }
  .project-body h3 { font-size: 29px; }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps li { min-height: 145px; border-bottom: 1px solid rgba(255,255,255,.28); }
  .contact-panel > a { grid-template-columns: 54px 1fr 18px; }
  .contact-panel a strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
