/* 技术研发总监个人简历站 · Apple 风格：深空灰 / 亮白 / Action Blue */
:root {
  --blue: #007AFF;
  --blue-soft: #4DA6FF;
  --cyan: #00C6FF;
  --green: #30D158;
  --ink: #1D1D1F;
  --ink-soft: #515154;
  --muted: #86868B;
  --hairline: #E3E3E6;
  --paper: #F5F5F7;
  --card: #FAFAFC;
  --deep: #000000;
  --deep-2: #101013;
  --deep-3: #1A1A1F;
  --canvas: #FFFFFF;
  --section-light: #FFFFFF;
  --section-paper: #F5F5F7;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.4, 1);
}

html[data-theme="dark"] {
  --ink: #F5F5F7;
  --ink-soft: #D2D2D7;
  --muted: #A1A1A6;
  --hairline: #2A2A2C;
  --paper: #0B0B0E;
  --card: #151519;
  --deep: #050507;
  --deep-2: #0E0E12;
  --deep-3: #18181D;
  --canvas: #0E0E12;
  --section-light: #0E0E12;
  --section-paper: #0B0B0E;
  --nav-bg: rgba(14, 14, 18, 0.82);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

body.nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.band {
  position: relative;
  padding: 88px 0;
}

.section-light {
  background: var(--section-light);
}

.section-paper {
  background: var(--section-paper);
}

.section-dark {
  background: var(--deep);
  color: #F5F5F7;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: var(--radius-pill);
}

.eyebrow.light {
  color: var(--blue-soft);
}

.eyebrow.light::before {
  background: var(--blue-soft);
}

.section-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-title.light {
  color: #FFFFFF;
}

.section-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--hairline);
}

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--deep);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

html[data-theme="dark"] .brand-mark {
  background: #FFFFFF;
  color: var(--deep);
}

.brand-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--ink);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), border-color 0.25s var(--ease);
}

.icon-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.icon-btn:active {
  transform: scale(0.95);
}

.lang-toggle {
  width: auto;
  flex-basis: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--hairline);
}

.theme-btn .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-btn .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-btn .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: none;
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 0;
  background: var(--section-light);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(0, 122, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 122, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 56px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 122, 255, 0.06);
  margin-bottom: 24px;
}

.hero-name {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  background: linear-gradient(100deg, #1D1D1F 0%, #007AFF 42%, #00C6FF 60%, #1D1D1F 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: brand-sweep 7s linear infinite;
}

html[data-theme="dark"] .hero-name {
  background-image: linear-gradient(100deg, #FFFFFF 0%, #4DA6FF 40%, #00C6FF 62%, #FFFFFF 100%);
}

.hero-name-en {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.75;
}

.hero-role {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-lead {
  margin-top: 18px;
  max-width: 620px;
  font-size: 17px;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--section-paper);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-chip svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--blue-soft);
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.28);
}

.btn-ghost {
  color: var(--blue);
  border: 1px solid var(--hairline);
  background: var(--card);
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(0, 122, 255, 0.06);
}

.hero-panel {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.panel-years {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  border: 1px solid rgba(0, 122, 255, 0.3);
  background: rgba(0, 122, 255, 0.08);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.panel-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.stack-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--section-paper);
  border: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--mono);
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.panel-metric {
  min-width: 0;
}

.panel-metric strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

.panel-metric span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

@keyframes brand-sweep {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.tech-ticker {
  position: relative;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--section-paper);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 42s linear infinite;
}

.ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.ticker-track i {
  font-style: normal;
  color: var(--blue);
  font-size: 14px;
}

.ticker-sep {
  color: var(--blue) !important;
  padding: 0 16px;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* Value */
.value-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.value-lead p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.value-proof {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 122, 255, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink) !important;
}

.value-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pillar {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  min-height: 132px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.pillar:hover {
  border-color: rgba(0, 122, 255, 0.5);
  transform: translateY(-3px);
}

.pillar-num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 12px;
}

.pillar h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
  min-width: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.metric:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(77, 166, 255, 0.45);
  transform: translateY(-3px);
}

.metric-value {
  font-size: 38px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 14px;
}

.metric-value .metric-num {
  color: var(--blue-soft);
}

.metric h3 {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.metric p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

/* Strengths */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.strength-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.strength-card:hover {
  border-color: rgba(0, 122, 255, 0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.strength-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.strength-card ul {
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.strength-card li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.strength-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--blue-soft);
  border-radius: var(--radius-pill);
  transform: scaleY(var(--tl-progress, 0));
  transform-origin: top;
  transition: transform 0.2s linear;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -26px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--deep);
  border: 3px solid var(--blue-soft);
  z-index: 1;
}

.timeline-item.active .timeline-marker {
  box-shadow: 0 0 0 6px rgba(77, 166, 255, 0.22);
}

.timeline-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.tl-head h3 {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.tl-role {
  margin-top: 5px;
  font-size: 13px;
  color: var(--blue-soft);
}

.tl-meta {
  flex: 0 0 auto;
  text-align: right;
  display: grid;
  gap: 5px;
}

.tl-meta span {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.tl-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.tl-list {
  display: grid;
  gap: 8px;
}

.tl-list li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.tl-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project-card:hover {
  border-color: rgba(0, 122, 255, 0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.project-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.project-index {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.project-head h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.project-meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.project-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.project-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--section-paper);
  border: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--ink-soft);
}

.early-wrap {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.early-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.early-head h3 {
  font-size: 18px;
  font-weight: 600;
}

.early-head p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.early-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.early-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--section-paper);
  padding: 16px;
}

.early-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.early-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* Education */
.edu-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.edu-major {
  margin-top: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.edu-dates {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.certs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
  min-width: 0;
  text-align: left;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-card:hover {
  border-color: rgba(0, 122, 255, 0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  margin-bottom: 16px;
}

.contact-icon svg {
  width: 21px;
  height: 21px;
}

.contact-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.contact-card strong {
  font-size: 17px;
  font-weight: 600;
  word-break: break-all;
}

.contact-action {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--section-paper);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* Back to top & toast */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.32);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--blue-soft);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 16px);
  background: var(--deep);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  font-size: 13px;
}

.skip-link:focus {
  left: 0;
}

/* Tablet */
@media (max-width: 1068px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-panel {
    max-width: 640px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .strengths-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .edu-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    padding: 14px 24px 22px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
  }

  .nav-panel.open {
    display: grid;
    gap: 6px;
  }

  .nav-panel a {
    display: block;
    padding: 13px 14px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
  }

  .nav-panel a:hover,
  .nav-panel a.active {
    color: var(--blue);
    background: rgba(0, 122, 255, 0.08);
  }

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

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

/* Phone */
@media (max-width: 640px) {
  .container {
    width: min(1200px, 100% - 32px);
  }

  .band {
    padding: 64px 0;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 44px);
  }

  .hero-name {
    font-size: 42px;
  }

  .hero-name-en {
    font-size: 20px;
  }

  .hero-role {
    font-size: 17px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .section-title {
    font-size: 27px;
  }

  .value-lead p {
    font-size: 16px;
  }

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

  .metric-value {
    font-size: 32px;
  }

  .strengths-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .tl-head {
    flex-direction: column;
    gap: 10px;
  }

  .tl-meta {
    text-align: left;
  }

  .early-head {
    flex-direction: column;
    gap: 6px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .brand-text {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .lang-toggle {
    width: auto;
    padding: 0 10px;
  }
}

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

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

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