:root {
  --ink: #12233d;
  --muted: #53657e;
  --paper: #eef9ff;
  --white: #ffffff;
  --mist: #f3eeff;
  --line: rgba(61, 106, 166, 0.18);
  --teal: #168de8;
  --gold: #8a73ff;
  --coral: #b86ff0;
  --night: #182345;
  --sky-glass: #44c8ff;
  --lavender-mist: #d9ccff;
  --shadow: 0 24px 70px rgba(54, 112, 190, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(68, 200, 255, 0.26), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(217, 204, 255, 0.36), transparent 32%),
    linear-gradient(135deg, #f4fbff 0%, #eef9ff 42%, #f3eeff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 8px;
  background: var(--ink);
  font-size: 13px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 74% 18%, rgba(68, 200, 255, 0.3), transparent 33%),
    radial-gradient(circle at 26% 12%, rgba(217, 204, 255, 0.46), transparent 36%),
    linear-gradient(135deg, #f8fdff 0%, #e7f7ff 46%, #f2edff 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(62px, 13vw, 150px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 700;
}

.hero-photo {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-photo figcaption {
  margin-top: 10px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-band div {
  display: grid;
  gap: 4px;
  padding: clamp(20px, 3.4vw, 34px);
  background: var(--white);
}

.metric-band strong {
  color: var(--teal);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.metric-band span {
  color: var(--muted);
  font-weight: 900;
}

.section {
  padding: clamp(66px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading,
.intro-grid,
.project-grid,
.skills-grid,
.photo-grid,
.timeline {
  width: min(1120px, 100%);
  margin: 0 auto;
}

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

h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.08;
}

.intro-section {
  background: rgba(255, 255, 255, 0.78);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 64px);
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
}

.intro-grid p {
  margin: 0;
}

.project-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(68, 200, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(238, 249, 255, 0.92), rgba(243, 238, 255, 0.92));
}

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

.project-grid article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(16, 32, 51, 0.08);
}

.project-grid article {
  min-height: 300px;
  padding: 24px;
}

.project-grid span {
  color: var(--gold);
  font-weight: 900;
}

h3 {
  margin: 12px 0 0;
  font-size: 23px;
  line-height: 1.18;
}

.project-grid p,
.timeline p {
  margin: 16px 0 0;
  color: var(--muted);
}

.photo-section {
  background:
    radial-gradient(circle at 80% 12%, rgba(68, 200, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #f4fbff, #f3eeff);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.86fr;
  gap: 14px;
}

.photo-card {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf5ff;
  box-shadow: var(--shadow);
}

.photo-card.wide {
  grid-column: span 2;
}

.photo-card.tall {
  grid-row: span 2;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.photo-card.tall img {
  min-height: 636px;
}

.photo-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 9px 11px;
  color: var(--white);
  border-radius: 8px;
  background: rgba(11, 23, 37, 0.68);
  backdrop-filter: blur(12px);
}

.growth-section {
  background: rgba(255, 255, 255, 0.78);
}

.skills-section {
  background:
    radial-gradient(circle at 16% 20%, rgba(217, 204, 255, 0.42), transparent 32%),
    linear-gradient(135deg, rgba(236, 249, 255, 0.94), rgba(246, 241, 255, 0.94));
}

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

.skills-grid article {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(16, 32, 51, 0.08);
}

.skills-grid span {
  color: var(--gold);
  font-weight: 900;
}

.skills-grid ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.skills-grid li::marker {
  color: var(--coral);
}

.growth-tabs,
.growth-detail-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

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

.growth-tab {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(16, 32, 51, 0.08);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.growth-tab:hover,
.growth-tab:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(68, 200, 255, 0.58);
  outline: none;
}

.growth-tab.is-active {
  color: var(--white);
  border-color: var(--night);
  background: var(--night);
}

.growth-tab span,
.growth-tab strong,
.growth-tab em {
  display: block;
}

.growth-tab span {
  color: var(--gold);
  font-weight: 900;
}

.growth-tab strong {
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.18;
}

.growth-tab em {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.growth-tab.is-active em {
  color: rgba(255, 255, 255, 0.7);
}

.growth-detail-shell {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 248, 255, 0.78), rgba(247, 242, 255, 0.92));
  box-shadow: var(--shadow);
}

.growth-panel {
  padding: clamp(24px, 4.5vw, 44px);
}

.detail-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.detail-heading h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.detail-note {
  margin: 4px 0 0;
  color: var(--teal);
  font-weight: 900;
}

.detail-list,
.practice-detail-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-list article,
.practice-detail-list article,
.honor-detail-grid article {
  background: rgba(255, 255, 255, 0.78);
}

.detail-list article {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 42px);
  padding: clamp(20px, 3vw, 30px);
}

.detail-list time {
  color: var(--teal);
  font-weight: 900;
}

h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.detail-list p,
.practice-detail-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.honor-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr;
  gap: 12px;
}

.honor-detail-grid article,
.practice-detail-list article {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.honor-detail-grid ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.honor-detail-grid li::marker {
  color: var(--coral);
}

.practice-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  background: transparent;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline article {
  min-height: 220px;
  padding: clamp(22px, 4vw, 34px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

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

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .growth-tabs,
  .honor-detail-grid,
  .practice-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-list article {
    grid-template-columns: 1fr;
  }

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

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

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

  .site-nav {
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .skills-grid,
  .photo-grid,
  .growth-tabs,
  .honor-detail-grid,
  .practice-detail-list {
    grid-template-columns: 1fr;
  }

  .photo-card.wide,
  .photo-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-card,
  .photo-card img,
  .photo-card.tall img {
    min-height: 340px;
  }
}

@media (max-width: 460px) {
  .site-header {
    display: grid;
  }

  .metric-band {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 58px;
  }
}
