@charset "UTF-8";

:root {
  --ink: #1b1611;
  --ink-2: #272019;
  --ink-3: #342a21;
  --paper: #efe4d2;
  --paper-2: #e7d8c2;
  --paper-3: #dcc9ae;
  --ivory: #f6efe2;
  --ochre: #b85c38;
  --cinnabar: #9e3529;
  --stone-green: #6f8f7d;
  --lapis: #3d6f7d;
  --gold: #c9a15e;
  --gold-soft: rgba(201, 161, 94, .38);
  --muted: #7c6d5c;
  --line: rgba(52, 42, 33, .18);
  --line-light: rgba(246, 239, 226, .18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: var(--ivory);
  background: var(--ochre);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  color: var(--ivory);
  background: var(--cinnabar);
  transform: translateY(-150%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: none;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.atlas-node:focus-visible {
  outline: none;
}

.atlas-map .atlas-node:focus-visible circle,
.atlas-map .atlas-node:focus-visible rect {
  stroke: var(--ivory);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 7px rgba(201, 161, 94, .9));
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: 55;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 161, 94, .16), rgba(201, 161, 94, 0) 66%);
  transition: opacity .3s;
}

.scroll-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .08);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--ochre));
}

.site-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--header-h);
  padding: 0 4.5vw;
  color: var(--ivory);
  transition: background .35s, color .35s, height .35s, border-color .35s;
}

.site-header::after {
  position: absolute;
  right: 4.5vw;
  bottom: 0;
  left: 4.5vw;
  height: 1px;
  content: "";
  background: rgba(246, 239, 226, .14);
  transition: opacity .3s;
}

.site-header.is-scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(239, 228, 210, .92);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled.is-over-dark {
  color: var(--ivory);
  background: rgba(20, 15, 11, .82);
}

.site-header.is-over-dark .brand-seal {
  border-color: rgba(246, 239, 226, .32);
}

.site-header.is-over-dark .header-cta {
  border-color: rgba(246, 239, 226, .28);
}

.site-header.is-over-dark .header-cta:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.site-header.is-scrolled::after {
  opacity: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-seal {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(27, 22, 17, .16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .16em;
}

.brand-copy small {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .32em;
  opacity: .68;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin-left: auto;
  margin-right: clamp(20px, 3vw, 48px);
}

.main-nav a {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: .08em;
  opacity: .72;
  transition: opacity .25s;
}

.main-nav a span {
  font-family: var(--serif);
  font-size: 10px;
  color: var(--gold);
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(246, 239, 226, .4);
  font-size: 12px;
  letter-spacing: .1em;
  transition: color .3s, background .3s, border-color .3s;
}

.header-cta:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.site-header.is-scrolled .header-cta {
  border-color: var(--line);
}

.site-header.is-scrolled .header-cta:hover {
  color: var(--ivory);
  border-color: var(--cinnabar);
  background: var(--cinnabar);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform .3s;
}

.hero {
  position: relative;
  display: flex;
  height: 100svh;
  min-height: 720px;
  max-height: 1020px;
  padding: calc(var(--header-h) + 18px) 5vw 104px;
  color: var(--ivory);
  overflow: hidden;
  background: #2c2017;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background: url("../img/hero-bg.jpg") center 42% / cover no-repeat;
  filter: saturate(.88) contrast(1.04) brightness(.84);
  transform: scale(1.04);
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 9, .9) 0%, rgba(18, 13, 9, .52) 46%, rgba(18, 13, 9, .08) 74%, rgba(18, 13, 9, .4) 100%),
    linear-gradient(0deg, rgba(18, 13, 9, .88) 0%, rgba(18, 13, 9, .08) 38%, rgba(18, 13, 9, .28) 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold-soft);
}

.hero-feitian {
  position: absolute;
  z-index: 2;
  top: 12%;
  right: -2%;
  width: clamp(280px, 31vw, 560px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
  opacity: .93;
  animation: float 9s ease-in-out infinite;
}

.hero-rail {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 2vw;
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(246, 239, 226, .5);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .24em;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

.hero-rail i {
  display: block;
  width: 1px;
  height: 72px;
  background: rgba(246, 239, 226, .25);
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .72fr);
  gap: 4vw;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  margin: auto;
}

.hero-copy {
  padding-top: 0;
}

.eyebrow {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .24em;
}

.eyebrow::before {
  width: 44px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.hero-title {
  margin-top: 26px;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .92;
  letter-spacing: .02em;
}

.hero-title .line {
  display: block;
}

.line-1 {
  font-size: clamp(66px, 10vw, 154px);
  text-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

.line-2 {
  margin-top: 7px;
  margin-left: clamp(30px, 8vw, 150px);
  font-size: clamp(58px, 8.5vw, 134px);
  color: var(--gold);
}

.line-2 em {
  color: var(--ivory);
  font-style: normal;
  -webkit-text-stroke: 1px rgba(246, 239, 226, .42);
}

.hero-en {
  margin-top: 22px;
  margin-left: clamp(30px, 8vw, 150px);
  color: rgba(246, 239, 226, .55);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .62em;
}

.hero-lead {
  margin-top: 26px;
  max-width: 520px;
  color: rgba(246, 239, 226, .82);
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.95;
  letter-spacing: .05em;
}

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

.btn {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .3s, background .3s, border-color .3s, transform .3s;
}

.btn span {
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  color: var(--ivory);
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.btn-solid:hover {
  background: #b54534;
  border-color: #b54534;
}

.btn-ghost {
  color: var(--ivory);
  border-color: rgba(246, 239, 226, .34);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.section-paper .btn-ghost,
.site-footer .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.section-paper .btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--cinnabar);
  background: var(--cinnabar);
}

.hero-plate {
  position: relative;
  justify-self: end;
  width: min(100%, 350px);
  margin-right: 5vw;
}

.plate-arch {
  position: relative;
  aspect-ratio: 3 / 4.15;
  padding: 9px;
  border: 1px solid rgba(201, 161, 94, .72);
  border-radius: 50% 50% 3px 3px / 38% 38% 3px 3px;
  background: rgba(27, 22, 17, .22);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .46), inset 0 0 0 1px rgba(246, 239, 226, .1);
}

.plate-arch::before {
  position: absolute;
  z-index: -1;
  inset: -18px;
  content: "";
  border: 1px solid rgba(201, 161, 94, .2);
  border-radius: inherit;
}

.plate-arch img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 38%;
}

.plate-index {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 5px 9px;
  color: var(--ivory);
  background: rgba(27, 22, 17, .62);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .18em;
  backdrop-filter: blur(8px);
}

.hero-plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 0 6px;
  font-size: 11px;
  letter-spacing: .12em;
}

.hero-plate figcaption span {
  color: rgba(246, 239, 226, .72);
}

.hero-plate figcaption a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 161, 94, .34);
}

.hero-stats {
  position: absolute;
  z-index: 4;
  right: 5vw;
  bottom: 24px;
  left: 5vw;
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) minmax(240px, 1.4fr);
  gap: 0;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 239, 226, .16);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
}

.hero-stat strong {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 38px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
}

.hero-stat span {
  margin-top: 9px;
  color: rgba(246, 239, 226, .48);
  font-size: 10px;
  letter-spacing: .12em;
}

.hero-source {
  justify-self: end;
  max-width: 290px;
  color: rgba(246, 239, 226, .38);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .04em;
  text-align: right;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: 2.3vw;
  bottom: 118px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(246, 239, 226, .45);
  font-size: 9px;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--gold), transparent);
}

.section-paper,
.section-ink,
.section-dark {
  position: relative;
  padding: clamp(100px, 12vw, 180px) 5vw;
}

.section-paper {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, .38), transparent 28%),
    var(--paper);
}

.section-ink {
  color: var(--ivory);
  background:
    radial-gradient(circle at 80% 8%, rgba(201, 161, 94, .09), transparent 26%),
    radial-gradient(circle at 4% 80%, rgba(61, 111, 125, .14), transparent 34%),
    var(--ink);
}

.section-dark {
  color: var(--ivory);
  background: #16120e;
}

.section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.26fr) minmax(280px, .55fr);
  gap: 2.4vw;
  align-items: end;
  max-width: 1480px;
  margin: 0 auto clamp(62px, 7vw, 110px);
}

.section-no {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .22em;
  white-space: nowrap;
}

.section-head-light .section-no {
  color: var(--gold);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.45vw, 70px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .015em;
}

.keep-together {
  white-space: nowrap;
}

.section-lead {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.section-head-light .section-lead {
  color: rgba(246, 239, 226, .6);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-title .line-1 {
  transition-delay: .1s;
}

.hero-title .line-2 {
  transition-delay: .22s;
}

/* Origin */
.origin-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
}

.origin-mural {
  position: sticky;
  top: 100px;
}

.image-frame {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .18);
}

.image-frame::before,
.image-frame::after {
  position: absolute;
  width: 26px;
  height: 26px;
  content: "";
  border-color: var(--ochre);
  border-style: solid;
}

.image-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.image-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02);
}

.frame-caption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 16px 18px;
  color: var(--ivory);
  background: linear-gradient(90deg, rgba(27, 22, 17, .76), rgba(27, 22, 17, .16));
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .08em;
  backdrop-filter: blur(4px);
}

.origin-mural figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.origin-copy blockquote {
  max-width: 600px;
  color: var(--ochre);
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.35;
}

.origin-copy > p {
  max-width: 610px;
  margin-top: 34px;
  color: #4e4236;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.05;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 42px;
}

.contrast-card {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .17);
}

.contrast-card.is-answer {
  color: var(--ivory);
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.contrast-tag {
  color: var(--ochre);
  font-size: 9px;
  letter-spacing: .2em;
}

.contrast-card.is-answer .contrast-tag {
  color: var(--gold);
}

.contrast-card h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.contrast-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.contrast-card.is-answer p {
  color: rgba(246, 239, 226, .6);
}

.answer-list {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.answer-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.answer-list li > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
}

.answer-list strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.answer-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.origin-quote-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr) 180px;
  gap: 3vw;
  align-items: center;
  max-width: 1480px;
  margin: clamp(80px, 10vw, 150px) auto 0;
  padding: 50px 4vw;
  color: var(--ivory);
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(27, 22, 17, .92), rgba(27, 22, 17, .78)),
    url("../img/mural-02.jpg") center / cover;
}

.origin-quote-band img {
  width: min(100%, 340px);
  opacity: .82;
}

.origin-quote-band p {
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 36px);
  line-height: 1.7;
}

.origin-quote-band em {
  color: var(--gold);
  font-style: normal;
}

.origin-quote-band > span {
  justify-self: end;
  color: rgba(246, 239, 226, .42);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .3em;
  writing-mode: vertical-rl;
}

/* Language */
.translator {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: clamp(46px, 6vw, 96px);
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
}

.translator-stage {
  position: relative;
  min-height: 650px;
  padding: 34px;
  border: 1px solid rgba(201, 161, 94, .24);
  background:
    radial-gradient(circle at 50% 44%, rgba(201, 161, 94, .1), transparent 52%),
    rgba(246, 239, 226, .035);
}

.translator-stage::before {
  position: absolute;
  top: -1px;
  left: 34px;
  width: 92px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.stage-art {
  position: absolute;
  inset: 36px 26px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-art-frame {
  position: relative;
  width: min(92%, 680px);
  margin: 0;
}

.stage-art-frame > img {
  width: 100%;
  height: auto;
  padding: 12px;
  object-fit: contain;
  background: rgba(239, 228, 210, .95);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  transition: opacity .4s, transform .6s var(--ease), filter .4s;
}

.translator-stage[data-active="color"] .stage-art-frame > img,
.translator-stage[data-active="pose"] .stage-art-frame > img,
.translator-stage[data-active="spirit"] .stage-art-frame > img {
  opacity: .07;
  filter: blur(2px) saturate(.7);
}

.translator-stage[data-active="color"] .hotspot,
.translator-stage[data-active="pose"] .hotspot,
.translator-stage[data-active="spirit"] .hotspot {
  opacity: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: block;
  width: 25px;
  height: 25px;
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: .06em;
  transform: translate(-50%, -50%);
  cursor: default;
  transition: opacity .35s, transform .35s;
}

.hotspot::before {
  position: absolute;
  top: 12px;
  left: 28px;
  width: 32px;
  height: 1px;
  content: "";
  background: rgba(201, 161, 94, .65);
}

.hotspot span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--serif);
  font-size: 9px;
}

.hotspot b {
  position: absolute;
  top: 50%;
  left: 67px;
  padding: 4px 8px;
  color: var(--ivory);
  background: rgba(27, 22, 17, .78);
  font-weight: 400;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
}

.hotspot.is-left::before {
  right: 28px;
  left: auto;
}

.hotspot.is-left b {
  right: 67px;
  left: auto;
}

.translator-stage[data-active="color"] .hotspot,
.translator-stage[data-active="pose"] .hotspot,
.translator-stage[data-active="spirit"] .hotspot {
  opacity: 0;
  pointer-events: none;
}

.stage-side {
  position: absolute;
  inset: 70px 44px;
  display: grid;
  place-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s var(--ease), transform .7s var(--ease);
  transform: scale(.97);
}

.stage-side.is-active {
  opacity: 1;
  transform: none;
}

.stage-palette {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stage-palette span {
  width: clamp(92px, 9vw, 142px);
  aspect-ratio: 1;
  background: var(--c);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

.stage-palette span:nth-child(2),
.stage-palette span:nth-child(5) {
  transform: translateY(34px);
}

.stage-postures {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stage-postures img {
  width: clamp(120px, 13vw, 200px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(.92);
}

.stage-spirit {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stage-spirit span {
  display: grid;
  width: clamp(100px, 10vw, 150px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 161, 94, .36);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
}

.translator-copy {
  padding-right: 2vw;
}

.layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line-light);
}

.layer-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 0 0 18px;
  color: rgba(246, 239, 226, .4);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color .3s;
}

.layer-tab::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.layer-tab.is-active,
.layer-tab:hover {
  color: var(--ivory);
}

.layer-tab.is-active::after {
  transform: scaleX(1);
}

.layer-tab span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9px;
}

.layer-tab b {
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
}

.layer-tab small {
  font-size: 9px;
  letter-spacing: .08em;
}

.layer-panel {
  min-height: 360px;
  padding-top: 38px;
}

.panel-kicker {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .22em;
}

.layer-panel h3 {
  max-width: 480px;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.2vw, 35px);
  font-weight: 400;
  line-height: 1.55;
}

.layer-panel > p {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(246, 239, 226, .6);
  font-size: 13px;
  line-height: 2;
}

.layer-panel ul {
  margin-top: 24px;
  border-top: 1px solid var(--line-light);
}

.layer-panel li {
  padding: 9px 0 9px 18px;
  color: rgba(246, 239, 226, .54);
  border-bottom: 1px solid var(--line-light);
  font-size: 11px;
}

.layer-panel li::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px -18px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.translator-note {
  margin-top: 20px;
  color: rgba(246, 239, 226, .35);
  font-size: 9px;
  letter-spacing: .08em;
}

.palette-band {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 5vw;
  align-items: end;
  max-width: 1480px;
  margin: clamp(90px, 11vw, 160px) auto 0;
  padding-top: 46px;
  border-top: 1px solid var(--line-light);
}

.palette-heading h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
}

.palette-heading > p:last-child {
  max-width: 470px;
  margin-top: 18px;
  color: rgba(246, 239, 226, .54);
  font-size: 12px;
  line-height: 1.95;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
}

.swatch {
  position: relative;
  min-height: 230px;
  padding: 18px;
  color: var(--ivory);
  background: var(--c);
  cursor: pointer;
  transition: transform .35s var(--ease);
}

.swatch:hover {
  transform: translateY(-8px);
}

.swatch::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .18);
}

.swatch-index,
.swatch-role {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
}

.swatch-role {
  opacity: .76;
}

.swatch strong {
  position: absolute;
  z-index: 1;
  bottom: 48px;
  left: 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  writing-mode: vertical-rl;
}

.swatch small {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .1em;
}

.swatch.is-light {
  color: var(--ink);
}

.swatch.is-light::after {
  border-color: rgba(27, 22, 17, .16);
}

/* Figures */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
  max-width: 1480px;
  margin: 0 auto;
}

.character-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  cursor: pointer;
  isolation: isolate;
}

.character-card:nth-child(1),
.character-card:nth-child(4) {
  grid-column: span 7;
}

.character-card:nth-child(2),
.character-card:nth-child(3) {
  grid-column: span 5;
}

.character-card::after {
  position: absolute;
  z-index: 2;
  inset: 10px;
  content: "";
  border: 1px solid rgba(246, 239, 226, .16);
  pointer-events: none;
  transition: border-color .35s;
}

.character-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 1.1s var(--ease), filter .5s;
}

.character-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(20, 15, 11, .9) 0%, rgba(20, 15, 11, .16) 52%, rgba(20, 15, 11, .04) 100%);
}

.character-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.character-card:hover::after {
  border-color: rgba(201, 161, 94, .74);
}

.card-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 26px 28px;
  color: rgba(246, 239, 226, .72);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .18em;
}

.card-top span:last-child {
  color: var(--gold);
}

.card-body {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-top: auto;
  padding: 0 28px 28px;
  color: var(--ivory);
}

.card-body h3 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.1vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.card-body h3 small {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .28em;
}

.card-body p {
  max-width: 480px;
  margin-top: 14px;
  color: rgba(246, 239, 226, .64);
  font-size: 12px;
  line-height: 1.8;
}

.card-caves {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.card-caves span,
.cave-chips a {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: rgba(246, 239, 226, .72);
  border: 1px solid rgba(246, 239, 226, .2);
  font-size: 9px;
  letter-spacing: .06em;
}

.card-open {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  font-size: 17px;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s;
}

.character-card:hover .card-open {
  transform: rotate(45deg);
  background: var(--ivory);
}

.pose-equation {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  max-width: 1480px;
  margin: 48px auto 0;
  padding: 30px 34px;
  border: 1px solid var(--line);
}

.pose-equation > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.pose-equation strong {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.pose-equation span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.pose-equation > i {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 27px;
  font-style: normal;
}

.pose-equation .is-accent strong {
  color: var(--ochre);
}

.pose-equation > p {
  margin-left: auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

/* Beasts */
.beasts {
  overflow: hidden;
}

.beasts-glow {
  position: absolute;
  top: 10%;
  left: 34%;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 94, .13), transparent 68%);
  pointer-events: none;
}

.beast-rail-wrap {
  position: relative;
  margin-right: -5vw;
  margin-left: 2vw;
}

.beast-rail {
  display: flex;
  gap: 18px;
  padding: 8px 5vw 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.beast-rail::-webkit-scrollbar {
  display: none;
}

.beast-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.beast-card {
  position: relative;
  flex: 0 0 clamp(280px, 27vw, 390px);
  height: clamp(470px, 52vw, 620px);
  overflow: hidden;
  border: 1px solid rgba(246, 239, 226, .14);
  background: #211a14;
  scroll-snap-align: start;
  cursor: pointer;
  isolation: isolate;
}

.beast-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 1.2s var(--ease), filter .5s;
}

.beast-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(15, 11, 8, .92), rgba(15, 11, 8, .02) 62%);
}

.beast-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.beast-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 22px;
  color: rgba(246, 239, 226, .55);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .16em;
}

.beast-card-top span:last-child {
  color: var(--gold);
}

.beast-card-body {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.beast-card-body h3 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.beast-card-body p {
  margin-top: 10px;
  color: rgba(246, 239, 226, .55);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.beast-card-body span {
  display: inline-block;
  margin-top: 18px;
  padding-top: 10px;
  color: var(--gold);
  border-top: 1px solid rgba(201, 161, 94, .35);
  font-size: 9px;
  letter-spacing: .14em;
}

.rail-hint {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  max-width: 1480px;
  margin: 12px auto 0;
  color: rgba(246, 239, 226, .35);
  font-size: 9px;
  letter-spacing: .14em;
}

.rail-hint i {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.design-folio {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1380px;
  margin: clamp(76px, 9vw, 138px) auto 0;
}

.design-folio-image {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(201, 161, 94, .24);
  background: rgba(246, 239, 226, .025);
}

.design-folio-image::after {
  position: absolute;
  inset: 24px;
  content: "";
  border: 1px solid rgba(246, 239, 226, .08);
  pointer-events: none;
}

.design-folio-image img {
  width: 100%;
  filter: saturate(.88) contrast(1.03);
}

.design-folio-image figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: rgba(246, 239, 226, .38);
  font-size: 9px;
  letter-spacing: .12em;
}

.design-folio-copy h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 400;
  line-height: 1.36;
}

.design-folio-copy > p:not(.section-no) {
  max-width: 520px;
  margin-top: 24px;
  color: rgba(246, 239, 226, .56);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2;
}

.design-folio-copy dl {
  margin-top: 28px;
  border-top: 1px solid rgba(246, 239, 226, .12);
}

.design-folio-copy dl div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(246, 239, 226, .12);
}

.design-folio-copy dt {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9px;
}

.design-folio-copy dd {
  display: flex;
  gap: 14px;
  margin: 0;
}

.design-folio-copy dd strong {
  min-width: 38px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.design-folio-copy dd span {
  color: rgba(246, 239, 226, .38);
  font-size: 10px;
  line-height: 1.7;
}

.beast-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(38px, 6vw, 100px);
  align-items: center;
  max-width: 1380px;
  margin: clamp(80px, 10vw, 150px) auto 0;
}

.beast-feature-media {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(201, 161, 94, .28);
}

.beast-feature-media video {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #0e0b08;
}

.video-toggle {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  color: var(--ivory);
  border: 1px solid rgba(246, 239, 226, .3);
  background: rgba(20, 15, 11, .7);
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.video-toggle:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.media-label {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 5px 8px;
  color: rgba(246, 239, 226, .7);
  background: rgba(20, 15, 11, .6);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: .2em;
}

.beast-feature-copy h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.35;
}

.beast-feature-copy > p {
  max-width: 540px;
  margin-top: 26px;
  color: rgba(246, 239, 226, .6);
  font-size: 13px;
  line-height: 2;
}

.cave-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.cave-chips a {
  color: rgba(246, 239, 226, .7);
  transition: color .25s, border-color .25s, background .25s;
}

.cave-chips a:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.text-link {
  margin-top: 28px;
  padding: 0 0 5px;
  color: var(--gold);
  border: 0;
  border-bottom: 1px solid rgba(201, 161, 94, .45);
  background: transparent;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
}

/* Atlas */
.atlas {
  overflow: hidden;
}

.atlas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  margin: 0 auto 28px;
}

.atlas-filters {
  display: flex;
  gap: 8px;
}

.atlas-filters button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 14px;
  color: rgba(246, 239, 226, .5);
  border: 1px solid rgba(246, 239, 226, .16);
  background: transparent;
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}

.atlas-filters button span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 9px;
}

.atlas-filters button:hover,
.atlas-filters button.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.atlas-filters button.is-active span,
.atlas-filters button:hover span {
  color: var(--ink);
}

.atlas-count {
  color: rgba(246, 239, 226, .4);
  font-size: 10px;
  letter-spacing: .08em;
}

.atlas-count strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr);
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
}

.atlas-map-wrap {
  position: relative;
  min-height: 680px;
  border: 1px solid rgba(246, 239, 226, .12);
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 161, 94, .08), transparent 54%),
    rgba(246, 239, 226, .018);
}

.atlas-map-scroll {
  position: relative;
}

.atlas-map {
  width: 100%;
  height: auto;
  min-height: 680px;
}

.atlas-mobile-hint {
  display: none;
}

.atlas-legend {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  color: rgba(246, 239, 226, .4);
  border-top: 1px solid rgba(246, 239, 226, .08);
  font-size: 8px;
  letter-spacing: .08em;
}

.atlas-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}

.atlas-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.atlas-node {
  cursor: pointer;
  transition: opacity .3s;
}

.atlas-edge {
  fill: none;
  stroke: rgba(201, 161, 94, .2);
  stroke-width: 1;
  transition: stroke .3s, stroke-width .3s, opacity .3s;
}

.atlas-edge.is-lit {
  stroke: rgba(201, 161, 94, .85);
  stroke-width: 1.6;
}

.atlas-map.is-filtered .atlas-node,
.atlas-map.is-filtered .atlas-edge {
  opacity: .13;
}

.atlas-map.is-filtered .atlas-node.is-match,
.atlas-map.is-filtered .atlas-edge.is-match {
  opacity: 1;
}

.atlas-map .char-node circle {
  fill: rgba(201, 161, 94, .09);
  stroke: rgba(201, 161, 94, .62);
  stroke-width: 1.2;
  transition: fill .3s, stroke .3s, r .3s;
}

.atlas-map .char-node[data-kind="beast"] circle {
  fill: rgba(111, 143, 125, .12);
  stroke: rgba(139, 176, 156, .7);
}

.atlas-map .char-node:hover circle,
.atlas-map .char-node.is-selected circle {
  fill: var(--gold);
  stroke: var(--ivory);
  r: 19;
}

.atlas-map .char-node text {
  fill: rgba(246, 239, 226, .92);
  font-family: var(--serif);
  font-size: 14px;
  text-anchor: middle;
  pointer-events: none;
}

.atlas-map .char-node:hover text,
.atlas-map .char-node.is-selected text {
  fill: var(--ink);
}

.atlas-map .cave-node rect {
  fill: rgba(246, 239, 226, .04);
  stroke: rgba(246, 239, 226, .2);
  stroke-width: 1;
  transition: fill .3s, stroke .3s;
}

.atlas-map .cave-node:hover rect,
.atlas-map .cave-node.is-selected rect {
  fill: rgba(201, 161, 94, .15);
  stroke: var(--gold);
}

.atlas-map .cave-node text {
  fill: rgba(246, 239, 226, .84);
  font-family: var(--serif);
  font-size: 10px;
  text-anchor: middle;
  pointer-events: none;
}

.atlas-map .cave-node .cave-dot {
  fill: var(--c);
}

.atlas-map .core-ring {
  fill: none;
  stroke: rgba(201, 161, 94, .18);
  stroke-width: 1;
  stroke-dasharray: 2 8;
}

.atlas-map .core-ring-2 {
  fill: none;
  stroke: rgba(246, 239, 226, .1);
  stroke-width: 1;
}

.atlas-map .core-text {
  fill: var(--gold);
  font-family: var(--serif);
  text-anchor: middle;
}

.cave-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  min-height: 530px;
  padding: 30px;
  border: 1px solid rgba(246, 239, 226, .13);
  background: rgba(246, 239, 226, .025);
}

.cave-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 120px;
}

.seal-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 161, 94, .4);
  font-family: var(--serif);
  font-size: 27px;
}

.cave-panel h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.cave-panel-empty p {
  margin-top: 14px;
  color: rgba(246, 239, 226, .45);
  font-size: 11px;
  line-height: 1.9;
}

.cave-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(246, 239, 226, .12);
}

.cave-panel-head .cave-no {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 161, 94, .35);
  font-family: var(--serif);
  font-size: 21px;
}

.cave-panel-head h3 {
  margin: 0;
  font-size: 25px;
}

.cave-panel-head small {
  display: block;
  margin-top: 4px;
  color: rgba(246, 239, 226, .42);
  font-size: 9px;
  letter-spacing: .08em;
}

.cave-panel-body > p {
  margin-top: 20px;
  color: rgba(246, 239, 226, .6);
  font-size: 11px;
  line-height: 1.95;
}

.cave-related {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.cave-related button {
  padding: 5px 9px;
  color: rgba(246, 239, 226, .72);
  border: 1px solid rgba(246, 239, 226, .16);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.cave-related button:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.cave-panel-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-bottom: 5px;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 161, 94, .35);
  font-size: 10px;
  letter-spacing: .06em;
}

.atlas-foot {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  max-width: 1480px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 239, 226, .08);
}

.atlas-foot p {
  color: rgba(246, 239, 226, .32);
  font-size: 9px;
}

.atlas-foot a {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .06em;
}

.atlas-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.atlas-sources a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 161, 94, .28);
  white-space: nowrap;
}

/* Craft */
.process-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  max-width: 1480px;
  margin: 0 auto 60px;
  border-top: 1px solid var(--line);
}

.process-line div {
  position: relative;
  padding: 22px 16px 0 0;
}

.process-line div::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--ochre);
}

.process-line span {
  display: block;
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 9px;
}

.process-line b {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.process-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.craft-draft {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .16);
}

.craft-draft img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #fffdf8;
}

.craft-draft figcaption {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

.craft-draft figcaption span {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .1em;
}

.craft-compare {
  min-width: 0;
}

.compare-stage {
  position: relative;
  height: 100%;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d9cbb4;
}

.compare-stage > img,
.compare-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffdf8;
}

.compare-after-wrap {
  overflow: hidden;
  width: 100%;
  clip-path: inset(0 48% 0 0);
}

.compare-after {
  width: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 34%;
}

.compare-range {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-stage::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--split, 52%);
  width: 1px;
  content: "";
  background: var(--ivory);
  pointer-events: none;
}

.compare-label {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  padding: 5px 9px;
  color: var(--ivory);
  background: rgba(27, 22, 17, .65);
  font-size: 9px;
  letter-spacing: .08em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.label-before {
  left: 18px;
}

.label-after {
  right: 18px;
}

.blender-strip {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  gap: 5vw;
  align-items: center;
  max-width: 1480px;
  margin: clamp(80px, 10vw, 140px) auto 0;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.blender-copy h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.35;
}

.blender-copy > p {
  max-width: 440px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.blender-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.blender-tabs button {
  padding: 7px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.blender-tabs button:hover,
.blender-tabs button.is-active {
  color: var(--ivory);
  border-color: var(--ink);
  background: var(--ink);
}

.blender-screen {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .12);
}

.blender-screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #333;
}

.screen-label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 5px 9px;
  color: rgba(246, 239, 226, .8);
  background: rgba(27, 22, 17, .7);
  font-size: 9px;
  letter-spacing: .1em;
}

.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1380px;
  margin: clamp(90px, 11vw, 160px) auto 0;
}

.anatomy-visual {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
}

.anatomy-visual > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.anatomy-dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ivory);
  border: 1px solid rgba(246, 239, 226, .65);
  border-radius: 50%;
  background: rgba(27, 22, 17, .62);
  font-family: var(--serif);
  font-size: 10px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
  transition: background .3s, color .3s, transform .3s;
}

.anatomy-dot:hover,
.anatomy-dot.is-active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.12);
}

.anatomy-copy h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
}

.anatomy-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.anatomy-panel {
  margin-top: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.anatomy-index {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 11px;
}

.anatomy-panel h4 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.anatomy-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.anatomy-panel small {
  display: block;
  margin-top: 16px;
  color: var(--ochre);
  font-size: 9px;
  letter-spacing: .1em;
}

.anatomy-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.anatomy-list button {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.anatomy-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--paper-2);
}

.anatomy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
  transform: scale(var(--zoom, 2.2));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: opacity .3s, transform .5s var(--ease);
}

.anatomy-list button:hover .anatomy-thumb img,
.anatomy-list button.is-active .anatomy-thumb img {
  opacity: 1;
}

.anatomy-list button.is-active .anatomy-thumb {
  outline: 1px solid var(--ochre);
  outline-offset: 2px;
}

.anatomy-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anatomy-list button.is-active small {
  color: var(--ochre);
}

/* System */
.system-formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: 18px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto 34px;
  padding: 28px 0;
  border-top: 1px solid rgba(246, 239, 226, .14);
  border-bottom: 1px solid rgba(246, 239, 226, .14);
}

.formula-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.formula-item strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.formula-item b {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .06em;
}

.formula-item small {
  margin-top: 5px;
  color: rgba(246, 239, 226, .38);
  font-size: 9px;
  line-height: 1.65;
}

.system-formula > i {
  align-self: center;
  color: rgba(246, 239, 226, .28);
  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
}

.formula-item.is-total {
  padding-left: 22px;
  border-left: 1px solid rgba(201, 161, 94, .28);
}

.matrix-wrap {
  max-width: 1480px;
  margin: 0 auto;
}

.matrix-head {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.matrix-head h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
}

.matrix-head > p {
  max-width: 440px;
  color: rgba(246, 239, 226, .46);
  font-size: 10px;
  line-height: 1.8;
}

.matrix-live-key {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 400;
}

.matrix-open-key {
  color: rgba(246, 239, 226, .25);
  font-family: var(--serif);
  font-weight: 400;
}

.narrative-matrix {
  display: grid;
  grid-template-columns: 120px repeat(5, 1fr);
  border-top: 1px solid rgba(246, 239, 226, .14);
  border-left: 1px solid rgba(246, 239, 226, .14);
}

.matrix-corner,
.matrix-col,
.matrix-row,
.matrix-cell {
  border-right: 1px solid rgba(246, 239, 226, .14);
  border-bottom: 1px solid rgba(246, 239, 226, .14);
}

.matrix-corner {
  min-height: 58px;
}

.matrix-col {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .08em;
}

.matrix-row {
  display: grid;
  min-height: 98px;
  place-items: center;
  color: rgba(246, 239, 226, .72);
  font-family: var(--serif);
  font-size: 15px;
}

.matrix-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  color: rgba(246, 239, 226, .25);
  border: 0;
  background: transparent;
  font-size: 8px;
  cursor: default;
  transition: color .3s, background .3s;
}

.matrix-cell:disabled {
  opacity: 1;
}

.matrix-cell span {
  font-family: var(--serif);
  font-size: 16px;
}

.matrix-cell b {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
}

.matrix-cell small {
  color: rgba(246, 239, 226, .38);
  font-size: 8px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.matrix-cell.is-live {
  color: var(--gold);
  background: rgba(201, 161, 94, .08);
  cursor: pointer;
}

.matrix-cell.is-live small {
  color: rgba(201, 161, 94, .68);
}

.matrix-cell.is-live::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(201, 161, 94, .36);
}

.matrix-cell.is-live:hover {
  color: var(--ink);
  background: var(--gold);
}

.matrix-cell.is-live:hover::after {
  border-color: rgba(27, 22, 17, .25);
}

.matrix-note {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(246, 239, 226, .38);
  font-size: 10px;
  line-height: 1.9;
}

.landed-pairs {
  max-width: 1480px;
  margin: clamp(58px, 7vw, 98px) auto 0;
  padding-top: 34px;
  border-top: 1px solid rgba(246, 239, 226, .14);
}

.landed-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(240px, .7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.landed-head h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.35;
}

.landed-head > p:last-child {
  color: rgba(246, 239, 226, .42);
  font-size: 10px;
  line-height: 1.8;
}

.landed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(246, 239, 226, .12);
}

.landed-card {
  min-width: 0;
  padding: 14px;
  background: #16120e;
  cursor: pointer;
  transition: background .3s;
}

.landed-card:hover,
.landed-card:focus-visible {
  background: #1c1712;
}

.landed-card:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}

.landed-media {
  position: relative;
  overflow: hidden;
  background: #211a14;
}

.landed-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .65s var(--ease);
}

.landed-card:hover .landed-media img {
  transform: scale(1.04);
}

.landed-media span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  color: rgba(246, 239, 226, .8);
  background: rgba(20, 15, 11, .62);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .08em;
}

.landed-pair {
  margin-top: 14px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .04em;
}

.landed-card h4 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.landed-card > p:last-child {
  margin-top: 8px;
  color: rgba(246, 239, 226, .42);
  font-size: 9px;
  line-height: 1.85;
}

.system-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1480px;
  margin: 28px auto 0;
  background: rgba(246, 239, 226, .12);
}

.system-card {
  min-height: 240px;
  padding: 26px;
  background: #16120e;
}

.system-card > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
}

.system-card h3 {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.system-card p {
  margin-top: 12px;
  color: rgba(246, 239, 226, .46);
  font-size: 11px;
  line-height: 1.85;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1380px;
  margin: clamp(80px, 10vw, 150px) auto 0;
}

.product-media {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(201, 161, 94, .24);
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 38%;
}

.product-media span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 5px 9px;
  color: var(--ivory);
  background: rgba(27, 22, 17, .66);
  font-size: 9px;
  letter-spacing: .12em;
}

.product-copy h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 400;
  line-height: 1.4;
}

.product-copy ul {
  margin-top: 28px;
  border-top: 1px solid rgba(246, 239, 226, .12);
}

.product-copy li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(246, 239, 226, .12);
}

.product-copy li span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .1em;
}

.product-copy li p {
  color: rgba(246, 239, 226, .56);
  font-size: 11px;
  line-height: 1.8;
}

/* Team */
.team {
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.team::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(239, 228, 210, .99) 0%, rgba(239, 228, 210, .96) 52%, rgba(239, 228, 210, .72) 68%, rgba(239, 228, 210, .18) 86%, rgba(239, 228, 210, .06) 100%),
    url("../img/mural-02.jpg") right center / cover;
  opacity: .82;
}

.team-inner {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  margin: 0 auto;
}

.team h2 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 130px);
  font-weight: 400;
  line-height: 1.08;
}

.team-name {
  margin-top: 20px;
  color: var(--ochre);
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 23px);
  letter-spacing: .12em;
}

.team-copy {
  max-width: 560px;
  margin-top: 32px;
  color: #514438;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.05;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.team-feitian {
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: 4%;
  width: min(40vw, 640px);
  opacity: .8;
  pointer-events: none;
  animation: float 11s ease-in-out infinite reverse;
}

.site-footer {
  padding: 46px 5vw 34px;
  color: var(--ivory);
  background: #100d0a;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
}

.footer-brand small {
  color: rgba(246, 239, 226, .42);
  font-size: 9px;
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  padding: 20px 0;
  border-top: 1px solid rgba(246, 239, 226, .1);
  border-bottom: 1px solid rgba(246, 239, 226, .1);
}

.footer-links a {
  color: rgba(246, 239, 226, .64);
  font-size: 10px;
  letter-spacing: .08em;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-note {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 22px;
}

.footer-note p {
  max-width: 760px;
  color: rgba(246, 239, 226, .32);
  font-size: 9px;
  line-height: 1.8;
}

.footer-note span {
  color: rgba(246, 239, 226, .32);
  font-family: var(--serif);
  font-size: 9px;
  white-space: nowrap;
}

/* Cave modal */
.cave-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .35s, opacity .3s;
}

.cave-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.cave-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 5, .78);
  backdrop-filter: blur(9px);
}

.cave-modal-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(88vh, 860px);
  padding: clamp(28px, 5vw, 56px);
  overflow-y: auto;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  transform: translateY(18px) scale(.985);
  transition: transform .45s var(--ease);
}

.cave-modal.is-open .cave-modal-panel {
  transform: none;
}

.cave-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.cave-modal-close:hover {
  color: var(--ivory);
  border-color: var(--ochre);
  background: var(--ochre);
}

.cave-modal-head {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.cave-modal-number {
  color: rgba(184, 92, 56, .25);
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 108px);
  line-height: .78;
}

.cave-modal-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.cave-modal-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.cave-modal-body {
  padding-top: 24px;
}

.cave-modal-theme {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
}

.cave-modal-summary {
  margin-top: 16px;
  color: #4f4337;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
}

.cave-modal-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cave-modal-section h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.cave-modal-characters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cave-modal-characters button {
  display: flex;
  min-width: 108px;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--serif);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}

.cave-modal-characters button span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .08em;
}

.cave-modal-characters button:hover {
  color: var(--ivory);
  border-color: var(--ochre);
  background: var(--ochre);
}

.cave-modal-characters button:hover span {
  color: rgba(246, 239, 226, .7);
}

.cave-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cave-modal .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.cave-modal .btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--ochre);
  background: var(--ochre);
}

.cave-modal-disclaimer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

/* Drawer */
.drawer {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .45s, opacity .4s;
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 5, .72);
  backdrop-filter: blur(10px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(380px, 1.15fr);
  width: min(1180px, 94vw);
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .55s var(--ease);
}

.drawer.is-open .drawer-panel {
  transform: none;
}

.drawer-close {
  position: fixed;
  z-index: 4;
  top: 20px;
  right: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ivory);
  border: 1px solid rgba(246, 239, 226, .3);
  border-radius: 50%;
  background: rgba(27, 22, 17, .45);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.drawer-close:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.drawer-media {
  position: relative;
  min-height: 100%;
  background: #211a14;
}

.drawer-media img,
.drawer-media video {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center 35%;
}

.drawer-media .drawer-media-label {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 9px;
  color: rgba(246, 239, 226, .82);
  background: rgba(20, 15, 11, .64);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .14em;
}

.drawer-media video {
  position: sticky;
  top: 0;
}

.drawer-content {
  padding: 72px clamp(30px, 5vw, 76px) 56px;
}

.drawer-kicker {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .22em;
}

.drawer-content h2 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
}

.drawer-subtitle {
  margin-top: 14px;
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.drawer-meta span {
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .06em;
}

.drawer-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.drawer-section h3 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.drawer-section h3 small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .06em;
}

.drawer-section > p {
  margin-top: 14px;
  color: #4f4337;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
}

.drawer-section ul {
  margin-top: 12px;
}

.drawer-section li {
  position: relative;
  padding: 7px 0 7px 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.drawer-section li::before {
  position: absolute;
  top: 16px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--ochre);
}

.drawer-caves {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.drawer-cave {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  transition: background .25s, border-color .25s;
}

.drawer-cave:hover {
  border-color: var(--ochre);
  background: rgba(184, 92, 56, .06);
}

.drawer-cave b {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.drawer-cave span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.drawer-cave i {
  color: var(--ochre);
  font-style: normal;
}

.drawer-resources {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.drawer-resources a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .15);
  border: 1px solid var(--line);
  transition: color .25s, background .25s, border-color .25s;
}

.drawer-resources a:hover {
  color: var(--ivory);
  border-color: var(--ochre);
  background: var(--ochre);
}

.drawer-resources b {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}

.drawer-resources span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.drawer-resources a:hover span {
  color: rgba(246, 239, 226, .72);
}

.drawer-resources i {
  color: var(--ochre);
  font-style: normal;
}

.drawer-resources a:hover i {
  color: var(--gold);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.drawer-actions .btn {
  min-width: 145px;
  padding: 11px 16px;
  font-size: 11px;
}

.drawer-disclaimer {
  margin-top: 24px;
  color: #8b7b69;
  font-size: 8px;
  line-height: 1.8;
}

.toast {
  position: fixed;
  z-index: 120;
  bottom: 26px;
  left: 50%;
  padding: 10px 18px;
  color: var(--ivory);
  background: rgba(27, 22, 17, .9);
  font-size: 10px;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .3s, transform .3s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(-8px, -18px, 0) rotate(1deg); }
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-source {
    display: none;
  }

  .section-head {
    grid-template-columns: 110px minmax(0, 1.2fr) minmax(240px, .6fr);
  }

  .translator {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  }

  .translator-stage {
    min-height: 560px;
  }

  .atlas-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  }

  .landed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landed-card:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    padding: 0 22px;
  }

  .site-header.is-scrolled {
    background: rgba(239, 228, 210, .985);
    backdrop-filter: none;
  }

  .site-header.is-scrolled.is-over-dark {
    background: rgba(20, 15, 11, .985);
  }

  .site-header::after {
    right: 22px;
    left: 22px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .main-nav {
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    margin: 0;
    padding: 30px 28px;
    color: var(--ivory);
    background: #140f0b;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }

  .main-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform .45s var(--ease), visibility 0s;
  }

  .main-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(246, 239, 226, .1);
    font-family: var(--serif);
    font-size: 26px;
  }

  .main-nav a span {
    font-size: 11px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 100px 24px 92px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: start;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .line-1 {
    font-size: clamp(64px, 17vw, 110px);
  }

  .line-2 {
    margin-left: 18vw;
    font-size: clamp(56px, 15vw, 96px);
  }

  .hero-en {
    margin-left: 18vw;
  }

  .hero-plate {
    justify-self: center;
    width: min(74vw, 340px);
    margin: 0;
  }

  .hero-feitian {
    top: 28%;
    right: -14%;
    width: 54vw;
    opacity: .5;
  }

  .hero-rail {
    display: none;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr 1fr;
    gap: 26px 16px;
    margin-top: 58px;
    padding-top: 24px;
  }

  .hero-stat strong {
    font-size: 28px;
  }

  .scroll-cue {
    display: none;
  }

  .section-paper,
  .section-ink,
  .section-dark {
    padding: 96px 24px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 56px;
  }

  .section-head h2 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .section-lead {
    max-width: 520px;
  }

  .origin-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .origin-mural {
    position: static;
  }

  .origin-copy blockquote {
    font-size: 38px;
  }

  .origin-copy > p {
    font-size: 15px;
  }

  .origin-quote-band {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .origin-quote-band img {
    width: 180px;
  }

  .origin-quote-band > span {
    display: none;
  }

  .translator {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .translator-stage {
    min-height: 0;
    padding: 10px;
  }

  .stage-art {
    position: relative;
    inset: auto;
    display: block;
  }

  .stage-art-frame {
    width: 100%;
  }

  .stage-art-frame > img {
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
  }

  .stage-side {
    inset: 12px;
  }

  .stage-palette {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stage-palette span {
    width: auto;
  }

  .stage-palette span:nth-child(2),
  .stage-palette span:nth-child(5) {
    transform: none;
  }

  .stage-postures {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 8px;
  }

  .stage-postures img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .stage-spirit {
    gap: 10px;
  }

  .stage-spirit span {
    width: auto;
    max-width: 92px;
  }

  .hotspot b {
    padding: 3px 6px;
    font-size: 9px;
  }

  .hotspot::before {
    width: 28px;
  }

  .hotspot b {
    left: 60px;
  }

  .hotspot.is-left b {
    right: 60px;
  }

  .translator-copy {
    padding: 0;
  }

  .layer-panel {
    min-height: 0;
  }

  .palette-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .swatch {
    min-height: 180px;
  }

  .figure-grid {
    grid-template-columns: 1fr 1fr;
  }

  .character-card:nth-child(n) {
    grid-column: auto;
    min-height: 480px;
  }

  .character-card:nth-child(1),
  .character-card:nth-child(4) {
    grid-column: span 2;
  }

  .pose-equation > p {
    margin-left: 0;
    max-width: 100%;
  }

  .beast-rail-wrap {
    margin-right: -24px;
    margin-left: 0;
  }

  .beast-card {
    flex-basis: 76vw;
  }

  .beast-feature {
    grid-template-columns: 1fr;
  }

  .design-folio {
    grid-template-columns: 1fr;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .atlas-map-wrap {
    min-height: 0;
    overflow: hidden;
  }

  .atlas-map-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 161, 94, .45) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .atlas-map {
    width: 900px;
    height: 615px;
    min-height: 0;
    max-width: none;
  }

  .atlas-mobile-hint {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 14px 18px 0;
    color: rgba(246, 239, 226, .42);
    font-size: 9px;
    letter-spacing: .14em;
  }

  .atlas-mobile-hint span {
    color: var(--gold);
    font-size: 13px;
  }

  .atlas-legend {
    position: static;
    margin-top: 14px;
    padding: 14px 18px 16px;
  }

  .cave-panel {
    position: static;
    min-height: 0;
  }

  .cave-panel-empty {
    padding-top: 32px;
  }

  .atlas-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-sources {
    justify-content: flex-start;
  }

  .process-line {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px 0;
  }

  .craft-grid,
  .blender-strip,
  .anatomy,
  .product-band {
    grid-template-columns: 1fr;
  }

  .compare-stage {
    min-height: 480px;
  }

  .narrative-matrix {
    grid-template-columns: 54px repeat(5, minmax(0, 1fr));
  }

  .matrix-head {
    display: block;
  }

  .matrix-head > p {
    max-width: 100%;
    margin-top: 14px;
  }

  .matrix-corner,
  .matrix-col {
    min-height: 46px;
  }

  .matrix-col {
    font-size: 11px;
    letter-spacing: 0;
  }

  .matrix-row {
    min-height: 76px;
    font-size: 12px;
  }

  .matrix-cell {
    gap: 3px;
    font-size: 8px;
    letter-spacing: 0;
  }

  .matrix-cell span {
    font-size: 12px;
  }

  .system-formula {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .system-formula > i {
    display: none;
  }

  .formula-item.is-total {
    margin-top: 4px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid rgba(201, 161, 94, .28);
    border-left: 0;
  }

  .landed-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landed-head > p:last-child {
    margin-top: 4px;
  }

  .landed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landed-card:last-child {
    grid-column: span 2;
  }

  .system-cards {
    grid-template-columns: 1fr 1fr;
  }

  .team {
    min-height: 760px;
  }

  .team::before {
    background:
      linear-gradient(90deg, rgba(239, 228, 210, .98) 0%, rgba(239, 228, 210, .93) 58%, rgba(239, 228, 210, .68) 100%),
      url("../img/mural-02.jpg") right center / cover;
    opacity: .92;
  }

  .team-feitian {
    right: -28%;
    bottom: -6%;
    width: 88vw;
    opacity: .2;
  }

  .drawer-panel {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .drawer-media {
    min-height: 56vh;
  }

  .drawer-media img,
  .drawer-media video {
    position: relative;
    height: 58vh;
  }

  .drawer-content {
    padding: 44px 24px;
  }

  .drawer-close {
    position: absolute;
    color: var(--ivory);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 0;
  }

  .line-1 {
    font-size: 64px;
  }

  .line-2 {
    margin-left: 9vw;
    font-size: 54px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-plate {
    width: 70vw;
  }

  .hero-stats {
    gap: 16px 0;
  }

  .atlas-map {
    width: 840px;
    height: 574px;
  }

  .hero-stat strong {
    font-size: 24px;
  }

  .hero-stat span {
    font-size: 8px;
  }

  .contrast-grid {
    grid-template-columns: 1fr;
  }

  .translator-stage {
    min-height: 0;
    padding: 10px;
  }

  .stage-art {
    position: relative;
    inset: auto;
  }

  .hotspot b {
    display: block;
    padding: 2px 5px;
    font-size: 8px;
  }

  .stage-palette span {
    width: auto;
  }

  .layers {
    gap: 6px;
  }

  .layer-tab b {
    font-size: 27px;
  }

  .palette-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landed-grid {
    grid-template-columns: 1fr;
  }

  .landed-card:last-child {
    grid-column: span 1;
  }

  .cave-modal {
    padding: 10px;
  }

  .cave-modal-panel {
    max-height: 94vh;
    padding: 28px 20px;
  }

  .cave-modal-head {
    gap: 14px;
    align-items: flex-start;
  }

  .cave-modal-number {
    font-size: 58px;
  }

  .cave-modal-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .character-card:nth-child(n) {
    grid-column: auto;
    min-height: 520px;
  }

  .card-body {
    grid-template-columns: 1fr;
  }

  .card-open {
    display: none;
  }

  .pose-equation {
    gap: 14px;
    padding: 22px;
  }

  .pose-equation strong {
    font-size: 34px;
  }

  .process-line {
    grid-template-columns: 1fr 1fr;
  }

  .system-cards {
    grid-template-columns: 1fr;
  }

  .footer-note {
    flex-direction: column;
    gap: 14px;
  }

  .team h2 {
    font-size: 62px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .hero-bg {
    transform: none;
  }
}
