:root {
  --black: #0b2f6b;
  --ink: #102033;
  --muted: #5f7087;
  --line: #cddff5;
  --soft-line: #e5eefb;
  --paper: #ffffff;
  --soft: #f3f8ff;
  --dark: #0b2f6b;
  --dark-2: #123f86;
  --blue: #1f6feb;
  --blue-soft: #eaf3ff;
  --blue-pale: #f7fbff;
  --radius: 8px;
  --max: 1120px;
  --shadow: 0 18px 50px rgba(31, 111, 235, 0.12);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 36%, #f4f8ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 111, 235, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(31, 111, 235, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 99;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--black);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--soft-line);
  background: rgba(247, 251, 255, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--black);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--black);
  background: var(--blue-soft);
}

.hero {
  padding: clamp(64px, 9vw, 112px) 20px;
}

.compact-hero {
  padding-top: clamp(46px, 7vw, 84px);
  padding-bottom: clamp(46px, 7vw, 84px);
}

.compact-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.hero-layout,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow.light {
  color: #b9bbc2;
}

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

h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(4rem, 12vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 700;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-weight: 760;
}

.button.primary {
  color: #fff;
  background: var(--black);
}

.button.secondary {
  color: var(--black);
  background: transparent;
}

.profile-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.profile-initial {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 28px;
  color: #fff;
  background: var(--black);
  border-radius: 50%;
  font-size: 2.4rem;
  font-weight: 850;
}

.profile-photo {
  position: relative;
  width: min(100%, 220px);
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 111, 235, 0.13);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

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

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.contact-panel p,
.panel p,
.project-card p,
.skill-card p,
.method-steps p {
  color: var(--muted);
  line-height: 1.78;
}

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

.panel,
.skill-card,
.method-steps article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel.span-2 {
  grid-column: span 2;
}

.panel h3,
.skill-card h3,
.method-steps h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.panel p:last-child,
.skill-card p:last-child,
.method-steps p:last-child {
  margin-bottom: 0;
}

.identity-section {
  padding-top: clamp(56px, 7vw, 92px);
  border-top: 1px solid var(--soft-line);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

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

.circle-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 16%, rgba(31, 111, 235, 0.12), transparent 34%),
    #ffffff;
  box-shadow: var(--shadow);
}

.circle-card::before {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 156px;
  height: 156px;
  border: 1px solid rgba(31, 111, 235, 0.16);
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.06);
}

.circle-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.circle-card h3 {
  margin: 22px 0 14px;
  color: var(--black);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.circle-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.circle-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.circle-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.strong-word {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
  color: var(--ink);
  font-weight: 760;
  line-height: 1.65;
}

.identity-tagline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, #0b2f6b 0%, #1f6feb 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.identity-tagline span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.identity-tagline strong {
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(148, 197, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #0b2f6b 0%, #123f86 58%, #0a2a5d 100%);
}

.dark-section .section-heading {
  width: min(var(--max), 100%);
}

.dark-section .section-heading p:not(.eyebrow) {
  color: #c9cbd1;
}

.project-list {
  display: grid;
  gap: 16px;
  width: min(var(--max), 100%);
}

.project-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 27, 75, 0.16);
}

.project-index {
  color: #fff;
  font-size: 2rem;
  font-weight: 860;
  line-height: 1;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.project-card p {
  color: #c9cbd1;
}

.project-meta {
  margin: 0 0 14px;
  color: #f3f3f5;
  font-weight: 700;
}

.result {
  margin-bottom: 0;
  color: #fff;
  font-weight: 650;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  font-weight: 760;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.project-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

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

.skill-card {
  min-height: 230px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--blue-pale) 100%);
}

.method-section {
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
}

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

.method-steps span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--black);
  font-size: 2rem;
  font-weight: 860;
}

.evidence-section {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.evidence-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 16px;
}

.evidence-subheading.travel-proof {
  margin-top: 36px;
}

.evidence-subheading h3 {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.evidence-subheading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  filter: none;
}

.evidence-grid.compact figure img {
  object-fit: cover;
}

figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--soft-line);
  font-weight: 760;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding: clamp(64px, 8vw, 104px) max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(148, 197, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #082b63 0%, #0b3b83 55%, #071f49 100%);
}

.contact-panel {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.contact-panel p {
  color: #c9cbd1;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.contact-list span {
  color: #b9bbc2;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-layout,
  .contact-panel,
  .method-layout {
    grid-template-columns: 1fr;
  }

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

  .evidence-subheading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-layout,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .about-grid,
  .skills-grid,
  .evidence-grid,
  .evidence-grid.compact,
  .method-steps,
  .circle-grid {
    grid-template-columns: 1fr;
  }

  .panel.span-2 {
    grid-column: auto;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .contact-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-list strong {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button {
    display: none;
  }

  body::before {
    display: none;
  }

  .dark-section,
  .contact-section {
    color: var(--ink);
    background: #fff;
  }

  .project-card,
  .contact-list a {
    border-color: var(--line);
    background: #fff;
  }

  .project-card p,
  .dark-section .section-heading p:not(.eyebrow),
  .contact-panel p {
    color: var(--muted);
  }
}
