:root {
  --ink: #17211d;
  --muted: #59625d;
  --paper: #f4f0e7;
  --paper-deep: #e9e2d5;
  --green: #173f35;
  --green-soft: #285448;
  --copper: #a86843;
  --line: rgba(23, 33, 29, 0.16);
  --radius: 18px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font);
  font-size: 16px; line-height: 1.75; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 9px 14px;
  color: white; background: var(--green); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(22px, 6vw, 92px); border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(244, 240, 231, .94); border-color: var(--line); backdrop-filter: blur(12px);
}
.brand { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.site-nav a { color: var(--muted); font-size: 13px; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-contact {
  padding: 8px 17px; color: var(--paper); background: var(--green); border-radius: 999px;
}
.nav-toggle { display: none; border: 0; background: transparent; }

.hero {
  position: relative; overflow: hidden; min-height: 780px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center; gap: clamp(50px, 8vw, 140px);
  padding: 140px clamp(24px, 9vw, 140px) 96px;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -280px; top: 70px;
  border: 1px solid var(--line); border-radius: 50%;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .32; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-copy, .portrait-card { position: relative; z-index: 1; }
.eyebrow, .section-kicker, .focus-index, .practice-label, .work-meta, .timeline-stage {
  color: var(--copper); font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.hero h1 {
  margin: 14px 0 10px; font-size: clamp(76px, 10vw, 146px); font-weight: 600;
  letter-spacing: .04em; line-height: 1;
}
.hero-role { margin: 0; font-size: 17px; font-weight: 700; }
.hero-lead {
  max-width: 780px; margin: 30px 0 0; color: var(--muted);
  font-size: clamp(18px, 2vw, 24px); line-height: 1.8;
}
.hero-directions { max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 38px; margin: 30px 0 0; }
.hero-direction { position: relative; padding: 6px 0 6px 18px; border-left: 3px solid var(--copper); }
.hero-direction h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: .02em; }
.hero-direction p { margin: 7px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.direction-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.direction-link:hover { color: var(--paper); border-color: var(--green); background: var(--green); }
.inline-cta { display: inline-flex; margin-top: 4px; padding-bottom: 2px; color: var(--green); border-bottom: 1px solid currentColor; text-decoration: none; font-size: 14px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 46px; padding: 0 22px; border: 1px solid var(--ink);
  border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--green); border-color: var(--green); }
.button-quiet { background: rgba(255, 255, 255, .22); }
.portrait-card {
  justify-self: end; width: min(100%, 390px); padding: 12px;
  background: rgba(255, 255, 255, .22); border: 1px solid var(--line); border-radius: var(--radius);
}
.portrait-visual {
  position: relative; overflow: hidden; aspect-ratio: .82;
  border-radius: calc(var(--radius) - 7px);
}
.portrait-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.portrait-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 6px 5px; color: var(--muted); font-size: 11px;
}
.portrait-caption strong { color: var(--ink); font-size: 12px; text-align: right; }

.section { padding: 110px clamp(24px, 9vw, 140px); scroll-margin-top: 70px; }
.section-heading { max-width: 1020px; }
.section-heading h2, .contact h2 {
  margin: 12px 0 0; font-size: clamp(34px, 5vw, 66px); font-weight: 500;
  line-height: 1.35; letter-spacing: -.04em;
}
.section-intro { max-width: 740px; margin: 25px 0 0; color: var(--muted); font-size: 17px; }

.about { background: #eee8dc; }
.profile-strip {
  display: grid; grid-template-columns: .65fr 1.15fr 1.3fr; margin-top: 58px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.profile-strip div { padding: 25px 26px; border-right: 1px solid var(--line); }
.profile-strip div:last-child { border-right: 0; }
.profile-strip span { display: block; margin-bottom: 8px; color: var(--copper); font-size: 11px; }
.profile-strip strong { font-size: 15px; line-height: 1.7; }
.about-copy {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px);
  margin-top: 54px; color: var(--muted);
}
.about-copy p { margin: 0; }
.about-copy article h3 { margin: 0 0 14px; color: var(--ink); font-size: 20px; line-height: 1.5; }
.focus-card, .focus-question, .focus-practice, .focus-practice h4, #body-practice, .works-grid {
  scroll-margin-top: 96px;
}

.focus { color: var(--paper); background: var(--green); }
.focus .section-intro { color: rgba(244, 240, 231, .68); }
.focus-list { margin-top: 65px; border-top: 1px solid rgba(244, 240, 231, .22); }
.focus-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px);
  padding: 54px 0; border-bottom: 1px solid rgba(244, 240, 231, .22);
}
.focus-question h3, .focus-practice h4 {
  margin: 18px 0 16px; font-size: clamp(25px, 3.2vw, 39px); font-weight: 500; line-height: 1.45;
}
.focus-question p, .focus-practice > p:last-child {
  max-width: 680px; color: rgba(244, 240, 231, .68); margin: 0;
}
.focus-practice { padding-left: clamp(0px, 3vw, 45px); }
.practice-label { margin: 0; }
.focus-practice h4 { font-size: clamp(23px, 2.6vw, 33px); }
.roundtable-link {
  display: inline-flex; align-items: center; gap: 24px;
  margin: 17px 0 22px; padding: 10px 0 8px;
  border-bottom: 1px solid rgba(244, 240, 231, .38);
}
.roundtable-link span { color: var(--paper); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.roundtable-link b { color: var(--copper); font-size: 18px; }

.journey { background: var(--paper-deep); }
.timeline { margin: 62px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: minmax(150px, .3fr) 1fr; gap: 45px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.timeline h3 { margin: 0 0 8px; font-size: 23px; font-weight: 600; }
.timeline p { max-width: 900px; margin: 0; color: var(--muted); }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 58px; }
.work-card {
  position: relative; display: flex; flex-direction: column; min-height: 390px;
  padding: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .22);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--copper); background: rgba(255, 255, 255, .42); }
.work-card.featured {
  grid-column: 1 / -1; min-height: 340px; color: var(--paper);
  background: var(--green-soft); border-color: transparent;
}
.work-card.wide { grid-column: 1 / -1; min-height: 310px; }
.work-card-lead {
  display: grid; grid-template-columns: 118px 1fr; align-items: start; gap: 24px;
}
.work-cover {
  width: 118px; aspect-ratio: .72; object-fit: cover; object-position: center;
  border: 1px solid var(--line); border-radius: 10px;
}
.work-card-lead h3 { margin-top: 16px; }
.work-card h3 {
  max-width: 820px; margin: 46px 0 18px; font-size: clamp(25px, 3vw, 38px);
  font-weight: 500; line-height: 1.45;
}
.work-card p { max-width: 820px; margin: 0; color: var(--muted); }
.work-card.featured p { color: rgba(244, 240, 231, .72); }
.work-tags { margin-top: auto; padding-top: 28px; color: var(--copper); font-size: 11px; letter-spacing: .08em; }
.work-link { margin-top: 16px; font-size: 13px; font-weight: 700; }

.scenes { background: #e6ded0; }

/* ── Photo Wall: dual-row auto-scrolling marquee ── */
.photo-wall-outer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.photo-wall-row {
  overflow: hidden;
}
.wall-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: wall-scroll-left 90s linear infinite;
}
.photo-wall-row--reverse .wall-track {
  animation: wall-scroll-right 90s linear infinite;
}
.photo-wall-row:hover .wall-track {
  animation-play-state: paused;
}

@keyframes wall-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes wall-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.wall-card {
  margin: 0;
  flex-shrink: 0;
  width: 340px;
  cursor: pointer;
  transition: transform .35s ease;
}
.wall-card:hover {
  transform: translateY(-6px);
}
.wall-img-box {
  width: 340px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-soft);
  position: relative;
}
.wall-img-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  pointer-events: none;
}
.wall-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.wall-card:hover .wall-img-box img {
  transform: scale(1.06);
}
.wall-card figcaption {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 6px 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.wall-num {
  font-weight: 800;
  color: var(--green);
  font-size: 13px;
  flex-shrink: 0;
}

.contact {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: end;
  gap: clamp(60px, 10vw, 150px); padding: 115px clamp(24px, 9vw, 140px);
  color: var(--paper); background: #102f27; scroll-margin-top: 70px;
}
.contact-copy > p:last-child { max-width: 780px; color: rgba(244, 240, 231, .68); font-size: 17px; }
.contact-actions { display: grid; gap: 12px; }
.wechat-card {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px;
  margin-bottom: 8px; padding: 14px; border: 1px solid rgba(244, 240, 231, .22);
  border-radius: var(--radius); background: rgba(244, 240, 231, .07);
}
.wechat-qr-link { display: block; }
.wechat-card img { display: block; width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; }
.wechat-card strong, .wechat-card span { display: block; }
.wechat-card strong { margin-bottom: 7px; font-size: 16px; }
.wechat-card span { color: rgba(244, 240, 231, .62); font-size: 12px; line-height: 1.65; }
.button-light { color: var(--green); background: var(--paper); border-color: var(--paper); }
.button-outline-light { color: var(--paper); border-color: rgba(244, 240, 231, .55); }
.contact-actions p { margin: 8px 0 0; color: rgba(244, 240, 231, .48); font-size: 12px; text-align: center; }

footer {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 28px;
  padding: 28px clamp(24px, 6vw, 92px); color: var(--muted); font-size: 11px;
}
footer p { margin: 0; text-align: center; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav {
    position: fixed; top: 64px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
    background: rgba(244, 240, 231, .98); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-contact { margin-top: 10px; padding: 11px 15px; text-align: center; border: 0; }
  .nav-toggle { display: grid; gap: 7px; padding: 11px; }
  .nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; background: var(--ink); }
  .hero { grid-template-columns: 1fr .65fr; gap: 38px; }
  .profile-strip { grid-template-columns: 1fr; }
  .profile-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-strip div:last-child { border-bottom: 0; }
  .about-copy { grid-template-columns: 1fr; }
  .focus-card { grid-template-columns: 1fr; }
  .focus-practice { padding-left: 0; }
  .wall-card, .wall-img-box { width: 280px; }
  .wall-img-box { height: 200px; }
}

@media (max-width: 700px) {
  .hero-directions { grid-template-columns: 1fr; gap: 20px; }
  .site-header {
    min-height: 64px; padding: 0 18px; background: rgba(244, 240, 231, .92); backdrop-filter: blur(12px);
  }
  .brand { font-size: 13px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 108px 20px 74px; }
  .hero h1 { font-size: clamp(70px, 23vw, 102px); }
  .hero h1 { letter-spacing: .025em; }
  .hero-role { font-size: 15px; }
  .hero-lead { font-size: 17px; }
  .hero-tags a { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; font-size: 14px; }
  .portrait-card { width: min(84vw, 340px); justify-self: end; }
  .section { padding: 82px 20px; }
  .section-heading h2, .contact h2 { font-size: 34px; line-height: 1.45; }
  .profile-strip { margin-top: 42px; }
  .about-copy { margin-top: 40px; }
  .focus-list { margin-top: 46px; }
  .focus-card { padding: 42px 0; }
  .roundtable-link { align-items: center; flex-direction: row; }
  .work-card-lead { grid-template-columns: 90px 1fr; gap: 17px; }
  .work-cover { width: 90px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card, .work-card.featured { grid-column: auto; min-height: 340px; padding: 28px; }
    .wall-card, .wall-img-box { width: 250px; }
    .wall-img-box { height: 180px; }
    .wall-track { gap: 12px; }
  .contact { grid-template-columns: 1fr; padding: 86px 20px; }
  .wechat-card { grid-template-columns: 140px 1fr; }
  .wechat-card img { width: 140px; }
  footer { grid-template-columns: 1fr; justify-items: start; padding: 28px 20px; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .wall-track { animation: none !important; }
}

/* ── Photo Wall Lightbox ── */
.wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 47, 39, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background .3s ease, backdrop-filter .3s ease;
}
.wall-lightbox.open {
  background: rgba(16, 47, 39, .88);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.wall-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  opacity: 0;
  transform: scale(.95);
  transition: opacity .3s ease, transform .3s ease;
}
.wall-lightbox.open img {
  opacity: 1;
  transform: scale(1);
}
.wall-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.wall-lightbox-close:hover {
  background: rgba(255,255,255,.3);
}
