:root {
  color-scheme: light;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.12);
  --surface: #ffffff;
  --soft: #f5f5f7;
  --blue: #0071e3;
  --blue-deep: #004b9b;
  --green: #2f7d6d;
  --orange: #c9672d;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 54px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(180%);
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  color: rgba(29, 29, 31, 0.78);
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-cta,
.primary-button {
  background: var(--blue);
  color: #fff;
}

.secondary-button {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.09);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 24px 74px;
  background:
    radial-gradient(circle at 50% 32%, rgba(210, 230, 255, 0.8), transparent 34%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 13vw, 164px);
  line-height: 0.9;
  font-weight: 800;
}

.hero-lead {
  max-width: 760px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.22;
  font-weight: 600;
}

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

.hero-media {
  position: absolute;
  inset: 54px 0 0;
  pointer-events: none;
}

.blueprint {
  position: absolute;
  left: 50%;
  bottom: 2vh;
  width: min(920px, 92vw);
  aspect-ratio: 2.4;
  transform: translateX(-50%);
  opacity: 0.78;
}

.beam {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0), rgba(0, 113, 227, 0.55), rgba(47, 125, 109, 0));
  box-shadow: 0 18px 70px rgba(0, 113, 227, 0.24);
}

.beam-a {
  left: 8%;
  right: 8%;
  top: 54%;
}

.beam-b {
  left: 20%;
  width: 44%;
  top: 34%;
  transform: rotate(-13deg);
}

.beam-c {
  right: 18%;
  width: 42%;
  top: 68%;
  transform: rotate(17deg);
}

.node {
  position: absolute;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 113, 227, 0.3);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.24)),
    conic-gradient(from 120deg, rgba(0, 113, 227, 0.55), rgba(47, 125, 109, 0.4), rgba(201, 103, 45, 0.35), rgba(0, 113, 227, 0.55));
  filter: blur(0.1px);
}

.node-a {
  left: 8%;
  top: 35%;
}

.node-b {
  left: 45%;
  top: 20%;
}

.node-c {
  right: 9%;
  top: 48%;
}

.section {
  padding: 112px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 820px;
  margin-bottom: 52px;
}

.section-heading h2,
.split-heading h2,
.contact-section h2,
.education-panel h2 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.03;
  letter-spacing: 0;
}

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

.metric-card {
  min-height: 230px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--soft);
}

.metric {
  display: block;
  margin-bottom: 34px;
  font-size: 66px;
  line-height: 1;
  font-weight: 800;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

.dark-section {
  background: #101114;
  color: #f5f5f7;
}

.dark-section .eyebrow {
  color: #7db7ff;
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  border-radius: 16px;
  background: #f5f5f7;
  color: #101114;
  font-weight: 800;
}

.skill-card h3,
.timeline-item h3,
.project-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.skill-card p,
.skill-card li {
  color: rgba(245, 245, 247, 0.72);
}

.skill-card p,
.project-card p,
.timeline-item p {
  font-size: 16px;
  line-height: 1.65;
}

.skill-card ul {
  margin: auto 0 0;
  padding: 0 0 0 18px;
}

.skill-card li + li {
  margin-top: 8px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.split-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
}

.timeline {
  border-top: 1px solid var(--hairline);
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding: 38px 0;
  border-bottom: 1px solid var(--hairline);
}

.time,
.project-year,
.role,
.degree {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.timeline-item p {
  max-width: 850px;
  margin: 16px 0 0;
  color: var(--muted);
}

.muted-section {
  background: var(--soft);
}

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

.project-card {
  min-height: 330px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(47, 125, 109, 0.12)),
    #fff;
}

.project-card h3 {
  margin-top: 18px;
}

.project-card p {
  color: var(--muted);
}

.project-card .role {
  margin: 12px 0 0;
  color: var(--blue-deep);
}

.education-section {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  background: #fff;
}

.education-panel,
.honor-panel {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--soft);
}

.degree {
  margin: 18px 0 28px;
}

.school-copy {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 28px;
  border-radius: 999px;
  padding: 0 18px 0 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.score-pill span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.score-pill strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #424245;
  font-size: 14px;
  font-weight: 600;
}

.honor-panel ul {
  margin: 22px 0 0;
  padding: 0 0 0 20px;
}

.honor-panel li {
  color: #424245;
  font-size: 17px;
  line-height: 1.55;
}

.honor-panel li + li {
  margin-top: 12px;
}

.contact-section {
  padding: 118px 24px;
  text-align: center;
  background: #101114;
  color: #f5f5f7;
}

.thesis-section {
  background: linear-gradient(180deg, #fff 0%, #eef6ff 100%);
}

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

.thesis-card {
  min-height: 360px;
  padding: 30px;
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(0, 67, 134, 0.08);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.thesis-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.thesis-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.08);
}

.result-strip div {
  padding: 30px;
  background: #101114;
  color: #f5f5f7;
}

.result-strip strong {
  display: block;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.result-strip span {
  display: block;
  margin-top: 12px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 15px;
  font-weight: 700;
}

.route-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding: 30px;
  border-radius: var(--radius);
  background: #101114;
  color: #f5f5f7;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.route-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 59px;
  height: 2px;
  background: linear-gradient(90deg, rgba(125, 183, 255, 0), rgba(125, 183, 255, 0.86), rgba(47, 125, 109, 0));
}

.route-panel article {
  position: relative;
  min-height: 230px;
}

.route-panel article::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 42px;
  border: 4px solid #7db7ff;
  border-radius: 50%;
  background: #101114;
}

.route-panel span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #7db7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-panel h3,
.comparison-copy h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.route-panel p {
  margin: 14px 0 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.comparison-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.comparison-copy,
.comparison-figures figure,
.results-gallery figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 52px rgba(0, 67, 134, 0.08);
}

.comparison-copy {
  padding: 30px;
}

.comparison-copy p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.comparison-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.comparison-figures img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  padding: 18px;
  background: #f5f5f7;
}

.results-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.results-gallery img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

.comparison-figures figcaption,
.results-gallery figcaption {
  padding: 16px 20px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-section .eyebrow {
  color: #7db7ff;
}

.contact-section h2 {
  max-width: 920px;
  margin: 0 auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  font-size: 13px;
  background: #101114;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer a {
  color: #f5f5f7;
}

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

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .intro-grid,
  .skill-grid,
  .project-grid,
  .thesis-grid,
  .result-strip,
  .route-panel,
  .comparison-panel,
  .comparison-figures,
  .results-gallery,
  .education-section,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .route-line {
    top: 30px;
    bottom: 30px;
    left: 39px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(125, 183, 255, 0), rgba(125, 183, 255, 0.72), rgba(47, 125, 109, 0));
  }

  .route-panel article {
    min-height: auto;
    padding-left: 42px;
  }

  .route-panel article::before {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 50px;
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-cta {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 88vh;
    padding: 96px 18px 54px;
  }

  .blueprint {
    bottom: 0;
    opacity: 0.62;
  }

  .node {
    width: 104px;
  }

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

  .section {
    padding: 76px 18px;
  }

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

  .metric {
    font-size: 54px;
  }

  .education-panel,
  .honor-panel,
  .skill-card,
  .project-card,
  .metric-card,
  .thesis-card {
    padding: 24px;
    border-radius: 20px;
  }

  .thesis-card {
    padding: 24px;
  }

  .contact-section {
    padding: 88px 18px;
  }

  .footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
