@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-300-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-400-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --archive-bg: #0d0f10;
  --archive-panel: #131618;
  --archive-panel-raised: #181c1e;
  --archive-text: #e8e9e6;
  --archive-muted: #8d9497;
  --archive-rule: #303538;
  --archive-rule-strong: #4b5154;
  --archive-accent: #a9906a;
  --archive-accent-pale: #c7b794;
  --archive-serif: "Cormorant Garamond", Georgia, "Times New Roman", "Songti SC", serif;
  --archive-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
  font-family: var(--archive-sans);
  color: var(--archive-text);
  background: var(--archive-bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--archive-bg);
}

body {
  margin: 0;
  min-width: 320px;
  font-weight: 300;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--archive-bg);
  background-size: 64px 64px;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--archive-rule);
  background: rgba(13,15,16,.92);
}

.site-mark,
.site-nav {
  display: flex;
  align-items: center;
}

.site-mark { gap: 14px; }

.site-mark > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--archive-accent);
  color: var(--archive-accent-pale);
  font-family: var(--archive-serif);
  font-size: 13px;
}

.site-mark-name,
.site-nav {
  color: var(--archive-muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav { gap: 28px; }
.site-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--archive-text); }
.site-nav-count { color: var(--archive-accent); }
.nav-zh {
  color: var(--archive-muted);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.3fr);
  gap: 5vw;
  min-height: calc(100vh - 72px);
  padding: 9vh 4vw 7vh;
  border-bottom: 1px solid var(--archive-rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2vw;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--archive-accent);
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about h2,
.viewer-info h2 {
  margin: 0;
  font-family: var(--archive-serif);
  font-weight: 300;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(58px, 7.6vw, 128px);
  line-height: .93;
  letter-spacing: -.055em;
}

.title-en { display: block; }
.title-zh {
  display: block;
  margin-top: 26px;
  color: var(--archive-muted);
  font-family: var(--archive-sans);
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: .2em;
  line-height: 1.4;
}

.hero-intro {
  max-width: 510px;
  margin: 42px 0 0;
  color: #a8adaf;
  font-size: 14px;
  line-height: 1.9;
}

.zh-copy {
  display: block;
  margin-top: 10px;
  color: #747b7e;
  font-size: .78em;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 54px 0 0;
  border-top: 1px solid var(--archive-rule);
}

.hero-stats div { padding: 16px 10px 0 0; }
.hero-stats dt {
  margin-bottom: 8px;
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .15em;
}
.stat-zh {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: .08em;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--archive-serif);
  font-size: 22px;
}

.hero-object {
  align-self: center;
  width: 100%;
  margin: 0;
  color: inherit;
}

.hero-object-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.hero-object-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  touch-action: pan-y;
  cursor: zoom-in;
}

.hero-object-label {
  display: block;
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-book-position {
  color: var(--archive-accent);
  font-size: 9px;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.hero-book-shell {
  position: relative;
  perspective: 2400px;
}

.hero-object-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48vh;
  max-height: 69vh;
  padding: 22px 0 26px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero-object-image::before {
  position: absolute;
  inset: auto 12% 3%;
  height: 12%;
  content: '';
  background: rgba(0, 0, 0, .62);
  filter: blur(28px);
  transform: perspective(500px) rotateX(68deg);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  display: block;
  width: min(100%, calc(118vh - 124px));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  contain: layout paint;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 100%);
}
.hero-carousel::after { content: none; }
.hero-carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66%;
  height: 82%;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #000;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, opacity;
}
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  background: #000;
  filter: saturate(.84) contrast(1.04);
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-carousel-prev {
  z-index: 1;
  opacity: .12;
  transform: translate3d(-100%, -50%, 0) scale(.78);
}
.hero-carousel-active {
  z-index: 3;
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.hero-carousel-next {
  z-index: 2;
  opacity: .42;
  transform: translate3d(0, -50%, 0) scale(.78);
}

.hero-card-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}
.hero-card-navigation .hero-book-prev { justify-self: start; }
.hero-card-navigation .hero-book-next { justify-self: end; }

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 42px;
  padding: 5px 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel-dots[hidden] { display: none; }
.hero-carousel-dots::-webkit-scrollbar { display: none; }
.hero-carousel-dots[aria-busy="true"] { pointer-events: none; }
.hero-carousel-dot {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-snap-align: center;
  cursor: pointer;
  transition: flex-basis .38s cubic-bezier(.22,1,.36,1), width .38s cubic-bezier(.22,1,.36,1);
}
.hero-carousel-dot::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: '';
  background: #525858;
  transform: translateY(-50%);
  transition: height .3s ease, background .3s ease;
}
.hero-carousel-dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-carousel-dot:hover::before { background: #a6a38f; }
.hero-carousel-dot.is-active {
  flex-basis: 34px;
  width: 34px;
}
.hero-carousel-dot.is-active::before {
  height: 2px;
  background: #ded1ad;
}
.hero-carousel-dot:focus-visible {
  outline: 1px solid rgba(229, 215, 176, .9);
  outline-offset: 2px;
}

.hero-book-turn {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 11px;
  border: 0;
  color: #c8bea2;
  background: transparent;
  cursor: pointer;
  transition: color .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.hero-book-turn > span {
  font-family: var(--archive-serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.hero-book-turn small {
  color: #7e8484;
  font-size: 7px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-book-turn:hover,
.hero-book-turn:focus-visible {
  color: #f0e3bf;
  transform: translateX(2px);
}
.hero-book-prev:hover,
.hero-book-prev:focus-visible { transform: translateX(-2px); }
.hero-book-turn:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .72);
  outline-offset: 1px;
}
.hero-book-turn:disabled {
  opacity: .38;
  cursor: default;
}

.hero-object-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0 0;
  color: var(--archive-muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.hero-object-caption span:first-child { color: var(--archive-text); }
.hero-object-caption strong {
  display: block;
  font-weight: 300;
}
.hero-object-caption small {
  display: block;
  margin-top: 5px;
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .06em;
}

.collections { padding: 120px 4vw 150px; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(44px, 6vw, 82px);
  letter-spacing: -.04em;
}

.heading-zh {
  display: block;
  margin-top: 14px;
  color: var(--archive-muted);
  font-family: var(--archive-sans);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.6;
}

.section-note {
  margin: 0 0 8px;
  color: var(--archive-muted);
  font-size: 13px;
  line-height: 1.75;
}

.collection-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--archive-rule);
  border-bottom: 1px solid var(--archive-rule);
}

.filter-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.filter-button:last-child { border-right: 0; }
.filter-button:hover { color: var(--archive-text); }
.filter-button.is-active {
  color: var(--archive-text);
  background: var(--archive-panel-raised);
}
.filter-button span:last-child {
  color: var(--archive-accent);
  font-variant-numeric: tabular-nums;
}
.filter-button > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.filter-button strong { font-weight: 300; }
.filter-button small {
  color: #6f7679;
  font-size: 8px;
  letter-spacing: .06em;
}

.result-count {
  margin: 26px 0 34px;
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.result-count span {
  margin-left: 8px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .08em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 22px;
}

.map-card {
  min-width: 0;
  animation: map-in .34s ease both;
}

.map-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.map-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 1.7vw, 25px);
  overflow: hidden;
  border: 1px solid var(--archive-rule);
  background: #090b0c;
  transition: border-color .25s ease, background .25s ease;
}

.map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.78) brightness(.88);
  transition: transform .45s ease, filter .45s ease;
}

.map-card-button:hover .map-frame {
  border-color: var(--archive-rule-strong);
  background: #0b0d0e;
}
.map-card-button:hover .map-frame img {
  transform: scale(1.016);
  filter: saturate(.95) brightness(.98);
}

.map-caption {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-top: 13px;
  border-top: 1px solid var(--archive-rule);
  margin-top: 9px;
}

.map-number,
.map-type,
.map-size {
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.map-number { color: var(--archive-accent); }
.map-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--archive-serif);
  font-size: 17px;
  line-height: 1.25;
}
.map-title-zh {
  display: block;
  margin-top: 4px;
  color: var(--archive-muted);
  font-family: var(--archive-sans);
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1.45;
}
.map-type-zh {
  display: block;
  margin-top: 3px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: none;
}
.map-size { text-align: right; }

.about {
  padding: 110px 4vw 130px;
  border-top: 1px solid var(--archive-rule);
  background: var(--archive-panel);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8vw;
}
.about h2 {
  max-width: 800px;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.about-copy {
  max-width: 520px;
  color: #a8adaf;
  font-size: 14px;
  line-height: 1.9;
}
.about-copy p { margin: 0 0 24px; }

.contact-invitation {
  padding: 110px 4vw 120px;
  border-top: 1px solid var(--archive-rule);
}

.contact-invitation-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8vw;
  align-items: end;
}

.contact-invitation h2 {
  margin: 0;
  font-family: var(--archive-serif);
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.contact-invitation-layout p {
  max-width: 430px;
  margin: 0 0 34px;
  color: var(--archive-muted);
  font-family: var(--archive-serif);
  font-size: 18px;
  line-height: 1.55;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--archive-rule-strong);
  border-bottom: 1px solid var(--archive-rule-strong);
  color: var(--archive-text);
  font-size: 12px;
  letter-spacing: .1em;
  transition: color .2s ease, background .2s ease;
}

.contact-link:hover {
  color: var(--archive-accent-pale);
  background: var(--archive-panel-raised);
}
.contact-link small {
  display: inline-block;
  margin-left: 8px;
  color: var(--archive-muted);
  font-size: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 26px 4vw;
  border-top: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .15em;
}
.site-footer > :last-child {
  justify-self: end;
  text-align: right;
}
.site-footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: center;
}
.site-footer .filing-link { letter-spacing: .08em; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: var(--archive-text); }

.viewer {
  width: calc(100vw - 36px);
  max-width: none;
  height: calc(100vh - 36px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--archive-rule-strong);
  border-radius: 0;
  color: var(--archive-text);
  background: var(--archive-bg);
}
.viewer::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
.viewer-shell { height: 100%; }
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  font-size: 10px;
  letter-spacing: .14em;
}
.viewer-close,
.zoom-button,
.viewer-navigation button {
  border: 0;
  color: var(--archive-muted);
  background: transparent;
  cursor: pointer;
}
.viewer-close { min-height: 44px; }
.viewer-close:hover,
.zoom-button:hover,
.viewer-navigation button:hover { color: var(--archive-text); }

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  height: calc(100% - 58px);
}
.viewer-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #070809;
}

.viewer-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 28px;
  overflow: auto;
  background: #070809;
}
.viewer-image-wrap {
  position: relative;
  flex: none;
  overflow: visible;
}
.viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .25s ease;
}
.viewer-stage.is-zoomed {
  display: block;
  padding: 0;
}
.viewer-stage.is-zoomed .viewer-image-wrap {
  width: 160% !important;
  height: auto !important;
}
.viewer-stage.is-zoomed .viewer-image {
  cursor: zoom-out;
}

.map-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.map-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #e2ded3;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.hotspot-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(215, 198, 156, .7);
  border-radius: 50%;
  color: #d7c69c;
  background: rgba(8, 10, 11, .82);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .38);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.hotspot-label {
  position: absolute;
  left: 34px;
  top: 50%;
  width: max-content;
  max-width: min(220px, 34vw);
  padding: 7px 10px 6px;
  border: 1px solid rgba(215, 198, 156, .34);
  background: rgba(8, 10, 11, .86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-4px, -50%);
  backdrop-filter: blur(5px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.hotspot-label strong,
.hotspot-label small {
  display: block;
  white-space: nowrap;
}
.hotspot-label strong {
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .025em;
}
.hotspot-label small {
  margin-top: 2px;
  color: #8c8f8d;
  font-size: 7px;
  font-weight: 300;
  letter-spacing: .06em;
}
.map-hotspot:hover .hotspot-marker,
.map-hotspot:focus-visible .hotspot-marker {
  color: #0a0c0d;
  border-color: #e4d6ae;
  background: #d7c69c;
  transform: translate(-50%, -50%) scale(1.08);
}
.map-hotspot:hover .hotspot-label,
.map-hotspot:focus-visible .hotspot-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.map-hotspot:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .65);
  outline-offset: -5px;
  border-radius: 50%;
}

.family-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 86px;
  height: 96px;
  padding: 0;
  border: 0;
  color: #e7e1d3;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.family-hotspot-crest {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .48));
  transform: translate(-50%, -50%);
  transition: filter .18s ease, transform .18s ease;
}
.family-hotspot-crest img {
  display: block;
  width: 100%;
  height: auto;
}
.family-hotspot-label {
  position: absolute;
  left: 74px;
  top: 50%;
  z-index: 4;
  width: max-content;
  max-width: min(230px, 36vw);
  padding: 8px 11px 7px;
  border: 1px solid rgba(223, 205, 157, .46);
  color: #e7e1d3;
  background: rgba(7, 9, 10, .9);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .38);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-5px, -50%);
  backdrop-filter: blur(6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.family-hotspot.is-left .family-hotspot-label {
  right: 74px;
  left: auto;
  text-align: right;
  transform: translate(5px, -50%);
}
.family-hotspot-label strong,
.family-hotspot-label small {
  display: block;
  white-space: nowrap;
}
.family-hotspot-label strong {
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .025em;
}
.family-hotspot-label small {
  margin-top: 3px;
  color: #979b97;
  font-size: 7px;
  letter-spacing: .055em;
}
.family-hotspot:hover .family-hotspot-crest,
.family-hotspot:focus-visible .family-hotspot-crest,
.family-hotspot.is-active .family-hotspot-crest {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .58)) drop-shadow(0 0 8px rgba(232, 216, 171, .5));
  transform: translate(-50%, -50%) scale(1.14);
}
.family-hotspot:hover .family-hotspot-label,
.family-hotspot:focus-visible .family-hotspot-label,
.family-hotspot.is-active .family-hotspot-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.family-hotspot:focus-visible {
  outline: 1px solid rgba(232, 217, 177, .7);
  outline-offset: -3px;
  border-radius: 4px;
}

.map-region-hotspot {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: rgba(220, 202, 153, .3);
  opacity: 0;
  clip-path: var(--region-shape);
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 0 8px rgba(224, 207, 159, .55));
  transition: opacity .22s ease, background-color .22s ease;
}
.map-region-hotspot:hover,
.map-region-hotspot:focus-visible {
  opacity: 1;
  background: rgba(220, 202, 153, .34);
}
.map-region-hotspot:focus-visible { outline: none; }
.map-region-label {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  z-index: 3;
  width: max-content;
  max-width: min(230px, 42vw);
  padding: 9px 12px 8px;
  border: 1px solid rgba(226, 212, 172, .55);
  color: #e7e1d3;
  background: rgba(7, 9, 10, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px));
  backdrop-filter: blur(7px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.map-region-label strong,
.map-region-label small { display: block; white-space: nowrap; }
.map-region-label strong {
  font-family: var(--archive-serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .02em;
}
.map-region-label small {
  margin-top: 3px;
  color: #9a9d98;
  font-size: 7px;
  letter-spacing: .06em;
}
.map-region-hotspot:hover + .map-region-label,
.map-region-hotspot:focus-visible + .map-region-label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
.map-region-hint,
.map-family-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 8px 10px 7px;
  border: 1px solid rgba(215, 198, 156, .34);
  color: #d7c69c;
  background: rgba(7, 9, 10, .78);
  font-size: 8px;
  letter-spacing: .11em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.map-region-hint small,
.map-family-hint small {
  margin-left: 6px;
  color: #898d8b;
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: none;
}

.viewer-info {
  display: flex;
  flex-direction: column;
  padding: 36px 28px 24px;
  border-left: 1px solid var(--archive-rule);
  overflow-y: auto;
}
.viewer-series {
  margin: 0 0 22px;
  color: var(--archive-accent);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.viewer-series small {
  display: block;
  margin-top: 6px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: none;
}
.viewer-info h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.viewer-title-zh {
  margin: 10px 0 0;
  color: var(--archive-muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.viewer-modes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 14px 18px;
  border-top: 1px solid var(--archive-rule);
  background: #0b0d0e;
}
.viewer-modes[hidden] { display: none; }
.viewer-modes > p {
  margin: 0;
  color: var(--archive-accent);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.viewer-modes > p small {
  display: block;
  margin: 5px 0 0;
  color: #666d70;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: none;
}
.viewer-mode-list {
  display: grid;
  grid-template-columns: repeat(var(--mode-count, 3), minmax(0, 1fr));
  border: 1px solid var(--archive-rule);
}
.viewer-mode-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  color: #747a7b;
  background: rgba(255, 255, 255, .012);
  text-align: left;
  cursor: pointer;
}
.viewer-mode-list > * + * {
  border-left: 1px solid var(--archive-rule);
}
.viewer-mode-button span,
.viewer-mode-button strong,
.viewer-mode-button small {
  display: block;
  min-width: 0;
}
.viewer-mode-button strong {
  color: inherit;
  font-family: var(--archive-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.15;
}
.viewer-mode-button small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .06em;
}
.viewer-mode-button em {
  color: #525758;
  font-family: var(--archive-sans);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.viewer-mode-button:hover,
.viewer-mode-button:focus-visible {
  color: #cfc4a5;
  background: rgba(215, 198, 156, .05);
}
.viewer-mode-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid rgba(215, 198, 156, .65);
  outline-offset: -1px;
}
.viewer-mode-button.is-active {
  color: #e2d6b6;
  background: rgba(215, 198, 156, .1);
}
.viewer-mode-button.is-active em { color: var(--archive-accent); }
.viewer-mode-menu {
  position: relative;
  min-width: 0;
  color: #747a7b;
  background: rgba(255, 255, 255, .012);
}
.viewer-mode-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px;
  list-style: none;
  text-align: left;
  cursor: pointer;
}
.viewer-mode-menu summary::-webkit-details-marker { display: none; }
.viewer-mode-menu summary span,
.viewer-mode-menu summary strong,
.viewer-mode-menu summary small {
  display: block;
  min-width: 0;
}
.viewer-mode-menu summary strong {
  font-family: var(--archive-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.15;
}
.viewer-mode-menu summary small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .06em;
}
.viewer-mode-menu summary em {
  color: #525758;
  font-family: var(--archive-sans);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.viewer-mode-menu summary b {
  display: inline-block;
  margin-left: 4px;
  color: var(--archive-accent);
  font-size: 10px;
  font-weight: 300;
  transition: transform .16s ease;
}
.viewer-mode-menu[open] summary b { transform: rotate(180deg); }
.viewer-mode-menu summary:hover,
.viewer-mode-menu summary:focus-visible {
  color: #cfc4a5;
  background: rgba(215, 198, 156, .05);
}
.viewer-mode-menu summary:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .65);
  outline-offset: -1px;
}
.viewer-mode-menu.is-active summary {
  color: #e2d6b6;
  background: rgba(215, 198, 156, .1);
}
.viewer-mode-menu.is-active summary em { color: var(--archive-accent); }
.viewer-mode-options {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 8;
  width: min(320px, 80vw);
  max-height: min(62vh, 560px);
  padding: 6px;
  border: 1px solid rgba(215, 198, 156, .36);
  background: rgba(10, 12, 13, .97);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 198, 156, .38) rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}
.viewer-mode-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  color: #858a89;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.viewer-mode-option + .viewer-mode-option {
  border-top: 1px solid rgba(255, 255, 255, .055);
}
.viewer-mode-option em {
  color: #666c6d;
  font-family: var(--archive-sans);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.viewer-mode-option strong,
.viewer-mode-option small { display: block; }
.viewer-mode-option strong {
  font-family: var(--archive-serif);
  font-size: 13px;
  font-weight: 300;
}
.viewer-mode-option small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: .06em;
}
.viewer-mode-option:hover,
.viewer-mode-option:focus-visible,
.viewer-mode-option.is-active {
  color: #e1d5b4;
  background: rgba(215, 198, 156, .08);
}
.viewer-mode-option:focus-visible {
  outline: 1px solid rgba(215, 198, 156, .58);
  outline-offset: -1px;
}
.viewer-mode-option.is-active em { color: var(--archive-accent); }
.viewer-family-card {
  margin-top: 26px;
  padding: 15px;
  border: 1px solid rgba(215, 198, 156, .24);
  background: linear-gradient(145deg, rgba(215, 198, 156, .07), rgba(255, 255, 255, .012));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.viewer-family-card[hidden] { display: none; }
.viewer-family-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.viewer-family-card > header p {
  margin: 0;
  color: var(--archive-accent);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.viewer-family-card > header p small {
  margin-left: 6px;
  color: #717674;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: none;
}
.viewer-family-card > header button {
  padding: 4px 0;
  border: 0;
  color: #8a8e8b;
  background: transparent;
  font: inherit;
  font-size: 8px;
  letter-spacing: .08em;
  cursor: pointer;
}
.viewer-family-card > header button:hover,
.viewer-family-card > header button:focus-visible { color: #e3d5ad; }
.family-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.family-card-toolbar > span {
  color: #777d7a;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.family-card-toolbar > span small {
  margin-left: 5px;
  color: #666c69;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
}
.family-card-identity {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.family-card-crest {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.family-card-crest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .52));
}
.family-card-identity h3 {
  margin: 0;
  color: #e0d4b4;
  font-family: var(--archive-serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
}
.family-card-identity p {
  margin: 7px 0 0;
  color: #8a908e;
  font-size: 10px;
  letter-spacing: .08em;
}
.family-card-text-en {
  margin: 15px 0 0;
  color: #b7bab6;
  font-family: var(--archive-serif);
  font-size: var(--family-text-en-size, 15px);
  line-height: 1.62;
}
.family-card-text-zh {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: #777d7a;
  font-size: var(--family-text-zh-size, 12px);
  line-height: 1.78;
}
.viewer-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--archive-rule);
}
.viewer-note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.viewer-note h3 {
  margin: 0;
  color: var(--archive-accent);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.viewer-note h3 small {
  margin-left: 7px;
  color: #666d70;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: none;
}
.note-size-controls,
.family-size-controls {
  display: grid;
  grid-template-columns: 38px 48px 38px;
  flex: none;
  border: 1px solid var(--archive-rule);
}
.note-size-controls button,
.family-size-controls button {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: #a9aa9f;
  background: rgba(255, 255, 255, .018);
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  cursor: pointer;
}
.note-size-controls button + button,
.family-size-controls button + button {
  border-left: 1px solid var(--archive-rule);
}
.note-size-controls .note-size-reset,
.family-size-controls .family-size-reset {
  color: #767b7c;
  font-family: var(--archive-sans);
  font-size: 8px;
  letter-spacing: .04em;
}
.note-size-controls button:hover,
.note-size-controls button:focus-visible,
.family-size-controls button:hover,
.family-size-controls button:focus-visible {
  color: #e1d5b4;
  background: rgba(215, 198, 156, .08);
}
.note-size-controls button:focus-visible,
.family-size-controls button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid rgba(215, 198, 156, .7);
  outline-offset: -1px;
}
.note-size-controls button:disabled,
.family-size-controls button:disabled {
  color: #414647;
  cursor: default;
  background: transparent;
}
.viewer-note-en {
  margin: 0;
  color: #b1b5b5;
  font-family: var(--archive-serif);
  font-size: var(--note-en-size, 15.5px);
  line-height: 1.7;
}
.viewer-note-en.is-plain-note,
.viewer-note-zh.is-plain-note {
  white-space: pre-line;
}
.viewer-note .viewer-note-zh {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: #6f7679;
  font-family: var(--archive-sans);
  font-size: var(--note-zh-size, 11px);
  line-height: 1.85;
}
.viewer-note-intro,
.viewer-note-section p {
  margin: 0;
}
.viewer-note-intro {
  color: #c5c5c0;
}
.viewer-note-sections {
  margin-top: 18px;
}
.viewer-note-section + .viewer-note-section {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .045);
}
.viewer-note-section h4 {
  margin: 0 0 5px;
  color: #d4c69f;
  font-family: var(--archive-serif);
  font-size: var(--note-heading-size, 15px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: .015em;
}
.viewer-note-subsections {
  margin-top: 11px;
  padding-left: 14px;
  border-left: 1px solid rgba(215, 198, 156, .16);
}
.viewer-note-subsection + .viewer-note-subsection {
  margin-top: 12px;
}
.viewer-note-subsection h5 {
  margin: 0 0 4px;
  color: #aaa58f;
  font-family: var(--archive-serif);
  font-size: calc(var(--note-en-size, 15.5px) * .88);
  font-weight: 400;
  line-height: 1.35;
}
.viewer-note-subsection p {
  margin: 0;
}
.viewer-note-zh .viewer-note-sections {
  margin-top: 13px;
}
.viewer-note-zh .viewer-note-section + .viewer-note-section {
  margin-top: 10px;
  padding-top: 9px;
}
.viewer-note-zh .viewer-note-section h4 {
  margin-bottom: 3px;
  color: #8b887d;
  font-family: var(--archive-sans);
  font-size: var(--note-zh-heading-size, 11px);
  letter-spacing: .06em;
}
.viewer-note-zh .viewer-note-subsections {
  margin-top: 8px;
  padding-left: 11px;
}
.viewer-note-zh .viewer-note-subsection + .viewer-note-subsection {
  margin-top: 8px;
}
.viewer-note-zh .viewer-note-subsection h5 {
  color: #77796f;
  font-family: var(--archive-sans);
  font-size: calc(var(--note-zh-size, 11px) * .94);
  letter-spacing: .045em;
}
.viewer-related {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--archive-rule);
}
.viewer-related h3 {
  margin: 0 0 14px;
  color: var(--archive-accent);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.viewer-related h3 small {
  margin-left: 7px;
  color: #666d70;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: none;
}
.related-view-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.related-view-button {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}
.related-view-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--archive-rule);
  background: #08090a;
  transition: border-color .2s ease;
}
.related-view-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.82);
}
.related-view-button:hover .related-view-image { border-color: var(--archive-accent); }
.related-view-caption {
  display: block;
  padding-top: 8px;
}
.related-view-caption strong {
  display: block;
  font-family: var(--archive-serif);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.25;
}
.related-view-caption small {
  display: block;
  margin-top: 3px;
  color: var(--archive-muted);
  font-size: 8px;
}
.viewer-metadata {
  margin: 30px 0 30px;
  border-top: 1px solid var(--archive-rule);
}
.viewer-metadata div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--archive-rule);
  font-size: 11px;
}
.viewer-metadata dt { color: var(--archive-muted); }
.viewer-metadata dt small {
  display: block;
  margin-top: 4px;
  color: #656c6f;
  font-size: 8px;
}
.viewer-metadata dd { margin: 0; text-align: right; }
.viewer-metadata dd small {
  display: block;
  margin-top: 4px;
  color: var(--archive-muted);
  font-size: 8px;
}
.zoom-button {
  min-height: 46px;
  border-top: 1px solid var(--archive-rule);
  border-bottom: 1px solid var(--archive-rule);
  text-align: left;
}
.zoom-button small,
.viewer-close small,
.viewer-navigation small,
.site-footer small {
  color: var(--archive-muted);
  font-size: 8px;
}
.viewer-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  border-top: 1px solid var(--archive-rule);
}
.viewer-navigation button {
  min-height: 54px;
  padding: 0;
  text-align: left;
}
.viewer-navigation button:last-child { text-align: right; }

/* V74 preview — supplied viewer control artwork */
.ui-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ui-icon-button img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.ui-icon-button:hover img,
.ui-icon-button:focus-visible img {
  filter: drop-shadow(0 0 7px rgba(225, 212, 176, .32));
  transform: translateY(-1px);
}
.viewer-header .ui-icon-button {
  min-width: 54px;
  padding: 0 4px;
}
.viewer-header .viewer-info-toggle { min-width: 58px; }
.viewer-header .ui-icon-button img { height: 44px; }
.viewer-navigation .ui-icon-button {
  align-items: center;
  min-height: 64px;
}
.viewer-navigation .ui-icon-button img { height: 44px; }
.viewer-navigation .viewer-prev { justify-content: flex-start; }
.viewer-navigation .viewer-next { justify-content: flex-end; }
.illustration-header .ui-icon-button {
  min-width: 54px;
  padding: 0 6px;
}
.illustration-header .ui-icon-button img { height: 42px; }

/* V75 preview — the supplied previous/next artwork also drives the homepage carousel. */
.hero-card-navigation .hero-turn-icon-button {
  min-width: 80px;
  min-height: 58px;
  padding: 0;
}
.hero-card-navigation .hero-turn-icon-button img {
  width: auto;
  height: 54px;
}
.hero-book-shell { position: relative; }
.hero-card-navigation {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 0;
  left: 0;
  margin: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.hero-card-navigation .hero-book-turn { pointer-events: auto; }
.hero-card-navigation .hero-carousel-dots { pointer-events: auto; }

.illustration-viewer {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--archive-rule-strong);
  border-radius: 0;
  color: var(--archive-text);
  background: var(--archive-bg);
}
.illustration-viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.illustration-shell {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.illustration-header,
.illustration-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  border-bottom: 1px solid var(--archive-rule);
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .14em;
}
.illustration-header button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--archive-muted);
  background: transparent;
  cursor: pointer;
}
.illustration-header button:hover { color: var(--archive-text); }
.illustration-header small { font-size: 8px; }
.illustration-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background: #070809;
}
.illustration-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}
.illustration-caption {
  min-height: 78px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--archive-rule);
  border-bottom: 0;
}
.illustration-caption h2 {
  margin: 0;
  color: var(--archive-text);
  font-family: var(--archive-serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -.02em;
}
.illustration-caption p {
  margin: 4px 0 0;
  color: var(--archive-muted);
  font-size: 9px;
  letter-spacing: .06em;
}
.illustration-caption > span {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@keyframes map-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 3vh 0 0; }
  .hero-object-image { max-height: none; }
  .hero-carousel { width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .about-layout { grid-template-columns: 1fr; gap: 46px; }
  .contact-invitation-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .site-header { padding: 0 18px; }
  .site-mark-name, .site-nav-count { display: none; }
  .site-nav { gap: 20px; }
  .hero { padding: 70px 18px 54px; }
  .hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-intro { margin-top: 30px; }
  .hero-stats { margin-top: 38px; }
  .hero-object-image { min-height: 0; padding: 18px 0 22px; }
  .hero-carousel { border-radius: 0; }
  .hero-carousel-slide { width: 72%; height: 80%; border-radius: 8px; }
  .hero-card-navigation { gap: 4px; margin-top: 14px; }
  .hero-carousel-dots { gap: 3px; padding-inline: 4px; }
  .hero-carousel-dot { flex-basis: 12px; width: 12px; }
  .hero-carousel-dot.is-active { flex-basis: 24px; width: 24px; }
  .hero-book-turn { min-height: 40px; padding: 5px 7px; }
  .hero-book-turn small { display: none; }
  .hero-book-turn > span { font-size: 23px; }
  .hero-object-caption { flex-direction: column; gap: 6px; }
  .collections { padding: 88px 18px 100px; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 38px; }
  .collection-filters { grid-template-columns: 1fr 1fr; }
  .filter-button:nth-child(2n) { border-right: 0; }
  .filter-button:nth-child(-n+4) { border-bottom: 1px solid var(--archive-rule); }
  .filter-button:last-child { grid-column: 1 / -1; border-right: 0; }
  .gallery { grid-template-columns: 1fr; gap: 54px; }
  .map-frame { padding: 16px; }
  .about { padding: 84px 18px 90px; }
  .contact-invitation { padding: 84px 18px 90px; }
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    text-align: center;
  }
  .site-footer > :last-child { align-self: center; text-align: center; }
  .site-footer-center { flex-direction: column; gap: 8px; }
  .site-footer span:last-child { display: none; }
  .viewer { width: 100vw; height: 100vh; border: 0; }
  .viewer-layout { grid-template-columns: 1fr; grid-template-rows: minmax(340px, 58vh) auto; overflow-y: auto; }
  .viewer-stage { padding: 14px; }
  .viewer-modes { grid-template-columns: 1fr; gap: 9px; padding: 10px 12px 12px; }
  .viewer-modes > p { display: flex; align-items: baseline; gap: 8px; }
  .viewer-modes > p small { display: inline; margin: 0; }
  .viewer-mode-button { min-height: 52px; padding: 8px; }
  .viewer-mode-button strong { font-size: 12px; }
  .viewer-mode-button small { font-size: 8px; }
  .viewer-mode-button em { font-size: 8px; }
  .viewer-mode-menu summary { min-height: 52px; padding: 8px; }
  .viewer-mode-menu summary strong { font-size: 12px; }
  .viewer-mode-menu summary small { font-size: 8px; }
  .viewer-mode-menu summary em { font-size: 8px; }
  .viewer-mode-options { bottom: calc(100% + 6px); width: min(310px, calc(100vw - 32px)); }
  .hotspot-label { left: 30px; max-width: 42vw; padding: 6px 8px 5px; }
  .hotspot-label strong { font-size: 10px; }
  .hotspot-label small { font-size: 6px; }
  .family-hotspot { width: 62px; height: 74px; }
  .family-hotspot-crest { width: 54px; height: auto; }
  .family-hotspot-label { left: 57px; max-width: 48vw; padding: 6px 8px 5px; }
  .family-hotspot.is-left .family-hotspot-label { right: 57px; left: auto; }
  .family-hotspot-label strong { font-size: 10px; }
  .family-hotspot-label small { font-size: 6px; }
  .map-region-label { max-width: 52vw; padding: 7px 9px 6px; }
  .map-region-label strong { font-size: 10px; }
  .map-region-label small { font-size: 6px; }
  .map-region-hint,
  .map-family-hint { left: 10px; bottom: 10px; font-size: 7px; }
  .map-region-hint small,
  .map-family-hint small { display: block; margin: 3px 0 0; }
  .viewer-info { padding: 24px 18px 18px; border-left: 0; border-top: 1px solid var(--archive-rule); }
  .viewer-info h2 { font-size: 30px; }
  .family-card-identity { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .family-card-crest { width: 112px; height: 112px; }
  .family-card-identity h3 { font-size: 21px; }
  .viewer-note-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .viewer-metadata { margin: 28px 0 22px; }
  .viewer-navigation { margin-top: 26px; }
  .illustration-viewer { width: 100vw; height: 100dvh; border: 0; }
  .illustration-stage { padding: 12px; }
  .illustration-caption { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-card { animation: none; }
  .map-frame img, .hero-carousel-slide, .viewer-image { transition: none; }
}

/* V73 preview — obsidian archive desk */
:root {
  --archive-ip: #8f78a8;
  --archive-ip-pale: #b8a3ca;
  --archive-copper-glow: rgba(169, 144, 106, .12);
}

body {
  background:
    radial-gradient(circle at 78% 8%, rgba(169, 144, 106, .08), transparent 30rem),
    radial-gradient(circle at 8% 52%, rgba(118, 94, 132, .05), transparent 28rem),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    var(--archive-bg);
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  background: rgba(10, 12, 13, .86);
  backdrop-filter: blur(18px) saturate(1.15);
}

.preview-badge {
  padding: 5px 8px 4px;
  border: 1px solid rgba(169, 144, 106, .45);
  color: var(--archive-accent-pale);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero {
  grid-template-columns: minmax(260px, .62fr) minmax(520px, 1.55fr);
  align-items: center;
  gap: clamp(34px, 4vw, 72px);
  min-height: calc(100svh - 68px);
  padding-top: clamp(48px, 6vh, 76px);
  padding-bottom: clamp(46px, 6vh, 74px);
}

.hero-copy {
  align-self: center;
  justify-content: center;
  padding-bottom: 0;
}

.hero h1 {
  font-size: clamp(54px, 5.9vw, 96px);
  line-height: .94;
}

.hero-intro {
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.8;
}

.hero-stats { margin-top: 38px; }

.hero-object {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-object-image {
  min-height: clamp(430px, 59vh, 690px);
  padding: 18px 0 24px;
}

.hero-carousel-slide {
  box-shadow: 0 22px 60px rgba(0,0,0,.52);
}

.collections { padding-top: 104px; }

.collection-filters {
  position: sticky;
  top: 68px;
  z-index: 25;
  background: rgba(13, 15, 16, .91);
  backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.filter-button {
  position: relative;
  min-height: 72px;
  padding: 0 20px;
}

.filter-button::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  background: transparent;
  content: "";
}

.filter-button.is-active::after { background: var(--archive-accent); }
.filter-button[data-filter="ip-inspired"].is-active::after { background: var(--archive-ip); }
.filter-button[data-filter="ip-inspired"] span:last-child { color: var(--archive-ip-pale); }

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 76px clamp(24px, 3vw, 46px);
}

.map-card {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

.map-card::before {
  content: none;
}

.map-card[data-series="ip-inspired"]::before { background: rgba(143, 120, 168, .72); }
.map-card[data-series="ip-inspired"] .map-number { color: var(--archive-ip-pale); }
.map-card-button { height: 100%; }
.map-card[data-orientation="portrait"] .map-frame,
.map-frame {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #080a0b;
}
.map-frame img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) brightness(.92);
}

.viewer {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  box-shadow: 0 40px 120px rgba(0,0,0,.58);
}

.viewer-header {
  min-height: 60px;
  background: rgba(15, 17, 18, .96);
}

.viewer-header-actions {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.viewer-info-toggle,
.viewer-close {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  color: var(--archive-muted);
  background: transparent;
  font-size: 10px;
  letter-spacing: .1em;
  cursor: pointer;
}

.viewer-info-toggle {
  border-right: 1px solid var(--archive-rule);
  color: var(--archive-accent-pale);
}

.viewer-info-toggle:hover,
.viewer-info-toggle:focus-visible,
.viewer-close:hover,
.viewer-close:focus-visible { color: var(--archive-text); }

.viewer-info-toggle small,
.viewer-close small { color: #6f7679; }

.viewer-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 28vw);
  height: calc(100% - 60px);
}

.viewer-stage { padding: clamp(18px, 2.3vw, 42px); }

.viewer-info {
  padding: 32px clamp(24px, 2.3vw, 38px) 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 16rem),
    #111416;
}

.viewer.is-info-collapsed .viewer-layout { grid-template-columns: minmax(0, 1fr); }
.viewer.is-info-collapsed .viewer-info { display: none; }

.viewer-language-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 21px;
  border: 1px solid var(--archive-rule);
}

.viewer-language-toggle button {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  color: #777e80;
  background: transparent;
  font-size: 9px;
  letter-spacing: .08em;
  cursor: pointer;
}

.viewer-language-toggle button + button { border-left: 1px solid var(--archive-rule); }
.viewer-language-toggle button.is-active {
  color: #e0d4b4;
  background: rgba(169, 144, 106, .1);
}
.viewer-language-toggle small { color: #777e80; }

.viewer-note[data-language="en"] .viewer-note-zh,
.viewer-note[data-language="zh"] .viewer-note-en { display: none; }

.viewer-note[data-language="zh"] .viewer-note-zh {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #a4aaab;
}

.viewer-note-en { color: #c4c7c5; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 680px; padding-top: 2vh; }
  .hero-object-image { min-height: clamp(400px, 62vw, 620px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 62px; }
  .preview-badge { display: none; }
  .hero { padding: 54px 18px 46px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-object { padding: 0; }
  .hero-object-image { min-height: clamp(310px, 85vw, 480px); }
  .collections { padding-top: 76px; }
  .collection-filters {
    top: 62px;
    display: flex;
    margin-inline: -18px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    scrollbar-width: none;
  }
  .collection-filters::-webkit-scrollbar { display: none; }
  .filter-button,
  .filter-button:last-child {
    flex: 0 0 148px;
    grid-column: auto;
    min-height: 62px;
    border-right: 1px solid var(--archive-rule);
    border-bottom: 0;
  }
  .collection-filters .filter-button:nth-child(2n),
  .collection-filters .filter-button:nth-child(-n+4) {
    border-right: 1px solid var(--archive-rule);
    border-bottom: 0;
  }
  .gallery { grid-template-columns: 1fr; gap: 48px; }
  .map-card { padding: 0; }
  .map-card[data-orientation="portrait"] .map-frame,
  .map-frame { aspect-ratio: 4 / 3; }
  .viewer { width: 100vw; height: 100dvh; }
  .viewer-header { min-height: 56px; padding-left: 14px; }
  .viewer-header-actions { margin-right: -8px; }
  .viewer-info-toggle,
  .viewer-close { padding-inline: 10px; font-size: 9px; }
  .viewer-header .ui-icon-button { min-width: 48px; padding-inline: 3px; }
  .viewer-header .viewer-info-toggle { min-width: 52px; }
  .viewer-header .ui-icon-button img { height: 42px; }
  .hero-card-navigation .hero-turn-icon-button { min-width: 66px; min-height: 50px; }
  .hero-card-navigation .hero-turn-icon-button img { height: 46px; }
  .hero-card-navigation {
    position: static;
    margin-top: 14px;
    transform: none;
  }
  .viewer-layout,
  .viewer.is-info-collapsed .viewer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(320px, 57dvh) auto;
    height: calc(100% - 56px);
  }
  .viewer.is-info-collapsed .viewer-layout { grid-template-rows: minmax(0, 1fr); }
  .viewer-info { padding: 24px 18px 20px; }
  .viewer-language-toggle { position: sticky; top: -24px; z-index: 2; background: #111416; }
}
