:root {
  --ink: #1a1814;
  --ink-deep: #0f100d;
  --ink-warm: #29251e;
  --paper: #e9e1d2;
  --paper-bright: #f4efe4;
  --silk: #d8cdb9;
  --silk-deep: #b9aa91;
  --mineral: #263d72;
  --mineral-deep: #14264f;
  --malachite: #48665e;
  --cinnabar: #8e2d20;
  --cinnabar-bright: #aa3c2c;
  --gold: #9d8963;
  --line: rgba(58, 47, 34, 0.23);
  --white-line: rgba(244, 239, 228, 0.19);
}

html {
  background: var(--ink-deep);
}

body {
  color: var(--ink);
  background: var(--paper);
}

body::before {
  z-index: 80;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(92deg, transparent 0 3px, rgba(72, 56, 35, 0.08) 3.5px 4px),
    repeating-linear-gradient(2deg, transparent 0 6px, rgba(255, 255, 255, 0.1) 6.5px 7px);
  background-size: 11px 13px;
  mix-blend-mode: multiply;
}

.site-header {
  height: 78px;
  padding: 0 3.2vw;
  color: var(--paper-bright);
  background: linear-gradient(to bottom, rgba(12, 12, 9, 0.82), transparent);
}

.site-header.is-solid {
  color: var(--paper-bright);
  background: rgba(17, 16, 13, 0.91);
  border-color: rgba(177, 153, 111, 0.24);
  backdrop-filter: blur(14px) saturate(0.7);
}

.wordmark {
  gap: 14px;
}

.wordmark-mark {
  width: 31px;
  height: 31px;
  color: #f2dfcb;
  background: var(--cinnabar);
  border: 1px solid rgba(244, 239, 228, 0.72);
  box-shadow:
    0 0 0 2px var(--cinnabar),
    0 0 0 3px rgba(244, 239, 228, 0.3);
  font-size: 15px;
}

.wordmark-text,
.nav-links,
.visit-progress {
  font-size: 10px;
  letter-spacing: 0.21em;
}

.nav-links {
  gap: 26px;
}

.nav-links a {
  opacity: 0.63;
}

.nav-links a::after {
  background: var(--cinnabar-bright);
}

.progress-rule {
  background: rgba(233, 225, 210, 0.24);
}

.progress-rule i {
  background: var(--cinnabar-bright);
}

.hero {
  min-height: 100svh;
  color: var(--paper-bright);
  background: var(--ink-deep);
}

.hero::before {
  position: absolute;
  inset: 4.3vw;
  z-index: 1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(214, 196, 162, 0.19);
}

.hero::after {
  position: absolute;
  top: 4.3vw;
  bottom: 4.3vw;
  left: 50%;
  z-index: 1;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(201, 179, 139, 0.23) 16% 84%, transparent);
}

.hero-blue {
  inset: 0;
  background:
    radial-gradient(circle at 74% 43%, rgba(44, 61, 88, 0.5), transparent 34%),
    radial-gradient(circle at 22% 70%, rgba(117, 42, 31, 0.14), transparent 24%),
    linear-gradient(115deg, #161712, #11120f 57%, #181b20);
}

.hero-blue::before {
  position: absolute;
  top: 0;
  right: 14%;
  bottom: 0;
  width: 25%;
  content: "";
  background:
    repeating-linear-gradient(92deg, transparent 0 6px, rgba(255, 255, 255, 0.025) 6.5px 7px),
    linear-gradient(rgba(31, 52, 104, 0.46), rgba(18, 31, 64, 0.25));
  border-right: 1px solid rgba(181, 158, 117, 0.18);
  border-left: 1px solid rgba(181, 158, 117, 0.18);
}

.hero-blue::after {
  opacity: 0.12;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(226, 213, 190, 0.08) 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(226, 213, 190, 0.05) 28px);
}

.hero-ghost {
  top: auto;
  right: -4vw;
  bottom: -8vh;
  color: transparent;
  font-family: var(--serif-cn);
  font-size: clamp(24rem, 44vw, 52rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: 0;
  -webkit-text-stroke: 1px rgba(205, 184, 147, 0.08);
  writing-mode: horizontal-tb;
}

.hero-copy {
  top: 19vh;
  left: 8vw;
  width: min(39vw, 580px);
}

.eyebrow,
.section-kicker {
  font-family: var(--serif-cn);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.hero h1 {
  font-size: clamp(4.8rem, 8.8vw, 9.6rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: 0.02em;
}

.hero h1 span {
  width: max-content;
  padding-right: 0.08em;
}

.hero h1 span:last-child {
  margin-left: 0.68em;
}

.hero-deck {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 0;
  color: #d4bd97;
  font-family: var(--serif-cn);
  font-size: 15px;
  letter-spacing: 0.22em;
}

.hero-deck::before {
  width: 42px;
  height: 1px;
  content: "";
  background: var(--cinnabar-bright);
}

.hero-intro {
  margin-top: 30px;
  color: #d1c7b5;
  font-size: 13px;
  line-height: 2.15;
  letter-spacing: 0.1em;
  opacity: 0.67;
}

.hero-portrait {
  top: 12vh;
  right: 12vw;
  width: min(29vw, 420px);
}

.silk-frame {
  padding: clamp(20px, 1.6vw, 28px);
  background:
    repeating-linear-gradient(92deg, transparent 0 4px, rgba(77, 56, 31, 0.035) 4.5px 5px),
    #e7decd;
  border: 1px solid rgba(157, 137, 99, 0.6);
  box-shadow:
    0 52px 120px rgba(0, 0, 0, 0.56),
    0 0 0 9px rgba(10, 10, 8, 0.52);
}

.silk-frame::before,
.silk-frame::after {
  left: -5%;
  width: 110%;
  height: 12px;
  background:
    linear-gradient(to bottom, #201b14, #6f5d3e 46%, #211c15);
  border: 1px solid rgba(194, 170, 128, 0.52);
  border-radius: 20px;
  box-shadow:
    -12px 0 0 -3px #a58b5e,
    12px 0 0 -3px #a58b5e;
}

.silk-frame::before {
  top: -12px;
}

.silk-frame::after {
  bottom: -12px;
}

.hero-portrait figcaption {
  margin-top: 23px;
  color: #c8b89d;
  font-size: 10px;
}

.enter-link {
  bottom: 6.5vh;
  left: 8vw;
  color: #d6c8b0;
}

.enter-link::before {
  width: 28px;
  height: 28px;
  content: "";
  border: 1px solid rgba(214, 200, 176, 0.35);
  transform: rotate(45deg);
}

.enter-link svg {
  margin-left: -39px;
}

.hero-side-note {
  right: 5.4vw;
  bottom: 7vh;
  color: #c5af89;
}

.hero-seal {
  position: absolute;
  bottom: 10vh;
  left: 42.5vw;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  color: #dabaa1;
  background: rgba(142, 45, 32, 0.72);
  border: 1px solid #b95d4b;
  font-family: var(--serif-cn);
  font-size: 12px;
  line-height: 1;
  transform: rotate(-5deg);
}

.hero-cloud {
  position: absolute;
  z-index: 1;
  width: 210px;
  height: 80px;
  opacity: 0.14;
  border: 1px solid #bda985;
  border-radius: 50%;
}

.hero-cloud::before,
.hero-cloud::after {
  position: absolute;
  content: "";
  border: 1px solid #bda985;
  border-radius: 50%;
}

.hero-cloud::before {
  top: -22px;
  left: 37px;
  width: 82px;
  height: 72px;
}

.hero-cloud::after {
  top: -12px;
  right: 18px;
  width: 104px;
  height: 64px;
}

.hero-cloud-a {
  top: 13vh;
  right: 2vw;
}

.hero-cloud-b {
  bottom: 17vh;
  left: -7vw;
  transform: scale(1.4);
}

.threshold {
  min-height: 82vh;
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(68, 53, 34, 0.14) 50%, transparent 50.04%),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(99, 77, 46, 0.045) 64px),
    var(--paper-bright);
}

.threshold::before {
  height: 34%;
  background: linear-gradient(var(--cinnabar), var(--line));
}

.threshold blockquote {
  font-size: clamp(2.5rem, 4.6vw, 5.3rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.threshold blockquote::before,
.threshold blockquote::after {
  color: var(--cinnabar);
  font-size: 0.55em;
  vertical-align: top;
}

.threshold blockquote::before {
  content: "「";
}

.threshold blockquote::after {
  content: "」";
}

.threshold-index,
.threshold-note {
  color: #705e44;
}

.spatial-scroll {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  min-height: 112vh;
  align-items: center;
  gap: 7vw;
  padding: 130px 7.5vw 120px 12vw;
  overflow: hidden;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 68% 46%, rgba(51, 64, 75, 0.38), transparent 31%),
    radial-gradient(circle at 15% 77%, rgba(103, 48, 33, 0.13), transparent 27%),
    #11120f;
  border-top: 1px solid rgba(170, 145, 103, 0.2);
  border-bottom: 1px solid rgba(170, 145, 103, 0.2);
}

.spatial-scroll::after {
  position: absolute;
  inset: 4.5vw;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(187, 161, 116, 0.17);
}

.spatial-rail {
  position: absolute;
  top: 11vh;
  bottom: 11vh;
  left: 4.8vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #bda985;
  font-family: var(--serif-cn);
  font-size: 10px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.spatial-rail i {
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(189, 169, 133, 0.62), transparent);
}

.spatial-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-left: 1vw;
}

.spatial-copy h2,
.materials-heading h2 {
  margin: 0;
  font-family: var(--serif-cn);
  font-size: clamp(3.6rem, 6vw, 7.4rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.spatial-copy > p:not(.section-kicker) {
  max-width: 430px;
  margin: 42px 0;
  color: #c4b9a6;
  font-family: var(--serif-cn);
  font-size: 14px;
  line-height: 2.15;
}

.texture-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(187, 161, 116, 0.3);
}

.texture-switch button {
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  color: #bfb29d;
  background: transparent;
  border: 0;
  font-family: var(--serif-cn);
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.texture-switch button.is-active {
  color: #f0e6d5;
  background: var(--cinnabar);
}

.spatial-notes {
  display: grid;
  gap: 13px;
  margin: 46px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(187, 161, 116, 0.2);
}

.spatial-notes div {
  display: grid;
  grid-template-columns: 52px 1fr;
}

.spatial-notes dt {
  color: #a9916a;
  font-family: var(--serif-cn);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.spatial-notes dd {
  margin: 0;
  color: #817868;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.scroll-vitrine {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.scroll-3d {
  position: relative;
  width: 100%;
  height: min(78vh, 760px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(50, 61, 72, 0.48), transparent 42%),
    #10110e;
  border: 1px solid rgba(182, 158, 114, 0.28);
  box-shadow:
    0 50px 110px rgba(0, 0, 0, 0.4),
    inset 0 0 90px rgba(0, 0, 0, 0.6);
  cursor: grab;
  touch-action: pan-y;
}

.scroll-3d:active {
  cursor: grabbing;
}

.scroll-3d:focus-visible {
  outline: 1px solid #b89e71;
  outline-offset: 5px;
}

.scroll-3d canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.scroll-3d-fallback {
  position: absolute;
  top: 11%;
  left: 50%;
  width: 46%;
  height: 76%;
  object-fit: cover;
  transform: translateX(-50%);
  transition: opacity 0.8s ease;
}

.scroll-3d.is-ready .scroll-3d-fallback {
  opacity: 0;
}

.scroll-loading {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a9916a;
  font-size: 9px;
  letter-spacing: 0.18em;
  transition: opacity 0.5s ease;
}

.scroll-loading span {
  width: 24px;
  height: 1px;
  overflow: hidden;
  background: rgba(169, 145, 106, 0.25);
}

.scroll-loading span::after {
  display: block;
  width: 100%;
  height: 1px;
  content: "";
  background: #b79b6c;
  animation: loading-line 1.3s ease-in-out infinite;
}

.scroll-loading em {
  font-style: normal;
}

.scroll-3d.is-ready .scroll-loading {
  opacity: 0;
}

@keyframes loading-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.vitrine-mark {
  display: flex;
  justify-content: space-between;
  margin: 17px 0 0;
  color: #8e816e;
  font-family: var(--serif-cn);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.section-paper,
.origins {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(80, 61, 37, 0.035) 80px),
    linear-gradient(110deg, #eee7da, #f6f1e8 54%, #e9e0d0);
}

.origins {
  position: relative;
  padding-top: 170px;
}

.origins::before {
  position: absolute;
  top: 92px;
  left: 6.3vw;
  width: 1px;
  height: 60px;
  content: "";
  background: var(--cinnabar);
}

.section-heading {
  grid-template-columns: 0.55fr 1.2fr 0.85fr;
}

.section-heading h2,
.details-heading h2,
.reading-heading h2,
.finale-copy h2 {
  font-size: clamp(3.8rem, 6.5vw, 7.4rem);
  line-height: 1.16;
  letter-spacing: 0.015em;
}

.section-heading > p:last-child,
.details-heading > p:last-child {
  color: #584b39;
  font-size: 14px;
  line-height: 2.15;
}

.source-grid {
  gap: 26px;
}

.source-card .image-wrap {
  padding: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(84, 61, 33, 0.045) 6px),
    #ded3c0;
  border: 1px solid rgba(93, 70, 42, 0.32);
}

.source-card img {
  filter: saturate(0.72) sepia(0.08) contrast(0.96);
}

.source-card:hover img {
  filter: saturate(0.92) sepia(0) contrast(1);
}

.source-card figcaption {
  color: #5e503c;
}

.source-card figcaption span {
  color: var(--cinnabar);
}

.materials {
  position: relative;
  padding: 160px 6.3vw 180px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(142, 45, 32, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: calc((100vw - 12.6vw) / 6) 100%;
  border-top: 1px solid var(--line);
}

.materials::before {
  position: absolute;
  top: -13vw;
  right: -5vw;
  content: "色";
  color: transparent;
  font-family: var(--serif-cn);
  font-size: 45vw;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(88, 67, 41, 0.045);
}

.materials-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.6fr 1.25fr 0.8fr;
  align-items: end;
  gap: 6vw;
  margin-bottom: 100px;
}

.materials-heading > p:last-child {
  margin: 0;
  color: #5d4f3c;
  font-family: var(--serif-cn);
  font-size: 14px;
  line-height: 2.1;
}

.material-ledger {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.material-entry {
  min-height: 520px;
  padding: 32px 24px 28px;
  border-left: 1px solid var(--line);
}

.material-entry:last-child {
  border-right: 1px solid var(--line);
}

.material-order {
  margin: 0 0 55px;
  color: var(--cinnabar);
  font-family: var(--serif-cn);
  font-size: 11px;
}

.material-swatch {
  width: 84px;
  height: 84px;
  margin-bottom: 36px;
  border: 1px solid rgba(57, 44, 29, 0.28);
  border-radius: 50%;
  box-shadow:
    inset 8px 8px 20px rgba(255, 255, 255, 0.2),
    inset -9px -9px 18px rgba(45, 35, 22, 0.14);
}

.swatch-silk {
  background:
    repeating-linear-gradient(92deg, transparent 0 2px, rgba(105, 76, 44, 0.11) 2.5px 3px),
    #e8decb;
}

.swatch-water {
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.6), transparent 22%),
    rgba(204, 198, 184, 0.62);
  backdrop-filter: blur(2px);
}

.swatch-ink {
  background:
    radial-gradient(circle at 35% 30%, #555248, transparent 22%),
    #1e201e;
}

.swatch-mineral {
  background:
    radial-gradient(circle at 38% 31%, #4d64a0, transparent 24%),
    repeating-radial-gradient(circle, #263d72 0 2px, #1f3261 3px 4px);
}

.swatch-powder {
  background:
    radial-gradient(circle at 32% 28%, #f7f1e9, transparent 23%),
    #d2c9c2;
}

.swatch-glue {
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, rgba(211, 179, 121, 0.72), rgba(133, 91, 42, 0.36));
}

.material-entry h3 {
  margin: 0;
  font-family: var(--serif-cn);
  font-size: 34px;
  font-weight: 400;
}

.material-latin {
  margin: 5px 0 35px;
  color: #8a7555;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.material-entry > p:nth-of-type(3) {
  min-height: 118px;
  margin: 0;
  color: #544735;
  font-family: var(--serif-cn);
  font-size: 12px;
  line-height: 2;
}

.material-entry em {
  display: block;
  margin-top: 25px;
  padding-top: 17px;
  color: #8d7857;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.16em;
}

.process {
  background:
    radial-gradient(circle at 25% 23%, rgba(35, 58, 93, 0.21), transparent 26%),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(219, 203, 176, 0.025) 96px),
    #12130f;
}

.process-heading {
  border-color: rgba(175, 150, 107, 0.26);
}

.process-heading h2 {
  letter-spacing: 0.03em;
}

.process-heading h2::after {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 18px;
  content: "";
  background: var(--cinnabar);
  vertical-align: 0.2em;
  transform: rotate(8deg);
}

.process-frame {
  padding: 22px;
  background:
    repeating-linear-gradient(91deg, transparent 0 4px, rgba(89, 65, 37, 0.04) 5px),
    #ece3d4;
  border: 1px solid #937e5b;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 7px rgba(197, 177, 144, 0.07);
}

.process-image {
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
}

.process-meta,
.process-caption {
  color: #c2ae89;
}

.corner-a,
.corner-b {
  border-color: var(--cinnabar);
}

.stage {
  border-color: rgba(175, 150, 107, 0.2);
}

.stage::before {
  background: var(--cinnabar);
}

.stage-number {
  color: #a98d60;
}

.stage h3 {
  letter-spacing: 0.03em;
}

.stage > span {
  color: #c4ad86;
  border-color: rgba(185, 157, 110, 0.32);
}

.details {
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 77% 17%, rgba(40, 59, 96, 0.34), transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(233, 225, 210, 0.026) 90px),
    var(--mineral-deep);
}

.details::before {
  content: "近观";
  top: 33%;
  right: -3vw;
  color: transparent;
  font-family: var(--serif-cn);
  font-size: 24vw;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 1px rgba(210, 194, 164, 0.09);
}

.details-heading > p:last-child {
  color: #c0b59f;
}

.detail-panel {
  background: #101931;
  border: 1px solid rgba(203, 181, 142, 0.25);
  box-shadow: 0 24px 50px rgba(5, 9, 22, 0.22);
}

.detail-panel::after {
  position: absolute;
  inset: 8px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(233, 225, 210, 0.13);
}

.detail-panel figcaption {
  padding-left: 25px;
  color: #e2d5bd;
  background: linear-gradient(transparent, rgba(7, 13, 38, 0.86));
}

.reading {
  padding-bottom: 180px;
  background:
    repeating-linear-gradient(90deg, transparent 0 77px, rgba(78, 59, 34, 0.035) 78px),
    var(--paper-bright);
}

.reading-heading {
  grid-template-columns: 0.6fr 1.4fr;
  border-color: var(--line);
}

.reading-atlas {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 8vw;
  max-width: 1400px;
  margin: 0 auto;
}

.analysis-visual {
  position: relative;
  padding: 18px;
  background:
    repeating-linear-gradient(91deg, transparent 0 4px, rgba(88, 63, 34, 0.04) 5px),
    #e2d7c4;
  border: 1px solid rgba(93, 70, 42, 0.42);
  box-shadow: 0 30px 70px rgba(61, 45, 26, 0.15);
}

.analysis-visual > img {
  width: 100%;
}

.analysis-map {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  overflow: visible;
  pointer-events: none;
}

.analysis-map g {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.analysis-map g.is-visible {
  opacity: 1;
}

.map-primary,
.map-arc,
.symbol-line {
  fill: none;
  stroke: #9c3023;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.map-primary {
  fill: rgba(142, 45, 32, 0.035);
  stroke-dasharray: 7 7;
}

.map-arc {
  stroke: #b39157;
  stroke-width: 2;
}

.map-node {
  fill: #efe4d0;
  stroke: #9c3023;
  stroke-width: 3;
}

.colour-ring {
  fill: rgba(244, 239, 228, 0.08);
  stroke-width: 4;
  stroke-dasharray: 5 7;
}

.water-ring {
  stroke: #a89475;
}

.ink-ring {
  stroke: #2b2c29;
}

.mineral-ring {
  stroke: #2f4a8c;
}

.powder-ring {
  stroke: #bdb0a8;
}

.analysis-map text {
  fill: #7f281e;
  font-family: var(--serif-cn);
  font-size: 20px;
  letter-spacing: 0.08em;
  paint-order: stroke;
  stroke: rgba(244, 239, 228, 0.82);
  stroke-width: 5px;
}

.analysis-caption {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 -4px;
  color: #786548;
  font-family: var(--serif-cn);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.analysis-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.analysis-tabs button {
  position: relative;
  min-height: 84px;
  padding: 0 20px;
  color: #665741;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  font-family: var(--serif-cn);
  font-size: 14px;
  letter-spacing: 0.17em;
  cursor: pointer;
}

.analysis-tabs button:last-child {
  border-right: 1px solid var(--line);
}

.analysis-tabs button::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  content: "";
  background: var(--cinnabar);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.analysis-tabs button.is-active {
  color: var(--ink);
}

.analysis-tabs button.is-active::after {
  transform: scaleX(1);
}

.analysis-tabs button span {
  display: block;
  margin-bottom: 5px;
  color: var(--cinnabar);
  font-size: 9px;
}

.analysis-panel {
  padding: 70px 7% 30px;
  opacity: 0;
  transform: translateY(12px);
}

.analysis-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.analysis-panel .reading-number {
  margin: 0 0 47px;
  color: #8d7552;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.analysis-panel h3 {
  margin: 0 0 43px;
  font-family: var(--serif-cn);
  font-size: clamp(2.8rem, 4.4vw, 5.3rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.025em;
}

.analysis-panel > p:last-child {
  max-width: 490px;
  margin: 0;
  color: #544735;
  font-family: var(--serif-cn);
  font-size: 14px;
  line-height: 2.2;
}

.finale {
  background:
    radial-gradient(circle at 23% 52%, rgba(48, 59, 70, 0.22), transparent 25%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(225, 209, 181, 0.02) 93px),
    #10110e;
}

.finale::before {
  background: linear-gradient(transparent, rgba(167, 140, 95, 0.25), transparent);
}

.finale-character {
  color: transparent;
  -webkit-text-stroke-color: rgba(195, 171, 129, 0.06);
}

.finale-artwork {
  padding: 23px;
  background:
    repeating-linear-gradient(92deg, transparent 0 4px, rgba(78, 56, 30, 0.04) 5px),
    #e8decc;
  border: 1px solid rgba(171, 147, 104, 0.72);
}

.finale-copy h2 {
  letter-spacing: 0.02em;
}

.finale-copy > a {
  color: #c7b18a;
  border-color: var(--cinnabar);
}

.site-footer {
  color: #9d907d;
  background: #0b0c09;
  border-color: rgba(176, 149, 103, 0.2);
}

@media (max-width: 1100px) {
  .hero-copy {
    left: 6vw;
    width: 44vw;
  }

  .hero-portrait {
    right: 8vw;
    width: 34vw;
  }

  .hero-seal {
    left: 43vw;
  }

  .spatial-scroll {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5vw;
    padding-right: 5.5vw;
    padding-left: 10vw;
  }

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

  .material-entry:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .material-entry:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .reading-atlas {
    grid-template-columns: minmax(360px, 0.9fr) minmax(380px, 0.82fr);
    gap: 5vw;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 62px;
    padding: 0 18px;
  }

  .hero {
    min-height: 1050px;
  }

  .hero::before {
    inset: 18px;
  }

  .hero::after {
    display: none;
  }

  .hero-blue::before {
    right: 0;
    width: 36%;
  }

  .hero-copy {
    top: 12vh;
    left: 9vw;
    width: 82vw;
  }

  .hero h1 {
    font-size: 21vw;
    line-height: 1.08;
  }

  .hero h1 span:last-child {
    margin-left: 0.28em;
  }

  .hero-deck {
    margin-top: 25px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .hero-intro {
    max-width: 80vw;
    font-size: 11px;
  }

  .hero-portrait {
    top: 565px;
    right: 10vw;
    width: 70vw;
  }

  .silk-frame {
    padding: 15px;
  }

  .hero-seal {
    top: 480px;
    bottom: auto;
    left: 11vw;
  }

  .hero-cloud {
    display: none;
  }

  .enter-link {
    bottom: 30px;
    left: 9vw;
  }

  .threshold {
    min-height: 73vh;
  }

  .threshold blockquote {
    font-size: 8.2vw;
  }

  .spatial-scroll {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 65px;
    padding: 110px 7vw 95px;
  }

  .spatial-scroll::after {
    inset: 18px;
  }

  .spatial-rail {
    display: none;
  }

  .spatial-copy {
    order: 1;
    padding: 0 4vw;
  }

  .spatial-copy h2,
  .materials-heading h2 {
    font-size: 14.5vw;
  }

  .spatial-copy > p:not(.section-kicker) {
    margin: 30px 0 35px;
    font-size: 12px;
  }

  .spatial-notes {
    margin-top: 34px;
  }

  .scroll-vitrine {
    order: 2;
    width: 100%;
  }

  .scroll-3d {
    height: 67vh;
    min-height: 540px;
  }

  .scroll-3d-fallback {
    width: 65%;
  }

  .origins {
    padding-top: 120px;
  }

  .materials {
    padding: 110px 7vw 120px;
    background-size: 50% 100%;
  }

  .materials-heading {
    display: block;
    margin-bottom: 70px;
  }

  .materials-heading > p:last-child {
    margin-top: 31px;
    font-size: 12px;
  }

  .material-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .material-entry {
    min-height: 470px;
    padding: 26px 18px;
  }

  .material-entry:nth-child(3) {
    border-right: 0;
  }

  .material-entry:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .material-entry:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .material-order {
    margin-bottom: 40px;
  }

  .material-swatch {
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
  }

  .material-entry h3 {
    font-size: 29px;
  }

  .material-entry > p:nth-of-type(3) {
    min-height: 142px;
    font-size: 11px;
  }

  .process-frame {
    padding: 14px;
  }

  .stage-mobile-visual {
    padding: 14px;
    border: 1px solid #907c5c;
  }

  .details::before {
    font-size: 44vw;
  }

  .reading-heading {
    display: block;
  }

  .reading-atlas {
    display: block;
  }

  .analysis-visual {
    padding: 11px;
  }

  .analysis-map {
    inset: 11px;
    width: calc(100% - 22px);
    height: calc(100% - 22px);
  }

  .analysis-map text {
    font-size: 22px;
    stroke-width: 7px;
  }

  .analysis-content {
    margin-top: 70px;
  }

  .analysis-tabs button {
    min-height: 72px;
    padding: 0 8px;
    font-size: 12px;
  }

  .analysis-panel {
    padding: 60px 8px 15px;
  }

  .analysis-panel h3 {
    font-size: 12.5vw;
  }

  .analysis-panel > p:last-child {
    font-size: 12px;
  }

  .finale-artwork {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-loading span::after {
    animation: none;
  }
}
