/* === Tokens === */
:root {
  --bg: #f6f2ea;
  --bg-soft: #efe9dc;
  --bg-elevate: #fcfaf5;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8378;
  --line: #d8d0bf;
  --line-soft: #e6dfce;
  --accent: #1a1a1a;
  --accent-2: #6b5b3e;

  --easeOut: cubic-bezier(.22, .9, .34, 1);
  --easeInOut: cubic-bezier(.65, 0, .35, 1);
  --shadow-sm: 0 1px 2px rgba(20,15,5,.05), 0 4px 12px -6px rgba(20,15,5,.08);
  --shadow-md: 0 4px 14px -4px rgba(20,15,5,.10), 0 18px 40px -22px rgba(20,15,5,.18);
  --shadow-lg: 0 8px 24px -6px rgba(20,15,5,.14), 0 30px 60px -28px rgba(20,15,5,.28);

  --serif-zh: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif-en: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-pad: clamp(80px, 12vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-zh);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

/* === Nav (liquid glass) === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  background: linear-gradient(180deg, rgba(246,242,234,.72) 0%, rgba(246,242,234,.55) 100%);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--easeOut), padding .4s var(--easeOut), box-shadow .4s var(--easeOut), background .4s var(--easeOut);
  isolation: isolate;
}
.nav::before {
  /* inner top hairline highlight (glass top edge) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7) 30%, rgba(255,255,255,.7) 70%, transparent);
  z-index: -1; opacity: 0; transition: opacity .4s var(--easeOut);
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(246,242,234,.86), rgba(246,242,234,.72));
  border-bottom-color: rgba(216,208,191,.5);
  box-shadow: 0 12px 30px -22px rgba(20,15,5,.25);
}
.nav.is-scrolled::before { opacity: 1; }

.nav__brand { display: flex; align-items: baseline; gap: 12px; }
.nav__brand-zh {
  font-family: var(--serif-zh); font-weight: 500; font-size: 18px; letter-spacing: .15em;
}
.nav__brand-en {
  font-family: var(--serif-en); font-style: italic; font-weight: 400;
  font-size: 12px; letter-spacing: .25em; color: var(--ink-mute);
}

.nav__menu {
  display: flex; align-items: center; gap: 36px;
}
.nav__menu a {
  font-family: var(--sans-zh); font-size: 13px; letter-spacing: .12em;
  color: var(--ink-soft); position: relative; transition: color .3s var(--ease);
}
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__cta {
  padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 12px !important; letter-spacing: .12em; color: var(--ink) !important;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--bg) !important; }
.nav__cta::after { display: none; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 34px; height: 34px; padding: 6px;
}
.nav__toggle span {
  display: block; height: 1px; background: var(--ink); margin: 5px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 24px;
    padding: 32px var(--pad-x) 40px; background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-110%); transition: transform .4s var(--ease);
  }
  .nav.is-open .nav__menu { transform: translateY(0); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* === Hero === */
.hero {
  min-height: 100vh; padding: 140px var(--pad-x) 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; max-width: var(--max); margin: 0 auto;
}
.hero__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end;
}
.eyebrow {
  font-family: var(--sans-en); font-size: 11px; font-weight: 500;
  letter-spacing: .35em; color: var(--ink-mute); margin-bottom: 28px;
}
.hero__title { display: flex; flex-direction: column; gap: 4px; line-height: .9; }
.hero__title-zh {
  font-family: var(--serif-zh); font-weight: 500;
  font-size: clamp(56px, 11vw, 156px); letter-spacing: .04em;
}
.hero__title-en {
  font-family: var(--serif-en); font-weight: 400; font-style: italic;
  font-size: clamp(36px, 7vw, 96px); letter-spacing: .04em; color: var(--ink-soft);
}
.hero__slogan {
  margin-top: 36px; font-family: var(--serif-zh); font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .25em; color: var(--ink-soft);
}
.hero__meta {
  margin-top: 18px; display: flex; align-items: center; gap: 14px;
  font-family: var(--sans-en); font-size: 13px; letter-spacing: .15em; color: var(--ink-mute);
}
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); }
.hero__cta { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; font-size: 13px; letter-spacing: .15em;
  border-radius: 999px;
  transition: transform .5s var(--easeOut), color .5s var(--easeOut), background .5s var(--easeOut), border-color .5s var(--easeOut), box-shadow .5s var(--easeOut);
  will-change: transform;
}
.btn::before {
  /* sliding gloss for liquid feel */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s var(--easeOut);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(110%); }
.btn--primary {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  box-shadow: 0 0 0 0 rgba(20,15,5,0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(20,15,5,.6);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn--primary svg { transition: transform .4s var(--easeOut); }
.btn--ghost {
  background: rgba(255,255,255,.45); color: var(--ink); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(20,15,5,.5);
}

.hero__right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 24px;
  padding-bottom: 12px;
}
.hero__pageno {
  font-family: var(--serif-en); font-size: clamp(64px, 8vw, 120px);
  line-height: 1; font-weight: 300; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 12px 36px;
}
.hero__line { width: 80px; height: 1px; background: var(--ink); }
.hero__caption {
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .3em;
  color: var(--ink-mute); text-align: right; line-height: 1.9;
}

.hero__scroll {
  position: absolute; left: var(--pad-x); bottom: 40px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .3em; color: var(--ink-mute);
}
.hero__scroll-line {
  width: 60px; height: 1px; background: var(--ink-mute); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-100%); animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__right { align-items: flex-start; }
  .hero__caption { text-align: left; }
  .hero__scroll { display: none; }
}

/* === Section heads === */
.section__head {
  display: flex; align-items: flex-end; gap: 28px;
  padding: var(--section-pad) var(--pad-x) 60px;
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}
.section__head--right { justify-content: flex-end; text-align: right; }
.section__no {
  font-family: var(--serif-en); font-size: 14px; font-style: italic;
  color: var(--ink-mute); letter-spacing: .2em;
}
.section__title-zh {
  font-family: var(--serif-zh); font-weight: 500; font-size: clamp(32px, 5vw, 56px);
  letter-spacing: .15em; line-height: 1.1;
}
.section__title-zh--underline { display: inline-block; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.section__title-en {
  font-family: var(--serif-en); font-style: italic; font-weight: 400;
  font-size: clamp(14px, 1.6vw, 18px); color: var(--ink-mute);
  letter-spacing: .25em; margin-top: 6px;
}

/* === About === */
.about { padding: 0 var(--pad-x) var(--section-pad); max-width: var(--max); margin: 0 auto; }
.about__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; align-items: start; }
.about__cards { display: flex; flex-direction: column; gap: 56px; }
.about__card { position: relative; padding-left: 28px; }
.about__card-bullet {
  position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; background: var(--ink); border-radius: 50%;
}
.about__card h3 {
  font-family: var(--serif-zh); font-weight: 600; font-size: 20px;
  letter-spacing: .2em; margin-bottom: 14px;
}
.about__card p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.9; max-width: 520px;
}

.about__card strong {
  font-family: var(--serif-en); font-weight: 500; color: var(--ink);
  font-size: 1.05em; letter-spacing: 0;
}

/* Portrait card */
.about__portrait {
  position: relative; padding-top: 8px;
  display: flex; flex-direction: column; gap: 18px;
}
.about__portrait-img {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  margin: 0;
}
.about__portrait-img::before {
  content: ""; position: absolute; left: -2px; top: 24px; bottom: 24px;
  width: 3px; background: var(--ink); z-index: 2;
}
.about__portrait-img img {
  width: 100%; height: auto; display: block;
  filter: saturate(.94) contrast(1.02);
  transition: transform 1.2s var(--ease), filter .5s var(--ease);
}
.about__portrait-img:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.04); }
.about__portrait-img figcaption {
  position: absolute; left: 22px; top: 22px; right: 22px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 3; pointer-events: none;
}
.about__portrait-zh {
  font-family: var(--serif-zh); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .25em;
  color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.about__portrait-en {
  font-family: var(--serif-en); font-style: italic;
  font-size: 14px; letter-spacing: .25em;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.about__portrait-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .25em;
  color: var(--ink-mute); padding-left: 4px;
}
.about__portrait-meta .dot-line {
  flex: 0 0 28px; height: 1px; background: var(--ink-mute);
}

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__portrait { max-width: 420px; }
}

/* === Timeline === */
.timeline { padding: 0 var(--pad-x) var(--section-pad); max-width: var(--max); margin: 0 auto; }
.timeline__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.timeline__item {
  position: relative;
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
  padding: 32px 16px; border-bottom: 1px solid var(--line-soft);
  transition: background .55s var(--easeOut), color .4s var(--easeOut);
  cursor: default;
}
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--easeOut);
}
.timeline__item:hover { background: var(--bg-soft); }
.timeline__item:hover::before { transform: scaleY(1); transform-origin: top; }
.timeline__item:hover .timeline__logo { transform: rotate(-6deg) scale(1.06); }
.timeline__item:hover h3 { letter-spacing: .22em; }
.timeline__logo {
  transition: transform .55s var(--easeOut), box-shadow .4s var(--easeOut);
}
.timeline__org h3 { transition: letter-spacing .4s var(--easeOut); }
.timeline__logo--bayi { background: #b21f1f; padding: 4px; border-color: #8b1818; }
.timeline__date {
  font-family: var(--serif-en); font-size: 16px; font-style: italic;
  color: var(--ink-mute); letter-spacing: .1em;
}
.timeline__org { display: flex; align-items: center; gap: 24px; }
.timeline__logo {
  width: 56px; height: 56px; border-radius: 50%; background: #fff;
  object-fit: contain; padding: 8px; border: 1px solid var(--line);
}
.timeline__logo--text {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif-zh); font-weight: 500; font-size: 13px;
  color: var(--ink-soft); letter-spacing: .1em;
}
.timeline__org h3 {
  font-family: var(--serif-zh); font-weight: 600; font-size: 22px;
  letter-spacing: .15em;
}
.timeline__role {
  font-size: 13px; color: var(--ink-mute); letter-spacing: .12em; margin-top: 4px;
}

@media (max-width: 720px) {
  .timeline__item { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .timeline__item:hover { padding-left: 0; padding-right: 0; }
  .timeline__date { font-size: 14px; }
}

/* === Contents === */
.contents { padding: 0 var(--pad-x) var(--section-pad); max-width: var(--max); margin: 0 auto; }
.contents__list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-soft);
}
.contents__list li { border-right: 1px solid var(--line-soft); }
.contents__list li:last-child { border-right: 0; }
.contents__list a {
  position: relative; display: block; padding: 40px 28px;
  transition: color .55s var(--easeOut);
  height: 100%; overflow: hidden;
}
.contents__list a::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(102%);
  transition: transform .65s var(--easeOut);
  z-index: 0;
}
.contents__list a > * { position: relative; z-index: 1; }
.contents__list a:hover::before { transform: translateY(0); }
.contents__list a:hover { color: var(--bg); }
.contents__list a:hover .contents__no,
.contents__list a:hover .contents__sub,
.contents__list a:hover .contents__tags { color: var(--bg-soft); }
.contents__list a:hover .contents__no { transform: translateX(8px); }
.contents__no {
  display: block; font-family: var(--serif-en); font-size: 32px; font-weight: 400;
  letter-spacing: .05em; color: var(--ink); margin-bottom: 24px;
  transition: color .55s var(--easeOut), transform .65s var(--easeOut);
}
.contents__list h3 {
  font-family: var(--serif-zh); font-weight: 600; font-size: 22px;
  letter-spacing: .2em; margin-bottom: 12px;
}
.contents__sub { font-size: 13px; color: var(--ink-soft); letter-spacing: .12em; margin-bottom: 20px; transition: color .35s var(--ease); }
.contents__tags {
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .2em;
  color: var(--ink-mute); transition: color .35s var(--ease);
}

@media (max-width: 820px) {
  .contents__list { grid-template-columns: repeat(2, 1fr); }
  .contents__list li:nth-child(2) { border-right: 0; }
  .contents__list li:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  .contents__list { grid-template-columns: 1fr; }
  .contents__list li { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .contents__list li:last-child { border-bottom: 0; }
}

/* === Work sections === */
.work {
  padding: var(--section-pad) var(--pad-x);
  max-width: var(--max); margin: 0 auto;
}
.work--alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 8%, var(--bg-soft) 92%, transparent); max-width: none; }
.work--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.work__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 56px; flex-wrap: wrap; gap: 16px;
}
.work__head-left { display: flex; align-items: center; gap: 18px; }
.work__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%;
  font-family: var(--serif-en); font-style: italic; font-size: 16px;
}
.work__cat {
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .3em;
  color: var(--ink-mute);
}
.work__head-right {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--ink-soft); letter-spacing: .12em;
}
.work__logo {
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  object-fit: contain; padding: 5px; border: 1px solid var(--line);
}

.work__title {
  font-family: var(--serif-zh); font-weight: 600;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: .1em;
  line-height: 1.3; margin-bottom: 28px; max-width: 900px;
}
.work__lede {
  font-size: 15px; line-height: 2; color: var(--ink-soft);
  max-width: 880px; margin-bottom: 56px;
}
.work__sub {
  margin-top: 80px; font-family: var(--serif-zh); font-weight: 600;
  font-size: 22px; letter-spacing: .2em; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.work__sub-desc { font-size: 13px; color: var(--ink-mute); margin-bottom: 36px; }

/* === Stats === */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-bottom: 64px;
}
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat {
  position: relative; overflow: hidden;
  background: var(--bg-elevate); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: color .55s var(--easeOut), transform .55s var(--easeOut);
}
.stat::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--easeOut);
  z-index: 0;
}
.stat > * { position: relative; z-index: 1; }
.stat:hover::before { transform: scaleY(1); transform-origin: top; }
.stat:hover { color: var(--bg); transform: translateY(-3px); }
.stat:hover .stat__num { letter-spacing: -0.02em; }
.stat__num { transition: letter-spacing .5s var(--easeOut); }
.stat__num {
  font-family: var(--serif-en); font-weight: 400; font-size: 56px;
  line-height: 1; letter-spacing: -0.01em;
}
.stat__num small { font-size: 24px; margin-left: 4px; vertical-align: super; }
.stat__label {
  font-family: var(--sans-zh); font-size: 12px; letter-spacing: .25em;
  color: var(--ink-mute);
}
.stat:hover .stat__label { color: var(--bg-soft); }

@media (max-width: 720px) {
  .stats, .stats--4 { grid-template-columns: repeat(2, 1fr); }
  .stat__num { font-size: 40px; }
}

/* === Article card (Xinhua) === */
.article-card {
  background: var(--bg-elevate); border: 1px solid var(--line);
  padding: 48px clamp(24px, 4vw, 56px); margin-bottom: 56px;
  position: relative;
}
.article-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--ink);
}
.article-card__tag {
  display: inline-block; padding: 4px 12px; background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: .25em; margin-bottom: 18px;
}
.article-card h3 {
  font-family: var(--serif-zh); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5; letter-spacing: .05em; margin-bottom: 12px;
}
.article-card__byline {
  font-size: 12px; color: var(--ink-mute); letter-spacing: .15em; margin-bottom: 28px;
}
.article-card p {
  font-size: 14px; color: var(--ink-soft); line-height: 2; margin-bottom: 14px;
}
.article-card details { margin-top: 16px; }
.article-card summary {
  cursor: pointer; font-size: 13px; color: var(--ink); letter-spacing: .15em;
  padding: 12px 0; border-top: 1px solid var(--line); list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.article-card summary::-webkit-details-marker { display: none; }
.article-card summary::after {
  content: "↓"; transition: transform .3s var(--ease);
}
.article-card details[open] summary::after { transform: rotate(180deg); }
.article-card details h4 {
  font-family: var(--serif-zh); font-weight: 600; font-size: 16px;
  letter-spacing: .15em; margin: 24px 0 12px;
}

/* === Gallery (masonry, preserves native image ratio) === */
.gallery {
  column-gap: 16px;
  margin-bottom: 24px;
}
.gallery--2 { column-count: 2; }
.gallery--3 { column-count: 3; }
.gallery--4 { column-count: 4; }
.gallery figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s var(--ease), filter .4s var(--ease);
  filter: saturate(.96);
}
.gallery figure:hover img { transform: scale(1.03); filter: saturate(1); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 12px; letter-spacing: .15em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .gallery--4 { column-count: 3; }
}
@media (max-width: 720px) {
  .gallery--3, .gallery--4 { column-count: 2; }
}
@media (max-width: 480px) {
  .gallery--2, .gallery--3, .gallery--4 { column-count: 1; }
}

/* === Brief === */
.brief {
  border: 1px solid var(--line); padding: 40px clamp(24px, 4vw, 48px);
  background: var(--bg-elevate); margin-bottom: 48px;
}
.brief h3 {
  font-family: var(--serif-zh); font-weight: 600; font-size: 18px;
  letter-spacing: .15em; margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brief ul { display: flex; flex-direction: column; gap: 16px; }
.brief li {
  position: relative; padding-left: 24px; font-size: 14px;
  line-height: 2; color: var(--ink-soft);
}
.brief li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 1px; background: var(--ink);
}
.brief strong { font-family: var(--serif-zh); font-weight: 600; color: var(--ink); }

/* === Bullets === */
.bullets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-bottom: 56px;
}
.bullets__item { padding: 28px 0; border-top: 2px solid var(--ink); }
.bullets__item h3 {
  font-family: var(--serif-zh); font-weight: 600; font-size: 18px;
  letter-spacing: .15em; margin-bottom: 14px;
}
.bullets__item p { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

@media (max-width: 720px) { .bullets { grid-template-columns: 1fr; } }

/* === Contact === */
.contact {
  background: var(--ink); color: var(--bg);
  padding: var(--section-pad) var(--pad-x) 0;
  margin-top: var(--section-pad);
}
.contact__inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.contact__eyebrow {
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .4em;
  color: var(--ink-mute); margin-bottom: 28px;
}
.contact__title {
  font-family: var(--serif-zh); font-weight: 500;
  font-size: clamp(32px, 5vw, 56px); letter-spacing: .12em; line-height: 1.3;
  margin-bottom: 18px;
}
.contact__sub {
  font-size: 14px; color: var(--ink-mute); letter-spacing: .15em; margin-bottom: 64px;
}

.contact__cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  margin-bottom: 80px;
}
.contact__card {
  background: var(--ink); padding: 36px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .3s var(--ease);
}
.contact__card:hover { background: rgba(255,255,255,.04); }
.contact__card-label {
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .3em;
  color: var(--ink-mute);
}
.contact__card-value {
  font-family: var(--serif-zh); font-size: 18px; letter-spacing: .1em; font-weight: 400;
}
.contact__card--cta { background: var(--bg); color: var(--ink); }
.contact__card--cta:hover { background: #fff; }
.contact__card--cta .contact__card-label { color: var(--ink-mute); }

@media (max-width: 720px) { .contact__cards { grid-template-columns: 1fr; } }

.footer {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--sans-en); font-size: 11px; letter-spacing: .25em;
  color: var(--ink-mute);
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .page-enter { display: none !important; }
}

/* ============================================================
   ✦ 丝滑交互层：液态玻璃、磁吸 hover、自定义光标、入场遮罩
   ============================================================ */

/* —— Custom cursor (mix-blend-difference) —— */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 999; border-radius: 50%; mix-blend-mode: difference;
  will-change: transform;
}
.cursor {
  width: 36px; height: 36px;
  border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
  transition: width .35s var(--easeOut), height .35s var(--easeOut),
              background .35s var(--easeOut), border-color .35s var(--easeOut),
              opacity .25s var(--easeOut);
  opacity: 0;
}
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  width: 6px; height: 6px; background: #fff;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .25s var(--easeOut);
}
.cursor-dot.is-ready { opacity: 1; }
.cursor.hover {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.7);
}
.cursor.text {
  width: 8px; height: 8px;
  background: #fff;
}
@media (hover: none), (max-width: 820px) {
  .cursor, .cursor-dot { display: none; }
}

/* —— Page enter overlay —— */
.page-enter {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  pointer-events: none;
  transition: transform 1.1s cubic-bezier(.76,0,.24,1), opacity .6s ease .55s;
  will-change: transform;
}
.page-enter__zh {
  font-family: var(--serif-zh); font-weight: 500;
  font-size: clamp(36px, 6vw, 64px); letter-spacing: .35em;
  opacity: 0; transform: translateY(20px);
  animation: pe-in .9s var(--easeOut) .15s forwards;
}
.page-enter__en {
  font-family: var(--serif-en); font-style: italic;
  font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .35em;
  color: rgba(255,255,255,.6);
  opacity: 0; transform: translateY(12px);
  animation: pe-in .9s var(--easeOut) .35s forwards;
}
@keyframes pe-in {
  to { opacity: 1; transform: none; }
}
.page-enter.is-leaving {
  transform: translateY(-100%);
  opacity: 0;
}
.page-enter.is-gone { display: none; }

/* —— Magnetic / lift hover for cards & figures —— */
[data-magnetic] { transition: transform .5s var(--easeOut); will-change: transform; }

.about__card { transition: transform .55s var(--easeOut); }
.about__card:hover { transform: translateX(6px); }

.gallery figure {
  transition: transform .6s var(--easeOut), box-shadow .6s var(--easeOut);
  will-change: transform;
}
.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.bullets__item {
  position: relative; transition: transform .5s var(--easeOut), border-color .4s var(--easeOut);
}
.bullets__item:hover { transform: translateY(-4px); }
.bullets__item h3 { transition: letter-spacing .4s var(--easeOut); }
.bullets__item:hover h3 { letter-spacing: .22em; }

.brief li {
  transition: transform .4s var(--easeOut), color .4s var(--easeOut);
}
.brief li:hover {
  transform: translateX(6px); color: var(--ink);
}
.brief li:hover::before { width: 16px; transition: width .35s var(--easeOut); }

/* —— Article card lift —— */
.article-card {
  transition: transform .6s var(--easeOut), box-shadow .6s var(--easeOut);
  will-change: transform;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* —— Liquid glass surface util —— */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.6);
  border-radius: 18px;
}

/* About portrait — extra glass plate behind, gentle parallax */
.about__portrait-img {
  transition: transform .8s var(--easeOut), box-shadow .8s var(--easeOut);
}
.about__portrait-img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Contact dark card upgrade */
.contact__card {
  position: relative; overflow: hidden;
  transition: transform .5s var(--easeOut);
  will-change: transform;
}
.contact__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .9s var(--easeOut);
  pointer-events: none;
}
.contact__card:hover::after { transform: translateX(110%); }
.contact__card:hover { transform: translateY(-3px); }

/* Hero — subtle parallax depth ring under page number */
.hero__pageno {
  transition: transform .7s var(--easeOut), background .5s var(--easeOut), color .5s var(--easeOut);
  will-change: transform;
}
.hero__pageno:hover {
  background: var(--ink); color: var(--bg);
  transform: rotate(-4deg) scale(1.04);
}

/* Smooth reveal upgrade (soft spring) */
.reveal {
  transition: opacity 1.1s var(--easeOut), transform 1.1s var(--easeOut);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Smooth focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Scrollbar polish (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(20,15,5,.18); border-radius: 99px;
  border: 2px solid var(--bg);
  transition: background .3s var(--easeOut);
}
::-webkit-scrollbar-thumb:hover { background: rgba(20,15,5,.4); }
