:root {
  --ink: #171f1d;
  --ink-2: #202c29;
  --cream: #fbf3df;
  --paper: #f6efe3;
  --muted: #cfc8ba;
  --soft: #efe6d7;
  --line: rgba(251, 243, 223, 0.18);
  --gold: #f1d98f;
  --green: #8fa895;
  --body: #1f2422;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

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

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

p {
  line-height: 1.62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  color: var(--cream);
  background: rgba(23, 31, 29, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  color: rgba(251, 243, 223, 0.86);
}

.site-nav a:hover {
  color: var(--cream);
}

.site-nav a.is-current {
  color: var(--gold);
}

.nav-cta,
.button {
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 760;
}

.nav-cta {
  padding: 12px 16px;
  color: var(--gold) !important;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 243, 223, 0.35);
  border-radius: 4px;
  background: transparent;
  color: var(--cream);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 58px;
  min-height: 620px;
  padding: 58px 5vw 44px;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(23, 31, 29, 0.98), rgba(23, 31, 29, 0.92)),
    radial-gradient(circle at 80% 22%, rgba(241, 217, 143, 0.2), transparent 38%),
    var(--ink);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  max-width: 790px;
}

.slogan-only {
  gap: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  color: var(--cream);
  font-size: clamp(44px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-title {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 62px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.22;
}

.hero-summary {
  max-width: 720px;
  color: rgba(251, 243, 223, 0.78);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button.secondary {
  color: var(--cream);
}

.button.secondary.dark {
  color: var(--ink);
}

.hero-portrait {
  align-self: center;
  margin: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(251, 243, 223, 0.18);
  border-radius: 4px;
  background: var(--ink-2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 50% 20%;
}

.case-panel {
  align-self: center;
  display: grid;
  gap: 18px;
  padding: 30px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.case-panel h2 {
  font-size: 30px;
}

.case-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 31, 29, 0.18);
}

.case-item span,
.project-grid span,
.date {
  color: #6f695e;
  font-size: 13px;
  font-weight: 800;
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--cream);
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-band div {
  min-height: 158px;
  padding: 30px 5vw 30px 28px;
  border-right: 1px solid var(--line);
}

.capability-band div:first-child {
  padding-left: 5vw;
}

.capability-band div:last-child {
  border-right: 0;
}

.capability-band p {
  margin-top: 9px;
  color: rgba(251, 243, 223, 0.7);
  font-size: 14px;
}

.section {
  padding: 90px 5vw;
  scroll-margin-top: 96px;
}

.page-section {
  min-height: calc(100vh - 132px);
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 70px;
  background: var(--paper);
}

.split-section h2,
.section-heading h2 {
  color: var(--ink);
}

.prose {
  display: grid;
  gap: 20px;
  color: #4b463e;
  font-size: 18px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 36px;
}

.about-home {
  color: var(--cream);
  background: var(--ink);
}

.about-home .section-heading h2 {
  color: var(--cream);
}

.about-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 42px;
  list-style: none;
}

.about-bullets li {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(251, 243, 223, 0.82);
  line-height: 1.68;
}

.tag-orbit {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at 22% 18%, rgba(229, 95, 80, 0.18), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(111, 168, 220, 0.18), transparent 28%),
    linear-gradient(145deg, #1d2926, #111816);
}

.tag-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tag-lines path {
  fill: none;
  stroke: rgba(251, 243, 223, 0.24);
  stroke-width: 0.42;
  stroke-linecap: round;
  stroke-dasharray: 1.5 1.8;
}

.tag-lines .secondary-lines {
  stroke: rgba(251, 243, 223, 0.13);
  stroke-width: 0.28;
}

.orbit-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 243, 223, 0.28);
  border-radius: 50%;
  color: var(--cream);
  background: linear-gradient(145deg, #253531, #101614);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.orbit-core::before {
  content: none;
}

.bubble {
  position: absolute;
  z-index: 3;
  display: flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #101614;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  box-shadow: 0 14px 35px rgba(23, 31, 29, 0.16);
}

.bubble-life {
  background: linear-gradient(145deg, #ff8b78, #e75248);
}

.bubble-skill {
  background: linear-gradient(145deg, #94c8ef, #5e9ed4);
}

.bubble-hobby {
  background: linear-gradient(145deg, #a6e596, #66c777);
}

.bubble-red {
  color: var(--cream);
  background: linear-gradient(145deg, #d85b55, #9f2f34);
  box-shadow: 0 16px 38px rgba(159, 47, 52, 0.28);
}

.bubble-1 { left: 12%; top: 13%; }
.bubble-2 { right: 14%; top: 12%; }
.bubble-3 { left: 15%; bottom: 13%; }
.bubble-4 { right: 13%; bottom: 14%; }
.bubble-5 { left: 27%; top: 39%; width: 96px; height: 96px; }
.bubble-6 { right: 27%; top: 39%; width: 96px; height: 96px; }
.bubble-7 { left: 36%; bottom: 7%; width: 100px; height: 100px; }
.bubble-8 { right: 35%; top: 7%; width: 104px; height: 104px; }
.bubble-9 { right: 4%; top: 42%; width: 104px; height: 104px; }

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

.education-card,
.training-card,
.project-grid article,
.credential-card,
.contact-card {
  background: #fffaf1;
  border: 1px solid #e4d8c6;
  border-radius: 4px;
}

.education-card {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.education-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: 1fr minmax(260px, 380px);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.education-card.featured .education-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
}

.education-card.featured img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 50% 22%;
}

.institution {
  color: #585045;
  font-weight: 740;
}

.training-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 30px;
  background: var(--ink-2);
  color: var(--cream);
  border-color: rgba(251, 243, 223, 0.16);
}

.training-card p {
  color: rgba(251, 243, 223, 0.76);
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(251, 243, 223, 0.22);
  border-radius: 3px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
}

.resource-list a::after {
  content: "打开";
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid #ddd0bd;
}

.timeline article {
  display: grid;
  grid-template-columns: 180px 0.62fr 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #ddd0bd;
}

.timeline p:last-child {
  color: #4d473f;
}

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

.project-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 270px;
  padding: 24px;
}

.project-grid p,
.education-card p,
.credential-card p {
  color: #4d473f;
}

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

.credential-card {
  padding: 24px;
}

.credential-links {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, 1fr);
}

.credential-links a {
  color: var(--ink);
  border-color: #e4d8c6;
  background: #fffaf1;
}

.credential-links a::after {
  color: #8d6a20;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 36px;
  align-items: start;
  color: var(--cream);
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  grid-column: 1;
  color: rgba(251, 243, 223, 0.84);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.contact-card a {
  color: inherit;
  font-size: inherit;
  font-weight: 800;
  word-break: break-word;
}

.contact-card .button.secondary.dark {
  color: var(--cream);
  border-color: rgba(251, 243, 223, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  color: rgba(251, 243, 223, 0.72);
  background: var(--ink);
  font-size: 14px;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 5vw 22px;
    background: rgba(23, 31, 29, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .nav-cta {
    display: inline-flex;
    width: max-content;
    padding: 12px 16px !important;
  }

  .hero,
  .split-section,
  .training-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    min-height: auto;
  }

  .case-panel {
    align-self: stretch;
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 520px;
  }

  .capability-band,
  .education-grid,
  .project-grid,
  .credential-layout,
  .credential-links,
  .about-bullets {
    grid-template-columns: 1fr 1fr;
  }

  .tag-orbit {
    min-height: 620px;
  }

  .bubble {
    width: 96px;
    height: 96px;
    font-size: 14px;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .hero,
  .section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero {
    padding-top: 50px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-summary,
  .prose {
    font-size: 16px;
  }

  .case-panel,
  .education-card,
  .training-card,
  .project-grid article,
  .credential-card,
  .contact-card {
    padding: 22px;
  }

  .case-item {
    grid-template-columns: 42px 1fr;
  }

  .capability-band,
  .education-grid,
  .project-grid,
  .credential-layout,
  .credential-links,
  .about-bullets,
  .education-card.featured {
    grid-template-columns: 1fr;
  }

  .hero-portrait,
  .hero-portrait img {
    min-height: 430px;
  }

  .tag-orbit {
    min-height: 700px;
  }

  .orbit-core {
    top: 48%;
    width: 74px;
    height: 74px;
    font-size: 22px;
  }

  .bubble {
    width: 82px;
    height: 82px;
    font-size: 12px;
  }

  .bubble-1 { left: 4%; top: 7%; }
  .bubble-2 { right: 4%; top: 9%; }
  .bubble-3 { left: 4%; bottom: 9%; }
  .bubble-4 { right: 5%; bottom: 8%; }
  .bubble-5 { left: 3%; top: 40%; width: 76px; height: 76px; }
  .bubble-6 { right: 3%; top: 40%; width: 76px; height: 76px; }
  .bubble-7 { left: 31%; bottom: 2%; width: 82px; height: 82px; }
  .bubble-8 { right: 31%; top: 1%; width: 82px; height: 82px; }
  .bubble-9 { right: 2%; top: 27%; width: 78px; height: 78px; }

  .capability-band div,
  .capability-band div:first-child {
    min-height: auto;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .education-card.featured img {
    min-height: 420px;
    order: -1;
  }

  .site-footer {
    flex-direction: column;
    padding-right: 22px;
    padding-left: 22px;
  }
}
