:root {
  --paper: #edf2eb;
  --surface: #ffffff;
  --ink: #171a18;
  --muted: #636a65;
  --line: #d5d9d2;
  --green: #0b6b4f;
  --green-dark: #074735;
  --yellow: #f2d45c;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.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;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(237, 242, 235, 0.94);
  border-bottom: 1px solid rgba(23, 26, 24, 0.12);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: white;
  border-radius: 3px;
  font-size: 13px;
}
.brand-name { font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-nav a { color: #3e433f; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); }
.site-nav .language-switch { padding: 6px 8px; border: 1px solid var(--line); color: var(--green-dark); font-size: 12px; font-weight: 800; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
}
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: var(--ink); }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  align-items: center;
  column-gap: clamp(48px, 7vw, 96px);
  padding: 54px max(24px, calc((100vw - var(--max)) / 2));
  align-items: center;
  background-color: #f7f7f3;
  border-bottom: 1px solid var(--line);
}

.hero-content { min-width: 0; max-width: 660px; }
.hero-identity { display: flex; align-items: flex-start; gap: 26px; }
.eyebrow { margin: 0 0 22px; color: var(--green); font-size: 12px; font-weight: 800; line-height: 1.4; }
.hero h1 { margin: 0; font-size: 76px; line-height: 0.98; font-weight: 780; }
.hero h1 span { display: block; margin-top: 12px; font-size: 25px; font-weight: 500; color: var(--muted); }
.en-page .hero h1 { font-size: 58px; white-space: nowrap; }
.profile-avatar { width: 132px; height: 168px; margin-top: 2px; border: 1px solid var(--line); object-fit: cover; object-position: center top; }
.hero-role { margin: 30px 0 0; font-size: 20px; font-weight: 700; }
.hero-copy { max-width: 610px; margin: 18px 0 0; color: #4f5651; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: white; }
.availability { display: flex; align-items: center; gap: 9px; margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: #20a768; box-shadow: 0 0 0 4px rgba(32, 167, 104, 0.12); }

.life-mosaic {
  width: 100%;
  height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.life-tile { min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #dfe6df; }
.life-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.life-tile:hover img { transform: scale(1.04); }
.life-tile-ntu { flex: 0 0 auto; aspect-ratio: 160 / 99; }
.life-tile-ntu img { object-fit: contain; }
.life-tile-lighthouse { flex: 1 1 auto; }
.life-tile-lighthouse img { object-position: center 43%; }

.impact { background: var(--ink); color: white; }
.impact-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.impact-inner > div { min-height: 142px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #3c403d; padding: 0 30px; }
.impact-inner > div:first-child { border-left: 1px solid #3c403d; }
.impact strong { font-size: 22px; color: var(--yellow); }
.impact span { max-width: 250px; margin-top: 9px; color: #c5cac5; font-size: 13px; line-height: 1.55; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 112px 0; }
.section-heading { max-width: 740px; margin-bottom: 54px; }
.section-heading h2, .capabilities-intro h2 { margin: 0; font-size: 46px; line-height: 1.17; }
.section-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.featured-project {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.3fr) minmax(340px, 0.8fr);
  gap: 26px;
  padding: 42px;
  background: var(--green-dark);
  color: white;
  border-radius: 6px;
}
.project-index { color: var(--yellow); font-size: 14px; font-weight: 800; }
.project-kicker { margin: 0 0 13px; color: #a8cdbf; font-size: 12px; font-weight: 800; }
.project-main h3 { margin: 0; font-size: 32px; }
.project-summary { max-width: 650px; margin: 20px 0 0; color: #d6e4de; line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag-row span { padding: 7px 9px; border: 1px solid #4b7567; border-radius: 3px; color: #dbe8e3; font-size: 11px; }
.project-metrics { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid #3c6c5c; }
.project-metrics div { min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding-left: 28px; border-bottom: 1px solid #3c6c5c; }
.project-metrics div:nth-last-child(-n + 2) { border-bottom: 0; }
.project-metrics strong { color: var(--yellow); font-size: 25px; }
.project-metrics span { margin-top: 5px; color: #aac6bc; font-size: 12px; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.project-card { min-height: 308px; display: flex; flex-direction: column; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.project-card-link { transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.project-card-link:hover, .project-card-link:focus-visible { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 26px rgba(23, 26, 24, 0.08); outline: none; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; color: #838984; font-size: 11px; font-weight: 800; }
.project-card h3 { margin: 42px 0 15px; font-size: 28px; }
.project-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.project-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 25px; border-top: 1px solid var(--line); }
.project-card-footer span { color: #747b76; font-size: 11px; }
.project-card-footer strong { white-space: nowrap; color: var(--green); font-size: 13px; }
.project-card-with-image { min-height: 370px; }
.project-card-with-image > img { width: 100%; height: 138px; margin: -34px -34px 24px; width: calc(100% + 68px); max-width: none; object-fit: cover; object-position: center 47%; border-radius: 5px 5px 0 0; }
.project-card-with-image h3 { margin-top: 25px; }

.experience-section { border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 210px 1fr; gap: 48px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--green); font-size: 14px; font-weight: 800; }
.timeline-company { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.timeline h3 { margin: 0; font-size: 23px; }
.timeline-item div:last-child > p:last-child { max-width: 760px; margin: 18px 0 0; color: var(--muted); line-height: 1.75; }

.capabilities-section { width: 100%; max-width: none; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 9vw; padding: 110px max(24px, calc((100vw - var(--max)) / 2)); background: #dfe6df; }
.capabilities-intro h2 { max-width: 510px; }
.capability-list { border-top: 1px solid #aeb9b0; }
.capability { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid #aeb9b0; }
.capability > span { color: var(--green); font-size: 12px; font-weight: 800; }
.capability h3 { margin: 0 0 8px; font-size: 19px; }
.capability p { margin: 0; color: #56605a; line-height: 1.65; }

.education-grid { max-width: 580px; border-top: 1px solid var(--ink); }
.education-grid article { padding: 32px 0; border-bottom: 1px solid var(--line); }
.education-grid p { margin: 0 0 30px; color: var(--green); font-size: 12px; font-weight: 800; }
.education-grid h3 { margin: 0 0 9px; font-size: 24px; }
.education-grid span { color: var(--muted); }

.contact-section { padding: 105px 24px; background: var(--green-dark); color: white; }
.contact-inner { width: min(860px, 100%); margin: 0 auto; text-align: center; }
.contact-inner .eyebrow { color: var(--yellow); }
.contact-inner h2 { margin: 0; font-size: 50px; line-height: 1.18; }
.contact-inner > p:not(.eyebrow) { max-width: 600px; margin: 24px auto 0; color: #bcd0c8; line-height: 1.7; }
.contact-links { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.button-light { border-color: white; background: white; color: var(--green-dark); }
.button-outline-light { border-color: #709486; color: white; }
.button-outline-light:hover { background: #173f32; }

.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 31vw); column-gap: 40px; padding-inline: 24px; }
  .hero-identity { gap: 16px; }
  .profile-avatar { width: 100px; height: 132px; }
  .life-mosaic { height: 370px; }
  .hero h1 { font-size: 58px; }
  .en-page .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 15px; }
  .featured-project { grid-template-columns: 40px 1fr; }
  .project-metrics { grid-column: 2; border-left: 0; border-top: 1px solid #3c6c5c; }
  .project-metrics div { padding-left: 0; }
  .capabilities-section { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 680px) {
  .site-header { height: 64px; padding: 0 18px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav .language-switch { width: fit-content; margin-top: 12px; padding: 7px 10px; border-color: var(--green); }
  .brand-name { display: none; }

  .hero {
    display: block;
    min-height: 0;
    padding: 44px 18px 0;
  }
  .hero-content { width: 100%; max-width: none; }
  .hero-identity { gap: 14px; }
  .profile-avatar { width: 88px; height: 116px; margin-top: 0; }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .hero h1 { max-width: 340px; font-size: 50px; }
  .en-page .hero h1 { font-size: 39px; }
  .hero h1 span { margin-top: 8px; font-size: 19px; }
  .hero-role { margin-top: 20px; font-size: 16px; }
  .hero-copy { max-width: 92%; margin-top: 12px; font-size: 14px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; }
  .button { min-height: 43px; padding: 0 15px; font-size: 13px; }
  .availability { margin-top: 17px; font-size: 11px; }
  .life-mosaic { width: 100%; height: 480px; margin-top: 34px; gap: 8px; }

  .impact-inner { width: calc(100% - 36px); grid-template-columns: 1fr; }
  .impact-inner > div { min-height: 100px; padding: 0 16px; border-bottom: 1px solid #3c403d; }
  .impact-inner > div { border-left: 1px solid #3c403d; }
  .impact strong { font-size: 20px; }

  .section { width: calc(100% - 36px); padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .capabilities-intro h2 { font-size: 34px; }
  .section-heading > p:last-child { font-size: 15px; }
  .featured-project { grid-template-columns: 1fr; gap: 20px; padding: 27px 22px; }
  .featured-project > .project-index { grid-column: 1; }
  .project-main h3 { font-size: 25px; }
  .project-summary { font-size: 14px; }
  .project-metrics { grid-column: 1; }
  .project-metrics div { min-height: 78px; padding-right: 10px; }
  .project-metrics strong { font-size: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 285px; padding: 27px 22px; }
  .project-card h3 { margin-top: 34px; font-size: 25px; }
  .project-card p { font-size: 14px; }
  .project-card-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .project-card-with-image { min-height: 350px; }
  .project-card-with-image > img { height: 130px; margin: -27px -22px 22px; width: calc(100% + 44px); }

  .timeline-item { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .timeline h3 { font-size: 20px; }
  .capabilities-section { padding: 76px 18px; }
  .capability { grid-template-columns: 38px 1fr; }
  .capability p { font-size: 14px; }
  .contact-section { padding: 78px 18px; }
  .contact-inner h2 { font-size: 35px; }
  .contact-links { flex-direction: column; }
  .site-footer { width: calc(100% - 36px); flex-direction: column; justify-content: center; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
