:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #5e6673;
  --paper: #fbfaf7;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(23, 26, 31, 0.13);
  --teal: #087f7a;
  --coral: #d95d39;
  --amber: #c38a1f;
  --violet: #6e5aa8;
  --shadow: 0 20px 60px rgba(23, 26, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial,
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.72), rgba(12, 14, 18, 0));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.83);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  color: #ffffff;
  background: #13161b;
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 30%, rgba(217, 93, 57, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.9), rgba(10, 12, 16, 0.54) 54%, rgba(10, 12, 16, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 92svh;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 72px;
}

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

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

.hero .eyebrow {
  color: #f2b27b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

.hero-lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: var(--teal);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.profile-panel {
  align-self: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.profile-panel img {
  display: block;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  margin: 0 0 22px auto;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  image-rendering: auto;
}

.profile-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
}

.profile-panel dt {
  color: rgba(255, 255, 255, 0.64);
}

.profile-panel dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) 0;
}

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

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.about-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.about-copy p {
  margin: 0 0 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-item,
.skill-card,
.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 36px rgba(23, 26, 31, 0.06);
}

.stat-item {
  min-height: 112px;
  padding: 18px;
}

.stat-item strong {
  display: block;
  color: var(--teal);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.skills-section {
  width: 100%;
  padding-right: max(18px, calc((100vw - 1160px) / 2));
  padding-left: max(18px, calc((100vw - 1160px) / 2));
  background:
    linear-gradient(90deg, rgba(8, 127, 122, 0.08), transparent 42%),
    #ffffff;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  min-height: 236px;
  padding: clamp(22px, 3vw, 30px);
}

.skill-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--amber);
  font-weight: 900;
}

.skill-card p,
.work-card p,
.timeline p {
  margin: 12px 0 0;
  color: var(--muted);
}

.work-section {
  padding-bottom: clamp(60px, 7vw, 96px);
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-card {
  display: grid;
  grid-template-columns: 160px minmax(180px, 0.7fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.work-meta {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.work-card a {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.timeline-section {
  width: 100%;
  padding-right: max(18px, calc((100vw - 1160px) / 2));
  padding-left: max(18px, calc((100vw - 1160px) / 2));
  background: #f2eee6;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid rgba(23, 26, 31, 0.16);
  padding: 26px 0;
}

.timeline time {
  color: var(--violet);
  font-weight: 900;
}

.contact-section {
  padding: clamp(68px, 9vw, 116px) 0;
  color: #ffffff;
  background: #191713;
}

.contact-inner {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: #191713;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero-inner,
  .about-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: end;
    padding-top: 108px;
  }

  .profile-panel {
    align-self: stretch;
    margin-bottom: 0;
  }

  .profile-panel img {
    max-width: 150px;
    margin-left: 0;
  }

  .work-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    min-height: 100svh;
  }

  h1 {
    font-size: clamp(42px, 15vw, 66px);
  }

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

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
