:root {
  --bg-base: #07111f;
  --bg-surface-1: #0e1828;
  --bg-surface-2: #152236;
  --text-primary: #f3f0e7;
  --text-secondary: #b7c4d8;
  --text-tertiary: #7b879a;
  --brand-primary: #2f5dff;
  --brand-primary-text: #7aa2ff;
  --human-accent: #cfa75a;
  --exegesis-accent: #6fd6c8;
  --border-subtle: #26344a;
  --risk: #e25d4a;
  --max-width: 1248px;
  color-scheme: dark;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

@font-face {
  font-family: "Agentexis Xingkai";
  src:
    local("华文行楷"),
    local("STXingkai"),
    local("STXingkai Regular");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #07111f;
}

html:has(body.manuscript-page) {
  background:
    radial-gradient(circle at 82% 12%, rgba(54, 48, 37, 0.1), transparent 18rem),
    radial-gradient(circle at 8% 78%, rgba(157, 31, 24, 0.08), transparent 20rem),
    linear-gradient(120deg, #ead7a6, #f6ebca 42%, #e2c98e 100%);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 72% 0%, rgba(47, 93, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 14% 24%, rgba(111, 214, 200, 0.1), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #091523 48%, #07111f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(122, 162, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand-cluster,
.brand,
.nav,
.hero-actions,
.review-actions {
  display: flex;
  align-items: center;
}

.brand-cluster {
  gap: 8px;
  min-width: 0;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-mark,
.brand-story-chip {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--text-primary);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(122, 162, 255, 0.42);
  border-radius: 8px;
  background: rgba(14, 24, 40, 0.76);
}

svg {
  display: block;
}

.brand-story-chip {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(207, 167, 90, 0.34);
  border-radius: 8px;
  background: rgba(207, 167, 90, 0.07);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.brand-story-chip:hover,
.brand-story-chip.active {
  border-color: rgba(207, 167, 90, 0.72);
  background: rgba(207, 167, 90, 0.12);
}

.brand-story-chip:hover {
  transform: translateY(-1px);
}

.brand-mark svg,
.brand-story-chip svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .moon,
.brand-story-chip path:nth-child(3) {
  stroke: var(--human-accent);
}

.brand-mark .boat,
.brand-story-chip path:nth-child(4) {
  stroke: var(--exegesis-accent);
}

.brand-word {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-cn {
  color: var(--text-secondary);
  font-weight: 600;
}

.nav {
  gap: 22px;
  color: var(--text-secondary);
  font-size: 14px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav .active {
  color: var(--text-primary);
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-copy,
.section-head,
.review-copy,
.classic-text,
.modern-text,
.poem-section > div,
.brand-hero {
  min-width: 0;
  max-width: 100%;
}

.axis-line {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(122, 162, 255, 0.48), rgba(207, 167, 90, 0.42), transparent);
  opacity: 0.72;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--exegesis-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.36;
}

.lead {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--brand-primary);
}

.button.secondary {
  border-color: rgba(122, 162, 255, 0.32);
  color: var(--text-primary);
  background: rgba(14, 24, 40, 0.72);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 560px;
  border: 1px solid rgba(122, 162, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 34, 54, 0.82), rgba(7, 17, 31, 0.72)),
    radial-gradient(circle at 50% 20%, rgba(47, 93, 255, 0.22), transparent 28rem);
}

.constellation {
  position: absolute;
  inset: 0;
}

.constellation svg {
  position: absolute;
  inset: 7% 5%;
  width: 90%;
  height: 78%;
}

.constellation path {
  fill: none;
  stroke: rgba(122, 162, 255, 0.46);
  stroke-width: 1.2;
}

.constellation .gold-path {
  stroke: rgba(207, 167, 90, 0.82);
}

.node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--exegesis-accent);
  box-shadow: 0 0 24px rgba(111, 214, 200, 0.72);
}

.n1 { top: 18%; left: 14%; }
.n2 { top: 34%; left: 49%; background: var(--brand-primary-text); }
.n3 { top: 22%; right: 12%; }
.n4 { bottom: 25%; left: 24%; background: var(--human-accent); }
.n5 { bottom: 16%; right: 18%; background: var(--brand-primary-text); }

.console-panel {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  padding: 22px;
  border: 1px solid rgba(111, 214, 200, 0.24);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.8);
  backdrop-filter: blur(16px);
}

.panel-head,
.review-top,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-head {
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 700;
}

.status {
  color: var(--human-accent);
  font-size: 13px;
}

.trace-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-list li {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.trace-list span {
  color: var(--brand-primary-text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.section-head {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-head.narrow {
  max-width: 720px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.capability-card,
.workflow-column,
.human-axis-card,
.review-panel,
.name-card,
.interpretation-grid article {
  border: 1px solid rgba(122, 162, 255, 0.18);
  border-radius: 8px;
  background: rgba(14, 24, 40, 0.72);
}

.capability-card {
  min-height: 280px;
  padding: 24px;
}

.card-index {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--brand-primary-text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.capability-card p,
.workflow-column p,
.workflow-column li,
.human-axis-card p,
.review-copy p,
.name-card p,
.interpretation-grid p,
.modern-text p,
.poem-section p {
  color: var(--text-secondary);
  line-height: 1.85;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.workflow-column,
.human-axis-card,
.name-card,
.interpretation-grid article {
  padding: 26px;
}

.workflow-column.active {
  border-color: rgba(111, 214, 200, 0.48);
  background: linear-gradient(180deg, rgba(111, 214, 200, 0.1), rgba(14, 24, 40, 0.72));
}

.workflow-column ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-column li::before {
  content: "— ";
  color: var(--exegesis-accent);
}

.human-axis-card {
  border-color: rgba(207, 167, 90, 0.42);
  background: linear-gradient(180deg, rgba(207, 167, 90, 0.1), rgba(14, 24, 40, 0.72));
}

.moon-badge {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  border: 1px solid rgba(207, 167, 90, 0.64);
  border-radius: 50%;
  background: radial-gradient(circle at 62% 40%, transparent 0 38%, rgba(207, 167, 90, 0.9) 39% 42%, transparent 43%);
}

.review-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.review-panel {
  padding: 28px;
  border-color: rgba(207, 167, 90, 0.42);
  background: rgba(7, 17, 31, 0.74);
}

.review-top {
  margin-bottom: 22px;
}

.review-top span {
  color: var(--human-accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.evidence-stack {
  display: grid;
  gap: 12px;
}

.evidence-stack div {
  padding: 16px;
  border: 1px solid rgba(122, 162, 255, 0.14);
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(21, 34, 54, 0.62);
  line-height: 1.75;
}

.evidence-stack span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 700;
}

.review-actions {
  gap: 10px;
  margin-top: 22px;
}

.review-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(207, 167, 90, 0.38);
  border-radius: 8px;
  color: var(--text-primary);
  background: rgba(207, 167, 90, 0.08);
  cursor: pointer;
}

.review-actions button.selected {
  border-color: rgba(111, 214, 200, 0.72);
  color: var(--exegesis-accent);
  background: rgba(111, 214, 200, 0.1);
}

.closing-section {
  text-align: center;
}

blockquote {
  margin: 0;
  color: var(--text-primary);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.55;
}

.closing-section p {
  margin: 24px auto 32px;
  color: var(--text-secondary);
  font-size: 18px;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(122, 162, 255, 0.14);
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer a {
  color: var(--brand-primary-text);
}

.brand-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.name-card span {
  color: var(--brand-primary-text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.name-card h2 {
  margin-top: 48px;
  font-size: 28px;
}

.interpretation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.interpretation-grid h3 {
  color: var(--human-accent);
  font-size: 56px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
}

.brand-formula {
  margin: 42px 0 0;
  color: var(--text-primary);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 44px);
}

.classic-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.classic-text {
  padding: 32px;
  border-left: 1px solid rgba(207, 167, 90, 0.62);
  color: var(--text-primary);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  line-height: 2;
  background: linear-gradient(90deg, rgba(207, 167, 90, 0.08), transparent);
}

.modern-text {
  padding-top: 20px;
}

.poem-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: center;
}

.poem-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(122, 162, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 58% 34%, rgba(207, 167, 90, 0.2), transparent 9rem),
    linear-gradient(180deg, rgba(21, 34, 54, 0.8), rgba(7, 17, 31, 0.82));
  overflow: hidden;
}

.poem-visual::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(122, 162, 255, 0.64), transparent);
  content: "";
}

.moon-disc {
  position: absolute;
  top: 78px;
  left: 50%;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(207, 167, 90, 0.62);
  border-radius: 50%;
  transform: translateX(-50%);
}

.moon-disc::after {
  position: absolute;
  inset: 18px 0 0 34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.88);
  content: "";
}

.boat-arc {
  position: absolute;
  right: 76px;
  bottom: 86px;
  left: 76px;
  height: 54px;
  border-bottom: 2px solid rgba(111, 214, 200, 0.78);
  border-radius: 0 0 50% 50%;
}

.manuscript-page {
  --paper: #efe0b8;
  --paper-deep: #d7be82;
  --paper-ink: #1e1a14;
  --paper-muted: #6d5f45;
  --paper-red: #9d1f18;
  --ink-deep: #15100a;
  --ink-soft: rgba(23, 18, 11, 0.82);
  --ink-dry: rgba(23, 18, 11, 0.68);
  --calligraphy-font: "Agentexis Xingkai", "华文行楷", "STXingkai", "Xingkai SC", "HanziPen SC", "YuKyokasho Yoko", "Kaiti SC", "STKaiti", "KaiTi", "FZKai-Z03", "Noto Serif SC", serif;
  --seal-font: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", "Noto Serif SC", serif;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(54, 48, 37, 0.1), transparent 18rem),
    radial-gradient(circle at 8% 78%, rgba(157, 31, 24, 0.08), transparent 20rem),
    linear-gradient(120deg, #ead7a6, #f6ebca 42%, #e2c98e 100%);
  color-scheme: light;
}

.manuscript-page::before {
  background-image:
    radial-gradient(circle at 14px 18px, rgba(65, 54, 34, 0.08) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(111, 83, 42, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(111, 83, 42, 0.035) 1px, transparent 1px);
  background-size: 34px 38px, 88px 88px, 88px 88px;
  mask-image: none;
}

.manuscript-page::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 78% 16%, rgba(30, 26, 20, 0.2), transparent 18rem),
    radial-gradient(ellipse at 4% 34%, rgba(30, 26, 20, 0.14), transparent 14rem),
    linear-gradient(90deg, rgba(28, 21, 12, 0.2), transparent 18%, transparent 82%, rgba(28, 21, 12, 0.18));
  mix-blend-mode: multiply;
  opacity: 0.46;
}

.manuscript-header {
  color: var(--paper-ink);
}

.manuscript-header .brand-mark,
.manuscript-header .brand-story-chip {
  border-color: rgba(82, 57, 23, 0.28);
  color: var(--paper-ink);
  background: rgba(255, 248, 224, 0.62);
}

.manuscript-header .brand-cn,
.manuscript-header .nav {
  color: rgba(30, 26, 20, 0.72);
}

.manuscript-header .nav a:hover {
  color: var(--paper-ink);
}

.manuscript-main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.museum-hero {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 0 48px;
}

.museum-label,
.annotation-kicker {
  margin: 0 0 18px;
  color: var(--paper-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.museum-hero h1 {
  margin-bottom: 24px;
  max-width: 880px;
  color: var(--paper-ink);
  font-family: "Noto Serif SC", "Songti SC", "STKaiti", "Kaiti SC", serif;
  font-size: clamp(56px, 8vw, 116px);
  font-weight: 800;
}

.museum-hero p:not(.museum-label) {
  max-width: 760px;
  color: var(--paper-muted);
  font-size: 18px;
  line-height: 2;
}

.manuscript-exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  padding: 20px 0 112px;
}

.scroll-stage {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(84, 62, 29, 0.22);
  background:
    linear-gradient(90deg, rgba(74, 52, 22, 0.2), transparent 6%, transparent 94%, rgba(74, 52, 22, 0.18)),
    rgba(62, 47, 26, 0.08);
  box-shadow: 0 28px 70px rgba(42, 30, 14, 0.22);
}

.scroll-stage::before,
.scroll-stage::after {
  position: absolute;
  top: 24px;
  bottom: 24px;
  width: 16px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, #6d4c24, #a78142 42%, #4b3218);
  box-shadow: inset 0 0 12px rgba(20, 11, 3, 0.36);
}

.scroll-stage::before {
  left: 10px;
}

.scroll-stage::after {
  right: 10px;
}

.paper-scroll {
  position: relative;
  min-height: 980px;
  padding: clamp(32px, 5vw, 72px);
  border: 1px solid rgba(126, 91, 39, 0.26);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(46, 41, 31, 0.12), transparent 12rem),
    radial-gradient(circle at 16% 88%, rgba(80, 63, 36, 0.1), transparent 16rem),
    linear-gradient(90deg, rgba(103, 76, 34, 0.12), transparent 10%, transparent 90%, rgba(103, 76, 34, 0.1)),
    repeating-linear-gradient(90deg, rgba(120, 94, 52, 0.055) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #f7edc8, #ead8a6 54%, #f4e7bd);
  box-shadow: inset 0 0 44px rgba(95, 68, 27, 0.18);
}

.paper-scroll::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 24% 20%, rgba(31, 27, 18, 0.09), transparent 16rem),
    radial-gradient(ellipse at 70% 58%, rgba(31, 27, 18, 0.1), transparent 20rem),
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.18) 45%, transparent 54%);
  mix-blend-mode: multiply;
}

.scroll-title {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  color: rgba(30, 26, 20, 0.78);
}

.scroll-title span {
  font-family: "Noto Serif SC", "Songti SC", "STKaiti", "Kaiti SC", serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
}

.scroll-title small {
  color: rgba(30, 26, 20, 0.48);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calligraphy-block,
.poem-scroll {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.poem-scroll {
  margin-top: 72px;
  padding-top: 42px;
  border-top: 1px solid rgba(87, 61, 24, 0.22);
}

.story-fragment {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  color: rgba(24, 21, 15, 0.86);
  background: transparent;
  cursor: pointer;
  font-family: "Noto Serif SC", "Songti SC", "STKaiti", "Kaiti SC", "KaiTi", serif;
  font-size: clamp(28px, 3.25vw, 46px);
  font-weight: 800;
  line-height: 1.72;
  text-align: left;
  text-shadow: 0 0 0.4px rgba(20, 16, 9, 0.6);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.story-fragment.strong {
  font-size: clamp(34px, 4.2vw, 60px);
}

.story-fragment:hover,
.story-fragment:focus-visible,
.story-fragment.is-active {
  outline: none;
  color: #080704;
  background:
    linear-gradient(90deg, rgba(157, 31, 24, 0.1), rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(8px);
}

.story-fragment:hover::first-letter,
.story-fragment:focus-visible::first-letter,
.story-fragment.is-active::first-letter {
  color: var(--paper-red);
}

.seal-line {
  color: #11100b;
}

.red-seal {
  position: absolute;
  right: clamp(34px, 6vw, 86px);
  bottom: clamp(34px, 5vw, 72px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 4px solid rgba(157, 31, 24, 0.84);
  color: rgba(157, 31, 24, 0.9);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-5deg);
  mix-blend-mode: multiply;
}

.annotation-panel {
  position: sticky;
  top: 92px;
  min-height: 420px;
  padding: 32px;
  border: 1px solid rgba(72, 48, 18, 0.22);
  color: var(--paper-ink);
  background:
    linear-gradient(145deg, rgba(255, 248, 224, 0.92), rgba(229, 203, 142, 0.82)),
    repeating-linear-gradient(0deg, rgba(94, 69, 34, 0.05) 0 1px, transparent 1px 16px);
  box-shadow: 0 18px 42px rgba(49, 33, 12, 0.16);
}

.annotation-panel h2 {
  margin-bottom: 18px;
  color: var(--paper-ink);
  font-family: "Noto Serif SC", "Songti SC", "STKaiti", "Kaiti SC", serif;
  font-size: 30px;
  line-height: 1.35;
}

.annotation-panel p {
  color: var(--paper-muted);
  font-size: 16px;
  line-height: 2;
}

.annotation-rule {
  width: 100%;
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, rgba(157, 31, 24, 0.42), transparent);
}

.annotation-note {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
}

.manuscript-footer {
  border-color: rgba(72, 48, 18, 0.18);
  color: rgba(30, 26, 20, 0.62);
}

.manuscript-footer a {
  color: var(--paper-red);
}

.formal-manuscript {
  width: min(1380px, calc(100% - 40px));
}

.formal-sheet {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 2.6vh, 34px);
  padding: clamp(14px, 2.2vh, 30px) 0 clamp(22px, 3vh, 42px);
}

.formal-title {
  color: var(--paper-ink);
}

.formal-title h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.22em;
  max-width: none;
  margin: 0;
  font-family: var(--calligraphy-font);
  font-size: clamp(60px, 7.8vw, 118px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow:
    0 0 0.45px rgba(20, 13, 6, 0.72),
    0 2px 0 rgba(109, 79, 34, 0.08);
}

.formal-title h1 span {
  color: rgba(30, 26, 20, 0.42);
  font-weight: 500;
}

.title-switch {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  color: var(--ink-deep);
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-shadow:
    0 0 0.65px rgba(20, 13, 6, 0.82),
    0 2px 0 rgba(109, 79, 34, 0.1);
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.title-switch::after {
  position: absolute;
  right: 0.04em;
  bottom: 0.02em;
  left: 0.03em;
  height: 0.08em;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(157, 31, 24, 0.76), rgba(157, 31, 24, 0.28), transparent);
  opacity: 0;
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.title-switch:hover,
.title-switch:focus-visible {
  color: #090602;
  outline: none;
  text-shadow:
    0 0 0.8px rgba(20, 13, 6, 0.9),
    0 0 10px rgba(157, 31, 24, 0.16);
  transform: translateY(-1px);
}

.title-switch:hover::after,
.title-switch:focus-visible::after {
  opacity: 0.82;
  transform: scaleX(1);
}

.title-switch.is-active::after {
  opacity: 0.54;
  transform: scaleX(0.34);
}

.formal-title p {
  margin: 12px 0 0;
  color: var(--paper-red);
  font-family: var(--calligraphy-font);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 0 0.45px rgba(157, 31, 24, 0.42);
}

.formal-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(22px, 3vw, 42px);
  align-items: stretch;
}

.ink-work {
  position: relative;
  min-height: 0;
  padding-right: clamp(16px, 3vw, 42px);
  color: var(--ink-soft);
  font-family: var(--calligraphy-font);
  font-synthesis-weight: none;
}

.ink-work::before {
  position: absolute;
  inset: -10px 0 auto auto;
  width: 42%;
  height: 34%;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 50% 50%, rgba(26, 20, 12, 0.12), transparent 68%);
  filter: blur(2px);
  opacity: 0.56;
}

.prose-work,
.poem-work {
  position: relative;
  z-index: 1;
}

.prose-work {
  max-width: 1040px;
}

.prose-work p,
.poem-work p {
  margin: 0;
  letter-spacing: 0;
  text-shadow:
    0 0 0.32px rgba(20, 13, 6, 0.7),
    0 1px 0 rgba(255, 247, 218, 0.2);
}

.prose-work p {
  font-size: clamp(25px, 3vh, 35px);
  font-weight: 400;
  line-height: 1.64;
}

.prose-work p + p {
  margin-top: clamp(4px, 0.85vh, 10px);
}

.poem-work {
  margin-top: clamp(16px, 2.55vh, 28px);
  color: var(--ink-dry);
}

.poem-work p {
  font-size: clamp(25px, 2.8vh, 32px);
  font-weight: 400;
  line-height: 1.66;
}

.ink-sentence {
  display: inline;
  margin: 0;
  padding: 0 0.03em;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-shadow: inherit;
  vertical-align: baseline;
  transition: color 160ms ease, background 160ms ease, text-shadow 160ms ease;
}

.ink-sentence:nth-of-type(3n + 1) {
  color: rgba(16, 12, 7, 0.9);
}

.ink-sentence:nth-of-type(3n + 2) {
  color: rgba(23, 18, 11, 0.76);
}

.ink-sentence:nth-of-type(5n) {
  text-shadow:
    0 0 0.22px rgba(20, 13, 6, 0.62),
    0 1px 0 rgba(255, 247, 218, 0.18);
}

.ink-sentence:hover,
.ink-sentence:focus-visible,
.ink-sentence.is-active {
  color: var(--ink-deep);
  outline: none;
  background: linear-gradient(90deg, rgba(157, 31, 24, 0.1), rgba(255, 249, 223, 0.28), transparent);
  text-shadow:
    0 0 0.7px rgba(20, 13, 6, 0.84),
    0 2px 0 rgba(109, 79, 34, 0.08);
}

.formal-seal {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: 4px;
  display: grid;
  place-items: center;
  width: clamp(62px, 8vh, 84px);
  height: clamp(62px, 8vh, 84px);
  border: 4px solid rgba(157, 31, 24, 0.78);
  color: rgba(157, 31, 24, 0.9);
  font-family: var(--seal-font);
  font-size: clamp(20px, 2.5vh, 26px);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-4deg);
  mix-blend-mode: multiply;
}

.word-exegesis {
  position: relative;
  min-height: 0;
  padding-top: clamp(2px, 0.6vh, 8px);
  color: var(--paper-ink);
}

.exegesis-panel {
  display: none;
}

.exegesis-panel.is-active {
  display: block;
}

.illumination {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 0 12px;
  border: 1px solid rgba(157, 31, 24, 0.34);
  color: rgba(157, 31, 24, 0.62);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(224, 188, 92, 0.26), rgba(255, 245, 197, 0.34));
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(112, 73, 24, 0.04);
}

.exegesis-panel h2 {
  margin: 0 0 14px;
  color: rgba(30, 26, 20, 0.62);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.18;
  white-space: nowrap;
}

.exegesis-panel dl {
  display: grid;
  gap: clamp(10px, 1.3vh, 16px);
  margin: 0;
}

.exegesis-panel div {
  display: grid;
  gap: 5px;
}

.exegesis-panel dt {
  color: rgba(157, 31, 24, 0.7);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(15px, 1.65vh, 18px);
  font-weight: 800;
}

.exegesis-panel dd {
  margin: 0;
  color: rgba(109, 95, 69, 0.86);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(13px, 1.45vh, 15px);
  line-height: 1.68;
}

.sentence-translation {
  max-height: min(68vh, 680px);
  margin: 0 0 14px;
  padding: 11px 12px;
  border-left: 2px solid rgba(157, 31, 24, 0.34);
  color: rgba(43, 33, 19, 0.82);
  background: rgba(255, 249, 223, 0.28);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(14px, 1.55vh, 16px);
  font-weight: 650;
  line-height: 1.72;
}

.sentence-copy-frame {
  position: relative;
  max-height: min(48vh, 470px);
  overflow: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0, black calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0, black calc(100% - 34px), transparent 100%);
}

.sentence-copy-frame::-webkit-scrollbar {
  display: none;
}

.sentence-panel #sentence-copy {
  margin: 0;
  padding-bottom: 36px;
  color: rgba(109, 95, 69, 0.88);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(12px, 1.36vh, 14px);
  line-height: 1.72;
  white-space: pre-line;
}

.more-hint {
  display: inline-block;
  margin-top: 8px;
  color: rgba(157, 31, 24, 0.48);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (min-width: 901px) {
  .manuscript-page {
    height: 100vh;
    overflow: hidden;
  }

  .formal-manuscript,
  .formal-sheet {
    height: calc(100vh - 72px);
  }
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .review-section,
  .classic-section,
  .poem-section,
  .manuscript-exhibit {
    grid-template-columns: 1fr;
  }

  .annotation-panel {
    position: relative;
    top: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

  .capability-grid,
  .workflow,
  .name-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .axis-line {
    left: auto;
    right: 24px;
  }

  .formal-sheet {
    min-height: auto;
  }

  .formal-content {
    grid-template-columns: 1fr;
  }

  .ink-work {
    padding-right: 0;
  }

}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
    width: min(100% - 32px, var(--max-width));
  }

  .nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .section {
    width: min(100% - 32px, var(--max-width));
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.18;
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-grid,
  .capability-grid,
  .workflow,
  .name-section,
  .interpretation-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .manuscript-main {
    width: min(100% - 24px, var(--max-width));
  }

  .museum-hero {
    min-height: 38vh;
    padding: 54px 0 32px;
  }

  .museum-hero h1 {
    font-size: clamp(46px, 16vw, 72px);
  }

  .manuscript-exhibit {
    gap: 18px;
    padding-bottom: 72px;
  }

  .scroll-stage {
    padding: 14px;
  }

  .scroll-stage::before,
  .scroll-stage::after {
    width: 8px;
    top: 14px;
    bottom: 14px;
  }

  .scroll-stage::before {
    left: 3px;
  }

  .scroll-stage::after {
    right: 3px;
  }

  .paper-scroll {
    min-height: 0;
    padding: 28px 22px 112px;
  }

  .scroll-title {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .story-fragment,
  .story-fragment.strong {
    padding: 8px 4px;
    font-size: clamp(26px, 8.8vw, 38px);
    line-height: 1.62;
  }

  .story-fragment:hover,
  .story-fragment:focus-visible,
  .story-fragment.is-active {
    transform: translateX(3px);
  }

  .poem-scroll {
    margin-top: 44px;
    padding-top: 28px;
  }

  .red-seal {
    right: 28px;
    bottom: 28px;
    width: 68px;
    height: 68px;
    font-size: 21px;
  }

  .annotation-panel {
    min-height: 0;
    padding: 24px;
  }

  .formal-manuscript {
    width: min(100% - 24px, var(--max-width));
  }

  .formal-sheet {
    gap: 24px;
    padding: 46px 0 70px;
  }

  .formal-title h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .formal-title p {
    font-size: clamp(24px, 8vw, 34px);
  }

  .formal-content {
    gap: 28px;
  }

  .prose-work p {
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.58;
  }

  .poem-work p {
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .formal-seal {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }

  .word-exegesis {
    padding-top: 8px;
  }

  .hero-visual {
    width: 100%;
    min-height: 460px;
  }

  .console-panel {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 18px;
  }

  .panel-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-card {
    min-height: 0;
  }

  .review-actions {
    flex-wrap: wrap;
  }

  .poem-visual {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
