@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #17243a;
  --muted: #62748b;
  --paper: #f4f7fb;
  --line: #d9e3ef;
  --signal: #59b8ff;
  --dark: #183956;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #489fe7;
  outline-offset: 5px;
}

.container {
  width: min(100% - 80px, 1260px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: -80px;
  left: 20px;
  padding: 12px 18px;
  background: white;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: relative;
  z-index: 5;
  background: #f4f7fb;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  font-family: 'DM Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.08em;
}

.brand span,
.accent {
  color: #3b91d0;
}

nav {
  display: flex;
  gap: 36px;
  font-size: .9rem;
  font-weight: 600;
}

nav a,
.nav-contact,
.text-link,
.site-footer a {
  transition: color .2s ease;
}

nav a:hover,
.nav-contact:hover,
.text-link:hover,
.site-footer a:hover {
  color: #287ebd;
}

.nav-contact {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  font-size: .9rem;
  font-weight: 700;
}

.nav-contact span {
  margin-left: 14px;
}

.hero {
  overflow: hidden;
  background: #e8eff7;
}

.hero-grid {
  display: grid;
  min-height: 660px;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 65px 0 80px;
}

.eyebrow,
.section-label,
.skill-index,
.project-meta,
.project-mark,
.hero-bottom,
.visual-caption,
.visual-core small,
.site-footer {
  font-family: 'DM Mono', 'Noto Sans SC', monospace;
  font-size: .82rem;
  letter-spacing: .08em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #526e88;
}

.eyebrow-line {
  width: 30px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 42px 0 28px;
  font-size: clamp(3.3rem, 5.4vw, 5.6rem);
  line-height: 1.3;
  letter-spacing: -.075em;
}

h1 em,
.contact h2 em {
  color: #347fb8;
  font-style: normal;
}

.hero-intro {
  max-width: 570px;
  color: #52677f;
  font-size: 1.08rem;
  line-height: 2;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 44px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 0 24px;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: white;
  background: var(--dark);
}

.button-primary:hover {
  background: #23547b;
}

.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: .9rem;
  font-weight: 700;
}

.text-link span {
  margin-left: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 540px;
  aspect-ratio: 1;
  border: 1px solid #b6cce0;
  border-radius: 50%;
}

.orbit-outer {
  width: 710px;
  border-style: dashed;
  opacity: .75;
}

.visual-core {
  position: relative;
  z-index: 1;
  display: flex;
  width: 360px;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  color: white;
  background: #193d61;
  border-radius: 50%;
  box-shadow: 22px 25px 0 #59b8ff;
  transform: rotate(-12deg);
}

.visual-core > span {
  font-family: 'DM Mono', monospace;
  font-size: .85rem;
  letter-spacing: .3em;
}

.visual-core strong {
  margin: 20px 0;
  font-family: 'DM Mono', monospace;
  font-size: 5rem;
  font-weight: 500;
  letter-spacing: -.12em;
}

.visual-core strong span {
  color: var(--signal);
}

.visual-core small {
  color: #a7c8e8;
}

.visual-cross {
  position: absolute;
  z-index: 2;
  color: #4aa0df;
  font-family: 'DM Mono', monospace;
  font-size: 3rem;
  font-weight: 300;
}

.cross-one {
  top: 45px;
  right: 80px;
}

.cross-two {
  bottom: 80px;
  left: 45px;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 45px;
  color: #67839e;
  line-height: 1.6;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  padding: 23px 0;
  color: #60778e;
  border-top: 1px solid #ccd9e7;
}

.section-pad {
  padding: 120px 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #55738e;
  font-weight: 500;
}

.label-dot {
  width: 8px;
  height: 8px;
  background: #4b9ed9;
  border-radius: 50%;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.statement {
  margin-bottom: 34px;
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
  line-height: 1.45;
  letter-spacing: -.065em;
}

.statement span {
  color: #378dc9;
}

.section-copy {
  max-width: 680px;
  color: var(--muted);
  line-height: 2;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facts strong {
  font-size: 1.7rem;
  letter-spacing: -.04em;
}

.facts span {
  color: var(--muted);
  font-size: .85rem;
}

.expertise {
  background: #eaf0f7;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 60px;
}

.section-heading h2,
.experience h2 {
  width: min(100%, 720px);
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.2vw, 4.3rem);
  line-height: 1.4;
  letter-spacing: -.065em;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skill-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 28px;
  background: #f9fbfe;
  border: 1px solid #dce6f0;
}

.skill-index {
  color: #4d8fbd;
}

.skill-card h3 {
  margin: 54px 0 16px;
  font-size: 1.3rem;
}

.skill-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.9;
}

.tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tags span,
.project-tags span {
  padding: 6px 10px;
  color: #3a6e98;
  background: #e3effa;
  font-size: .76rem;
}

.projects {
  background: #fff;
}

.muted {
  color: #91a3b6;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 48px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #71869c;
}

.project-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
}

.project-mark {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  color: #a5d6f6;
  background: #1d456a;
  border-radius: 50%;
  font-size: 1rem;
  transform: rotate(-12deg);
}

.project-card:nth-child(even) .project-mark {
  color: #3d78a6;
  background: #dceefa;
}

.project-body h3 {
  margin-bottom: 15px;
  font-size: 1.65rem;
}

.project-body p {
  max-width: 750px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.9;
}

.project-tags {
  margin-top: 0;
}

.project-note {
  margin: 30px 0 0 258px;
  color: #75899e;
  font-size: .9rem;
}

.experience {
  background: #eaf0f7;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 90px;
}

.experience h2 {
  margin: 35px 0 24px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cbd9e7;
}

.timeline li {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid #cbd9e7;
}

.timeline li > span {
  color: #597b9a;
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
}

.timeline h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .88rem;
}

.contact {
  color: white;
  background: #122f4e;
}

.contact .section-label {
  color: #b1d2ef;
}

.contact h2 {
  margin: 40px 0 24px;
  font-size: clamp(3rem, 5.7vw, 6.2rem);
  line-height: 1.35;
  letter-spacing: -.07em;
}

.contact h2 em {
  color: var(--signal);
}

.contact p {
  color: #bfd5e8;
}

.button-light {
  color: #122f4e;
  background: var(--signal);
}

.button-light:hover {
  background: #86ceff;
}

.light-link {
  color: white;
}

.site-footer {
  color: #a9c4dd;
  background: #0b223c;
}

.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr .8fr;
  }

  .visual-core {
    width: 300px;
  }

  .orbit {
    width: 440px;
  }

  .orbit-outer {
    width: 570px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    min-height: 280px;
  }

  .skill-card h3 {
    margin-top: 38px;
  }

  .experience-grid {
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, 1260px);
  }

  .nav-wrap {
    height: 70px;
  }

  nav {
    gap: 14px;
    font-size: .8rem;
  }

  .nav-contact {
    display: none;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-content {
    padding: 72px 0 25px;
  }

  h1 {
    margin-top: 28px;
    font-size: clamp(2.65rem, 8vw, 4rem);
  }

  .hero-visual {
    min-height: 330px;
  }

  .visual-core {
    width: 225px;
    padding: 30px;
    box-shadow: 14px 16px 0 #59b8ff;
  }

  .visual-core strong {
    margin: 12px 0;
    font-size: 3.2rem;
  }

  .visual-core small {
    font-size: .55rem;
  }

  .orbit {
    width: 330px;
  }

  .orbit-outer {
    width: 460px;
  }

  .visual-caption {
    right: 0;
    bottom: 10px;
    font-size: .65rem;
  }

  .section-pad {
    padding: 80px 0;
  }

  .intro-grid,
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-heading {
    flex-direction: column;
    margin-bottom: 35px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-meta {
    flex-direction: row;
    gap: 20px;
  }

  .project-body {
    grid-template-columns: 110px 1fr;
    gap: 18px;
  }

  .project-mark {
    width: 100px;
    height: 100px;
    font-size: .75rem;
  }

  .project-note {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.2rem;
  }

  nav {
    gap: 11px;
    font-size: .76rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

  .facts {
    gap: 10px;
  }

  .facts strong {
    font-size: 1.3rem;
  }

  .facts span {
    font-size: .72rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 250px;
  }

  .project-body {
    grid-template-columns: 1fr;
  }

  .project-mark {
    width: 86px;
    height: 86px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding: 24px 0;
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}


/* A subtle technical grid gives the hero depth without obscuring text. */
.hero {
  background-color: #e8eff7;
  background-image:
    linear-gradient(rgba(95, 143, 188, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 143, 188, .09) 1px, transparent 1px),
    radial-gradient(circle at 75% 45%, #f8fbff 0, transparent 52%);
  background-size: 32px 32px, 32px 32px, auto;
}

.skill-card {
  box-shadow: 0 12px 34px rgba(31, 68, 102, .04);
}

.project-mark {
  box-shadow: inset 0 0 0 1px rgba(143, 204, 247, .25);
}

.contact {
  background-image: radial-gradient(circle at 80% 10%, #214f78 0, transparent 42%);
}
