:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --ink: #232321;
  --muted: #6f6d67;
  --line: rgba(35, 35, 33, 0.12);
  --blue: #52677d;
  --cyan: #78909a;
  --green: #68786a;
  --orange: #9b7a58;
  --dark: #181816;
  --shadow: 0 24px 68px rgba(37, 35, 30, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(82, 103, 125, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 48%, #ffffff 100%);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(22px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 15px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(29, 29, 31, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.nav-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transform: translateY(-1px);
}

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

.hero {
  min-height: calc(100vh - 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: center;
  padding: 62px 0 86px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  opacity: 0.82;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 26px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  border: 0;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 22px rgba(82, 103, 125, 0.16);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(26px);
}

.portrait-wrap {
  overflow: hidden;
  width: 132px;
  aspect-ratio: 760 / 903;
  border-radius: 16px;
  background: #ececf0;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.profile-meta {
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.profile-meta p {
  margin-bottom: 8px;
}

.profile-meta .name {
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -36px;
  padding-bottom: 96px;
}

.metrics div,
.feature-card,
.education-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
}

.metrics div {
  min-height: 128px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-number {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 850;
  line-height: 1;
}

.metric-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  padding: 36px 0 108px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 310px;
  padding: 26px;
}

.feature-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f6f6;
  color: var(--blue);
  font-weight: 800;
}

.feature-card:nth-child(2) .feature-index {
  background: #f5f6f3;
  color: var(--green);
}

.feature-card:nth-child(3) .feature-index {
  background: #f8f4ee;
  color: var(--orange);
}

.feature-card:nth-child(4) .feature-index {
  background: #f6f5f5;
  color: #7c7068;
}

.feature-card h3,
.timeline-content h3 {
  margin: 28px 0 12px;
  font-size: 23px;
}

.feature-card p,
.timeline-content p,
.project-copy p,
.education-card p {
  color: var(--muted);
  line-height: 1.75;
}

.dark-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 108px max(20px, calc((100vw - 1180px) / 2)) 118px;
  background: var(--dark);
  color: white;
}

.dark-band .eyebrow {
  color: #aab6bd;
}

.dark-band .section-heading {
  width: min(760px, 100%);
}

.timeline {
  width: min(1180px, 100%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 34px;
}

.timeline-date {
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 700;
}

.timeline-content {
  max-width: 870px;
}

.timeline-content p,
.timeline-content li {
  color: rgba(255, 255, 255, 0.72);
}

ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.mobile-details summary {
  display: none;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 48px;
  align-items: center;
}

.project-role {
  color: var(--ink) !important;
  font-weight: 800;
}

.project-copy {
  font-size: 17px;
}

.device-card {
  border-radius: 34px;
  padding: 16px;
  background: #151517;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.22);
}

.device-topbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.device-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b98279;
}

.device-topbar span:nth-child(2) {
  background: #b7a16d;
}

.device-topbar span:nth-child(3) {
  background: #7f987f;
}

.assistant-screen {
  min-height: 340px;
  border-radius: 24px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(82, 103, 125, 0.1), transparent 34%),
    #f6f5f1;
}

.question {
  display: inline-flex;
  border-radius: 18px;
  padding: 12px 16px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.answer-lines {
  margin-top: 44px;
  display: grid;
  gap: 14px;
}

.answer-lines span {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #52677d, #8c989a);
  opacity: 0.66;
}

.answer-lines span:nth-child(2) {
  width: 82%;
  background: linear-gradient(90deg, #68786a, #8a9690);
}

.answer-lines span:nth-child(3) {
  width: 64%;
  background: linear-gradient(90deg, #9b7a58, #b7a488);
}

.source {
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
}

.skills-section {
  padding: 42px 0 94px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-cloud span,
.badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(29, 29, 31, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.education-section {
  padding-bottom: 102px;
}

.education-card {
  padding: 42px;
}

.education-card h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-section {
  margin-bottom: 84px;
  border-radius: 34px;
  padding: 72px;
  background: linear-gradient(135deg, #faf9f6 0%, #f4f6f4 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 35, 33, 0.08);
}

.contact-section h2 {
  max-width: 830px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.contact-list a,
.contact-list div {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(35, 35, 33, 0.1);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.contact-list span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-list strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .project-showcase,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 46px;
  }

  .profile-panel {
    max-width: 440px;
  }

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

@media (max-width: 640px) {
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    gap: 4px;
    font-size: 11px;
  }

  .nav-links a {
    min-height: 28px;
    padding: 0 8px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 34px;
    gap: 22px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.06;
    margin-bottom: 18px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .profile-panel {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
  }

  .portrait-wrap {
    width: 76px;
    aspect-ratio: 760 / 903;
  }

  .profile-meta {
    padding: 0;
    font-size: 13px;
    line-height: 1.38;
  }

  .profile-meta p {
    margin-bottom: 4px;
  }

  .profile-meta .name {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .metrics {
    display: none;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split-section {
    padding: 18px 0 54px;
  }

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

  .section-heading h2,
  .contact-section h2 {
    font-size: 32px;
    line-height: 1.14;
  }

  .feature-card {
    min-height: auto;
    padding: 18px;
  }

  .feature-card h3,
  .timeline-content h3 {
    margin: 16px 0 8px;
    font-size: 20px;
  }

  .feature-card p,
  .timeline-content p,
  .project-copy p,
  .education-card p,
  li {
    font-size: 14px;
    line-height: 1.58;
  }

  .dark-band {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .timeline-item {
    gap: 14px;
    padding-top: 22px;
  }

  .timeline-date {
    font-size: 13px;
  }

  .project-showcase {
    gap: 24px;
  }

  .device-card {
    display: none;
  }

  .skills-section {
    padding: 18px 0 54px;
  }

  .skill-cloud {
    gap: 8px;
  }

  .skill-cloud span,
  .badges span {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .education-section {
    padding-bottom: 54px;
  }

  .education-card {
    padding: 24px;
  }

  .education-card h2 {
    font-size: 26px;
  }

  .mobile-details {
    margin-top: 14px;
  }

  .mobile-details summary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0 13px;
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
  }

  .mobile-details summary::-webkit-details-marker {
    display: none;
  }

  .project-copy .mobile-details summary {
    border-color: var(--line);
    background: rgba(255, 250, 242, 0.78);
  }

  .mobile-details ul {
    margin-top: 14px;
  }

  .contact-section {
    padding: 42px 24px;
    border-radius: 24px;
    margin-bottom: 42px;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .contact-list a,
  .contact-list div {
    min-height: auto;
    padding: 16px;
    border-radius: 16px;
  }

  .contact-list strong {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }
}
