/* =========================================================
   明蜀王陵 · 文化导览
   Palette: 纸、墨、朱砂、金、青
   ========================================================= */

:root {
  --paper: #f2ead9;
  --paper-light: #f8f2e6;
  --paper-deep: #e6dac2;
  --ink: #19140f;
  --ink-2: #221a13;
  --ink-3: #2d2218;
  --ink-muted: #726557;
  --red: #9c2f25;
  --red-bright: #b43a2f;
  --red-deep: #6f1d17;
  --gold: #c19b58;
  --gold-soft: #dcc18b;
  --jade: #4d6757;
  --line: rgba(33, 25, 17, 0.14);
  --line-strong: rgba(33, 25, 17, 0.25);
  --line-light: rgba(242, 234, 217, 0.16);
  --paper-80: rgba(242, 234, 217, 0.8);
  --paper-60: rgba(242, 234, 217, 0.6);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: min(1280px, calc(100vw - 104px));
  --header-h: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

body.lightbox-open,
body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: var(--paper-light);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 74px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 12000;
  padding: 10px 18px;
  background: var(--paper-light);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 148px 0;
}

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

body.is-ready .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-seal {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--red-bright);
  color: var(--paper);
  background: var(--red);
  font-family: var(--serif);
  font-size: 30px;
  animation: sealPulse 2s var(--ease-soft) infinite;
}

.loader p {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
}

.loader-line {
  position: relative;
  display: block;
  width: 150px;
  height: 1px;
  background: rgba(242, 234, 217, 0.18);
  overflow: hidden;
}

.loader-line i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  animation: loaderLine 1.6s var(--ease-soft) infinite;
}

.loader small {
  font-size: 9px;
  letter-spacing: 0.42em;
  color: rgba(242, 234, 217, 0.45);
}

@keyframes loaderLine {
  0% { transform: scaleX(0) translateX(0); }
  55% { transform: scaleX(1) translateX(0); }
  100% { transform: scaleX(1) translateX(102%); }
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 58, 47, 0); }
  50% { box-shadow: 0 0 0 8px rgba(180, 58, 47, 0.12); }
}

/* ---------- Progress & header ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--header-h);
  padding: 0 48px;
  color: var(--paper);
  transition: height 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 70px;
  background: rgba(22, 16, 11, 0.82);
  border-bottom-color: rgba(242, 234, 217, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  border: 1px solid rgba(242, 234, 217, 0.22);
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-seal {
  transform: rotate(-6deg);
}

.brand-text,
.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.18em;
}

.brand-text small,
.footer-brand small {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(242, 234, 217, 0.5);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.3vw, 38px);
  margin-left: auto;
  margin-right: clamp(24px, 3vw, 48px);
}

.desktop-nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(242, 234, 217, 0.7);
  transition: color 0.3s;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--paper-light);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 17px;
  border: 1px solid rgba(242, 234, 217, 0.28);
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}

.header-cta span {
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}

.header-cta:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.header-cta:hover span {
  transform: translate(2px, -2px);
  color: var(--red);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }

body.menu-open .menu-toggle span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 100px 28px 34px;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.5s var(--ease), visibility 0.5s, clip-path 0.7s var(--ease);
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
}

.mobile-menu-inner {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.mobile-menu-kicker {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  margin: 18px 0 26px;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 9px 0;
  font-family: var(--serif);
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1.35;
  border-bottom: 1px solid rgba(242, 234, 217, 0.08);
}

.mobile-menu nav a span {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  color: rgba(242, 234, 217, 0.45);
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -8% 0 -8%;
  z-index: -2;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-position: center 56%;
  filter: saturate(0.88) contrast(1.06) brightness(0.82);
  transform: scale(1.055);
  animation: heroZoom 16s var(--ease-soft) both;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  will-change: transform;
}

.hero-media.is-loaded img {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 10, 7, 0.9) 0%, rgba(14, 10, 7, 0.58) 38%, rgba(14, 10, 7, 0.08) 76%),
    linear-gradient(0deg, rgba(14, 10, 7, 0.92) 0%, rgba(14, 10, 7, 0.18) 42%, rgba(14, 10, 7, 0.2) 100%),
    radial-gradient(circle at 68% 38%, rgba(193, 155, 88, 0.09), transparent 52%);
}

.dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.hero-frame {
  position: absolute;
  inset: 22px;
  z-index: 3;
  border: 1px solid rgba(220, 193, 139, 0.2);
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(220, 193, 139, 0.55);
  border-style: solid;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100vw - 104px));
  margin: 0 0 8.5vh 6.2vw;
  padding-top: calc(var(--header-h) + 80px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(242, 234, 217, 0.7);
  opacity: 0;
  animation: fadeUp 1s 0.55s var(--ease) forwards;
}

.hero-kicker i {
  width: 38px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  display: flex;
  gap: 0.035em;
  font-family: var(--serif);
  font-size: clamp(84px, 12.2vw, 188px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--paper-light);
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.28);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.36em) rotate(1.5deg);
  animation: charIn 1.25s var(--ease) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.63s; }
.hero-title span:nth-child(2) { animation-delay: 0.73s; }
.hero-title span:nth-child(3) { animation-delay: 0.83s; }
.hero-title span:nth-child(4) { animation-delay: 0.93s; }

.hero-en {
  margin-top: 17px;
  font-size: 9px;
  letter-spacing: 0.55em;
  color: var(--gold-soft);
  opacity: 0;
  animation: fadeUp 1s 1.12s var(--ease) forwards;
}

.hero-sub {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 30px);
  letter-spacing: 0.14em;
  color: var(--paper-light);
  opacity: 0;
  animation: fadeUp 1s 1.2s var(--ease) forwards;
}

.hero-desc {
  max-width: 560px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 2;
  color: rgba(242, 234, 217, 0.7);
  opacity: 0;
  animation: fadeUp 1s 1.3s var(--ease) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 1s 1.4s var(--ease) forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 158px;
  padding: 13px 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.btn span {
  transition: transform 0.4s var(--ease);
}

.btn:hover span {
  transform: translate(3px, -2px);
}

.btn-solid {
  background: var(--paper-light);
  color: var(--ink);
}

.btn-solid:hover {
  background: var(--red);
  color: var(--paper-light);
}

.btn-ghost {
  border-color: rgba(242, 234, 217, 0.35);
  color: var(--paper-light);
}

.btn-ghost:hover {
  background: rgba(242, 234, 217, 0.1);
  border-color: var(--paper-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 48px;
  color: rgba(242, 234, 217, 0.44);
  font-size: 9px;
  letter-spacing: 0.17em;
  opacity: 0;
  animation: fadeUp 1s 1.5s var(--ease) forwards;
}

.hero-meta span {
  position: relative;
}

.hero-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-aside {
  position: absolute;
  top: 50%;
  right: 58px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: rgba(242, 234, 217, 0.42);
  font-size: 9px;
  letter-spacing: 0.4em;
}

.hero-aside i {
  width: 1px;
  height: 56px;
  background: rgba(220, 193, 139, 0.4);
}

.scroll-cue {
  position: absolute;
  right: 52px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(242, 234, 217, 0.55);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 52px;
  background: rgba(242, 234, 217, 0.18);
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 55%;
  background: var(--gold-soft);
  animation: scrollCue 2.2s var(--ease-soft) infinite;
}

@keyframes heroZoom {
  from { transform: scale(1.055); }
  to { transform: scale(1.115); }
}

@keyframes charIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollCue {
  0% { top: -60%; }
  70%, 100% { top: 110%; }
}

/* ---------- Shared headings ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.eyebrow i {
  display: block;
  width: 26px;
  height: 1px;
  margin: 0 2px;
  background: var(--line-strong);
}

.eyebrow.light {
  color: rgba(242, 234, 217, 0.52);
}

.eyebrow.light span {
  color: var(--gold);
}

.eyebrow.light i {
  background: rgba(242, 234, 217, 0.25);
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.015em;
}

.section-heading h2 em {
  color: var(--red);
  font-style: normal;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.72fr);
  gap: 60px;
  align-items: end;
}

.lede {
  max-width: 460px;
  justify-self: end;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 2.05;
}

.lede.light {
  color: rgba(242, 234, 217, 0.6);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--delay, 0) * 110ms);
}

.reveal[data-delay="1"] { --delay: 1; }
.reveal[data-delay="2"] { --delay: 2; }
.reveal[data-delay="3"] { --delay: 3; }

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Intro ---------- */

.intro {
  background:
    radial-gradient(circle at 8% 18%, rgba(193, 155, 88, 0.09), transparent 25%),
    radial-gradient(circle at 92% 80%, rgba(156, 47, 37, 0.05), transparent 30%),
    var(--paper);
}

.intro::before {
  content: "明";
  position: absolute;
  top: 80px;
  right: 4.5vw;
  font-family: var(--serif);
  font-size: clamp(180px, 22vw, 360px);
  line-height: 1;
  color: rgba(33, 25, 17, 0.025);
  pointer-events: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  margin-top: 88px;
}

.intro-figure {
  position: relative;
  padding: 0 0 0 22px;
}

.intro-figure::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  width: 62%;
  height: 70%;
  border: 1px solid rgba(156, 47, 37, 0.4);
  pointer-events: none;
}

.image-shell {
  position: relative;
  aspect-ratio: 4 / 3.8;
  overflow: hidden;
  background: var(--paper-deep);
}

.image-shell img {
  object-position: center;
  transition: transform 1.2s var(--ease);
}

.intro-figure:hover .image-shell img {
  transform: scale(1.035);
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(248, 242, 230, 0.86);
  border-style: solid;
  pointer-events: none;
}

.frame-corner.tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.frame-corner.tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.frame-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.frame-corner.br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }

.intro-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.intro-figure figcaption span:first-child {
  color: var(--red);
  font-family: var(--serif);
}

.figure-note {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.figure-note span {
  font-family: var(--serif);
  font-size: 14px;
  color: #4b4035;
  letter-spacing: 0.02em;
}

.figure-note small {
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.intro-copy {
  padding-top: 8px;
}

.intro-copy p {
  max-width: 650px;
  color: #3e342b;
  font-size: 15px;
  line-height: 2.1;
}

.intro-copy p + p {
  margin-top: 20px;
}

.dropcap::first-letter {
  float: left;
  margin: 10px 12px 0 0;
  color: var(--red);
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.78;
}

.inline-quote {
  margin: 36px 0 0;
  padding: 21px 0 21px 26px;
  border-left: 1px solid var(--red);
}

.inline-quote p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.7;
  color: var(--ink);
}

.inline-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.18em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.stat {
  position: relative;
  padding: 24px 12px 18px 0;
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.stat strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat strong small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.stat p {
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 15px 0;
  background: var(--red-deep);
  color: rgba(242, 234, 217, 0.72);
  border-top: 1px solid rgba(242, 234, 217, 0.1);
  border-bottom: 1px solid rgba(242, 234, 217, 0.1);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
}

.marquee-track i {
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Tombs ---------- */

.tombs {
  background:
    radial-gradient(circle at 76% 12%, rgba(193, 155, 88, 0.08), transparent 30%),
    linear-gradient(160deg, #1d1711 0%, #15110d 58%, #1b1510 100%);
  color: var(--paper);
  overflow: hidden;
}

.tombs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 234, 217, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 234, 217, 0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  pointer-events: none;
}

.tombs .section-heading h2 em {
  color: var(--gold-soft);
}

.tomb-tabs {
  display: flex;
  gap: clamp(36px, 6vw, 84px);
  margin-top: 72px;
  border-bottom: 1px solid var(--line-light);
}

.tomb-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0 0 24px;
  color: rgba(242, 234, 217, 0.42);
  text-align: left;
  transition: color 0.4s;
}

.tomb-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.tomb-tab > span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.tomb-tab strong {
  font-family: var(--serif);
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.tomb-tab small {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.tomb-tab:hover,
.tomb-tab.is-active {
  color: var(--paper);
}

.tomb-tab.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.tomb-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
  padding-top: 58px;
}

.tomb-panel[hidden] {
  display: none;
}

.tomb-panel.is-active {
  animation: panelIn 0.9s var(--ease) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.tomb-figure {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border: 1px solid rgba(242, 234, 217, 0.15);
  padding: 14px;
}

.tomb-figure picture {
  height: 100%;
  overflow: hidden;
}

.tomb-figure img {
  filter: saturate(0.82) brightness(0.86);
  transition: transform 1.2s var(--ease);
}

.tomb-figure:hover img {
  transform: scale(1.03);
}

.tomb-figure figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 234, 217, 0.26);
  color: rgba(242, 234, 217, 0.72);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.tomb-figure figcaption span:last-child {
  color: var(--gold-soft);
}

.tomb-kicker {
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.tomb-content h3 {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 11px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 70px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.tomb-content h3 span {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(242, 234, 217, 0.45);
  border-bottom: 1px solid rgba(242, 234, 217, 0.24);
  padding-bottom: 5px;
}

.tomb-content > p {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(242, 234, 217, 0.62);
  font-size: 14px;
  line-height: 2.1;
}

.tomb-content .tomb-lead {
  margin-top: 24px;
  color: rgba(242, 234, 217, 0.84);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line-light);
}

.fact-list > div {
  padding: 15px 20px 15px 0;
  border-bottom: 1px solid var(--line-light);
}

.fact-list > div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line-light);
}

.fact-list dt {
  color: rgba(242, 234, 217, 0.4);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.fact-list dd {
  margin-top: 4px;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.tomb-quote {
  margin-top: 30px;
  padding-left: 20px;
  border-left: 1px solid var(--gold);
}

.tomb-quote p {
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(242, 234, 217, 0.9);
}

.tomb-quote cite {
  display: block;
  margin-top: 6px;
  color: rgba(242, 234, 217, 0.4);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.tomb-note {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 20px;
  background: rgba(193, 155, 88, 0.08);
  border: 1px solid rgba(193, 155, 88, 0.2);
}

.tomb-note span {
  flex-shrink: 0;
  color: var(--gold-soft);
  font-size: 9px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.tomb-note p {
  color: rgba(242, 234, 217, 0.68);
  font-size: 12px;
  line-height: 1.9;
}

.tomb-disclaimer {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(242, 234, 217, 0.35);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ---------- Axis ---------- */

.axis {
  background:
    radial-gradient(circle at 16% 22%, rgba(156, 47, 37, 0.055), transparent 32%),
    var(--paper-light);
}

.axis-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
  margin-top: 76px;
}

.axis-plan {
  position: relative;
  padding: 26px 26px 18px;
  background: #17120e;
  color: var(--paper);
  border: 1px solid rgba(193, 155, 88, 0.3);
  overflow: hidden;
}

.axis-plan::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 234, 217, 0.08);
  pointer-events: none;
}

.plan-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px 16px;
  border-bottom: 1px solid rgba(242, 234, 217, 0.12);
}

.plan-title span {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.16em;
}

.plan-title small {
  color: rgba(242, 234, 217, 0.35);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.axis-plan svg {
  width: 100%;
  max-height: 650px;
  margin-top: 10px;
}

.plan-axis line {
  stroke: rgba(193, 155, 88, 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.plan-node {
  cursor: pointer;
  outline: none;
}

.plan-node rect,
.plan-node path.plan-roof,
.plan-node path.plan-path {
  fill: rgba(193, 155, 88, 0.04);
  stroke: rgba(242, 234, 217, 0.4);
  stroke-width: 1.2;
  transition: fill 0.4s, stroke 0.4s, filter 0.4s;
}

.plan-node path.plan-path {
  fill: none;
  stroke-dasharray: 5 6;
}

.plan-node circle {
  fill: rgba(193, 155, 88, 0.28);
  stroke: rgba(193, 155, 88, 0.6);
  stroke-width: 1;
  transition: fill 0.4s, stroke 0.4s;
}

.plan-node text {
  fill: rgba(242, 234, 217, 0.55);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: fill 0.4s;
}

.plan-node:hover rect,
.plan-node:hover path.plan-roof,
.plan-node:hover path.plan-path,
.plan-node.is-active rect,
.plan-node.is-active path.plan-roof,
.plan-node.is-active path.plan-path {
  fill: rgba(193, 155, 88, 0.18);
  stroke: var(--gold-soft);
  filter: drop-shadow(0 0 7px rgba(193, 155, 88, 0.25));
}

.plan-node:hover text,
.plan-node.is-active text {
  fill: var(--gold-soft);
}

.plan-node:hover circle,
.plan-node.is-active circle {
  fill: var(--gold);
  stroke: var(--gold-soft);
}

.plan-node:focus-visible rect,
.plan-node:focus-visible path {
  stroke: var(--paper);
}

.plan-courtyard rect {
  fill: none;
  stroke: rgba(242, 234, 217, 0.12);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.plan-courtyard line {
  stroke: rgba(242, 234, 217, 0.12);
}

.plan-label {
  fill: rgba(242, 234, 217, 0.3);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.35em;
}

.plan-node .plan-label {
  fill: var(--paper);
  font-size: 11px;
  letter-spacing: 0;
}

.plan-detail {
  stroke: rgba(193, 155, 88, 0.6);
  stroke-dasharray: 2 3;
}

.plan-wall {
  stroke: var(--gold-soft);
  stroke-width: 2;
}

.plan-legend circle {
  fill: var(--red-bright);
}

.plan-legend text {
  fill: rgba(242, 234, 217, 0.3);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.plan-scan {
  position: absolute;
  top: 15%;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 193, 139, 0.55), transparent);
  opacity: 0;
  pointer-events: none;
}

.axis-plan:hover .plan-scan {
  opacity: 1;
  animation: scan 4.5s var(--ease-soft) infinite;
}

@keyframes scan {
  0% { top: 12%; opacity: 0; }
  18% { opacity: 0.55; }
  82% { opacity: 0.55; }
  100% { top: 90%; opacity: 0; }
}

.axis-panel {
  padding: 8px 0;
}

.axis-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 13px;
}

.axis-step i {
  width: 38px;
  height: 1px;
  background: rgba(156, 47, 37, 0.4);
}

.axis-step em {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.axis-panel h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.axis-panel > p {
  max-width: 540px;
  min-height: 106px;
  margin-top: 22px;
  color: #4b4035;
  font-size: 15px;
  line-height: 2.1;
}

.axis-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.axis-meta > div {
  padding: 14px 0;
}

.axis-meta > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.axis-meta dt {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.axis-meta dd {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.05em;
}

.axis-nav {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.round-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.axis-hint {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.2em;
}

/* ---------- Relics ---------- */

.relics {
  background:
    linear-gradient(180deg, var(--paper) 0%, #efe5d2 100%);
}

.relic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  margin-top: 76px;
}

.relic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.5s;
}

.relic-card:hover {
  box-shadow: 0 24px 60px rgba(25, 20, 15, 0.18);
}

.relic-tall {
  grid-row: span 2;
}

.relic-media {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 250px;
}

.relic-tall .relic-media {
  aspect-ratio: 4 / 5;
  flex: none;
}

.relic-mid .relic-media {
  aspect-ratio: 16 / 8.2;
  flex: none;
}

.relic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 13, 9, 0.42));
  pointer-events: none;
}

.relic-media img {
  transition: transform 1.2s var(--ease);
}

.relic-card:hover .relic-media img {
  transform: scale(1.045);
}

.relic-body {
  position: relative;
  padding: 25px 28px 28px;
}

.relic-no {
  position: absolute;
  top: -18px;
  right: 24px;
  color: rgba(242, 234, 217, 0.18);
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
}

.relic-kind {
  color: var(--gold-soft);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.relic-body h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.relic-body > p:last-child {
  margin-top: 10px;
  color: rgba(242, 234, 217, 0.6);
  font-size: 12px;
  line-height: 1.95;
}

.relic-wide {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.relic-wide .relic-media {
  aspect-ratio: auto;
  min-height: 250px;
}

.relic-wide .relic-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 34px;
}

.relic-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px clamp(28px, 4vw, 50px);
  background: var(--red-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.relic-note::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(242, 234, 217, 0.12);
  border-radius: 50%;
}

.relic-note .seal-stamp {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(242, 234, 217, 0.5);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-3deg);
}

.relic-note .seal-stamp b {
  font-weight: 400;
}

.relic-note p {
  max-width: 540px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.relic-note small {
  margin-top: 17px;
  color: rgba(242, 234, 217, 0.48);
  font-size: 9px;
  letter-spacing: 0.11em;
}

/* ---------- Story ---------- */

.story {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.story-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.story-media img {
  object-position: center 38%;
  filter: saturate(0.5) brightness(0.36) contrast(1.08);
}

.story-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 13, 9, 0.96) 0%, rgba(18, 13, 9, 0.84) 45%, rgba(18, 13, 9, 0.56) 100%),
    linear-gradient(0deg, rgba(18, 13, 9, 0.85), transparent 50%);
}

.story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.78fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

.story-copy h2 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.story-copy h2 em {
  color: var(--gold-soft);
  font-style: normal;
}

.story-copy > p {
  max-width: 610px;
  margin-top: 24px;
  color: rgba(242, 234, 217, 0.62);
  font-size: 14px;
  line-height: 2.1;
}

.story-signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.24em;
}

.story-signature i {
  width: 46px;
  height: 1px;
  background: rgba(220, 193, 139, 0.5);
}

.story-figure {
  position: relative;
  aspect-ratio: 4 / 4.8;
  padding: 14px;
  border: 1px solid rgba(242, 234, 217, 0.22);
}

.story-figure picture {
  height: 100%;
  overflow: hidden;
}

.story-figure img {
  object-position: center 55%;
  filter: saturate(0.85) brightness(0.85);
  transition: transform 1.4s var(--ease);
}

.story-figure:hover img {
  transform: scale(1.035);
}

.story-figure figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  padding: 5px 10px;
  color: rgba(242, 234, 217, 0.78);
  background: rgba(18, 13, 9, 0.5);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
}

/* ---------- Timeline ---------- */

.timeline {
  background:
    radial-gradient(circle at 90% 15%, rgba(193, 155, 88, 0.08), transparent 28%),
    var(--paper);
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.timeline-head {
  position: sticky;
  top: 125px;
}

.timeline-head h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 1.15;
}

.timeline-head h2 em {
  color: var(--red);
  font-style: normal;
}

.timeline-head > p:not(.eyebrow) {
  max-width: 330px;
  margin-top: 26px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 2;
}

.timeline-era {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 46px;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.timeline-era i {
  width: 70px;
  height: 1px;
  background: var(--line-strong);
}

.timeline-list {
  position: relative;
  padding-left: 68px;
  --timeline-progress: 0%;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 38px;
  left: 22px;
  width: 1px;
  background: rgba(33, 25, 17, 0.15);
}

.timeline-list::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 22px;
  width: 1px;
  height: var(--timeline-progress);
  max-height: calc(100% - 46px);
  background: linear-gradient(180deg, var(--red), var(--gold));
  transform-origin: top;
  transition: height 0.2s linear;
}

.timeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  padding: 0 0 44px;
}

.timeline-list li:last-child {
  padding-bottom: 0;
}

.tl-year {
  padding-top: 2px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.tl-dot {
  position: absolute;
  top: 8px;
  left: -50px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(156, 47, 37, 0.55);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.timeline-list li.is-in .tl-dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(156, 47, 37, 0.08);
}

.tl-body h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.tl-body p {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.9;
}

.timeline-progress {
  display: none;
}

/* ---------- Gallery ---------- */

.gallery {
  background:
    radial-gradient(circle at 12% 82%, rgba(193, 155, 88, 0.1), transparent 26%),
    #17120e;
  color: var(--paper);
}

.gallery .section-heading h2 em {
  color: var(--gold-soft);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 54px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
}

.filter {
  position: relative;
  padding: 4px 0;
  color: rgba(242, 234, 217, 0.45);
  font-size: 11px;
  letter-spacing: 0.13em;
  transition: color 0.35s;
}

.filter sup {
  margin-left: 4px;
  color: rgba(242, 234, 217, 0.28);
  font-size: 8px;
}

.filter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -17px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.filter:hover,
.filter.is-active {
  color: var(--paper);
}

.filter.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 286px;
  gap: 16px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: var(--ink-3);
  border: 1px solid rgba(242, 234, 217, 0.1);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.gallery-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item.is-filtered {
  display: none;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  filter: saturate(0.78) brightness(0.82);
  transition: transform 1.2s var(--ease), filter 0.8s;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 5, 0.02) 34%, rgba(10, 7, 5, 0.86) 100%);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: saturate(0.95) brightness(0.9);
}

.gallery-info {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(6px);
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-cat {
  color: var(--gold-soft);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.gallery-info strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.gallery-info em {
  color: rgba(242, 234, 217, 0.54);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.gallery-plus {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(242, 234, 217, 0.35);
  color: rgba(242, 234, 217, 0.8);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}

.gallery-item:hover .gallery-plus {
  background: var(--paper);
  color: var(--ink);
  transform: rotate(90deg);
}

/* ---------- Guide ---------- */

.guide {
  background:
    radial-gradient(circle at 10% 20%, rgba(156, 47, 37, 0.05), transparent 28%),
    var(--paper-light);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-card {
  padding: 32px 28px 30px 0;
}

.guide-card + .guide-card {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.guide-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  color: var(--red);
}

.guide-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.guide-main {
  margin-top: 12px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: 0.06em;
}

.guide-main strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.guide-card > p:last-child {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.9;
}

.guide-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 86px);
  margin-top: 76px;
}

.route-head h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.route-head .eyebrow {
  margin-bottom: 14px;
}

.route-steps {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.route-steps li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.route-no {
  color: var(--red);
  font-family: var(--serif);
  font-size: 17px;
}

.route-steps h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.route-steps p {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.7;
}

.route-time {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.visit-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-card {
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(193, 155, 88, 0.24);
}

.map-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.map-head small {
  color: rgba(242, 234, 217, 0.32);
  font-size: 7px;
}

.map-card svg {
  width: 100%;
  height: auto;
  margin: 8px 0 12px;
}

.map-water {
  fill: rgba(77, 103, 87, 0.23);
  stroke: rgba(138, 167, 146, 0.35);
  stroke-width: 1;
}

.map-road {
  fill: none;
  stroke: rgba(193, 155, 88, 0.38);
  stroke-width: 2;
}

.map-road.thin {
  stroke: rgba(242, 234, 217, 0.18);
  stroke-width: 1;
}

.map-station {
  fill: var(--paper);
  stroke: var(--gold);
  stroke-width: 2;
}

.map-pin-ring {
  fill: none;
  stroke: rgba(193, 155, 88, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.map-pin {
  fill: var(--red-bright);
  stroke: var(--paper);
  stroke-width: 2;
}

.map-label {
  fill: rgba(242, 234, 217, 0.54);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.map-label.strong {
  fill: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.map-label.water {
  fill: rgba(168, 192, 173, 0.7);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.map-label.station {
  fill: rgba(242, 234, 217, 0.62);
  font-size: 10px;
}

.map-small {
  fill: rgba(242, 234, 217, 0.35);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.map-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.map-link {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.map-link span {
  transition: transform 0.35s var(--ease);
}

.map-link:hover span {
  transform: translate(3px, -2px);
}

.tips-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.tips-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.tips-card ul {
  margin-top: 16px;
}

.tips-card li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #51463b;
  font-size: 11px;
  line-height: 1.8;
}

.tips-card li span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 11px;
}

.phone-link {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.phone-link span {
  transition: transform 0.35s var(--ease);
}

.phone-link:hover span {
  transform: translate(3px, -2px);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 122px 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(220, 193, 139, 0.13), transparent 30%),
    linear-gradient(135deg, #7b211a 0%, #9c2f25 56%, #742018 100%);
  color: var(--paper);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(242, 234, 217, 0.14);
  pointer-events: none;
}

.cta-ornament {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(242, 234, 217, 0.055);
  font-family: var(--serif);
  font-size: clamp(240px, 38vw, 540px);
  line-height: 1;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta .eyebrow {
  color: rgba(242, 234, 217, 0.5);
}

.cta .eyebrow span,
.cta .eyebrow i {
  color: var(--gold-soft);
  background-color: rgba(242, 234, 217, 0.25);
}

.cta .eyebrow span {
  background: none;
}

.cta h2 {
  max-width: 1120px;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 1.23;
  letter-spacing: 0.02em;
}

.cta h2 em {
  color: var(--gold-soft);
  font-style: normal;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-paper:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-line {
  border-color: rgba(242, 234, 217, 0.4);
  color: var(--paper);
}

.btn-line:hover {
  background: rgba(242, 234, 217, 0.1);
  border-color: var(--paper);
}

.cta-small {
  margin-top: 36px;
  color: rgba(242, 234, 217, 0.5);
  font-size: 9px;
  letter-spacing: 0.18em;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 82px 0 0;
  background: #120e0a;
  color: var(--paper);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  color: rgba(242, 234, 217, 0.5);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.footer-nav a {
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--paper);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-light);
}

.footer-note {
  max-width: 670px;
  color: rgba(242, 234, 217, 0.42);
  font-size: 10px;
  line-height: 1.95;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(242, 234, 217, 0.3);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-align: right;
  white-space: nowrap;
}

.footer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.footer-sources span {
  color: var(--gold);
  letter-spacing: 0.16em;
}

.footer-sources a {
  color: rgba(242, 234, 217, 0.4);
  transition: color 0.3s;
}

.footer-sources a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 120px;
  color: rgba(242, 234, 217, 0.28);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.footer-bottom a {
  color: rgba(242, 234, 217, 0.48);
}

.footer-ghost {
  position: absolute;
  left: 50%;
  bottom: -0.28em;
  transform: translateX(-50%);
  color: rgba(242, 234, 217, 0.045);
  font-family: var(--serif);
  font-size: clamp(100px, 17vw, 300px);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 14, 10, 0.82);
  color: var(--paper);
  border: 1px solid rgba(242, 234, 217, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease);
  backdrop-filter: blur(8px);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top-track,
.to-top-ring {
  fill: none;
  stroke-width: 1.5;
}

.to-top-track {
  stroke: rgba(242, 234, 217, 0.12);
}

.to-top-ring {
  stroke: var(--gold);
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset 0.15s linear;
}

.to-top path {
  transform: rotate(90deg);
  transform-origin: 24px 24px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 86px;
  background: rgba(10, 7, 5, 0.96);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1180px, 92vw);
  max-height: 90vh;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
  padding: 10px;
  border: 1px solid rgba(242, 234, 217, 0.24);
}

.lightbox-image-wrap img {
  width: auto;
  height: auto;
  max-width: min(1080px, 82vw);
  max-height: 68vh;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 234, 217, 0.18);
}

.lightbox-copy > span {
  color: var(--gold-soft);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.lightbox-copy h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.lightbox-copy p {
  max-width: 620px;
  margin-top: 4px;
  color: rgba(242, 234, 217, 0.5);
  font-size: 11px;
  line-height: 1.8;
}

.lightbox-count {
  flex-shrink: 0;
  color: rgba(242, 234, 217, 0.4);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--paper);
  border: 1px solid rgba(242, 234, 217, 0.25);
  transition: background 0.35s, color 0.35s;
}

.lightbox-close {
  top: 28px;
  right: 28px;
  font-size: 25px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Low-quality image placeholders ---------- */

[data-lqip] { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #2a2119; }

[data-lqip="xiwang-stele"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABYPERMRDhYTEhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+Ljon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYn/wAARCAAbACQDASIAAhEBAxEB/8QAGQAAAwEBAQAAAAAAAAAAAAAAAAMEAgUB/8QAHxAAAQQDAQADAAAAAAAAAAAAAQACAxEEEiExEyJB/8QAGQEAAgMBAAAAAAAAAAAAAAAAAQIAAwQF/8QAGxEAAwEAAwEAAAAAAAAAAAAAAAECEQQSIRP/2gAMAwEAAhEDEQA/AER5PzF9lKh+k5cRxIw7MvBwrqiEekJEtHi3D1GWuZtuB1MEoJqittjAbVLwt1KnUvnkW2kLexjnWR1CXK6nkISG7wlw5wIxTBatblbGiPFy4SQOJgJv1WHHLzknagOIbkU+nj1Ij6OpLyTJ7+oehTx6U5EbzJbehCtgAMTeIS6aPtR//9k="); }

[data-lqip="zhaowang-stele"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABYPERMRDhYTEhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+Ljon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYn/wAARCAAbACQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAQFAgP/xAAlEAACAgEDAwQDAAAAAAAAAAABAgADMQQRIRITUQUUMkFCUmH/xAAWAQEBAQAAAAAAAAAAAAAAAAAAAgH/xAAWEQEBAQAAAAAAAAAAAAAAAAAAEQH/2gAMAwEAAhEDEQA/AO+kv3bPHiN+5AOJF9OWxbCGxtKJkKwydUCcTSW9Z2iggzOqkpmBR2hIxu1oPCmERLpoaO3Vsx58xrtA4YRT8BF7ndRwxENqkE/s3Umzc4kRL7f3Mf0Vjs4BYmGqvSD9Qml+MIS//9k="); }

[data-lqip="bodhisattva"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABYPERMRDhYTEhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+Ljon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYn/wAARCAAwACQDASIAAhEBAxEB/8QAGQAAAwEBAQAAAAAAAAAAAAAAAAMEAgEF/8QAHhAAAgMAAwEBAQAAAAAAAAAAAQIAAxEEEiExImH/xAAXAQADAQAAAAAAAAAAAAAAAAAAAQID/8QAGBEBAQEBAQAAAAAAAAAAAAAAAAERIQL/2gAMAwEAAhEDEQA/APKqX5NWIe8opq9Gib5CBDpgUQlDF2gkAS1QGPkxamsMhDqdKdXchLq6/wACECNqbuA2R3JRHGMc8ieAjtWCwj+RV2eK1UnUtVS1brbOYC8ctAwg/YNx2QgxeaPUcwj5CbU/mEpJ/GRxSeo9AmUW4sSwlnGUrX/THissDgmWtXnmt2Hz2dTjWsT2OCaPGtW7sbMAMpNqKPWh0ceaydCVMJU9tBbT9hL2pyP/2Q=="); }

[data-lqip="bronze-vase"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABYPERMRDhYTEhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+Ljon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYn/wAARCAAwACQDASIAAhEBAxEB/8QAGQAAAwADAAAAAAAAAAAAAAAAAAQFAQID/8QAIBAAAgICAgMBAQAAAAAAAAAAAQIAAwQREjEFEyEiYf/EABYBAQEBAAAAAAAAAAAAAAAAAAABA//EABcRAQEBAQAAAAAAAAAAAAAAAAABERL/2gAMAwEAAhEDEQA/AJNQ42xw0llDCcGr00oYdldSE29QhPRHydWQ+sTZrKbLSFI+xi2sCtQIRONf2EYZdGEKw6dGYtUHHIM3dXdAVmMiuyuleXUWkhPBqIuBYH+S1cPymhJ9bBioXuVbFYorEdCSVbKnXBvYdQnLJZ/c2uoS6YpYdfM8iPgjOTQLqiupvUgRdAaAiPkb7SvGnuY7ta5kGJgGu0MR1KDqCpBkrxd2T7St+9SwV3FSIl9BFp+Qlg1AnqEvRj//2Q=="); }

[data-lqip="porcelain-group"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABYPERMRDhYTEhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+Ljon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYn/wAARCAAbACQDASIAAhEBAxEB/8QAGQABAAMBAQAAAAAAAAAAAAAAAwAEBQEC/8QAIxAAAgICAQMFAQAAAAAAAAAAAQIAAwQREiEiMRMjMkFRkf/EABYBAQEBAAAAAAAAAAAAAAAAAAECAP/EABkRAQACAwAAAAAAAAAAAAAAAAABEQISIf/aAAwDAQACEQMRAD8A85KGpdspg67A5U6mzktXw7wNSqnFvGikiMrM40xbbrPV9tTqLjW3PaE4kTbFNK6ZlH8nSlYvBVQN/cq2AEbXiSLZaK3KmSGzawHJq5IdvuBjg0gluo/JzNYhBoyYpJq6wjip6uLkgAbXpFaxWAbUy8gkONGPaxGONGIot9Yss5cpJSR218jJAv/Z"); }

[data-lqip="hero-gate"] { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABYPERMRDhYTEhMZFxYaITckIR4eIUQwMyg3UEZUU09GTUxYY39sWF54X0xNbpZweIOHjpCOVmqcp5uKpn+Ljon/2wBDARcZGSEdIUEkJEGJW01biYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYn/wAARCAAbACQDASIAAhEBAxEB/8QAGgAAAgMBAQAAAAAAAAAAAAAAAAQBAgUDBv/EACIQAAIDAAEEAgMAAAAAAAAAAAECAAMRBAUSEyEVMTJCU//EABkBAAMAAwAAAAAAAAAAAAAAAAECAwAEBf/EABwRAAMBAAIDAAAAAAAAAAAAAAABAhEDIRITMf/aAAwDAQACEQMRAD8AcRlsGqZcLMOjqNnH1DXs6/MP/Iy65uiXqG+daVxFG7EwSh36yVbqhLaaNMWt5zM2+L7kbfk9HmcRNnUrg5APqEUssDNvaBCIZhuU1IyAlRsm7w0p3MgjKKAg9RPqX6iTX06FUpjpFqDTeuqg9SOXUgoJVRonPgei2Ry4A1HRC1jBNpx2jzFhHeYTTemvu/AQjmlh/9k="); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  :root {
    --wrap: min(1280px, calc(100vw - 72px));
  }

  .site-header {
    padding: 0 34px;
  }

  .desktop-nav {
    gap: 20px;
    margin-right: 24px;
  }

  .hero-inner {
    width: min(800px, calc(100vw - 90px));
    margin-left: 5vw;
  }

  .hero-aside {
    display: none;
  }

  .split-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 40px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-card:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .guide-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  :root {
    --wrap: calc(100vw - 54px);
    --header-h: 74px;
  }

  .section {
    padding: 106px 0;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    width: calc(100vw - 54px);
    margin-left: 27px;
    margin-bottom: 7vh;
    padding-top: calc(var(--header-h) + 56px);
  }

  .hero-title {
    font-size: clamp(78px, 17vw, 140px);
  }

  .hero-frame {
    inset: 14px;
  }

  .hero-aside {
    display: none;
  }

  .scroll-cue {
    right: 27px;
    bottom: 24px;
  }

  .hero-meta {
    max-width: 540px;
    margin-top: 32px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .lede {
    justify-self: start;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 58px;
  }

  .intro-figure {
    max-width: 560px;
  }

  .image-shell {
    aspect-ratio: 4 / 3.6;
  }

  .intro-copy p {
    max-width: none;
  }

  .tomb-tabs {
    margin-top: 46px;
  }

  .tomb-panel {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }

  .tomb-figure {
    max-width: 680px;
    aspect-ratio: 4 / 3;
  }

  .tomb-content > p {
    max-width: none;
  }

  .axis-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 54px;
  }

  .axis-plan {
    max-width: 600px;
    margin-inline: auto;
  }

  .axis-panel > p {
    min-height: 0;
  }

  .relic-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .relic-tall {
    grid-row: auto;
  }

  .relic-tall .relic-media {
    aspect-ratio: 16 / 10;
  }

  .relic-wide {
    grid-template-columns: 1fr;
  }

  .relic-wide .relic-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .story-figure {
    max-width: 540px;
    aspect-ratio: 4 / 3.4;
  }

  .timeline-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .timeline-head {
    position: relative;
    top: auto;
  }

  .timeline-era {
    margin-top: 24px;
  }

  .timeline-list {
    padding-left: 56px;
  }

  .timeline-list li {
    grid-template-columns: 104px 1fr;
    gap: 20px;
  }

  .tl-dot {
    left: -39px;
  }

  .gallery-grid {
    grid-auto-rows: 250px;
  }

  .guide-lower {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .visit-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-main {
    flex-direction: column;
    gap: 18px;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-bottom {
    padding-bottom: 100px;
  }
}

@media (max-width: 680px) {
  :root {
    --wrap: calc(100vw - 36px);
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 82px 0;
  }

  .site-header {
    padding: 0 18px;
    height: 64px;
  }

  .site-header.is-scrolled {
    height: 58px;
  }

  .brand-seal {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media {
    inset: -4% 0;
  }

  .hero-media img {
    object-position: 50% center;
    filter: saturate(0.82) contrast(1.05) brightness(0.76);
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(14, 10, 7, 0.96) 0%, rgba(14, 10, 7, 0.62) 46%, rgba(14, 10, 7, 0.12) 100%),
      linear-gradient(90deg, rgba(14, 10, 7, 0.7), transparent 90%);
  }

  .hero-frame {
    inset: 9px;
  }

  .hero-inner {
    width: calc(100vw - 36px);
    margin-left: 18px;
    margin-bottom: 68px;
    padding-top: 120px;
  }

  .hero-kicker {
    gap: 9px;
    margin-bottom: 24px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .hero-kicker i {
    width: 20px;
  }

  .hero-title {
    gap: 0.02em;
    font-size: clamp(66px, 21vw, 104px);
  }

  .hero-en {
    margin-top: 14px;
    font-size: 7px;
    letter-spacing: 0.38em;
  }

  .hero-sub {
    margin-top: 25px;
    font-size: 20px;
    letter-spacing: 0.1em;
  }

  .hero-desc {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.95;
    color: rgba(242, 234, 217, 0.65);
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .btn {
    min-width: 138px;
    padding: 11px 15px;
    font-size: 10px;
    gap: 16px;
  }

  .hero-meta {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading h2 {
    font-size: clamp(36px, 10.4vw, 48px);
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .lede {
    font-size: 13px;
    line-height: 1.95;
  }

  .intro-figure {
    padding-left: 12px;
  }

  .intro-figure::before {
    top: 22px;
  }

  .intro-grid {
    margin-top: 42px;
    gap: 34px;
  }

  .intro-copy p {
    font-size: 14px;
    line-height: 2;
  }

  .dropcap::first-letter {
    font-size: 4em;
    margin-right: 9px;
  }

  .intro-figure figcaption {
    font-size: 9px;
  }

  .figure-note span {
    font-size: 12px;
  }

  .figure-note small {
    font-size: 7px;
  }

  .inline-quote {
    margin-top: 27px;
    padding-left: 18px;
  }

  .inline-quote p {
    font-size: 19px;
  }

  .stat-grid {
    margin-top: 30px;
  }

  .stat {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .stat:nth-child(even) {
    padding-left: 18px;
  }

  .stat strong {
    font-size: 34px;
  }

  .stat p {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .marquee {
    padding: 11px 0;
  }

  .marquee-track span {
    font-size: 11px;
  }

  .tomb-tabs {
    gap: 28px;
    margin-top: 36px;
  }

  .tomb-tab strong {
    font-size: 23px;
  }

  .tomb-tab small {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .tomb-figure {
    aspect-ratio: 4 / 3.4;
    padding: 9px;
  }

  .tomb-figure figcaption {
    right: 18px;
    bottom: 16px;
    left: 18px;
    font-size: 8px;
  }

  .tomb-content h3 {
    display: block;
    font-size: 43px;
  }

  .tomb-content h3 span {
    display: inline-block;
    margin-top: 8px;
  }

  .tomb-content .tomb-lead {
    font-size: 15px;
  }

  .tomb-content > p {
    font-size: 13px;
    line-height: 2;
  }

  .fact-list {
    margin-top: 22px;
  }

  .fact-list > div {
    padding: 11px 12px 11px 0;
  }

  .fact-list > div:nth-child(even) {
    padding-left: 12px;
  }

  .fact-list dd {
    font-size: 12px;
  }

  .tomb-quote p {
    font-size: 16px;
  }

  .tomb-disclaimer {
    margin-top: 36px;
    font-size: 9px;
  }

  .axis-plan {
    padding: 16px 12px 6px;
  }

  .plan-title {
    padding-bottom: 12px;
  }

  .plan-title span {
    font-size: 15px;
  }

  .plan-title small {
    font-size: 7px;
  }

  .axis-plan svg {
    margin-top: 2px;
  }

  .plan-node text {
    font-size: 20px;
  }

  .plan-courtyard .plan-label {
    font-size: 16px;
  }

  .plan-legend text {
    font-size: 14px;
  }

  .plan-node circle {
    r: 6;
  }

  .plan-title span {
    font-size: 17px;
  }

  .axis-panel h3 {
    font-size: 43px;
  }

  .axis-panel > p {
    margin-top: 16px;
    font-size: 13px;
    line-height: 2;
  }

  .axis-meta {
    margin-top: 20px;
  }

  .axis-hint {
    margin-top: 32px;
  }

  .relics .section-heading h2 {
    font-size: 38px;
  }

  .relic-grid {
    gap: 16px;
  }

  .relic-tall .relic-media,
  .relic-mid .relic-media,
  .relic-wide .relic-media {
    aspect-ratio: 4 / 3;
  }

  .relic-body {
    padding: 22px;
  }

  .relic-body h3 {
    font-size: 27px;
  }

  .relic-wide {
    display: flex;
  }

  .relic-wide .relic-body {
    padding: 22px;
  }

  .relic-note {
    padding: 28px 24px;
  }

  .relic-note p {
    font-size: 20px;
  }

  .story {
    min-height: 0;
    padding: 88px 0;
  }

  .story-inner {
    gap: 34px;
  }

  .story-copy h2 {
    font-size: 42px;
  }

  .story-copy > p {
    font-size: 13px;
    line-height: 2;
  }

  .story-figure {
    aspect-ratio: 4 / 3.8;
    padding: 9px;
  }

  .story-figure figcaption {
    right: 18px;
    bottom: 15px;
    font-size: 10px;
  }

  .timeline-head h2 {
    font-size: 44px;
  }

  .timeline-head > p:not(.eyebrow) {
    margin-top: 18px;
  }

  .timeline-list {
    padding-left: 40px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-bottom: 34px;
  }

  .timeline-list::before,
  .timeline-list::after {
    left: 8px;
  }

  .tl-dot {
    left: -36px;
    top: 9px;
  }

  .tl-year {
    font-size: 20px;
    color: var(--red);
  }

  .tl-body h3 {
    font-size: 19px;
  }

  .tl-body p {
    font-size: 11px;
  }

  .gallery-filters {
    gap: 8px 22px;
    margin-top: 36px;
  }

  .filter {
    font-size: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 188px;
    gap: 10px;
    margin-top: 26px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:nth-child(6) {
    grid-column: span 2;
  }

  .gallery-info {
    right: 14px;
    bottom: 13px;
    left: 14px;
  }

  .gallery-info strong {
    font-size: 18px;
  }

  .gallery-info em {
    font-size: 8px;
  }

  .gallery-plus {
    top: 10px;
    right: 10px;
    width: 27px;
    height: 27px;
    font-size: 17px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .guide-card,
  .guide-card + .guide-card,
  .guide-card:nth-child(3),
  .guide-card:nth-child(4) {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .guide-card:first-child {
    border-top: 0;
  }

  .guide-icon {
    margin-bottom: 14px;
  }

  .guide-lower {
    margin-top: 48px;
    gap: 36px;
  }

  .route-head h3 {
    font-size: 26px;
  }

  .route-steps li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .route-time {
    grid-column: 2;
    font-size: 8px;
  }

  .visit-side {
    display: flex;
  }

  .map-card {
    padding: 16px;
  }

  .tips-card {
    padding: 22px;
  }

  .map-card svg {
    margin-bottom: 8px;
  }

  .map-label {
    font-size: 16px;
  }

  .map-label.strong {
    font-size: 23px;
  }

  .map-label.water {
    font-size: 19px;
  }

  .map-label.station {
    font-size: 14px;
  }

  .map-small {
    font-size: 12px;
  }

  .cta {
    padding: 82px 0;
  }

  .cta::before {
    inset: 10px;
  }

  .cta h2 {
    font-size: 38px;
  }

  .cta-lead {
    display: block;
  }

  .cta-actions {
    margin-top: 28px;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .cta-small {
    line-height: 1.9;
    letter-spacing: 0.1em;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-nav {
    gap: 18px;
  }

  .footer-main {
    padding: 24px 0;
  }

  .footer-sources {
    gap: 8px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 92px;
  }

  .footer-ghost {
    font-size: 26vw;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .lightbox {
    padding: 62px 14px 24px;
  }

  .lightbox-image-wrap img {
    max-width: 92vw;
    max-height: 62vh;
  }

  .lightbox figcaption {
    gap: 16px;
  }

  .lightbox-copy h3 {
    font-size: 20px;
  }

  .lightbox-copy p {
    font-size: 10px;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox-nav.prev { left: 14px; }
  .lightbox-nav.next { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .dust {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: scale(1.055);
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .to-top,
  .loader,
  .grain,
  .dust,
  .hero-actions,
  .hero-aside,
  .scroll-cue,
  .gallery-filters,
  .lightbox,
  .cta-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: 520px;
  }

  .section {
    padding: 40px 0;
    break-inside: avoid;
  }

  .tombs,
  .gallery,
  .story,
  .cta,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
}
