:root {
  --paper: #efede7;
  --paper-2: #e7e4dc;
  --ink: #272a27;
  --muted: #61665f;
  --line: rgba(39, 42, 39, .15);
  --accent: #7f4f48;
  --accent-soft: #d9c5bf;
  --deep: #34413e;
  --deep-text: #f3f1eb;
  --deep-muted: #d5d9d3;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }

.lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="zh"] .lang-zh { display: revert !important; }
html[data-lang="zh"] body { letter-spacing: .005em; }
html[data-lang="zh"] .about-copy > p,
html[data-lang="zh"] .teaching-note,
html[data-lang="zh"] .contact-lead { line-height: 1.9; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(239, 237, 231, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
}
.wordmark-mark {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: .84rem;
}
.wordmark-text { font-size: .95rem; }
.site-nav { display: flex; align-items: center; gap: 19px; }
.site-nav a { text-decoration: none; font-size: .93rem; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: .52rem .78rem;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 3px;
  color: #8a8e88;
  font-size: .82rem;
}
.language-button {
  padding: 3px 1px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.language-button.active {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  min-height: 74vh;
  padding: clamp(64px, 7vw, 92px) 0 clamp(72px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(48px, 7vw, 88px);
}
.eyebrow, .kicker {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .79rem;
  font-weight: 760;
  color: var(--accent);
}
h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.7rem, 6.5vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}
.luna-name {
  font-family: inherit;
  font-style: normal;
  font-weight: 450;
  letter-spacing: -.04em;
}
.hero-role {
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--muted);
  line-height: 1.55;
}
.hero-thesis {
  max-width: 680px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.05vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -.012em;
}
html[data-lang="zh"] .hero-thesis {
  font-family: var(--sans);
  font-size: clamp(1.18rem, 1.9vw, 1.48rem);
  line-height: 1.78;
  max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 650;
  border: 1px solid var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.secondary { background: transparent; }
.button:hover { transform: translateY(-1px); }

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
  max-width: 720px;
}
.keyword-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.3;
}
.keyword-row b { font-weight: 540; }

.portrait-wrap {
  margin: 0;
  justify-self: end;
  width: min(100%, 355px);
}
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 4px;
  box-shadow: 18px 18px 0 rgba(127, 79, 72, .13);
}
.portrait-wrap figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .015em;
}

.section { padding: clamp(72px, 7.5vw, 104px) 0; }
.section-grid {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: clamp(38px, 5vw, 72px);
}
.section-label { padding-top: 6px; }
.section h2, .contact h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.2rem, 3.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 660;
}
html[data-lang="zh"] .section h2,
html[data-lang="zh"] .contact h2 {
  letter-spacing: -.025em;
  line-height: 1.25;
}
.about-copy > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.education-strip {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.education-strip > div {
  padding: 20px 21px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.education-strip span {
  display: block;
  color: var(--accent);
  font-size: .78rem;
  margin-bottom: 9px;
}
.education-strip strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}
.education-strip p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }

.band { background: var(--deep); color: var(--deep-text); }
.band .kicker, .contact .kicker { color: #e2b7ad; }
.band .section-grid { align-items: start; }
.band h2 { color: var(--deep-text); }
.work-list { margin-top: 36px; border-top: 1px solid rgba(243,241,235,.18); }
.work-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 26px;
  border-bottom: 1px solid rgba(243,241,235,.18);
}
.work-meta span, .work-meta em { display: block; }
.work-meta span { font-family: var(--serif); font-size: 1.12rem; }
.work-meta em {
  margin-top: 4px;
  font-style: normal;
  color: #e2b7ad;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.work-item h3 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(1.18rem, 1.65vw, 1.52rem);
  line-height: 1.38;
  font-weight: 590;
  letter-spacing: -.012em;
}
.bilingual-title .title-translation {
  display: block;
  margin-top: .32rem;
  color: var(--deep-muted);
  font-size: .84em;
  line-height: 1.48;
  font-weight: 450;
  letter-spacing: 0;
}
.work-item p {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--deep-muted);
  font-size: .96rem;
  line-height: 1.65;
}

.talk-list { margin-top: 36px; border-top: 1px solid var(--line); }
.talk-list article {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 24px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.talk-list > article > span { color: var(--accent); font-size: .84rem; }
.talk-list h3 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  line-height: 1.42;
  letter-spacing: -.012em;
  font-weight: 610;
}
.talk-list p { margin: 7px 0 0; color: var(--muted); font-size: .96rem; }

.soft-band { background: var(--paper-2); }
.service-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-grid article {
  min-height: 164px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid span { color: var(--accent); font-size: .79rem; }
.service-grid h3 {
  margin: 24px 0 7px;
  font-size: 1.16rem;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.service-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.teaching-note { margin: 24px 0 0; max-width: 740px; color: var(--muted); font-size: .98rem; }

.skills-section {
  background: var(--paper);
  overflow: hidden;
}
.skills-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.skills-path {
  position: relative;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.skills-path::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 33%;
  height: 7px;
  border-radius: 99px;
  background: var(--accent);
  opacity: .8;
}
.skill-node {
  position: relative;
  min-height: 260px;
  padding: 28px 22px 24px 0;
  border-right: 1px solid var(--line);
}
.skill-node + .skill-node { padding-left: 22px; }
.skill-node:last-child { border-right: 0; padding-right: 0; }
.skill-number {
  display: inline-block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .05em;
}
.skill-verb {
  margin: 24px 0 4px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 760;
}
html[data-lang="zh"] .skill-verb { letter-spacing: .08em; }
.skill-node h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.skill-node > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.68;
}
.skills-language {
  margin-top: 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  align-items: baseline;
}
.skills-language-label {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.skills-language p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: .94rem;
}
.skills-language strong { color: var(--ink); font-weight: 620; }



.nomad-section {
  background: var(--paper-2);
}
.nomad-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.nomad-intro strong {
  color: var(--ink);
  font-weight: 680;
}
.nomad-map-wrap {
  margin-top: 34px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.38);
}
.nomad-map {
  width: 100%;
  height: auto;
  display: block;
}

.contact {
  background: #6d4b45;
  color: #f7f2ed;
  padding: clamp(72px, 8vw, 100px) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: end;
}
.contact .kicker { color: #ead0c8; }
.contact-lead { margin: 20px 0 0; color: #eadfd9; max-width: 560px; }
.contact-actions a { color: #f7f2ed; text-underline-offset: 4px; }
.email-link {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.contact-actions > p { margin: 19px 0; color: #eadfd9; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.profile-links a { font-size: .9rem; }
.placeholder-link { opacity: .7; text-decoration-style: dotted; }

.site-footer { background: var(--deep); color: #c1c8c0; }
.footer-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .85rem;
}

.reveal { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover { transform: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 9px 4px; }
  .language-switch { padding: 10px 4px 3px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .portrait-wrap { justify-self: start; width: min(70vw, 340px); }
  .section-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-label { padding: 0; }
  .skills-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-node:nth-child(2) { border-right: 0; padding-right: 0; }
  .skill-node:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; }
  .skill-node:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .wordmark-text { display: none; }
  .nav-wrap { min-height: 62px; }
  .site-nav { left: 15px; right: 15px; top: 58px; }
  .hero { padding-top: 56px; }
  h1 { font-size: clamp(3.15rem, 16vw, 4.7rem); }
  .hero-thesis { font-size: 1.26rem; }
  .education-strip, .service-grid { grid-template-columns: 1fr; }
  .work-item, .talk-list article { grid-template-columns: 1fr; gap: 6px; }
  .skills-path { grid-template-columns: 1fr; }
  .skill-node, .skill-node + .skill-node, .skill-node:last-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .skill-node:first-child { border-top: 0; }
  .skills-language { grid-template-columns: 1fr; gap: 8px; }
  .portrait-wrap { width: min(84vw, 315px); }
  .footer-wrap { padding: 20px 0; min-height: auto; flex-direction: column; align-items: flex-start; }
}
