/* ==========================================================================
   看山七问 — visual system
   Song painting × contemporary editorial × digital exhibition
   ========================================================================== */

:root {
  /* paper and ink */
  --paper: #e9e2d4;
  --paper-light: #f2ecdf;
  --paper-deep: #d9d0bf;
  --paper-warm: #e2d8c5;
  --ink: #292a25;
  --ink-soft: #49483f;
  --muted: #817867;
  --faint: #a59a86;
  --cinnabar: #a65e49;
  --cinnabar-deep: #874735;
  --celadon: #77816b;
  --indigo: #536d79;
  --night: #1b1c19;
  --night-soft: #23241f;
  --night-line: rgba(233, 226, 212, 0.16);
  --line: rgba(50, 48, 40, 0.18);
  --line-strong: rgba(50, 48, 40, 0.34);
  --line-light: rgba(233, 226, 212, 0.22);

  /* type */
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --sans: "Manrope", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  /* spacing (B2) */
  --s0: 0;
  --s1: 2px;
  --s2: 4px;
  --s3: 8px;
  --s4: 12px;
  --s5: 16px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --s10: 64px;
  --s11: 80px;
  --s12: 96px;

  /* layout */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 64px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --dur-fast: 300ms;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.20'/%3E%3C/svg%3E");
}

main,
header,
footer { position: relative; z-index: 1; }
main { animation: page-in 600ms var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img { max-width: 100%; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; }

figure { margin: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

::selection {
  background: var(--cinnabar);
  color: var(--paper-light);
}

/* ---------- basics ---------- */
.shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  width: min(100%, 1120px);
}

.visually-hidden {
  position: absolute !important;
  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;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
}
.skip-link:focus { top: 16px; }

.serif { font-family: var(--serif); }
.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s4);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cinnabar);
}
.eyebrow--light { color: rgba(242, 236, 223, 0.62); }

.h-display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-section {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  text-wrap: balance;
}
.body-lg {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body-base {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body-sm {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-wrap: pretty;
}
.num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.rule--light { background: var(--line-light); }

/* ---------- links and buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 44px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper-light);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover {
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
  color: var(--paper-light);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper-light);
  border-color: var(--ink);
}
.btn--light {
  background: var(--paper-light);
  color: var(--ink);
  border-color: var(--paper-light);
}
.btn--light:hover {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-light);
}
.btn--small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}
.link-arrow:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--paper-light); border-color: var(--line-light); }
.link-arrow--light:hover { color: #f0c6b8; border-color: #f0c6b8; }

.text-link {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.text-link:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar); }

/* ---------- navigation ---------- */
.nav-wrap {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1360px);
  background: rgba(242, 236, 223, 0.78);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav-wrap.is-scrolled {
  background: rgba(242, 236, 223, 0.94);
  border-color: var(--line-strong);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s7);
  height: 56px;
  padding: 0 var(--s5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex: 0 0 auto;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand-en {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-utility {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-left: var(--s7);
  padding-left: var(--s6);
  border-left: 1px solid var(--line);
}
.nav-progress {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.nav-progress strong { color: var(--ink); font-weight: 600; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-wrap.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-wrap.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-wrap.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(233, 226, 212, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s1); }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.mobile-menu-foot {
  margin-top: var(--s8);
  display: flex;
  justify-content: space-between;
  gap: var(--s6);
  color: var(--muted);
}

/* ---------- page intro ---------- */
.page-head {
  padding-top: 152px;
  padding-bottom: var(--s9);
}
.page-head__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s9);
  align-items: end;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 72px;
  letter-spacing: -0.02em;
  margin-top: var(--s5);
  text-wrap: balance;
}
.page-head__aside {
  padding-bottom: var(--s2);
  max-width: 420px;
  justify-self: end;
}
.page-head__aside p + p { margin-top: var(--s4); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--s12);
  background: var(--night);
  color: var(--paper-light);
  padding: var(--s11) 0 var(--s7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr 2fr;
  gap: var(--s9);
  padding-bottom: var(--s10);
  border-bottom: 1px solid var(--night-line);
}
.footer-brand .brand-mark { color: var(--paper-light); width: 34px; height: 34px; }
.footer-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  margin-top: var(--s5);
  letter-spacing: 0.06em;
}
.footer-desc {
  margin-top: var(--s5);
  max-width: 320px;
  color: rgba(242, 236, 223, 0.62);
  font-size: 14px;
  line-height: 20px;
}
.footer-col h3 {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 236, 223, 0.46);
  margin-bottom: var(--s5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col a, .footer-col p {
  color: rgba(242, 236, 223, 0.78);
  font-size: 14px;
  line-height: 20px;
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s7);
  padding-top: var(--s6);
  color: rgba(242, 236, 223, 0.4);
  font-size: 12px;
  line-height: 16px;
}
.footer-bottom p { max-width: 720px; }
.footer-bottom__meta { display: flex; gap: var(--s5); flex: 0 0 auto; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---------- home hero ---------- */
.hero {
  padding-top: 128px;
  padding-bottom: var(--s9);
  min-height: 92vh;
  display: flex;
  align-items: stretch;
}
.hero-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--s9);
  align-items: stretch;
  width: 100%;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s8) 0 var(--s7);
  max-width: 640px;
}
.hero-title {
  margin-top: var(--s6);
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 600;
  background: linear-gradient(90deg, var(--ink) 8%, #6d6759 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-en {
  margin-top: var(--s5);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero-lede {
  margin-top: var(--s7);
  max-width: 560px;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-lede strong { font-weight: 600; color: var(--ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s6);
  margin-top: var(--s8);
}
.hero-proof {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.06em;
}
.hero-proof span { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-proof i {
  display: block;
  width: 4px; height: 4px;
  background: var(--cinnabar);
  border-radius: 50%;
}
.hero-visual {
  position: relative;
  height: min(78vh, 780px);
  min-height: 560px;
  background: var(--night);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-visual__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  opacity: 0.22;
  pointer-events: none;
}
.hero-painting {
  height: 90%;
  width: auto;
  max-width: none;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: none;
  transform: translateY(0);
  transition: transform 1200ms var(--ease);
}
.hero-visual:hover .hero-painting { transform: translateY(-1%); }
.hero-visual__label {
  position: absolute;
  z-index: 2;
  left: var(--s6);
  top: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  color: rgba(242, 236, 223, 0.66);
}
.hero-visual__label strong {
  color: var(--paper-light);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 12px;
}
.hero-detail {
  position: absolute;
  z-index: 3;
  left: var(--s6);
  bottom: var(--s6);
  width: 172px;
  background: var(--paper-light);
  border: 1px solid rgba(242, 236, 223, 0.32);
  padding: var(--s3);
}
.hero-detail img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero-detail figcaption {
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
}
.hero-scroll {
  position: absolute;
  z-index: 3;
  right: var(--s6);
  bottom: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: rgba(242, 236, 223, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: rgba(242, 236, 223, 0.3);
}

/* ---------- tagline reveal ---------- */
.tagline {
  background: var(--night);
  color: var(--paper-light);
  padding: var(--s12) 0;
  margin-top: var(--s10);
}
.tagline__inner { max-width: 1120px; }
.tagline__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--night-line);
  color: rgba(242, 236, 223, 0.42);
}
.tagline__text {
  margin-top: var(--s9);
  font-family: var(--serif);
  font-size: 60px;
  line-height: 72px;
  letter-spacing: -0.01em;
  max-width: 980px;
  text-wrap: balance;
}
.tagline__word {
  white-space: nowrap;
  color: rgba(242, 236, 223, 0.26);
  transition: color 800ms var(--ease);
}
.tagline__word.is-lit { color: var(--paper-light); }
.tagline__word--accent.is-lit { color: #d9a48f; }
.tagline__foot {
  margin-top: var(--s8);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s7);
}
.tagline__foot p {
  max-width: 420px;
  color: rgba(242, 236, 223, 0.56);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- section headers ---------- */
.section-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s9);
  align-items: end;
  margin-bottom: var(--s9);
}
.section-head__aside {
  justify-self: end;
  max-width: 400px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.section-head h2 {
  margin-top: var(--s4);
  font-family: var(--serif);
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- home works ---------- */
.home-works { padding-top: var(--s12); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s7) var(--s6);
}
.work-card { position: relative; display: flex; flex-direction: column; }
.work-card--xishan { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.work-card--qianli { grid-column: 6 / span 7; grid-row: 1; }
.work-card--qingming { grid-column: 6 / span 7; grid-row: 2; }
.work-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border: 1px solid var(--line);
}
.work-card--xishan .work-card__frame {
  aspect-ratio: 5 / 11;
  background: var(--night);
}
.work-card--qianli .work-card__frame { aspect-ratio: 12 / 5; }
.work-card--qingming .work-card__frame { aspect-ratio: 12 / 5; }
.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 900ms var(--ease), opacity 700ms var(--ease);
}
.work-card--xishan .work-card__img { object-position: center; }
.work-card__scrollimg {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translateX(0);
  transition: transform 6000ms linear;
}
.work-card--qianli:hover .work-card__scrollimg { transform: translateX(-24%); }
.work-card--qingming:hover .work-card__scrollimg { transform: translateX(-26%); }
.work-card__badge {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  z-index: 2;
  padding: 4px 8px;
  background: rgba(27, 28, 25, 0.7);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}
.work-card__caption {
  position: absolute;
  z-index: 2;
  left: var(--s3);
  bottom: var(--s3);
  padding: 4px 8px;
  background: rgba(27, 28, 25, 0.78);
  color: var(--paper-light);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.04em;
}
.work-card__index {
  position: absolute;
  right: var(--s4);
  top: var(--s4);
  z-index: 2;
  color: rgba(242, 236, 223, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.work-card__body {
  padding-top: var(--s5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4) var(--s6);
  align-items: start;
}
.work-card__title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0.04em;
}
.work-card--xishan .work-card__title { font-size: 36px; line-height: 48px; }
.work-card__meta {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.work-card__question {
  margin-top: var(--s4);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 20px;
  max-width: 520px;
}
.work-card__enter {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.work-card__enter .icon { width: 14px; height: 14px; }
.work-card__enter:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar); }

/* ---------- knowledge entries ---------- */
.knowledge-entries {
  padding-top: var(--s12);
}
.entries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.entry {
  position: relative;
  padding: var(--s7) var(--s6) var(--s8);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background-color var(--dur-fast) var(--ease);
}
.entry:first-child { border-left: 1px solid var(--line); }
.entry:hover { background: var(--paper-light); }
.entry__icon {
  width: 44px;
  height: 44px;
  color: var(--cinnabar);
  margin-bottom: var(--s7);
}
.entry__no {
  position: absolute;
  top: var(--s6);
  right: var(--s6);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.entry h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 32px;
}
.entry p {
  margin-top: var(--s4);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  max-width: 280px;
}
.entry__link {
  margin-top: auto;
  padding-top: var(--s6);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.entry__link .icon { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease); }
.entry:hover .entry__link .icon { transform: translateX(4px); }

/* ---------- progress strip ---------- */
.progress-strip {
  margin-top: var(--s12);
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.progress-strip__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s9);
  align-items: center;
  padding: var(--s9) 0;
}
.progress-strip h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
}
.progress-strip p {
  margin-top: var(--s3);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 20px;
  max-width: 360px;
}
.progress-strip__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s8);
}
.progress-big {
  font-family: var(--mono);
  font-size: 48px;
  line-height: 48px;
  color: var(--ink);
}
.progress-big span { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.progress-detail { display: flex; flex-direction: column; gap: var(--s2); min-width: 180px; }
.progress-detail strong { font-weight: 600; font-size: 14px; }
.progress-detail span { font-size: 13px; color: var(--muted); }
.progress-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---------- works page ---------- */
.works-list { padding-top: var(--s8); }
.works-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s9);
  padding: var(--s9) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.works-row:nth-child(even) .works-row__visual { order: 2; }
.works-row__visual {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border: 1px solid var(--line);
}
.works-row--vertical .works-row__visual { aspect-ratio: 5 / 11; max-height: 620px; }
.works-row--horizontal .works-row__visual { aspect-ratio: 5 / 2; }
.works-row__visual img { width: 100%; height: 100%; object-fit: contain; }
.works-row--horizontal .works-row__visual img {
  width: 100%; max-width: none; height: 100%; object-fit: cover;
}
.works-row__body { max-width: 620px; }
.works-row__index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cinnabar);
  letter-spacing: 0.12em;
}
.works-row h2 {
  margin-top: var(--s4);
  font-family: var(--serif);
  font-size: 48px;
  line-height: 60px;
  letter-spacing: 0.02em;
}
.works-row__meta {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.works-row__meta span { display: inline-flex; align-items: center; gap: var(--s2); }
.works-row__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.works-row__question {
  margin-top: var(--s6);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 32px;
  color: var(--ink-soft);
  max-width: 560px;
}
.works-row__intro {
  margin-top: var(--s5);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 24px;
  max-width: 560px;
}
.works-row__tags {
  margin-top: var(--s6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.02em;
}
.works-row__cta { margin-top: var(--s7); display: flex; gap: var(--s6); flex-wrap: wrap; }

/* ---------- generic panels / callouts ---------- */
.note {
  border-left: 2px solid var(--cinnabar);
  padding: var(--s4) 0 var(--s4) var(--s5);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 20px;
}
.note--light { border-color: #d9a48f; color: rgba(242, 236, 223, 0.72); }
.note strong { color: var(--ink); font-weight: 600; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  border-top: 1px solid var(--line);
  padding-top: var(--s5);
}
.meta-grid dt {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}
.meta-grid dd {
  margin-top: var(--s2);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}

/* ---------- knowledge page ---------- */
.knowledge-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s9);
  align-items: start;
  padding-top: var(--s7);
}
.km {
  border-top: 1px solid var(--line);
}
.km-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.km-row--head {
  padding: var(--s3) 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}
.km-cat {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding-top: 2px;
}
.km-cat .icon { width: 22px; height: 22px; color: var(--cinnabar); flex: 0 0 auto; }
.km-cat h3 { font-family: var(--serif); font-size: 18px; line-height: 24px; }
.km-cat p { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 16px; }
.km-cell { display: flex; flex-direction: column; gap: var(--s2); }
.km-topic {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--s2);
  text-align: left;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease);
}
.km-topic::before {
  content: "";
  width: 4px; height: 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--faint);
  flex: 0 0 auto;
  transition: background-color var(--dur-fast) var(--ease);
}
.km-topic:hover { color: var(--cinnabar-deep); }
.km-topic:hover::before { background: var(--cinnabar); }
.km-topic[aria-pressed="true"] { color: var(--cinnabar-deep); }
.km-topic[aria-pressed="true"]::before { background: var(--cinnabar); }
.km-empty { color: var(--faint); font-size: 12px; line-height: 18px; }

.knowledge-panel {
  position: sticky;
  top: 96px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  padding: var(--s7);
}
.knowledge-panel__empty {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s4);
}
.knowledge-panel__empty h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 32px;
}
.knowledge-panel__empty p { color: var(--muted); font-size: 14px; line-height: 20px; max-width: 320px; }
.knowledge-panel__head {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  align-items: flex-start;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}
.knowledge-panel h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  text-wrap: balance;
}
.knowledge-panel__cat { color: var(--cinnabar); font-size: 11px; letter-spacing: 0.08em; }
.knowledge-panel__body { padding-top: var(--s5); }
.knowledge-panel__body p + p { margin-top: var(--s4); }
.knowledge-panel__body p { color: var(--ink-soft); font-size: 15px; line-height: 23px; }
.kp-block { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.kp-block h3 {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s3);
}
.kp-links { display: flex; flex-direction: column; gap: var(--s2); }
.kp-link {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-soft);
}
.kp-link span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.kp-link:hover { color: var(--cinnabar-deep); }
.kp-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ---------- compare page ---------- */
.compare-tabs {
  display: flex;
  gap: var(--s5);
  border-bottom: 1px solid var(--line);
  padding-top: var(--s7);
}
.compare-tab {
  position: relative;
  padding: var(--s3) 0 var(--s4);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 28px;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}
.compare-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform var(--dur-fast) var(--ease);
}
.compare-tab[aria-selected="true"] { color: var(--ink); }
.compare-tab[aria-selected="true"]::after { transform: scaleX(1); }
.compare-intro {
  display: flex;
  justify-content: space-between;
  gap: var(--s7);
  align-items: flex-end;
  padding: var(--s6) 0 var(--s5);
}
.compare-intro p { max-width: 620px; color: var(--ink-soft); font-size: 15px; line-height: 23px; }
.compare-controls { display: flex; gap: var(--s3); flex-wrap: wrap; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 34px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.switch__dot {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.switch input:checked + .switch__track { background: var(--ink); border-color: var(--ink); }
.switch input:checked + .switch__track .switch__dot { transform: translateX(16px); background: var(--paper-light); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--cinnabar); outline-offset: 2px; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
.compare-panel {
  border: 1px solid var(--line);
  background: var(--paper-light);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.compare-panel__head {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.compare-panel__head h3 { font-family: var(--serif); font-size: 20px; line-height: 28px; }
.compare-panel__head p { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 16px; }
.compare-panel__tools { display: flex; gap: var(--s2); flex: 0 0 auto; }
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--paper); border-color: var(--line-strong); }
.icon-btn .icon { width: 16px; height: 16px; }
.compare-panel__viewer { height: 340px; position: relative; background: var(--night); }
.compare-panel__viewer.viewer { height: 340px; min-height: 0; border: 0; background: var(--paper-deep); }
.compare-panel__viewer .viewer { height: 100%; }
.compare-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.compare-notes {
  margin-top: var(--s7);
  border-top: 1px solid var(--line);
}
.compare-note {
  display: grid;
  grid-template-columns: 80px 4fr 1fr;
  gap: var(--s6);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.compare-note:hover { background: rgba(242, 236, 223, 0.5); }
.compare-note__no { font-family: var(--mono); font-size: 12px; color: var(--cinnabar); padding-top: 2px; }
.compare-note h3 { font-family: var(--serif); font-size: 24px; line-height: 32px; }
.compare-note p { margin-top: var(--s2); color: var(--ink-soft); font-size: 14px; line-height: 20px; }
.compare-note__state {
  justify-self: end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-top: 4px;
}
.compare-note.is-active { background: var(--paper-light); }
.compare-note.is-active .compare-note__state { color: var(--cinnabar); }
.compare-note__detail {
  grid-column: 2 / 4;
  display: none;
  padding-top: var(--s4);
}
.compare-note.is-active .compare-note__detail { display: block; }
.compare-note__detail p { max-width: 780px; }

/* ---------- journey page ---------- */
.journey-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.journey-stat { padding: var(--s6) var(--s5); border-right: 1px solid var(--line); }
.journey-stat:first-child { border-left: 1px solid var(--line); }
.journey-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 48px;
  line-height: 48px;
  font-weight: 400;
}
.journey-stat span {
  display: block;
  margin-top: var(--s3);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.journey-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s9);
  padding-top: var(--s9);
}
.journey-block { padding-bottom: var(--s8); }
.journey-block h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  margin-bottom: var(--s5);
}
.journey-list { border-top: 1px solid var(--line); }
.journey-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.journey-item__no { font-family: var(--mono); font-size: 11px; color: var(--cinnabar); }
.journey-item h3 { font-size: 15px; line-height: 22px; }
.journey-item p { color: var(--muted); font-size: 12px; line-height: 18px; }
.journey-item__done { font-family: var(--mono); font-size: 10px; color: var(--celadon); letter-spacing: 0.06em; white-space: nowrap; }
.progress-bar {
  height: 4px;
  background: var(--paper-deep);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}
.journey-work {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
.journey-work__head { display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline; }
.journey-work h3 { font-family: var(--serif); font-size: 20px; line-height: 28px; }
.journey-work p { color: var(--muted); font-size: 12px; line-height: 18px; }
.journey-work .progress-bar { margin-top: var(--s3); }
.journey-empty {
  padding: var(--s9) 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s4);
}
.journey-empty h3 { font-family: var(--serif); font-size: 24px; line-height: 32px; }
.journey-empty p { color: var(--muted); font-size: 14px; line-height: 20px; max-width: 460px; }
.danger-link {
  color: var(--cinnabar-deep);
  font-size: 12px;
  line-height: 18px;
  border-bottom: 1px solid rgba(166, 94, 73, 0.4);
}
.danger-link:hover { border-color: var(--cinnabar); }
.reset-box {
  margin-top: var(--s4);
  padding: var(--s4);
  border: 1px solid rgba(166, 94, 73, 0.4);
  background: rgba(166, 94, 73, 0.06);
}
.reset-box p { font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.reset-box__actions { display: flex; gap: var(--s3); margin-top: var(--s3); }

/* ---------- about / legal ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s9);
  align-items: start;
  padding-top: var(--s7);
}
.about-section { padding-bottom: var(--s8); }
.about-section h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s5);
}
.about-section p + p { margin-top: var(--s4); }
.about-section p { color: var(--ink-soft); font-size: 15px; line-height: 23px; }
.about-aside {
  position: sticky;
  top: 96px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  padding: var(--s6);
}
.about-aside h3 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }
.about-aside ul { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.about-aside li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 18px; }
.about-aside li span { color: var(--muted); text-align: right; }
.source-table { width: 100%; border-collapse: collapse; margin-top: var(--s4); }
.source-table th, .source-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--s3) var(--s3) var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
}
.source-table th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); font-weight: 400; text-transform: uppercase; }
.source-table td { color: var(--ink-soft); }
.source-table a { color: var(--indigo); border-bottom: 1px solid rgba(83, 109, 121, 0.3); }
.source-table a:hover { color: var(--cinnabar-deep); }
.legal { max-width: 780px; padding-top: var(--s7); }
.legal h2 { font-family: var(--serif); font-size: 24px; line-height: 32px; margin-top: var(--s8); margin-bottom: var(--s3); }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 24px; }
.legal p + p { margin-top: var(--s3); }
.legal ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}
.notfound h1 {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.notfound p { margin-top: var(--s5); max-width: 460px; color: var(--ink-soft); font-size: 16px; line-height: 24px; }
.notfound .actions { margin-top: var(--s7); display: flex; gap: var(--s6); flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--paper-light);
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-title { font-size: 72px; }
  .hero-grid { gap: var(--s7); }
  .hero-visual { height: min(72vh, 720px); min-height: 540px; }
  .hero-detail { width: 148px; }
  .hero-detail img { height: 108px; }
  .footer-grid { grid-template-columns: 4fr 3fr 2fr 2fr; gap: var(--s7); }
  .works-row h2 { font-size: 36px; line-height: 48px; }
  .works-row { gap: var(--s7); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-utility { display: none; }
  .nav-toggle { display: flex; }
  .nav { height: 56px; }
  .nav-wrap { top: 12px; width: calc(100% - 24px); }
  .hero { padding-top: 112px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: var(--s5) 0; max-width: none; }
  .hero-title { font-size: 72px; }
  .hero-visual { height: 64vh; min-height: 420px; max-height: 72vh; }
  .hero-painting { height: 100%; }
  .hero-detail { display: none; }
  .hero-scroll { display: none; }
  .tagline__text { font-size: 48px; line-height: 60px; }
  .section-head { grid-template-columns: 1fr; gap: var(--s5); }
  .section-head__aside { justify-self: start; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card--xishan { grid-column: 1 / span 1; grid-row: auto; }
  .work-card--qianli { grid-column: 2 / span 1; grid-row: auto; }
  .work-card--qingming { grid-column: 1 / span 2; grid-row: auto; }
  .work-card--xishan .work-card__frame { aspect-ratio: 5 / 9; }
  .work-card--qianli .work-card__frame, .work-card--qingming .work-card__frame { aspect-ratio: 12 / 6; }
  .entries-grid { grid-template-columns: 1fr; border-left: 1px solid var(--line); }
  .entry { border-right: 1px solid var(--line); border-left: 0; min-height: 0; }
  .entry__link { margin-top: var(--s5); padding-top: 0; }
  .progress-strip__inner { grid-template-columns: 1fr; gap: var(--s5); }
  .progress-strip__right { justify-content: flex-start; }
  .works-row { grid-template-columns: 1fr; gap: var(--s6); }
  .works-row:nth-child(even) .works-row__visual { order: 0; }
  .works-row--vertical .works-row__visual { aspect-ratio: 5 / 8; max-height: 520px; }
  .page-head { padding-top: 128px; }
  .page-head__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .page-head__aside { justify-self: start; }
  .page-head h1 { font-size: 48px; line-height: 60px; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-panel { position: static; }
  .km-row { grid-template-columns: 180px 1fr 1fr 1fr; gap: var(--s3); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-panel__viewer { height: 320px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-stats { grid-template-columns: 1fr 1fr; }
  .journey-stat:nth-child(2) { border-right: 0; }
  .journey-stat:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .journey-stat:nth-child(4) { border-top: 1px solid var(--line); }
  .about-layout { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hero-title { font-size: 60px; }
  .hero-lede { font-size: 16px; line-height: 24px; }
  .hero-actions { gap: var(--s4); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-proof { gap: var(--s2) var(--s4); }
  .hero-visual { height: 60vh; min-height: 380px; }
  .hero-visual__label { left: var(--s4); top: var(--s4); }
  .tagline { padding: var(--s10) 0; }
  .tagline__text { font-size: 30px; line-height: 42px; margin-top: var(--s6); }
  .tagline__foot { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 30px; line-height: 40px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card--qianli, .work-card--qingming { grid-column: 1 / span 1; }
  .work-card--xishan .work-card__frame { aspect-ratio: 5 / 10; }
  .work-card--qianli .work-card__frame, .work-card--qingming .work-card__frame { aspect-ratio: 12 / 7; }
  .work-card__title { font-size: 24px; line-height: 32px; }
  .work-card--xishan .work-card__title { font-size: 30px; line-height: 36px; }
  .work-card__body { grid-template-columns: 1fr; gap: var(--s3); }
  .work-card__enter { justify-self: start; }
  .work-card__scrollimg { height: 100%; }
  .progress-strip__right { flex-wrap: wrap; gap: var(--s5); }
  .progress-big { font-size: 36px; line-height: 40px; }
  .page-head h1 { font-size: 36px; line-height: 48px; }
  .page-head { padding-top: 112px; padding-bottom: var(--s7); }
  .works-row h2 { font-size: 30px; line-height: 40px; }
  .works-row__question { font-size: 20px; line-height: 28px; }
  .works-row--vertical .works-row__visual { aspect-ratio: 5 / 9; }
  .km-row { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s5) 0; }
  .km-row--head { display: none; }
  .km-cat { align-items: center; }
  .km-cell { padding-left: var(--s7); }
  .km-cell::before {
    content: attr(data-work);
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--faint);
    margin-bottom: 2px;
  }
  .compare-intro { flex-direction: column; align-items: flex-start; }
  .compare-note { grid-template-columns: 40px 1fr; gap: var(--s3); }
  .compare-note__state { grid-column: 2; justify-self: start; }
  .compare-note__detail { grid-column: 2; }
  .journey-stats { grid-template-columns: 1fr 1fr; }
  .journey-stat { padding: var(--s5) var(--s4); }
  .journey-stat strong { font-size: 36px; line-height: 40px; }
  .journey-item { grid-template-columns: 32px 1fr; }
  .journey-item__done { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .footer-bottom__meta { flex-wrap: wrap; }
  .meta-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .notfound h1 { font-size: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tagline__word { color: var(--paper-light); }
  .tagline__word--accent { color: #d9a48f; }
}


/* ---------- home method ---------- */
.method {
  padding-top: var(--s12);
}
.method-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-steps li {
  padding: var(--s5) var(--s4) var(--s6);
  border-right: 1px solid var(--line);
  min-height: 190px;
}
.method-steps li:first-child { border-left: 1px solid var(--line); }
.method-no {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
  margin-bottom: var(--s5);
}
.method-steps strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}
.method-steps p {
  margin-top: var(--s3);
  color: var(--muted);
  font-size: 12px;
  line-height: 19px;
  max-width: 170px;
}

.entry__icon .icon { width: 44px; height: 44px; }
.kp-link .icon { width: 12px; height: 12px; }
.km-topic.is-learned { color: var(--celadon); }
.km-topic.is-learned::before { background: var(--celadon); }
.km-topic.is-active { color: var(--cinnabar-deep); }

/* comparison overlay */
.viewer[data-layers~="compare"] .an-layer--compare { opacity: 1; }

@media (max-width: 1180px) {
  .method-steps { grid-template-columns: repeat(3, 1fr); }
  .method-steps li:nth-child(3) { border-right: 0; }
  .method-steps li:nth-child(4) { border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-steps li { min-height: 170px; padding: var(--s4) var(--s3) var(--s5); }
  .method-steps li:nth-child(2n) { border-right: 0; }
  .method-steps li:nth-child(3) { border-right: 1px solid var(--line); }
  .method-steps li:nth-child(odd) { border-left: 1px solid var(--line); }
  .method-steps strong { font-size: 20px; line-height: 28px; }
  .method-steps p { font-size: 11px; line-height: 18px; }
}


/* ---------- about lists ---------- */
.content-source-list {
  margin-top: var(--s4);
  border-top: 1px solid var(--line);
}
.content-source-list li {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s5);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
}
.content-source-list a { color: var(--indigo); border-bottom: 1px solid rgba(83, 109, 121, 0.3); }
.content-source-list a:hover { color: var(--cinnabar-deep); }
.content-source-list span { color: var(--muted); }
.limit-list { margin-top: var(--s4); }
.limit-list li {
  position: relative;
  padding: var(--s3) 0 var(--s3) var(--s5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 22px;
}
.limit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  border-radius: 50%;
}
.limit-list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .content-source-list li { grid-template-columns: 1fr; gap: var(--s1); }
}


/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--faint);
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--s3); max-width: 760px; color: var(--muted); font-size: 14px; line-height: 22px; }

@media print {
  .nav-wrap, .mobile-menu, .viewer-tools, .viewer-hint, .viewer-zoom, .toast, .site-footer { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
  .page-head { padding-top: 24px; }
}


.source-subhead {
  margin-top: var(--s8);
  margin-bottom: var(--s3);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 32px;
}
.asset-table code { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); word-break: break-all; }


/* ---------- source and asset lists ---------- */
.source-list { margin-top: var(--s4); border-top: 1px solid var(--line); }
.source-item { padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.source-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  flex-wrap: wrap;
}
.source-item h3 { font-family: var(--serif); font-size: 20px; line-height: 28px; }
.source-item__meta { color: var(--muted); font-size: 12px; line-height: 18px; text-align: right; max-width: 380px; }
.source-item__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s4); }
.source-item h4 { font-family: var(--mono); font-size: 10px; line-height: 14px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; margin-bottom: var(--s2); }
.source-item p { color: var(--ink-soft); font-size: 13px; line-height: 20px; }
.source-item__link { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); font-size: 12px; line-height: 18px; font-weight: 600; color: var(--indigo); border-bottom: 1px solid rgba(83, 109, 121, 0.3); padding-bottom: 1px; }
.source-item__link:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar); }
.source-item__link .icon { width: 12px; height: 12px; }

.asset-list { margin-top: var(--s4); border-top: 1px solid var(--line); }
.asset-item { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.asset-item__head { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; align-items: baseline; }
.asset-item__head code { font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--ink); word-break: break-all; }
.asset-item__head span { color: var(--muted); font-size: 11px; line-height: 16px; }
.asset-item__meta { display: grid; grid-template-columns: 72px 1fr; gap: 2px var(--s4); margin-top: var(--s3); }
.asset-item__meta dt { font-family: var(--mono); font-size: 10px; line-height: 16px; color: var(--faint); letter-spacing: 0.06em; }
.asset-item__meta dd { color: var(--ink-soft); font-size: 12px; line-height: 18px; word-break: break-word; }
.asset-item__meta a { color: var(--indigo); border-bottom: 1px solid rgba(83, 109, 121, 0.3); }
.asset-item__meta a:hover { color: var(--cinnabar-deep); }

@media (max-width: 640px) {
  .source-item__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .source-item__meta { text-align: left; }
  .asset-item__meta { grid-template-columns: 64px 1fr; }
}


/* ---------- home works two column composition ---------- */
.works-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s9) var(--s6);
  align-items: start;
}
.work-card--xishan { grid-column: 1; grid-row: 1; }
.works-col {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s10);
  min-width: 0;
}
.work-card--qianli,
.work-card--qingming { grid-column: auto; grid-row: auto; }
@media (max-width: 960px) {
  .works-grid { grid-template-columns: 1fr; gap: var(--s8); }
  .work-card--xishan { grid-column: 1; grid-row: auto; }
  .works-col { grid-column: 1; grid-row: auto; gap: var(--s8); }
}


.works-note {
  border-top: 1px solid var(--line);
  padding-top: var(--s5);
  max-width: 560px;
}
.works-note p {
  margin-top: var(--s4);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 30px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.works-note .mono { display: block; margin-top: var(--s4); color: var(--faint); }


@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
}
