:root {
  color-scheme: light;
  --navy-950: #294354;
  --navy-900: #35586d;
  --navy-800: #54788c;
  --blue-600: #5f87a7;
  --green-700: #47745e;
  --green-600: #7da88a;
  --green-100: #e4f0e7;
  --amber-500: #c47f61;
  --paper: #f5f3ef;
  --surface: #fffdf8;
  --surface-soft: #e7eff0;
  --ink: #20313a;
  --text: #3d5058;
  --muted: #6d7d82;
  --line: #d9dfdc;
  --line-strong: #b8c8c0;
  --danger: #b85e5a;
  --focus: #5f87a7;
  --content: 1160px;
  --radius: 6px;
  --shadow-sm: 0 4px 16px rgba(41, 67, 84, 0.07);
  --shadow-md: 0 18px 46px rgba(41, 67, 84, 0.14);
  --ease: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-900);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform var(--ease);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(var(--content), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  gap: 32px;
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: var(--navy-900);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  min-width: 56px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color var(--ease), background var(--ease);
}

.site-nav a:hover {
  color: var(--navy-900);
  background: var(--surface-soft);
}

.availability {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0 12px;
  color: #166534;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.availability i,
.signal-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--ink);
  background-color: #dce9e5;
  background-image: none;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-blend-mode: normal;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 249, 246, 0.48);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--amber-500);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--content), calc(100% - 40px));
  min-height: 520px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 72px;
  padding: 56px 0 52px;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow,
.section-index,
.signal-label,
.location-label {
  color: var(--green-700);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 14px;
}

.hero h1 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 68px;
  font-weight: 850;
}

.role-line {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 650;
}

.role-line span {
  margin: 0 8px;
  color: var(--amber-500);
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #425961;
  font-size: 18px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #203c2b;
  background: #8fbd9e;
}

.button-primary:hover {
  background: #a6cdb1;
}

.button-secondary {
  border-color: rgba(41, 67, 84, 0.3);
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.54);
}

.button-secondary:hover {
  border-color: rgba(41, 67, 84, 0.52);
  background: rgba(255, 255, 255, 0.78);
}

.keyword-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.keyword-band span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(41, 67, 84, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 650;
}

.signal-panel {
  position: relative;
  border: 1px solid rgba(41, 67, 84, 0.2);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.signal-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 72px;
  height: 2px;
  background: var(--amber-500);
}

.signal-label {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}

.signal-panel dl {
  display: grid;
  margin-bottom: 0;
}

.signal-panel dl div {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(41, 67, 84, 0.14);
}

.signal-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.signal-panel dd {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.route-line {
  position: relative;
  display: flex;
  height: 34px;
  margin: 22px 0 10px;
  align-items: center;
  justify-content: space-between;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 1px;
  background: rgba(71, 116, 94, 0.5);
}

.route-line span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--green-700);
  border-radius: 50%;
  background: #dce9e5;
}

.location-label {
  margin-bottom: 5px;
  color: var(--muted);
}

.location-value {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: 14px;
}

.content-shell {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.resume-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 72px;
  border-top: 1px solid var(--line);
  padding: 88px 0;
  scroll-margin-top: 72px;
}

.resume-section:first-child {
  border-top: 0;
}

.section-head {
  align-self: start;
}

.section-index {
  margin-bottom: 14px;
  color: var(--green-700);
}

.section-head h2,
.locked-copy h2 {
  margin-bottom: 16px;
  font-size: 34px;
  font-weight: 800;
}

.section-head > p:last-child {
  max-width: 290px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.skill-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.skill-matrix article {
  min-height: 140px;
  border-bottom: 1px solid var(--line);
  padding: 24px 22px 22px 0;
}

.skill-matrix article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.skill-matrix article:nth-child(even) {
  padding-left: 22px;
}

.skill-matrix h3 {
  position: relative;
  margin-bottom: 10px;
  padding-left: 17px;
  font-size: 16px;
}

.skill-matrix h3::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green-600);
}

.skill-matrix p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.public-grid {
  display: grid;
  gap: 14px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credentials-stack {
  display: grid;
  gap: 28px;
}

.public-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.public-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.school-card {
  display: grid;
  min-height: 154px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 24px;
}

.card-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  color: var(--navy-900);
  background: var(--surface-soft);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 800;
}

.school-card h3,
.cert-list h3,
.timeline-content h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.school-card p,
.cert-list p,
.timeline-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.cert-list article {
  display: grid;
  min-height: 112px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 14px;
  transition: background var(--ease);
}

.cert-list article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.cert-list article:hover {
  background: var(--surface);
}

.cert-no {
  color: var(--green-700);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 800;
}

.cert-list time {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.cert-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #166534;
  background: var(--green-100);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.cert-list .cert-planned {
  background: #fff7ed;
}

.cert-planned .cert-state {
  color: #9a3412;
  background: #ffedd5;
}

.public-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 165px;
  width: 1px;
  background: var(--line-strong);
}

.public-timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 58px;
  min-height: 116px;
  padding: 4px 0 30px;
}

.public-timeline > li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 159px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.public-timeline > .is-current::before {
  background: var(--green-600);
  box-shadow: 0 0 0 1px var(--green-600), 0 0 0 6px rgba(22, 163, 74, 0.1);
}

.timeline-date {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.timeline-date time {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.timeline-date span {
  border-radius: 999px;
  padding: 3px 8px;
  color: #166534;
  background: var(--green-100);
  font-size: 11px;
  font-weight: 750;
}

.timeline-content {
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
}

.timeline-content .role-name {
  color: var(--green-700);
  font-weight: 700;
}

.role-points {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  list-style: none;
}

.role-points li {
  position: relative;
  min-height: 0;
  padding: 0 0 0 16px;
}

.role-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-grid > article {
  min-height: 288px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.project-grid > article:nth-child(1) {
  background: #eef4f7;
}

.project-grid > article:nth-child(2) {
  background: #eef4ed;
}

.project-grid > article:nth-child(3) {
  background: #f2eef5;
}

.project-grid > article:nth-child(4) {
  background: #f8efe9;
}

.project-grid > article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-top {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-top span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--navy-800);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 750;
}

.project-top strong {
  color: var(--green-700);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
}

.project-grid h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.project-grid p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.project-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-grid li {
  border-left: 2px solid var(--green-600);
  padding-left: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 88px 0 24px;
  scroll-margin-top: 96px;
}

.contact-copy h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
}

.contact-copy > p:last-of-type {
  max-width: 570px;
  margin-bottom: 28px;
  color: var(--muted);
}

.email-link {
  display: flex;
  width: min(100%, 440px);
  min-height: 116px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--navy-900);
  background: rgba(234, 241, 239, 0.72);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.email-link:hover {
  border-color: var(--green-600);
  background: #e5f0e8;
  transform: translateY(-2px);
}

.email-link:focus-visible {
  outline: 3px solid rgba(95, 135, 167, 0.28);
  outline-offset: 3px;
}

.email-link svg {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  padding: 12px;
  fill: currentColor;
  background: rgba(143, 189, 158, 0.24);
}

.email-link span {
  display: grid;
  gap: 2px;
}

.email-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.email-link strong {
  font-size: 19px;
}

.wechat-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm);
}

.qr-frame {
  overflow: hidden;
  border: 1px solid rgba(53, 88, 109, 0.12);
  border-radius: calc(var(--radius) - 2px);
  aspect-ratio: 1;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-card figcaption {
  display: flex;
  margin-top: 14px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wechat-card figcaption strong {
  color: var(--ink);
  font-size: 16px;
}

.wechat-card figcaption span {
  color: var(--muted);
  font-size: 12px;
}

.locked-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 72px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 54px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #eaf1ef;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px;
}

.locked-section::after {
  content: "SECURE / LOCAL DECRYPTION";
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(53, 88, 109, 0.28);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
}

.locked-copy {
  position: relative;
  z-index: 1;
}

.locked-copy h2 {
  color: var(--ink);
}

.locked-copy > p:last-child {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
}

.lock-visual {
  position: absolute;
  top: -28px;
  left: 30%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(71, 116, 94, 0.14);
  border-radius: 50%;
}

.lock-visual::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 59px;
  width: 40px;
  height: 34px;
  border: 3px solid rgba(71, 116, 94, 0.2);
  border-radius: 5px;
}

.lock-visual::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 67px;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(71, 116, 94, 0.2);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.unlock-panel {
  position: relative;
  z-index: 1;
  align-self: center;
}

.unlock-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.unlock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.unlock-row input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.unlock-row input::placeholder {
  color: #87969a;
}

.unlock-row input:focus {
  border-color: var(--blue-600);
  outline: 0;
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(95, 135, 167, 0.18);
}

.unlock-row button,
.download-attachment-btn {
  min-height: 52px;
  border: 1px solid #7da88a;
  border-radius: var(--radius);
  padding: 0 20px;
  color: #203c2b;
  background: #8fbd9e;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), opacity var(--ease);
}

.unlock-row button:hover:not(:disabled),
.download-attachment-btn:hover:not(:disabled) {
  background: #a6cdb1;
  transform: translateY(-2px);
}

.unlock-row button:disabled,
.download-attachment-btn:disabled {
  cursor: wait;
  opacity: 0.58;
}

.privacy-note {
  display: flex;
  margin: 12px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-note span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--green-700);
  border-radius: 50%;
}

.status {
  min-height: 24px;
  margin: 8px 0 0;
  color: #9a4f32;
  font-size: 13px;
  font-weight: 700;
}

.private-content {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}

.private-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.private-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 253, 248, 0.78);
}

.private-block h3 {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 19px;
}

.full-width {
  grid-column: 1 / -1;
}

.attachment-block {
  display: grid;
  gap: 12px;
}

.attachment-block h3 {
  margin-bottom: 0;
}

.download-attachment-btn {
  width: fit-content;
}

.item-title {
  display: block;
  color: var(--ink);
  font-weight: 750;
}

.item-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.timeline,
.clean-list,
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.clean-list li {
  border-left: 2px solid var(--green-600);
  padding-left: 12px;
}

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

.contact-card-list li.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 78px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 253, 248, 0.9);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.contact-card-list li.contact-card:hover,
.contact-card-list li.contact-card:focus-visible {
  border-color: var(--green-600);
  background: #f3f7f2;
  transform: translateY(-2px);
}

.contact-card.has-qr {
  cursor: default;
}

.contact-copy {
  min-width: 0;
}

.contact-copy .item-meta {
  overflow-wrap: anywhere;
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 5px;
  color: var(--green-700);
  background: var(--green-100);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon.is-mail {
  color: var(--blue-600);
}

.contact-icon.is-x,
.contact-icon.is-github,
.contact-icon.is-linkedin,
.contact-icon.is-default {
  color: var(--navy-800);
}

.wechat-qr-preview {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  display: grid;
  gap: 8px;
  width: 190px;
  justify-items: center;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity var(--ease), transform var(--ease);
}

.wechat-qr-preview img {
  width: 150px;
  height: 150px;
  border-radius: 4px;
  object-fit: contain;
}

.wechat-qr-preview span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.contact-card.has-qr:hover .wechat-qr-preview,
.contact-card.has-qr:focus-within .wechat-qr-preview,
.contact-card.has-qr:focus .wechat-qr-preview {
  opacity: 1;
  transform: translate(-50%, 0);
}

.private-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.private-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #fde68a;
  background: rgba(217, 119, 6, 0.15);
  font-size: 12px;
  font-weight: 700;
}

.copy-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  z-index: 100;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 16px;
  color: #fff;
  background: var(--green-700);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition: opacity var(--ease), transform var(--ease);
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-toast.is-error {
  background: var(--danger);
}

.toast-icon {
  display: flex;
  width: 19px;
  height: 19px;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  display: flex;
  width: min(var(--content), calc(100% - 40px));
  min-height: 132px;
  margin: 72px auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 750;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-copy {
    animation: reveal 440ms var(--ease) both;
  }

  .signal-panel {
    animation: reveal 440ms 100ms var(--ease) both;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .resume-section {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 38px;
  }

  .education-grid,
  .cert-list,
  .skill-matrix,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .cert-list article:nth-child(odd),
  .skill-matrix article:nth-child(odd) {
    border-right: 0;
  }

  .skill-matrix article,
  .skill-matrix article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .locked-section {
    gap: 36px;
    padding: 42px;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr) 224px;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-shell,
  .hero-inner,
  .content-shell,
  .site-footer {
    width: min(100% - 28px, 640px);
  }

  .site-nav {
    display: none;
  }

  .availability {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    background-position: 62% center;
    background-size: auto 72%;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 0 28px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .role-line {
    font-size: 18px;
  }

  .lead {
    font-size: 16px;
  }

  .signal-panel {
    padding: 22px;
  }

  .signal-panel dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .signal-panel dl div {
    display: grid;
    min-height: 72px;
    align-content: center;
    justify-content: stretch;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    gap: 4px;
  }

  .signal-panel dl div:last-child {
    border-right: 0;
  }

  .signal-panel dd {
    font-size: 15px;
  }

  .route-line {
    display: none;
  }

  .location-label {
    margin-top: 16px;
  }

  .location-label,
  .location-value {
    display: none;
  }

  .resume-section {
    display: block;
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head > p:last-child {
    max-width: 470px;
  }

  .section-head h2,
  .locked-copy h2,
  .contact-copy h2 {
    font-size: 30px;
  }

  .public-timeline::before {
    left: 5px;
  }

  .public-timeline > li {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 0 0 32px 30px;
  }

  .public-timeline > li::before {
    top: 7px;
    left: 0;
  }

  .timeline-content {
    padding-bottom: 20px;
  }

  .role-points {
    margin-top: 12px;
  }

  .locked-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 24px;
  }

  .locked-section::after {
    display: none;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 64px 0 16px;
  }

  .wechat-card {
    width: min(100%, 264px);
  }

  .private-grid,
  .contact-card-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    min-height: 112px;
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .nav-shell {
    gap: 12px;
  }

  .email-link {
    width: 100%;
    min-height: 104px;
    padding: 18px;
  }

  .email-link strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .availability {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-inner {
    gap: 16px;
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .lead {
    margin-top: 16px;
  }

  .hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }

  .button {
    width: auto;
    min-height: 44px;
    flex: 1;
    padding: 0 10px;
    font-size: 13px;
  }

  .keyword-band {
    gap: 6px;
    margin-top: 16px;
  }

  .school-card {
    min-height: 134px;
    padding: 20px;
  }

  .cert-list article {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .cert-list time,
  .cert-list .cert-state {
    grid-column: 2;
    justify-self: start;
  }

  .project-grid > article {
    min-height: 0;
  }

  .unlock-row {
    grid-template-columns: 1fr;
  }

  .unlock-row button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@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-duration: 0.01ms !important;
  }
}
