@font-face {
  font-family: "Ma Shan Zheng";
  src: url("assets/fonts/brush.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/serif.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #071419;
  --paper: #f1ead7;
  --gold: #d3ba82;
  --muted: #aab8b6;
  --rule: rgba(208, 192, 151, .23);
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --brush: "Ma Shan Zheng", "Kaiti SC", KaiTi, var(--serif);
  --gutter: clamp(1.25rem, 5.05vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { color: #071419; background: var(--gold); }
.page-width { width: min(100% - var(--gutter) * 2, 95rem); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.23; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero {
  position: relative;
  isolation: isolate;
  height: min(57rem, max(47rem, 87svh));
  min-height: 44rem;
  display: grid;
  grid-template-rows: 5.25rem 1fr auto;
  overflow: hidden;
  background: #10252b;
}
.hero-art, .hero-shade, .scene-still, #scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -3; overflow: hidden; cursor: grab; touch-action: pan-y; }
.hero-art.is-dragging { cursor: grabbing; }
.scene-still {
  background: url("assets/kun.webp") 79% 50% / cover no-repeat;
  transform: scale(1.025);
}
.scene-still::before, .scene-still::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: inherit;
  background-size: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.scene-still::before { background-image: url("assets/change.webp"); }
.scene-still::after { background-image: url("assets/peng.webp"); }
.hero[data-chapter="1"] .scene-still::before { opacity: 1; }
.hero[data-chapter="2"] .scene-still::after { opacity: 1; }
#scene-canvas { display: block; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
#scene-canvas.is-ready { opacity: 1; }
.hero-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(0deg, #071419 0%, rgba(7,20,25,.85) 5%, transparent 25%, transparent 84%, rgba(4,13,17,.65) 100%),
    linear-gradient(90deg, rgba(5,15,20,.71) 0%, rgba(5,15,20,.47) 27%, rgba(5,15,20,.06) 56%, transparent 76%);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  z-index: 1;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; width: max-content; font: 600 1.2rem/1 var(--serif); letter-spacing: .13em; white-space: nowrap; }
.brand-mark { width: 2.15rem; height: 2.15rem; color: var(--gold); stroke-width: 1.15; }
.site-nav { height: 100%; display: flex; align-items: stretch; gap: clamp(1.5rem, 4vw, 4rem); }
.site-nav a { position: relative; display: grid; place-items: center; color: #c8cfca; font-size: .875rem; letter-spacing: .16em; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; height: 1px; width: 100%; background: var(--gold); }
.sound {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  border: 1px solid var(--rule);
  background: rgba(7, 20, 25, .35);
  color: #dadbca;
  font-size: .875rem;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.sound .icon { width: 1.11rem; height: 1.11rem; color: var(--gold); }
.sound-status { font-size: .75rem; color: #a4b0a9; }
.sound:hover, .sound[aria-pressed="true"] { border-color: #bba573; background: #13272a; }
.sound[aria-pressed="true"] .sound-status { color: var(--gold); }

.hero-stage {
  display: flex;
  align-items: center;
  pointer-events: none;
  padding-block: 2.25rem 3.3rem;
}
.hero-copy { width: min(100%, 33rem); pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy.is-changing { animation: reveal .65s cubic-bezier(.2,.65,.3,1) both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0;
  color: var(--gold);
  font: 500 .875rem/1.6 var(--serif);
  letter-spacing: .32em;
}
.eyebrow span { width: 1.65rem; height: 1px; background: var(--gold); opacity: .75; }
.hero h1 {
  margin: .55rem 0 .52rem -.22em;
  padding-left: .12em;
  font: 400 clamp(7.2rem, 11.8vw, 12rem)/1.07 var(--brush);
  letter-spacing: -.055em;
  white-space: nowrap;
  color: #efe7ce;
  text-shadow: 0 5px 34px rgba(3,13,16,.34);
}
.hero-quote { margin: 0 0 .38rem; font: 500 clamp(1.2rem, 1.9vw, 1.7rem)/1.65 var(--serif); letter-spacing: .075em; }
.hero-line { margin: 0; color: #bfccc7; font: 400 clamp(1rem, 1.28vw, 1.125rem)/1.75 var(--serif); letter-spacing: .075em; }
.cta {
  width: max-content;
  display: flex;
  align-items: center;
  gap: .78rem;
  margin-top: 2.2rem;
  padding: .72rem 1.33rem;
  border: 1px solid #a88e60;
  background: rgba(12, 28, 31, .64);
  color: #e6d0a0;
  letter-spacing: .18em;
  font-size: .9375rem;
  transition: background .2s, color .2s;
}
.cta:hover { background: #d3ba82; color: #0b171b; }
.cta .icon { width: 1.1rem; height: 1.1rem; }

.hero-base {
  min-height: 6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--rule);
  position: relative;
}
.chapter-controls { display: flex; gap: clamp(.7rem, 2.25vw, 2.4rem); align-items: center; }
.chapter-controls button {
  border: 0;
  padding: .7rem 0;
  background: none;
  color: #b9c4bc;
  white-space: nowrap;
  font-size: .875rem;
  letter-spacing: .12em;
  transition: color .2s;
}
.chapter-controls button::before {
  content: "";
  display: inline-block;
  vertical-align: .12em;
  margin-right: .57rem;
  width: .36rem;
  height: .36rem;
  border: 1px solid #9eaaa0;
  transform: rotate(45deg);
}
.chapter-controls button:hover, .chapter-controls button[aria-pressed="true"] { color: var(--gold); }
.chapter-controls button[aria-pressed="true"]::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 .7rem #d3ba8270; }
.scroll-link { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--rule); border-radius: 50%; color: var(--gold); transition: border-color .2s, background .2s; }
.scroll-link:hover { background: #12272c; border-color: var(--gold); }
.scroll-link .icon { width: 1rem; height: 1rem; }
.drag-note { justify-self: end; display: flex; align-items: center; gap: .55rem; margin: 0; color: #a7b7b3; font-size: .875rem; letter-spacing: .12em; white-space: nowrap; }
.drag-note .icon { color: var(--gold); width: 1rem; height: 1rem; }

.explore { padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 8vw, 7rem); background: radial-gradient(ellipse at 50% 60%, #10262b 0%, #071419 70%); }
.section-heading { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.75rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading h2 { margin: 0; font: 500 clamp(1.75rem, 3vw, 2.6rem)/1.35 var(--serif); color: #e4d5af; letter-spacing: .15em; }
.heading-rule { position: relative; height: 1px; width: clamp(1.9rem, 6vw, 5.5rem); background: linear-gradient(90deg, transparent, #9f8a61); }
.heading-rule::after { content: ""; position: absolute; right: 0; top: -.15rem; width: .32rem; height: .32rem; background: #b29a6c; transform: rotate(45deg); }
.heading-rule:last-child { transform: scaleX(-1); }
.specimen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, .65fr) minmax(0, 1.6fr);
  min-height: clamp(24rem, 40vw, 35rem);
  border: 1px solid var(--rule);
  background: #091b21;
}
.specimen-info {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  border-right: 1px solid var(--rule);
}
.specimen-choices { display: flex; gap: .75rem; margin-bottom: 1.7rem; }
.specimen-choices button { width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--rule); background: transparent; color: #bac6ba; font: 500 1.25rem/1 var(--serif); transition: background .2s, border-color .2s; }
.specimen-choices button:hover, .specimen-choices button[aria-pressed="true"] { border-color: #a98e60; color: #f1d9a5; background: #c8ac7413; }
.specimen-copy h3 { margin: 0 0 .7rem; color: #eee2c7; font: 600 clamp(1.5rem, 2.65vw, 2.45rem)/1.45 var(--serif); letter-spacing: .09em; }
.specimen-copy p { margin: 0; color: var(--muted); max-width: 16rem; letter-spacing: .04em; line-height: 1.95; }
.specimen-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 22rem;
  background: radial-gradient(ellipse at 54% 47%, #224148 0%, #132e35 35%, #0a1c22 79%);
}
.specimen-still, #model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.specimen-still { object-fit: cover; object-position: 64% center; opacity: .6; z-index: -1; }
#model-canvas { opacity: 0; cursor: grab; touch-action: pan-y; }
#model-canvas:focus-visible { outline-offset: -4px; }
#model-canvas.is-dragging { cursor: grabbing; }
.specimen-view.ready #model-canvas { opacity: 1; }
.specimen-view.ready .specimen-still { visibility: hidden; }
.model-hint, .model-reset { display: none; }
.specimen-view.ready .model-hint, .specimen-view.ready .model-reset { display: flex; }
.model-hint { position: absolute; left: 1.2rem; bottom: 1.1rem; gap: .5rem; align-items: center; margin: 0; color: #b7c6bf; font-size: .875rem; pointer-events: none; }
.model-hint .icon { width: .95rem; height: .95rem; color: var(--gold); }
.model-reset { position: absolute; top: 1rem; right: 1rem; place-content: center; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--rule); background: #0a191fbb; color: var(--gold); }
.model-reset:hover { border-color: var(--gold); }

.original {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: clamp(4.5rem, 10vw, 9rem) var(--gutter);
  border-block: 1px solid var(--rule);
  background:
    linear-gradient(0deg, #071419 0%, #09191dde 60%, #071419 100%),
    url("assets/peng.webp") center 55% / cover;
}
.original-inner { margin: auto; max-width: 39rem; }
.original .eyebrow { justify-content: center; }
.original h2 { margin: .7rem 0 1.65rem; font: 400 clamp(3.5rem, 7vw, 6.2rem)/1.04 var(--brush); color: #eadab3; letter-spacing: .08em; }
blockquote { margin: 0; font: 400 clamp(1.05rem, 2.2vw, 1.4rem)/2.06 var(--serif); letter-spacing: .075em; }
blockquote p { margin: 0 0 1.2rem; }
blockquote footer { margin-top: 1.7rem; color: var(--gold); font-size: .875rem; letter-spacing: .16em; }
.site-footer { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer .brand { color: #d3c8ac; font-size: 1rem; }
.site-footer .brand-mark { width: 1.8rem; height: 1.8rem; }
.back-top { color: var(--muted); font-size: .875rem; letter-spacing: .12em; }
.back-top:hover { color: var(--gold); }

@media (max-width: 45rem) {
  .hero { height: min(53rem, max(43rem, 96svh)); min-height: 43rem; grid-template-rows: 4.4rem 1fr auto; }
  .masthead { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .scene-still { background-position: 58% 50%; }
  .scene-still::before { background-position: 90% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, #071419 0%, #071419bf 10%, #07141940 42%, transparent 64%, #0714199e 100%),
      linear-gradient(90deg, #07141991, #07141926 61%, transparent);
  }
  .hero-stage { align-items: end; padding-bottom: clamp(2rem, 7vh, 4rem); }
  .hero h1 { font-size: clamp(6.4rem, 22vw, 9rem); margin-block: .45rem .5rem; }
  .hero-line { letter-spacing: .04em; }
  .cta { margin-top: 1.3rem; }
  .hero-base { grid-template-columns: 1fr auto; min-height: 4.9rem; }
  .chapter-controls { gap: clamp(.6rem, 2.5vw, 1.3rem); }
  .chapter-controls button { letter-spacing: .04em; }
  .chapter-controls button::before { margin-right: .32rem; }
  .drag-note { display: none; }
  .scroll-link { width: 2rem; height: 2rem; }
  .specimen { grid-template-columns: 1fr; }
  .specimen-info { border-right: none; border-bottom: 1px solid var(--rule); }
  .specimen-choices { margin-bottom: .8rem; }
  .specimen-view { min-height: 19rem; }
}
@media (max-width: 22rem) {
  .chapter-controls button { font-size: .8125rem; }
  .scroll-link { display: none; }
  .hero-base { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.scene-fallback .drag-note { visibility: hidden; }
.scene-fallback .hero-art { cursor: auto; }
