:root {
  --font: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rail-w: 320px;
  --content-max: 1240px;
}

* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.72;
}
a { transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease; }
a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 4px; }
.shell {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}
.rail {
  height: 100dvh;
  padding: 34px 28px 28px;
  border: 0;
  position: relative;
  overflow: hidden;
  background: var(--rail);
}
.rail-inner {
  position: static;
  min-height: calc(100dvh - 62px);
  display: flex;
  flex-direction: column;
}
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.name {
  margin: 20px 0 10px;
  font-family: var(--font);
  font-size: 50px;
  line-height: .95;
  font-weight: 760;
  letter-spacing: -.045em;
}
.role { margin: 0 0 22px; font-size: 16px; line-height: 1.62; font-weight: 650; }
.contact {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  gap: 3px;
}
.contact a { min-height: 35px; }
.contact a:hover { color: var(--accent); transform: translateX(3px); }
.nav { margin-top: 22px; gap: 4px; }
.nav a {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}
.nav a:last-child { border: 0; }
.nav b { width: 22px; color: var(--muted); font: 650 9px/1 var(--font); }
.actions { margin-top: auto; padding-top: 20px; }
.pdf {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .02em;
}
.pdf:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.edition { display: none; }
.mobile-head, .mobile-nav { display: none; }
.content {
  height: 100dvh;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) transparent;
  padding: 40px clamp(34px, 5vw, 76px) 70px;
  background: var(--surface);
}
.content > * { width: min(100%, var(--content-max)); margin-inline: auto; }
.lead {
  min-height: min(720px, calc(100dvh - 80px));
  padding: 8px 0 46px;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(28px, 4vw, 64px);
  align-items: start;
  position: relative;
}
.lead::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: stretch;
  min-height: 520px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}
.issue { grid-column: 1; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.issue span:last-child { display: none; }
.headline {
  grid-column: 1;
  margin: clamp(54px, 8vh, 90px) 0 28px;
  max-width: 760px;
  font-family: var(--font);
  font-size: clamp(44px, 3.8vw, 56px);
  line-height: 1.12;
  font-weight: 730;
  letter-spacing: -.055em;
}
.headline em { color: var(--accent); font-style: normal; }
.dek {
  grid-column: 1;
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-family: var(--font);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.75;
}
.metrics {
  grid-column: 1;
  align-self: end;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  gap: 1px;
  background: var(--line);
}
.metric, .metric + .metric {
  min-height: 88px;
  padding: 16px 18px;
  border: 0;
  background: var(--metric);
}
.metric strong { color: var(--ink); font: 720 17px/1.35 var(--font); }
.metric span { margin-top: 4px; color: var(--muted); font-size: 11px; }
section { padding: clamp(70px, 9vw, 120px) 0; border: 0; position: relative; }
.section-head { display: block; margin-bottom: 40px; }
.section-no { display: none; }
.section-head h2 { margin: 0; font: 730 clamp(30px, 3.3vw, 46px)/1.18 var(--font); letter-spacing: -.035em; }
.section-head p { margin: 11px 0 0; max-width: 680px; color: var(--muted); font-size: 14px; }
.prose, .timeline, .projects, .two-col { margin-left: 0; }
.prose { max-width: 850px; font-size: 16px; line-height: 1.9; }
.tenure { padding: 5px 15px 0 0; color: var(--accent); font: 760 56px/.85 var(--font); letter-spacing: -.055em; }
.principles { border: 0; background: transparent; gap: 14px; }
.principle { padding: 24px; background: var(--panel); }
.principle h3 { margin: 0 0 9px; font: 720 18px/1.45 var(--font); }
.principle p { color: var(--muted); font-size: 13px; }
.timeline { max-width: 940px; }
.job { grid-template-columns: 150px minmax(0, 1fr); gap: 30px; padding: 0 0 44px; }
.job:not(:last-child)::before { left: 149px; border-color: var(--line); }
.job-date { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.job-body { padding-left: 28px; }
.job-body::before { width: 8px; height: 8px; left: -5px; top: 8px; border-color: var(--accent); background: var(--surface); }
.job h3, .project h3 { font: 720 21px/1.42 var(--font); letter-spacing: -.015em; }
.job h4, .project h4 { color: var(--accent); font-size: 12px; }
.bullets li::before { width: 7px; border-color: var(--accent); }
.ai-practice-list { gap: 18px; }
.ai-feature { border: 0; border-top: 0; background: var(--panel); overflow: hidden; }
.ai-feature:nth-child(even) { border-top-color: transparent; }
.ai-feature-head { padding: 22px 24px; border-color: var(--line); }
.ai-feature-head h3 { font: 720 21px/1.4 var(--font); }
.ai-feature-meta { color: var(--muted); font-size: 10px; }
.ai-badge { border-color: var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-small); }
.ai-badge.verified, .ai-badge.tested, .ai-badge.stated, .ai-badge.pending { border-color: var(--line); background: var(--surface); color: var(--ink); }
.ai-evidence-cell { padding: 20px 24px 22px; }
.ai-evidence-cell + .ai-evidence-cell { border-color: var(--line); }
.ai-evidence-cell h4 { color: var(--accent); font-size: 11px; }
.ai-evidence-cell p { font-size: 13px; color: var(--muted); }
.ai-boundary { margin: 0 24px 22px; background: var(--subtle); border-left-color: var(--accent); color: var(--muted); }
.ai-boundary strong { color: var(--ink); }
.projects { max-width: 980px; }
.company-label { margin-top: 44px; padding-bottom: 10px; border: 0; color: var(--accent); font-size: 11px; }
.company-label:first-child { margin-top: 0; }
.project { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding: 28px 0; margin: 0; border-bottom: 1px solid var(--line); }
.project:first-of-type { border-top: 1px solid var(--line); }
.project h4 { color: var(--muted); }
.two-col { gap: 28px; }
.edu, .skills { padding: 25px; border: 0; background: var(--panel); }
.two-col h3, .edu strong { font-family: var(--font); }
.capability-matrix { border: 0; }
.capability-row { grid-template-columns: 190px minmax(0, 1fr) 240px; gap: 32px; padding: 30px 0; border-color: var(--line); }
.capability-no { display: none; }
.capability-title h3 { font: 720 20px/1.42 var(--font); }
.capability-copy { color: var(--muted); }
.capability-proof { color: var(--accent); border-color: var(--accent); }
.capability-proof strong { color: var(--ink); }
footer { padding: 42px 0 0; color: var(--muted); }
.back { border-color: var(--line); }
.back:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }

.motion-ready .reveal { opacity: 0; transform: translateY(26px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1); }
.motion-ready .lead .reveal:nth-child(2) { transition-delay: .08s; }
.motion-ready .lead .reveal:nth-child(3) { transition-delay: .16s; }
.motion-ready .lead .reveal:nth-child(4) { transition-delay: .24s; }
.motion-ready .lead::after { opacity: 0; transform: scale(1.035) translateX(16px); transition: opacity .9s .1s ease, transform 1.1s .1s cubic-bezier(.2,.7,.2,1); }
.motion-ready .lead.hero-visible::after { opacity: 1; transform: scale(1) translateX(0); }

@media (max-width: 1120px) {
  :root { --rail-w: 280px; }
  .rail { padding-inline: 24px; }
  .lead { grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); }
  .headline { font-size: clamp(42px, 5vw, 60px); }
  .capability-row { grid-template-columns: 155px minmax(0, 1fr) 210px; gap: 22px; }
}

@media (max-width: 900px) {
  html { height: auto; scroll-padding-top: 110px; }
  body { height: auto; overflow: visible; }
  .shell { display: block; height: auto; }
  .rail { display: none; }
  .mobile-head { display: block; padding: 25px 22px 18px; background: var(--rail); border-color: var(--line); }
  .mobile-head .name { margin: 10px 0 8px; font-size: 38px; }
  .mobile-head .role { font-size: 15px; }
  .mobile-head .contact { padding-top: 10px; }
  .mobile-nav { display: flex; position: sticky; top: 0; z-index: 20; min-height: 50px; padding: 0 10px; overflow-x: auto; border-color: var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); }
  .mobile-nav a { padding: 0 12px; color: var(--muted); }
  .mobile-nav a.active { color: var(--accent); }
  .content { height: auto; overflow: visible; padding: 24px 20px 60px; }
  .lead { min-height: 0; display: block; padding-bottom: 46px; }
  .lead::after { display: block; min-height: 260px; margin-top: 28px; background-position: center; }
  .headline { margin: 34px 0 20px; font-size: clamp(37px, 11vw, 54px); }
  .dek { font-size: 17px; }
  .metrics { margin-top: 30px; }
  section { padding: 68px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 31px; }
  .principles { grid-template-columns: 1fr; }
  .ai-feature-head, .ai-feature-body { grid-template-columns: 1fr; }
  .ai-status-row { justify-content: flex-start; }
  .ai-evidence-cell + .ai-evidence-cell { border-left: 0; border-top: 1px solid var(--line); }
  .job { grid-template-columns: 1fr; gap: 8px; }
  .job:not(:last-child)::before { display: none; }
  .job-body { border-left-color: var(--line); }
  .project { grid-template-columns: 1fr; gap: 6px; }
  .capability-row { grid-template-columns: 1fr; gap: 10px; }
  .capability-proof { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
}

@media (max-width: 430px) {
  .content { padding-inline: 17px; }
  .mobile-head { padding-inline: 17px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric, .metric + .metric { min-height: 80px; padding: 13px 12px; }
  .metric strong { font-size: 15px; }
  .metric span { font-size: 10px; }
  .ai-feature-head, .ai-evidence-cell { padding-inline: 19px; }
  .ai-boundary { margin-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .content { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .motion-ready .reveal, .motion-ready .lead::after { opacity: 1; transform: none; }
}

@media print {
  html, body, .shell, .content { height: auto; overflow: visible; }
  .content { padding: 24px 26px; }
  .lead { min-height: 0; display: block; }
  .lead::after { display: none; }
  .section-no { display: block; }
}
