:root {
  --bg: #f5f7f4;
  --paper: #ffffff;
  --ink: #16211f;
  --muted: #5f6c68;
  --line: #d9ded8;
  --teal: #0d7c71;
  --rust: #a84f22;
  --moss: #5e6f45;
  --shadow: 0 18px 46px rgba(22, 33, 31, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-shift: 0px;
  --panel-shift: 0px;
  --pointer-x: 0px;
  --pointer-y: 0px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(22, 33, 31, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(22, 33, 31, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    transparent;
}

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

.ambient-lines {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 700ms var(--ease-out);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(217, 222, 216, 0.82);
  background: rgba(245, 247, 244, 0.88);
  backdrop-filter: blur(16px);
  transition:
    background 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out),
    border-color 420ms var(--ease-out);
}

.site-header.is-scrolled {
  border-color: rgba(217, 222, 216, 0.54);
  background: rgba(245, 247, 244, 0.72);
  box-shadow: 0 12px 34px rgba(22, 33, 31, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  border-bottom: 1px solid transparent;
  transition: color 260ms var(--ease-out);
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 360ms var(--ease-out);
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

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

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(40px, 6vh, 68px) 0;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 810px;
  transform: translate3d(0, var(--hero-shift), 0);
  transition: transform 240ms linear;
  will-change: transform;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 14px;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
}

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

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.bilingual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.hero-intro {
  min-width: 0;
  max-width: 760px;
  margin-top: 26px;
  color: #33413d;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-intro p,
.body-grid p,
.compact-grid p {
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 10px;
  margin-top: 30px;
}

.tag-row span {
  padding: 7px 11px;
  border: 1px solid rgba(22, 33, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #31413d;
  font-size: 0.84rem;
  transition:
    transform 360ms var(--ease-out),
    border-color 360ms var(--ease-out),
    background 360ms var(--ease-out);
}

.tag-row span:hover {
  border-color: rgba(13, 124, 113, 0.32);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.action-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 760;
  line-height: 1.2;
  transition:
    transform 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out),
    background 420ms var(--ease-out),
    border-color 420ms var(--ease-out);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(22, 33, 31, 0.13);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.executive-portrait {
  display: grid;
  min-width: 0;
  gap: 18px;
  justify-items: center;
  max-width: 440px;
  justify-self: center;
  transform: translate3d(var(--pointer-x), calc(var(--panel-shift) + var(--pointer-y)), 0);
  transition:
    transform 260ms linear,
    filter 520ms var(--ease-out);
  will-change: transform;
}

.executive-portrait:hover {
  filter: saturate(1.02);
}

.portrait-frame {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
  width: 100%;
}

.avatar-shell {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 33, 31, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.96), rgba(228, 231, 226, 0.8) 64%),
    #e8e9e5;
  box-shadow:
    0 32px 80px rgba(22, 33, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.avatar-shell::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  box-shadow: inset 0 -42px 90px rgba(22, 33, 31, 0.12);
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: contrast(1.04) brightness(1.02) saturate(0.94);
  transform: scale(1.01);
  transition:
    filter 720ms var(--ease-out),
    transform 720ms var(--ease-out);
}

.portrait-frame:hover img {
  filter: contrast(1.06) brightness(1.03) saturate(1);
  transform: scale(1.025);
}

.portrait-frame figcaption {
  display: grid;
  gap: 4px;
  color: var(--ink);
  text-align: center;
}

.portrait-frame figcaption span:first-child {
  font-size: 1.12rem;
  font-weight: 820;
}

.portrait-frame figcaption span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-strip {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.stat-strip > div {
  display: grid;
  min-height: 118px;
  grid-template-rows: 1.3rem 1.15rem 1rem;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(22, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(22, 33, 31, 0.055);
}

.metric {
  font-size: clamp(1rem, 1.6vw, 1.42rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.rank-line {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.18;
  white-space: nowrap;
}

.metric-label {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.content-band {
  padding: clamp(66px, 10vw, 118px) 0;
  border-top: 1px solid rgba(217, 222, 216, 0.84);
  background: rgba(255, 255, 255, 0.34);
}

.content-band:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.64);
}

.section-heading {
  max-width: 570px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.body-grid {
  color: #32413d;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.timeline-list,
.skill-grid,
.life-grid {
  display: grid;
  gap: 16px;
}

.timeline-card,
.feature-card,
.skill-card,
.life-card {
  border: 1px solid rgba(22, 33, 31, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 36px rgba(22, 33, 31, 0.055);
  transition:
    transform 520ms var(--ease-out),
    box-shadow 520ms var(--ease-out),
    background 520ms var(--ease-out),
    border-color 520ms var(--ease-out);
}

.timeline-card:hover,
.feature-card:hover,
.skill-card:hover,
.life-card:hover {
  border-color: rgba(13, 124, 113, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 62px rgba(22, 33, 31, 0.1);
  transform: translateY(-6px);
}

.timeline-card,
.feature-card {
  padding: clamp(22px, 4vw, 34px);
}

.timeline-meta {
  margin-bottom: 10px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-card p,
.feature-card p,
.skill-card p,
.life-card p,
.contact-section p {
  margin: 0;
  color: #40504c;
}

.subcopy {
  margin-top: 10px !important;
}

.compact-grid {
  gap: 18px;
}

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

.skill-card {
  min-height: 188px;
  padding: 24px;
}

.skill-card h3 {
  color: var(--moss);
}

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

.life-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
}

.life-card::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 120px;
  height: 68px;
  border-right: 1px solid rgba(13, 124, 113, 0.28);
  border-bottom: 1px solid rgba(13, 124, 113, 0.28);
  content: "";
  transition:
    width 620ms var(--ease-out),
    height 620ms var(--ease-out),
    opacity 620ms var(--ease-out);
}

.life-card:hover::after {
  width: 150px;
  height: 92px;
  opacity: 0.72;
}

.life-index {
  display: block;
  margin-bottom: 42px;
  color: var(--rust);
  font-weight: 850;
}

.contact-band {
  padding: clamp(58px, 9vw, 98px) 0;
  background: var(--ink);
  color: #fff;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-section .eyebrow {
  color: #70d2c8;
}

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

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.contact-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
  color: #fff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 52px);
  color: var(--muted);
  background: #eef2ef;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 30;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(22, 33, 31, 0.9);
  box-shadow: 0 18px 44px rgba(22, 33, 31, 0.2);
  color: #fff;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.98);
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out);
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-intro,
.tag-row,
.action-row,
.executive-portrait {
  animation: hero-rise 980ms var(--ease-out) both;
}

.hero-copy h1 {
  animation-delay: 90ms;
}

.hero-intro {
  animation-delay: 190ms;
}

.tag-row {
  animation-delay: 290ms;
}

.action-row {
  animation-delay: 380ms;
}

.executive-portrait {
  animation-delay: 260ms;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 820ms var(--ease-out),
    transform 820ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.reveal:nth-child(3) {
  transition-delay: 140ms;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.99);
    filter: none;
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .executive-portrait {
    max-width: 520px;
  }

  .skill-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    padding: 10px 14px 8px;
    gap: 10px;
    background: rgba(245, 247, 244, 0.94);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .section-shell {
    width: min(1120px, calc(100% - 28px));
  }

  .nav {
    display: flex;
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid rgba(22, 33, 31, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: center;
  }

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

  .hero {
    gap: 22px;
    padding: 28px 0 46px;
    overflow: hidden;
  }

  .hero-copy {
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 28px);
    transform: none;
  }

  .hero-copy .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 13vw, 3.45rem);
    line-height: 0.96;
  }

  h1 span {
    margin-top: 8px;
    -webkit-text-stroke: 1px var(--ink);
  }

  .hero-intro {
    gap: 10px;
    max-width: 100%;
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .tag-row {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-top: 18px;
  }

  .tag-row span {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .action-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: calc(100vw - 28px);
    gap: 10px;
    margin-top: 18px;
  }

  .button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .executive-portrait {
    gap: 12px;
    max-width: 100%;
    transform: none;
  }

  .portrait-frame {
    gap: 10px;
  }

  .avatar-shell {
    width: min(268px, 74vw);
    box-shadow:
      0 20px 54px rgba(22, 33, 31, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .portrait-frame img {
    filter: contrast(1.05) brightness(1.02) saturate(1.02);
    transform: scale(1.005);
  }

  .portrait-frame figcaption span:first-child {
    font-size: 1rem;
  }

  .portrait-frame figcaption span:last-child {
    font-size: 0.76rem;
  }

  .stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .stat-strip > div {
    min-height: 76px;
    gap: 4px;
    padding: 10px 5px;
    text-align: center;
  }

  .metric {
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
  }

  .rank-line,
  .metric-label {
    font-size: clamp(0.62rem, 2.25vw, 0.7rem);
  }

  .content-band {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .timeline-card,
  .feature-card,
  .skill-card,
  .life-card {
    padding: 20px;
  }

  .skill-card,
  .life-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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

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