:root {
  --ink: #020202;
  --ivory: #f1ede3;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(52px, 4.2vw, 64px);
  background: #000;
  line-height: 1;
  white-space: nowrap;
}

.brand {
  font-size: clamp(24px, 1.8vw, 28px);
}

.brand,
.site-nav a {
  transition: opacity 180ms ease;
}

.brand:hover,
.site-nav a:hover {
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(35px, 2.8vw, 45px);
  font-size: clamp(16px, 1.2vw, 18px);
}

.hero {
  position: relative;
  min-height: 100svh;
  height: max(760px, 100svh);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.hero-relics {
  position: absolute;
  z-index: -2;
  top: var(--header-height);
  left: 50%;
  width: 100%;
  height: calc(100% - var(--header-height));
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.hero-title {
  position: absolute;
  z-index: 2;
  top: calc(50% + 22px);
  left: 50%;
  display: flex;
  width: min(48vw, 700px);
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -50%);
  text-align: center;
  background: transparent;
}

.title-cn,
.title-en {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.title-art {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  transform: scale(0.89);
  transform-origin: center bottom;
}

.title-cn {
  width: 96%;
  margin-bottom: 0;
}

.title-en {
  margin-top: -24px;
}

.hero-kicker {
  margin: 28px 0 0;
  color: var(--ivory);
  font-size: clamp(18px, 1.4vw, 20px);
  letter-spacing: 0.24em;
  line-height: 1;
}

.explore {
  display: flex;
  margin: 40px 0 0;
  padding: 0;
  align-items: center;
  flex-direction: column;
  border: 0;
  color: var(--ivory);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.explore-circle {
  position: relative;
  display: grid;
  width: clamp(72px, 5.3vw, 80px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 220ms ease;
}

.explore:hover .explore-circle {
  transform: scale(1.05);
}

.explore:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 8px;
}

.arrow {
  position: relative;
  display: block;
  width: 1px;
  height: 24px;
  background: currentColor;
}

.arrow::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translate(-50%, 0) rotate(45deg);
}

.explore-label {
  margin-top: 16px;
  font-size: 12px;
}

.intro-section {
  --font-cn: "nansongshuju", "南宋书局体", serif;
  position: relative;
  min-height: clamp(900px, 71.1vw, 1024px);
  overflow: hidden;
  background: #17110d;
  isolation: isolate;
}

.intro-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-copy {
  width: min(49vw, 700px);
  padding: clamp(64px, 5vw, 72px) 0 0 clamp(34px, 3.55vw, 51px);
}

.intro-copy h2,
.intro-copy p,
.artifact-note,
.intro-next,
.gateway-heading h2,
.gateway-heading p {
  margin: 0;
}

.intro-copy h2 {
  font-size: clamp(40px, 3.34vw, 48px);
  font-weight: 400;
  line-height: 1.04;
}

.intro-title-cn {
  margin-top: 18px !important;
  font-family: var(--font-cn);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.25;
}

.intro-keywords {
  margin-top: 15px !important;
  font-size: clamp(23px, 1.95vw, 28px);
  line-height: 1.2;
}

.intro-keywords-cn {
  margin-top: 11px !important;
  font-family: var(--font-cn);
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: 0.065em;
  line-height: 1.3;
}

.intro-description-en,
.intro-description-cn {
  max-width: 470px;
  line-height: 1.28;
}

.intro-description-en {
  margin-top: 28px !important;
  font-size: clamp(21px, 1.8vw, 26px);
}

.intro-description-cn {
  margin-top: 17px !important;
  font-family: var(--font-cn);
  font-size: clamp(18px, 1.53vw, 22px);
  font-weight: 400;
  line-height: 1.34;
}

.intro-section .artifact-note span:last-child {
  font-family: var(--font-cn);
  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.3;
}

.artifact-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.28;
}

.callout-connector {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.callout-connector-straight {
  top: 9px;
  right: calc(100% + 8px);
  height: 18px;
}

.artifact-note-wildcat .callout-connector-straight {
  width: clamp(190px, 17.65vw, 254px);
}

.artifact-note-tail .callout-connector-straight {
  width: clamp(180px, 16.25vw, 234px);
}

.callout-connector-pig {
  top: 4px;
  right: calc(100% + 6px);
  width: clamp(70px, 5.85vw, 84px);
  height: clamp(46px, 3.9vw, 56px);
}

.callout-connector-dog {
  top: 8px;
  right: calc(100% + 8px);
  width: clamp(94px, 7.8vw, 112px);
  height: clamp(70px, 5.85vw, 84px);
}

.artifact-note-pig {
  left: 30.8%;
  bottom: 29.9%;
}

.artifact-note-wildcat {
  right: 3.9%;
  top: 28.5%;
}

.artifact-note-tail {
  right: 10.1%;
  top: 15.2%;
}

.artifact-note-dog {
  right: 6.2%;
  bottom: 27.2%;
}

.intro-next {
  position: absolute;
  right: clamp(18px, 2.6vw, 38px);
  bottom: clamp(42px, 6.2vw, 90px);
  width: 240px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45;
}

.bestiary-gateway {
  --font-cn: "nansongshuju", "南宋书局体", serif;
  position: relative;
  display: grid;
  min-height: clamp(920px, 81.25vw, 1170px);
  padding: clamp(58px, 5.45vw, 78px) clamp(34px, 5.2vw, 75px) clamp(95px, 9.4vw, 136px);
  place-items: center;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.gateway-grid {
  display: grid;
  width: min(100%, 1291px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}

.gateway-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gateway-shade {
  position: absolute;
  z-index: 1;
  inset: clamp(58px, 5.45vw, 78px) clamp(34px, 5.1vw, 73px) clamp(95px, 9.4vw, 136px);
  background: rgba(30, 30, 30, 0.61);
}

.gateway-heading {
  position: absolute;
  z-index: 2;
  top: 51%;
  left: 50%;
  display: flex;
  width: min(76vw, 980px);
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gateway-heading h2 {
  font-family: "Cormorant SC", Georgia, serif;
  font-size: clamp(72px, 8.9vw, 128px);
  font-weight: 400;
  line-height: 0.94;
}

.gateway-heading p {
  margin-top: 40px;
  font-family: var(--font-cn);
  font-size: clamp(58px, 6.6vw, 95px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.gateway-arrow {
  display: grid;
  width: 80px;
  aspect-ratio: 1;
  margin-top: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 300;
}

.bestiary {
  --font-cn: "nansongshuju", "南宋书局体", serif;
  min-height: clamp(1900px, 169vw, 2433px);
  padding: 0 clamp(32px, 3.4vw, 49px) clamp(94px, 9vw, 130px);
  overflow: hidden;
  color: var(--ivory);
  background-color: #020506;
    background-image: url("https://res.cloudinary.com/e1yue0sy/image/upload/v1790132395/bestiary-gallery-background.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.bestiary-header {
  display: flex;
  min-height: 347px;
  align-items: center;
  flex-direction: column;
  padding-top: 0;
  text-align: center;
}

.bestiary-heading-row {
  display: flex;
  min-height: 122px;
  align-items: baseline;
  justify-content: center;
  gap: clamp(34px, 3.8vw, 55px);
}

.bestiary-heading-row h2,
.bestiary-title-cn,
.bestiary-lede,
.bestiary-lede-cn,
.bestiary-copy p {
  margin: 0;
}

.bestiary-heading-row h2 {
  font-size: clamp(48px, 4.45vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.bestiary-title-cn {
  font-family: var(--font-cn);
  font-size: clamp(38px, 3.35vw, 48px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.bestiary-lede {
  margin-top: 4px;
  font-size: clamp(18px, 1.53vw, 22px);
  line-height: 1.3;
}

.bestiary-lede-cn {
  margin-top: 12px;
  font-family: var(--font-cn);
  font-size: clamp(14px, 1.12vw, 16px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.35;
}

.bestiary-collection {
  width: min(1252px, calc(100vw - clamp(140px, 13.75vw, 198px)));
  margin-left: clamp(91px, 10.35vw, 149px);
}

.bestiary-row {
  display: grid;
  min-height: 388px;
}

.bestiary-row-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(54px, 6.8vw, 98px);
}

.bestiary-row-center {
  grid-template-columns: 1fr;
  padding-left: min(28vw, 402px);
}

.bestiary-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(230px, 300px) minmax(190px, 1fr);
  column-gap: clamp(16px, 1.6vw, 23px);
  align-items: start;
}

.bestiary-image {
  display: block;
  width: min(20.84vw, 300px);
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.bestiary-copy {
  margin-top: clamp(132px, 11.68vw, 168px);
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.2;
}

.bestiary-copy-lower {
  margin-top: clamp(148px, 13.2vw, 190px);
}

.bestiary-index {
  display: block;
  margin-bottom: 7px;
  font-size: 0;
}

.bestiary-name-cn {
  margin-top: 5px !important;
  font-family: var(--font-cn);
  font-size: 0.96em;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.22;
}

@media (max-width: 900px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    padding-inline: 18px;
  }

  .brand {
    font-size: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
  }

  .hero-title {
    width: min(69vw, 580px);
  }

  .hero-kicker {
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 0.12em;
  }

  .hero-relics {
    width: 130%;
  }

  .intro-section {
    min-height: 900px;
  }

  .intro-copy {
    width: 62%;
  }

  .artifact-note {
    font-size: 12px;
  }

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

  .gateway-shade {
    inset: 58px 34px 95px;
  }

  .bestiary {
    min-height: auto;
    padding: 64px 34px 96px;
    background-size: auto 816px;
  }

  .bestiary-header {
    min-height: 260px;
  }

  .bestiary-heading-row {
    min-height: auto;
    flex-wrap: wrap;
    gap: 18px 40px;
  }

  .bestiary-collection {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .bestiary-row,
  .bestiary-row-pair {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 54px;
  }

  .bestiary-row {
    margin-bottom: 54px;
  }

  .bestiary-row-center {
    padding-left: 0;
  }

  .bestiary-item {
    grid-template-columns: minmax(220px, 300px) minmax(180px, 1fr);
  }

  .bestiary-image {
    width: 100%;
  }

  .bestiary-copy,
  .bestiary-copy-lower {
    margin-top: clamp(80px, 15vw, 130px);
  }
}

@media (max-width: 560px) {
  .hero-title {
    width: 80vw;
  }

  .hero-relics {
    width: 180%;
    opacity: 0.82;
  }

  .hero-kicker {
    margin-top: 17px;
    font-size: 10px;
  }

  .explore {
    margin-top: 30px;
  }

  .intro-section {
    min-height: 960px;
  }

  .intro-background {
    opacity: 0.72;
    object-position: 57% center;
  }

  .intro-copy {
    width: 100%;
    padding: 48px 24px 0;
  }

  .intro-copy h2 {
    font-size: 34px;
  }

  .artifact-note {
    display: none;
  }

  .intro-next {
    right: 24px;
    bottom: 36px;
  }

  .bestiary-gateway {
    min-height: 940px;
    padding: 32px 20px 60px;
  }

  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gateway-grid img:nth-child(n + 11) {
    display: none;
  }

  .gateway-shade {
    inset: 32px 20px 60px;
  }

  .gateway-heading {
    width: 88vw;
  }

  .gateway-heading h2 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .gateway-heading p {
    margin-top: 24px;
    font-size: 48px;
  }

  .bestiary {
    padding: 54px 20px 72px;
  }

  .bestiary-header {
    min-height: 240px;
  }

  .bestiary-heading-row {
    flex-direction: column;
  }

  .bestiary-heading-row h2 {
    font-size: 48px;
  }

  .bestiary-title-cn {
    font-size: 38px;
  }

  .bestiary-row,
  .bestiary-row-pair {
    row-gap: 44px;
  }

  .bestiary-item {
    grid-template-columns: 1fr;
  }

  .bestiary-image {
    width: min(100%, 360px);
  }

  .bestiary-copy,
  .bestiary-copy-lower {
    margin-top: 18px;
    font-size: 14px;
  }

  .bestiary-index {
    font-size: 12px;
  }
}

/* Unified phone layout. Desktop rules above remain unchanged. */
@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    height: 60px;
    padding-inline: 16px;
  }

  .brand {
    max-width: 42vw;
    overflow: hidden;
    font-size: clamp(13px, 3.7vw, 16px);
    text-overflow: ellipsis;
  }

  .site-nav {
    gap: clamp(8px, 2.5vw, 14px);
    font-size: clamp(9px, 2.5vw, 11px);
  }

  .site-nav a:nth-child(2),
  .site-nav a:nth-child(4) {
    display: none;
  }

  .hero {
    min-height: 650px;
    height: 100svh;
  }

  .hero-relics {
    top: 60px;
    width: 170%;
    height: calc(100% - 60px);
    object-position: center;
  }

  .hero-title {
    top: 50%;
    width: min(88vw, 520px);
  }

  .title-art {
    transform: scale(.96);
  }

  .title-en {
    margin-top: -10px;
  }

  .hero-kicker {
    margin-top: 18px;
    font-size: clamp(10px, 3vw, 13px);
    letter-spacing: .15em;
    white-space: nowrap;
  }

  .explore {
    margin-top: 28px;
  }

  .explore-circle {
    width: 62px;
  }

  .intro-section {
    min-height: 860px;
  }

  .intro-background {
    object-position: 58% center;
    opacity: .74;
  }

  .intro-copy {
    width: 100%;
    padding: 48px 24px 0;
  }

  .intro-copy h2 {
    max-width: 12ch;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.02;
  }

  .intro-copy-cn,
  .intro-copy-subtitle-cn,
  .intro-copy-body-cn {
    max-width: 100%;
  }

  .artifact-note {
    display: none;
  }

  .intro-next {
    right: 24px;
    bottom: 32px;
  }

  .bestiary-gateway {
    min-height: 850px;
    padding: 28px 18px 52px;
  }

  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gateway-grid img:nth-child(n + 11) {
    display: none;
  }

  .gateway-shade {
    inset: 28px 18px 52px;
  }

  .gateway-heading {
    width: calc(100% - 44px);
  }

  .gateway-heading h2 {
    font-size: clamp(45px, 13vw, 66px);
    line-height: .98;
  }

  .gateway-heading p {
    margin-top: 18px;
    font-size: clamp(40px, 11vw, 52px);
  }

  .bestiary {
    padding: 50px 18px 68px;
    background-size: auto 720px;
  }

  .bestiary-header {
    min-height: 230px;
  }

  .bestiary-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .bestiary-heading-row h2 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .bestiary-title-cn {
    font-size: clamp(34px, 10vw, 44px);
  }

  .bestiary-collection {
    width: 100%;
  }

  .bestiary-row,
  .bestiary-row-pair {
    min-height: 0;
    margin-bottom: 50px;
    padding-left: 0;
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 42px;
  }

  .bestiary-row-center {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .bestiary-row-center .bestiary-item {
    grid-column: 1 / span 1;
  }

  .bestiary-item {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .bestiary-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .bestiary-copy,
  .bestiary-copy-lower {
    min-width: 0;
    margin-top: 12px;
    overflow-wrap: anywhere;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.25;
  }

  .bestiary-index {
    font-size: 11px;
  }

  .archives-header {
    min-height: 390px;
    padding: 66px 22px 44px;
  }

  .archives-heading-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .archives-heading-row h2 {
    font-size: clamp(43px, 12vw, 56px);
  }

  .archives-title-cn {
    font-size: clamp(35px, 10vw, 44px);
  }

  .archives-lede,
  .archives-lede-cn {
    font-size: 16px;
  }

  .archive-item,
  .archive-item-elephant {
    min-height: 0;
    padding: 58px 22px 68px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 28px;
    overflow: hidden;
  }

  .archive-primary,
  .archive-record,
  .archive-visual,
  .archive-detail-one,
  .archive-detail-two,
  .archive-detail-three {
    grid-column: 1;
    grid-row: auto;
  }

  .archive-primary { order: 1; }
  .archive-record {
    position: static;
    order: 2;
    width: auto;
  }
  .archive-visual { order: 3; }
  .archive-detail-one { order: 4; margin-top: 0; }
  .archive-detail-two { order: 5; }
  .archive-detail-three { order: 6; }

  .archive-title {
    font-size: clamp(27px, 8vw, 34px);
  }

  .archive-title span {
    white-space: normal;
  }

  .archive-meta,
  .archive-meta-cn,
  .archive-detail {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .archive-image {
    width: min(100%, 430px);
    max-width: 100%;
    height: auto;
  }

  .archive-detail-image,
  .archive-callouts {
    display: none;
  }

  .beasts-in-motion {
    min-height: 0;
    padding: 46px 22px 74px;
    background-size: auto 100%;
  }

  .motion-heading {
    min-height: 205px;
  }

  .motion-heading h2 {
    margin-left: 0;
    font-size: clamp(43px, 12.5vw, 62px);
    line-height: .96;
    white-space: normal;
  }

  .motion-heading p {
    top: 108px;
    right: 0;
    font-size: clamp(40px, 11vw, 50px);
  }

  .motion-gallery {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 54px;
  }

  .motion-item,
  .motion-item-info-first,
  .motion-item-four {
    width: min(100%, 340px);
    margin-top: 0;
  }

  .motion-item-info-first .motion-info {
    order: 2;
    margin-top: 14px;
  }

  .motion-item-info-first .motion-image {
    order: 1;
    margin-top: 0;
  }

  .motion-image {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1;
  }

  .motion-info {
    min-height: 0;
    font-size: 14px;
    line-height: 1.25;
  }

  .site-footer {
    min-height: 0;
    padding: 142px 22px 0;
  }

  .footer-contact {
    width: calc(100% - 44px);
    min-height: 82px;
    font-size: 28px;
  }

  .footer-main {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 58px;
    padding-bottom: 64px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 18px;
  }

  .footer-nav a {
    font-size: 17px;
  }

  .footer-wordmark {
    width: 100%;
    margin-top: 0;
  }

  .footer-wordmark p:first-child {
    font-size: clamp(48px, 14vw, 66px);
    line-height: .98;
  }

  .footer-wordmark p[lang="zh-CN"] {
    font-size: clamp(39px, 11vw, 50px);
  }

  .footer-bottom {
    min-height: 0;
    padding: 22px 0 30px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .footer-motto,
  .footer-credit {
    grid-column: 1;
    justify-self: start;
    font-size: 15px;
    white-space: normal;
  }
}

/* Closing contact and footer — all selectors remain locally scoped. */
.site-footer {
  --font-cn: "nansongshuju", "南宋书局体", serif;
  position: relative;
  min-height: 694px;
  padding: 235px clamp(42px, 6.32vw, 91px) 0;
  color: #fff;
  background: #000;
}

.footer-contact {
  position: absolute;
  top: -26px;
  left: 50%;
  z-index: 2;
  width: min(64.93vw, 935px);
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 40px;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
}

.footer-main {
  min-height: 372px;
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  column-gap: clamp(50px, 7vw, 110px);
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.footer-nav a {
  color: inherit;
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.footer-wordmark {
  justify-self: end;
  width: min(100%, 947px);
  margin-top: -9px;
  text-align: right;
}

.footer-wordmark p {
  margin: 0;
}

.footer-wordmark p:first-child {
  font-family: "Crimson Text", serif;
  font-size: clamp(72px, 7.3vw, 105px);
  line-height: .98;
}

.footer-wordmark p[lang="zh-CN"] {
  font-family: var(--font-cn);
  font-size: clamp(54px, 5.2vw, 75px);
  line-height: 1;
  letter-spacing: .035em;
}

.footer-bottom {
  min-height: 87px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .85);
}

.footer-bottom p {
  margin: 0;
}

.footer-motto {
  grid-column: 2;
  font-family: "Crimson Text", serif;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-motto span {
  font-family: var(--font-cn);
}

.footer-credit {
  grid-column: 3;
  justify-self: end;
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-footer {
    min-height: auto;
    padding-top: 190px;
  }

  .footer-contact {
    width: min(86vw, 760px);
    min-height: 104px;
    font-size: 34px;
  }

  .footer-main {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 70px;
    padding-bottom: 76px;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-wordmark {
    justify-self: stretch;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding-bottom: 28px;
  }

  .footer-motto { grid-column: 1; white-space: normal; }
  .footer-credit { grid-column: 2; }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 150px 24px 0;
  }

  .footer-contact {
    min-height: 82px;
    font-size: 28px;
  }

  .footer-nav {
    gap: 18px 24px;
  }

  .footer-nav a {
    font-size: 16px;
  }

  .footer-wordmark p:first-child {
    font-size: clamp(52px, 16vw, 76px);
  }

  .footer-wordmark p[lang="zh-CN"] {
    font-size: 48px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-motto,
  .footer-credit {
    grid-column: 1;
    justify-self: start;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .site-nav a,
  .explore-circle {
    transition: none;
  }
}

/* ARCHIVES — scoped so completed sections remain untouched. */
.archives {
  --font-cn: "nansongshuju", "南宋书局体", serif;
  color: #f4f0e8;
  background: #000;
}

.archives-header {
  position: relative;
  min-height: max(403px, 33.333vw);
  padding: 80px 5.5vw 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #090506;
  overflow: hidden;
}

.archives-header-background {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  aspect-ratio: 3 / 1;
}

.archives-header-background img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.archives-header > :not(.archives-header-background) {
  position: relative;
  z-index: 1;
}

.archives-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(24px, 2.6vw, 38px);
}

.archives-heading-row h2,
.archives-title-cn,
.archives-lede,
.archives-lede-cn,
.archive-primary p,
.archive-detail h4,
.archive-detail p,
.archive-title,
.archive-record {
  margin: 0;
}

.archives-heading-row h2 {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(46px, 4.45vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.archives-title-cn {
  font-family: var(--font-cn);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: .04em;
}

.archives-lede {
  margin-top: 34px;
  font-family: "Crimson Text", serif;
  font-size: 20px;
  line-height: 1.35;
}

.archives-lede-cn {
  margin-top: 22px;
  font-family: var(--font-cn);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: .06em;
}

.archives-list {
  background: #000;
}

.archive-item {
  position: relative;
  min-height: 810px;
  padding: 86px 5.55vw 48px;
  display: grid;
  grid-template-columns: minmax(270px, 32%) minmax(360px, 1fr) minmax(280px, 29%);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(28px, 3.5vw, 58px);
  overflow: hidden;
  font-family: "Crimson Text", serif;
  isolation: isolate;
}

.archive-item-elephant {
  min-height: 880px;
  padding-top: 105px;
}

.archive-primary {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
}

.archive-sequence,
.archive-record {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.archive-title {
  margin-top: 11px;
  font-family: "Crimson Text", serif;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.14;
}

.archive-title span,
.archive-meta-cn,
.archive-detail [lang="zh-CN"] {
  font-family: var(--font-cn);
}

.archive-title span {
  white-space: nowrap;
  font-size: .92em;
  letter-spacing: .05em;
}

.archive-meta,
.archive-meta-cn {
  font-size: 20px;
  line-height: 1.25;
}

.archive-meta {
  margin-top: 28px !important;
}

.archive-meta-cn {
  margin-top: 2px !important;
  letter-spacing: .035em;
}

.archive-record {
  position: absolute;
  z-index: 2;
  top: 95px;
  right: 2.4vw;
  width: 168px;
}

.archive-visual {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.archive-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.archive-image-ram { width: min(100%, 440px); }
.archive-image-wildcat { width: min(100%, 400px); }
.archive-image-elephant { width: min(100%, 555px); }

.archive-detail {
  position: relative;
  z-index: 2;
  font-size: 20px;
  line-height: 1.2;
}

.archive-detail h4 {
  font: inherit;
  font-weight: 400;
  margin-bottom: 5px;
}

.archive-detail p[lang="zh-CN"] {
  margin-top: 2px;
  line-height: 1.28;
  letter-spacing: .025em;
}

.archive-detail-one,
.archive-detail-two {
  grid-column: 1;
  max-width: 430px;
}

.archive-detail-one { grid-row: 2; align-self: start; margin-top: 58px; }
.archive-detail-two { grid-row: 3; align-self: end; }
.archive-detail-three { grid-column: 3; grid-row: 1 / span 2; align-self: center; max-width: 405px; }

.archive-detail-image {
  position: absolute;
  right: 11%;
  bottom: 58px;
  z-index: 2;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.archive-callouts {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.archive-callouts circle,
.archive-callouts polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 1000px) {
  .archives-header { min-height: 360px; }
  .archive-item,
  .archive-item-elephant {
    min-height: auto;
    padding: 72px 6vw;
    grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
    grid-template-rows: auto auto auto;
    row-gap: 42px;
  }
  .archive-record { right: 6vw; }
  .archive-visual { grid-column: 2; grid-row: 1 / span 2; }
  .archive-detail-one { grid-column: 1; grid-row: 2; margin-top: 0; }
  .archive-detail-two { grid-column: 1; grid-row: 3; }
  .archive-detail-three { grid-column: 2; grid-row: 3; }
  .archive-detail-image { display: none; }
  .archive-callouts { display: none; }
}

@media (max-width: 680px) {
  .archives-header { min-height: 390px; padding-inline: 24px; }
  .archives-heading-row { flex-direction: column; align-items: center; gap: 12px; }
  .archives-lede { font-size: 17px; }
  .archives-lede-cn { font-size: 17px; }
  .archive-item,
  .archive-item-elephant {
    padding: 64px 24px 72px;
    grid-template-columns: 1fr;
    row-gap: 34px;
  }
  .archive-record { position: static; grid-column: 1; grid-row: 2; width: auto; }
  .archive-primary { grid-column: 1; grid-row: 1; }
  .archive-visual { grid-column: 1; grid-row: 3; }
  .archive-detail-one,
  .archive-detail-two,
  .archive-detail-three { grid-column: 1; max-width: none; }
  .archive-detail-one { grid-row: 4; }
  .archive-detail-two { grid-row: 5; }
  .archive-detail-three { grid-row: 6; }
  .archive-meta,
  .archive-meta-cn,
  .archive-detail { font-size: 17px; }
}

/* BEASTS IN MOTION — isolated from all completed sections above. */
.beasts-in-motion {
  --font-cn: "nansongshuju", "南宋书局体", serif;
  min-height: 778px;
  padding: 28px clamp(40px, 6.32vw, 91px) 48px;
  color: #f4f0e8;
    background: #030505 url("https://res.cloudinary.com/e1yue0sy/image/upload/v1790132392/archive-black-texture-background.png") center / cover no-repeat;
  overflow: hidden;
}

.motion-heading {
  position: relative;
  min-height: 284px;
}

.motion-heading h2,
.motion-heading p,
.motion-info p {
  margin: 0;
}

.motion-heading h2 {
  margin-left: clamp(0px, 4.8vw, 69px);
  font-family: "Crimson Text", serif;
  font-size: clamp(68px, 8.9vw, 128px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.motion-heading p {
  position: absolute;
  top: 118px;
  right: clamp(40px, 6.67vw, 96px);
  font-family: var(--font-cn);
  font-size: clamp(50px, 5.55vw, 80px);
  line-height: 1;
  letter-spacing: .04em;
}

.motion-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 240px));
  justify-content: space-between;
  align-items: start;
  gap: clamp(28px, 4vw, 84px);
}

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

.motion-item-info-first {
  margin-top: 16px;
}

.motion-item-four {
  margin-top: -8px;
}

.motion-image {
  width: min(100%, 240px);
  aspect-ratio: 1;
  overflow: hidden;
}

.motion-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.motion-info {
  min-height: 150px;
  font-family: "Zen Old Mincho", serif;
  font-size: 15px;
  line-height: 1.16;
}

.motion-item-image-first .motion-info {
  margin-top: 14px;
}

.motion-item-info-first .motion-image {
  margin-top: 13px;
}

.motion-index {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1;
}

.motion-info p[lang="zh-CN"] {
  font-family: var(--font-cn);
  letter-spacing: .025em;
}

@media (max-width: 1000px) {
  .beasts-in-motion {
    min-height: auto;
    padding: 48px 6vw 80px;
    background-size: auto 100%;
  }

  .motion-heading {
    min-height: 240px;
  }

  .motion-heading p {
    top: 98px;
  }

  .motion-gallery {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: space-around;
    row-gap: 64px;
  }
}

@media (max-width: 560px) {
  .beasts-in-motion {
    padding: 44px 24px 72px;
  }

  .motion-heading {
    min-height: 210px;
  }

  .motion-heading h2 {
    font-size: clamp(46px, 13.5vw, 68px);
    white-space: normal;
  }

  .motion-heading p {
    top: 112px;
    right: 0;
    font-size: 46px;
  }

  .motion-gallery {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .motion-item,
  .motion-item-info-first,
  .motion-item-four {
    width: min(100%, 320px);
    margin-top: 0;
  }

  .motion-item-info-first .motion-info { order: 2; margin-top: 14px; }
  .motion-item-info-first .motion-image { order: 1; margin-top: 0; }
  .motion-image { width: min(100%, 280px); }
}

/* Final cascade guard for the complete 0–767px phone breakpoint. */
@media (max-width: 767px) {
  .bestiary-collection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 18px;
  }

  .bestiary-row,
  .bestiary-row-pair,
  .bestiary-row-center {
    display: contents;
  }

  .bestiary-row-center .bestiary-item {
    grid-column: auto;
  }

  .bestiary-item {
    align-self: start;
  }

  .site-header {
    height: 92px;
    padding: 10px 16px 12px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .brand {
    max-width: 100%;
    overflow: visible;
    font-size: clamp(14px, 3.8vw, 17px);
    text-overflow: clip;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: clamp(9px, 2.55vw, 11px);
  }

  .site-nav a:nth-child(2),
  .site-nav a:nth-child(4) {
    display: inline;
  }

  .hero-relics {
    top: 92px;
    height: calc(100% - 92px);
  }

  .archive-item,
  .archive-item-elephant {
    min-height: 0;
    padding: 58px 22px 68px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 28px;
  }

  .archive-primary,
  .archive-record,
  .archive-visual,
  .archive-detail-one,
  .archive-detail-two,
  .archive-detail-three {
    grid-column: 1;
    grid-row: auto;
  }

  .archive-primary { order: 1; }
  .archive-record { position: static; order: 2; width: auto; }
  .archive-visual { order: 3; }
  .archive-detail-one { order: 4; margin-top: 0; }
  .archive-detail-two { order: 5; }
  .archive-detail-three { order: 6; }
  .archive-detail-image,
  .archive-callouts { display: none; }

  .beasts-in-motion {
    min-height: 0;
    padding: 46px 22px 74px;
  }

  .motion-heading { min-height: 205px; }
  .motion-heading h2 {
    margin-left: 0;
    font-size: clamp(43px, 12.5vw, 62px);
    white-space: normal;
  }
  .motion-heading p {
    top: 108px;
    right: 0;
    font-size: clamp(40px, 11vw, 50px);
  }
  .motion-gallery {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 54px;
  }
  .motion-item,
  .motion-item-info-first,
  .motion-item-four {
    width: min(100%, 340px);
    margin-top: 0;
  }
  .motion-item-info-first .motion-info { order: 2; margin-top: 14px; }
  .motion-item-info-first .motion-image { order: 1; margin-top: 0; }

  .site-footer {
    min-height: 0;
    padding: 142px 22px 0;
  }
  .footer-contact {
    width: calc(100% - 44px);
    min-height: 82px;
    font-size: 28px;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 58px;
    padding-bottom: 64px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .footer-wordmark { width: 100%; margin-top: 0; }
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }
  .footer-motto,
  .footer-credit {
    grid-column: 1;
    justify-self: start;
    white-space: normal;
  }
}
