:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #eceae4;
  --text: #101012;
  --muted: #73737b;
  --line: #e0ded7;
  --accent: #1f4bff;
  --accent-soft: rgba(31, 75, 255, 0.08);
  --radius: 16px;
  --gap: clamp(16px, 1.9vw, 26px);
  --maxw: 1560px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Fraunces", "Noto Serif SC", "Songti SC", "STSong",
    "Noto Serif CJK SC", "SimSun", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #151517;
    --surface-2: #1e1e21;
    --text: #f1f1f3;
    --muted: #9b9ba4;
    --line: #26262b;
    --accent: #8ba3ff;
    --accent-soft: rgba(139, 163, 255, 0.12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 画册感：大标题用衬线，正文和网格标题用无衬线 */
.intro h1,
.photo-header h1,
.upload-header h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}

.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 24px clamp(20px, 4vw, 56px) 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 5px;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
}

.site-main {
  flex: 1;
  width: min(100% - clamp(36px, 7vw, 112px), var(--maxw));
  margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) 0 52px;
}

/* ---------------------------------------------------------------- intro */
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.intro h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}


.intro--hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(190px, 15vw, 235px);
  margin: 0 0 clamp(24px, 3vw, 38px);
  padding: clamp(32px, 4vw, 50px) clamp(40px, 6.5vw, 100px) clamp(28px, 3.2vw, 42px);
  border: 1px solid color-mix(in srgb, #a98456 22%, var(--line));
  border-radius: 4px;
  background:
    radial-gradient(ellipse 50% 120% at 92% -10%, color-mix(in srgb, #c9945f 16%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, #7b5a3a 5%, transparent) 31px 32px),
    color-mix(in srgb, #f5efe4 78%, var(--surface));
  box-shadow: 0 14px 36px rgba(70, 55, 35, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.intro--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.hero-copy { position: relative; z-index: 2; max-width: 72%; }

.hero-kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
}

.intro--hero h1 {
  margin: 0;
  color: var(--text);
  text-shadow: none;
}

.intro--hero p {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  letter-spacing: 0.02em;
  text-shadow: none;
  backdrop-filter: none;
}

.hero-meta {
  position: absolute;
  top: clamp(24px, 3vw, 38px);
  right: clamp(28px, 5vw, 76px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-align: right;
}

.hero-meta span:first-child {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.hero-volume {
  position: absolute;
  right: 4%;
  bottom: -0.16em;
  z-index: 0;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(130px, 17vw, 220px);
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
}

.intro--cover {
  min-height: clamp(280px, 27vw, 360px);
  padding: clamp(24px, 2.8vw, 38px) clamp(32px, 5vw, 76px) clamp(26px, 3vw, 40px);
  border: 0;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(6, 9, 14, 0.78) 0%, rgba(6, 9, 14, 0.3) 56%, rgba(6, 9, 14, 0.04) 100%),
    linear-gradient(0deg, rgba(6, 9, 14, 0.84) 0%, rgba(6, 9, 14, 0.2) 46%, rgba(6, 9, 14, 0) 74%),
    var(--cover-image) center 46% / cover no-repeat;
  box-shadow: none;
}

.intro--cover::after { display: none; }

.intro--cover .hero-copy { max-width: 88%; }


.intro--cover h1 {
  color: #fffdf8;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 0.98;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.4);
}

.intro--cover p {
  color: rgba(255, 252, 244, 0.78);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.intro--cover .hero-kicker { color: rgba(255, 252, 244, 0.7); }

.intro--cover .hero-meta {
  top: clamp(22px, 2.8vw, 36px);
  right: clamp(28px, 4.6vw, 72px);
  color: rgba(255, 252, 244, 0.62);
}

.intro--cover .hero-meta span:first-child { color: #fffdf8; }
.intro--cover .hero-volume { display: none; }

.cover-caption {
  position: absolute;
  right: clamp(28px, 4.6vw, 72px);
  bottom: clamp(28px, 3.6vw, 48px);
  z-index: 2;
  color: rgba(255, 252, 244, 0.8);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  text-align: right;
}

.cover-caption span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 252, 244, 0.48);
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
}

.exhibition-intro {
  max-width: 720px;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.9;
  text-align: center;
}

.exhibition-intro-label {
  display: inline;
  margin-right: 8px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.exhibition-intro-label::after { content: "—"; margin-left: 8px; }

.exhibition-intro-text { display: inline; }

/* ---------------------------------------------------------------- exhibition rail */
.exhibit-rail {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: max(18px, calc((100vw - 1300px) / 2 - 46px));
  display: flex;
  gap: 10px;
  transform: translateY(-50%);
}

.exhibit-rail-track {
  position: relative;
  display: block;
  width: 1px;
  height: 176px;
  margin-top: 3px;
  background: var(--line);
}

.exhibit-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
}

.exhibit-rail-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exhibit-rail-items a {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.exhibit-rail-items a:hover { color: var(--accent); }
.exhibit-rail-items a.is-active { color: var(--text); transform: translateX(2px); }

[data-exhibit] { scroll-margin-top: 28px; }

@media (max-width: 1279px) {
  .exhibit-rail { display: none; }
}

/* ---------------------------------------------------------------- exhibition canvas */
body.page-exhibitions .site-main {
  width: min(100% - clamp(36px, 7vw, 112px), 1300px);
}

/* ---------------------------------------------------------------- exhibition lead */
.exhibition-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1300px;
  margin: 0 auto clamp(38px, 5vw, 64px);
  color: var(--text);
}

.lead-media {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-2);
}

.lead-media img {
  display: block;
  width: 100%;
  height: clamp(360px, 54vh, 600px);
  object-fit: cover;
  object-position: center 46%;
}

.lead-index {
  display: block;
  color: var(--accent);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.lead-caption { padding-bottom: 0; }

.lead-caption h2 {
  margin: 12px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.lead-caption p { margin: 0; color: var(--muted); font-size: 0.75rem; }
.lead-caption .lead-exif {
  margin-top: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.54rem;
  letter-spacing: 0.01em;
}

.lead-media img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.exhibition-lead:hover .lead-media img { transform: scale(1.025); }


/* ---------------------------------------------------------------- exhibition more */
.exhibition-more {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto clamp(20px, 2.4vw, 30px);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
}

.exhibition-more span:first-child {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- exhibition cards */
.masonry--exhibition .card {
  transition:
    opacity 0.32s ease,
    filter 0.32s ease,
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.masonry--exhibition .card-media {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.35s ease;
}

.card-exif {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 30px 13px 11px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 8, 0.76));
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.masonry--exhibition .card:hover .card-exif,
.masonry--exhibition .card:focus-visible .card-exif {
  opacity: 1;
  transform: translateY(0);
}

.masonry--exhibition .card:hover {
  z-index: 5;
  transform: translateY(-5px);
}

.masonry--exhibition .card:hover .card-media {
  box-shadow:
    0 20px 48px rgba(16, 24, 40, 0.2),
    0 0 42px color-mix(in srgb, var(--bg, transparent) 20%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.masonry--exhibition .card:hover .card-media img {
  transform: scale(1.035);
}

@media (hover: hover) and (pointer: fine) {
  .masonry--exhibition:has(.card:hover) .card:not(:hover) {
    opacity: 0.42;
    filter: saturate(0.72);
  }
}

/* ---------------------------------------------------------------- masonry */
.masonry {
  columns: 3 340px;
  column-gap: var(--gap);
}

/* JS 接管后切到绝对定位，列高由脚本按图片比例计算，避免长图把三列拉得高低不齐 */
.masonry.is-masonry {
  columns: auto;
  column-gap: 0;
  position: relative;
}

.masonry.is-masonry > .card {
  position: absolute;
  margin: 0;
}

.card {
  display: block;
  break-inside: avoid;
  margin: 0 0 calc(var(--gap) + 4px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover { transform: translateY(-5px); }

.card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.card:hover .card-media img { transform: scale(1.02); }

.card-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px 0;
}

.card-index {
  margin-right: 8px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.card:hover .card-title { color: var(--accent); }

.card-body time {
  flex: none;
  color: var(--muted);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- pager */
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.pager a { color: var(--muted); transition: color 0.2s ease; }
.pager a:hover { color: var(--accent); }
.pager a:last-child { text-align: right; }
.pager-count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- detail */
.photo--portrait {
  grid-template-columns: auto minmax(300px, 1fr);
}

.photo--portrait .stage {
  justify-content: flex-start;
  width: auto;
}

.photo--portrait .stage img {
  max-width: min(36vw, 520px);
  max-height: min(70vh, 720px);
}

.photo {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.8fr);
  gap: clamp(26px, 3.4vw, 48px);
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}

.photo-header {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 0 auto clamp(16px, 2vw, 24px);
  text-align: center;
}

.photo-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.photo-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.stage {
  grid-column: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

.stage a { display: flex; justify-content: center; width: 100%; }

.stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(64vh, 680px);
  height: auto;
  border-radius: 16px;
}

.photo-body {
  grid-column: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.4vw, 42px);
  max-width: none;
  margin: 0;
  padding-top: 4px;
}

.description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.photo-body .download { margin: 0; }

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.download a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.download a:hover { background: var(--accent); color: #fff; }

.exif {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  align-self: start;
  margin: 0;
}

.exif div { padding: 11px 0; border-top: 1px solid var(--line); }
.exif div:nth-child(-n + 2) { border-top: 0; padding-top: 0; }

.exif dt {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.exif dd {
  margin: 3px 0 0;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.photo-nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: none;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.photo-nav a { display: flex; flex-direction: column; gap: 5px; }
.photo-nav a:hover strong { color: var(--accent); }
.photo-nav .next { text-align: right; align-items: flex-end; }

.photo-nav--single { grid-template-columns: 1fr; justify-items: center; }
.photo-nav--single > span:empty { display: none; }
.photo-nav--single a,
.photo-nav--single .next { text-align: center; align-items: center; }
.photo-nav span { color: var(--muted); font-size: 0.72rem; }
.photo-nav strong { font-weight: 500; font-size: 0.92rem; transition: color 0.2s ease; }

/* ---------------------------------------------------------------- upload */
.upload { max-width: 820px; margin: 0 auto; }

.upload-header { margin-bottom: 26px; text-align: center; }

.upload-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }

.dropzone {
  position: relative;
  display: block;
  padding: clamp(40px, 7vw, 68px) 24px;
  border: 1.5px dashed var(--line);
  border-radius: 22px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--surface);
}

.dropzone.is-dragover { background: var(--accent-soft); }

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.dropzone-inner::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.dropzone-inner strong { font-size: 1rem; font-weight: 500; }
.dropzone-inner span { color: var(--muted); font-size: 0.82rem; }

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.file-list:empty { display: none; }

.file-list li {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.file-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-total {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.file-total.is-over { color: #d64545; }

.file-list .name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 7px 6px;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.location-fields {
  margin: 20px 0 0;
  padding: 16px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.location-fields legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.location-fields legend span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.place-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.location-fields .ts-wrapper { width: 100%; }

.location-fields .ts-control {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  box-shadow: none;
}

.location-fields .ts-wrapper.focus .ts-control {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.location-fields .ts-dropdown {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
}

.location-fields .ts-dropdown .optgroup-header {
  padding: 7px 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.location-fields .ts-dropdown .option { padding: 8px 12px; }
.location-fields .ts-dropdown .option.active { background: var(--accent-soft); color: var(--text); }

.place-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.place-option small { color: var(--muted); font-size: 0.68rem; }

.location-fields .ts-wrapper .clear-button { color: var(--muted); }

.location-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.time-fields .time-field { max-width: 300px; }

.text-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.86rem;
  cursor: pointer;
}

.check-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.btn:hover { background: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: progress; }

.recent { margin-top: 58px; }

.recent h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
}

.recent-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.recent-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------- messages */
.messages {
  width: min(100% - clamp(36px, 7vw, 112px), var(--maxw));
  margin: 18px auto 0;
}

.message {
  margin: 0 0 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.84rem;
}

.message-success { border-color: color-mix(in srgb, #22a06b 45%, var(--line)); }
.message-error { border-color: color-mix(in srgb, #d64545 45%, var(--line)); }

.now-strip {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  width: min(100% - clamp(36px, 7vw, 112px), var(--maxw));
  margin: clamp(12px, 2vw, 22px) auto clamp(40px, 4.4vw, 54px);
  padding: 22px 0 26px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.now-strip::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.now-strip > * { position: relative; z-index: 1; }

.now-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}
.now-label span:first-child { color: var(--accent); }

.now-story {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  min-width: 0;
  justify-self: stretch;
  width: 100%;
}

.now-text {
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(420px, 100%);
  min-width: 0;
}

.now-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.05;
}
.now-copy p { margin: 5px 0 0; color: var(--muted); font-size: 0.65rem; letter-spacing: 0.03em; }

.now-desc {
  max-width: none;
  margin: 9px 0 0;
  padding-top: 9px;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  font-style: italic;
  line-height: 1.65;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.now-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 38px;
  min-height: 92px;
  flex: 0 0 auto;
}

.now-bridge::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}

.now-bridge i {
  position: relative;
  padding: 7px 0;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.46rem;
  font-style: normal;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.now-thumbs {
  display: flex;
  flex: 1 1 0;
  gap: 6px;
  align-items: center;
  min-width: 0;
  max-width: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.now-thumbs::-webkit-scrollbar { display: none; }

.now-thumb { display: block; flex: 0 0 auto; width: 62px; height: 52px; overflow: hidden; border-radius: 3px; }
.now-thumb--lead { width: 128px; height: 96px; }

.now-thumbs .now-thumb:not(.now-thumb--lead) {
  flex: 1 1 0;
  width: auto;
  min-width: 46px;
  max-width: 62px;
  height: 52px;
}
.now-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.now-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  color: var(--text);
  font-size: 0.68rem;
  white-space: nowrap;
}
.now-link span { display: inline-block; transition: transform 0.2s ease; }
.now-link:hover span { transform: translateX(4px); }

@media (max-width: 1280px) {
  .now-text { flex-basis: 320px; }
  .now-thumb { width: 50px; height: 42px; }
  .now-thumb--lead { width: 110px; height: 84px; }
}

@media (max-width: 1100px) {
  .now-thumb:not(.now-thumb--lead) { display: none; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - clamp(36px, 7vw, 112px), var(--maxw));
  margin: 0 auto;
  padding: 20px 0 24px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  text-align: left;
}

.site-footer--art::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  bottom: -8px;
  z-index: -1;
  width: 46%;
  background: url("/static/images/footer-contours-light.svg") right center / contain no-repeat;
  opacity: 0.62;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}

.footer-copy { position: relative; z-index: 1; color: var(--muted); }

.footer-links { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.site-footer a { color: var(--text); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin: 0 0 10px -10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.back-link:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* ---------------------------------------------------------------- world map */
.map-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(220px, 280px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3.4vw, 48px);
  max-width: 900px;
  margin: 0 auto clamp(24px, 3.2vw, 40px);
}

.map-section::before {
  content: "";
  position: absolute;
  inset: -18px -26px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(ellipse at 50% 54%, color-mix(in srgb, #efe2ca 42%, transparent), transparent 68%),
    repeating-linear-gradient(0deg, transparent 0 43px, color-mix(in srgb, #8a6a4a 5%, transparent) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 43px, color-mix(in srgb, #8a6a4a 5%, transparent) 43px 44px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.map-visual { grid-column: 1; min-width: 0; }


.world-map {
  position: relative;
  width: 100%;
  height: clamp(380px, 54vh, 560px);
  overflow: hidden;
  background: transparent;
  z-index: 0;
}

.map-aside { grid-column: 2; max-width: 280px; }

.map-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-lead {
  margin: 0 0 26px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.map-stats {
  display: flex;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.map-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}

.map-stats span { color: var(--muted); font-size: 0.7rem; }

.world-map canvas { display: block; background: var(--bg); }

.scene-tooltip:empty { display: none !important; }

.scene-tooltip {
  padding: 0 !important;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

.globe-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.globe-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
}

.globe-lines circle { fill: var(--accent); }

.globe-photo-rail, .globe-lines, .cover-caption { display: none; }

.globe-hover-line {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.globe-hover-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.globe-hover-line.is-visible path { opacity: 0.72; }

.globe-hover-line circle {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.globe-hover-card {
  position: absolute;
  z-index: 6;
  display: flex;
  width: 214px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(20, 24, 32, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(8px) scale(0.94);
  transition:
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.globe-hover-card.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.globe-hover-card img {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 2px;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.globe-hover-card.is-visible img { transform: scale(1); }

.globe-hover-card span { min-width: 0; }

.globe-hover-card strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.globe-hover-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.globe-flag {
  display: flex;
  width: 34px;
  height: 24px;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20, 24, 32, 0.02);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.globe-flag:hover {
  z-index: 4;
  box-shadow: 0 6px 16px rgba(20, 24, 32, 0.22);
  transform: translate(-50%, -50%) scale(1.16);
}

.globe-flag img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  object-fit: cover;
}

.globe-photo-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.1);
  transform: rotate(-1deg);
}

.globe-photo-card:nth-child(even) { transform: rotate(1deg); }

.globe-photo-card img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 4px;
  object-fit: cover;
}

.globe-photo-card span {
  font-size: 0.73rem;
  line-height: 1.35;
}

.globe-photo-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
}

.globe-tip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.globe-tip strong { font-weight: 500; }
.globe-tip span { color: var(--muted); font-size: 0.7rem; }

.map-instrument {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.instrument-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
}

.instrument-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.instrument-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: instrumentPulse 2.4s ease-out infinite;
}

@keyframes instrumentPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-soft); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

.instrument-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.instrument-reticle {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.instrument-reticle::before,
.instrument-reticle::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.instrument-reticle::before {
  top: 50%;
  left: 7px;
  right: 7px;
  height: 1px;
}

.instrument-reticle::after {
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
}

.instrument-reticle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.instrument-read {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  width: 100%;
  margin: 0;
}

.instrument-read div:last-child { grid-column: 1 / -1; }

.instrument-read dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
}

.instrument-read dd {
  margin: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: -0.02em;
}

.instrument-actions {
  display: flex;
  gap: 16px;
  margin-top: 13px;
}

.instrument-actions button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
}

.instrument-actions button:hover { color: var(--accent); border-color: var(--accent); }

.map-credit {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
}

.map-error {
  display: grid;
  height: 100%;
  margin: 0;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- exhibitions */
.intro--plain { display: block; }
.intro--plain p { margin-top: 10px; }

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.exhibition-card { display: block; min-width: 0; }

.exhibition-cover {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
}

.exhibition-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.exhibition-card:hover .exhibition-cover img { transform: scale(1.02); }

.exhibition-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 2px 0;
}

.exhibition-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exhibition-meta { color: var(--muted); font-size: 0.78rem; }

.exhibition-header {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.exhibition-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.exhibition-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.exhibition-header .exhibition-count { margin-top: 8px; font-size: 0.78rem; }

/* ---------------------------------------------------------------- timeline */
body.page-timeline .site-main {
  width: min(100% - clamp(36px, 7vw, 112px), 1300px);
}

.timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
}

.timeline-year { margin-bottom: 38px; }

.timeline-year h2 {
  position: sticky;
  z-index: 4;
  top: 0;
  display: inline-block;
  margin: 0 0 10px -28px;
  padding: 6px 14px 6px 0;
  background: var(--bg);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline-month {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.timeline-month::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -33px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-month:hover::before,
.timeline-month.is-current::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline-month.is-current h3 { color: var(--text); }

.timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 2px;
  height: var(--timeline-progress, 0%);
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 32%, transparent);
  opacity: 0.9;
}

.timeline-anim .timeline-year h2 {
  opacity: 0;
  transition: opacity 0.55s ease var(--timeline-delay, 0ms);
}

.timeline-anim .timeline-year.is-visible h2 { opacity: 1; }

.timeline-anim .timeline-month {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease var(--timeline-delay, 0ms),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--timeline-delay, 0ms);
}

.timeline-anim .timeline-month.is-visible {
  opacity: 1;
  transform: none;
}

.timeline-anim .timeline-grid a {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.55s ease calc(var(--timeline-delay, 0ms) + var(--timeline-card-delay, 0ms)),
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--timeline-delay, 0ms) + var(--timeline-card-delay, 0ms));
}

.timeline-anim .timeline-month.is-visible .timeline-grid a {
  opacity: 1;
  transform: none;
}

.timeline-month h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.timeline-month h3 span { display: block; margin-top: 2px; font-size: 0.72rem; }

.timeline-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.timeline-grid a {
  position: relative;
  display: block;
  flex: 0 1 108px;
  max-width: 168px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}

.timeline-grid--sparse a {
  flex-basis: 180px;
  max-width: 280px;
}

.timeline-grid--one a,
.timeline-grid--two a {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  flex: 0 1 auto;
}

.timeline-grid--one a { max-width: 320px; }
.timeline-grid--two a { max-width: 280px; }

.timeline-grid--one a,
.timeline-grid--two a { background: transparent; }

.timeline-grid--one a img,
.timeline-grid--two a img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.timeline-grid--one a img { max-height: 260px; }
.timeline-grid--two a img { max-height: 220px; }

.timeline-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 26px 9px 8px;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 12, 0.76));
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.timeline-grid a:hover .timeline-cap,
.timeline-grid a:focus-visible .timeline-cap { opacity: 1; }

.timeline-title {
  display: block;
  overflow: hidden;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-cap time {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.56rem;
}

.timeline-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.timeline-anim .timeline-grid img {
  transform: translateY(var(--timeline-shift, 0px)) scale(1.035);
  transition: transform 0.2s linear;
}

.timeline-grid a:hover img {
  transform: translateY(var(--timeline-shift, 0px)) scale(1.075);
  filter: brightness(1.03);
}

.empty {
  padding: 90px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------------- responsive */
/* ---------------------------------------------------------------- layout previews */
.map-index { display: none; }

.layout-index .map-index,
.layout-spread .map-index {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
  min-width: 0;
}

.index-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
}

.index-list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.index-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: var(--text);
  font-size: 0.74rem;
  text-decoration: none;
}

.index-item img {
  width: 24px;
  height: 17px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.index-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-item em {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-style: normal;
}

.index-item:hover { color: var(--accent); }
.index-item:hover em { color: var(--accent); }

.layout-index .map-section {
  grid-template-columns: 200px minmax(0, 560px) 280px;
  max-width: 1120px;
}

.layout-index .map-index { grid-column: 1; }
.layout-index .map-visual { grid-column: 2; }
.layout-index .map-aside { grid-column: 3; }

.layout-spread .site-main {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.layout-spread .intro--cover {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: max(clamp(32px, 5vw, 76px), calc((100vw - 1560px) / 2 + 76px));
  padding-left: max(clamp(32px, 5vw, 76px), calc((100vw - 1560px) / 2 + 76px));
  border-radius: 0;
}

.layout-spread .site-main {
  display: flex;
  flex-direction: column;
  padding-top: clamp(14px, 2vw, 26px);
  padding-bottom: 0;
}

.layout-spread .intro--cover,
.layout-spread .map-section,
.layout-spread .now-strip {
  flex: 0 0 auto;
}

.layout-spread .now-strip {
  margin-top: auto;
}

.layout-spread .intro--cover {
  min-height: clamp(230px, 27vh, 310px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.layout-spread .map-section {
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  max-width: 1560px;
  margin-bottom: clamp(10px, 1.4vw, 18px);
}

.layout-spread .map-index { grid-column: 1; }
.layout-spread .map-visual { grid-column: 2; }
.layout-spread .map-aside { grid-column: 3; }
.layout-spread .world-map { height: clamp(340px, 42vh, 500px); }


@media (max-width: 860px) {
  .photo { display: block; }
  .photo-body { display: block; }
  .stage { margin: 0 auto; }
  .stage img { max-height: 64vh; }
  .photo-nav { grid-template-columns: 1fr; }
  .photo-nav .next { text-align: left; align-items: flex-start; }
}

@media (max-width: 680px) {
  .exhibition-lead { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .lead-media img { height: 300px; }
  .lead-caption { padding: 0; }
  .lead-caption h2 { font-size: 2rem; }
  .masonry { columns: 1; }
  .site-header { padding: 16px 18px 0; }
  .site-nav { gap: 18px; }
  .intro { padding-bottom: 18px; }
  .timeline-month { grid-template-columns: 1fr; gap: 10px; }
  .timeline-grid--one a img { max-height: 240px; }
  .timeline-grid--two a img { max-height: 200px; }
  .timeline-cap { opacity: 1; padding: 22px 8px 7px; }
  .timeline-title { font-size: 0.62rem; }
  .timeline-cap time { font-size: 0.54rem; }
  .place-grid { grid-template-columns: 1fr; }
  .param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta { display: none; }
  .hero-volume { right: 3%; font-size: 140px; opacity: 0.04; }
  .intro--cover, .layout-spread .intro--cover { min-height: 300px; padding: 24px 24px 28px; }
  .intro--cover h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .cover-caption { display: none; }
  .hero-copy { max-width: 100%; }
  .now-strip { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .now-label { grid-column: 1; }
  .now-story { flex-wrap: wrap; }
  .now-text { flex: 1 1 100%; width: auto; max-width: none; }
  .now-bridge, .now-thumbs { display: none; }
  .now-desc { -webkit-line-clamp: 2; }
  .now-link { justify-self: start; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer--art::after { width: 72%; opacity: 0.5; }
  .map-section { grid-template-columns: 1fr; gap: 4px; max-width: 560px; }
  .map-visual { grid-column: 1; }
  .map-aside { grid-column: 1; max-width: none; text-align: center; }
  .world-map { height: 380px; }
  .map-lead br { display: none; }
  .map-stats { justify-content: center; }
  .exif { grid-template-columns: 1fr; }
  .exif div:nth-child(-n + 2) { border-top: 1px solid var(--line); padding-top: 11px; }
  .exif div:first-child { border-top: 0; padding-top: 0; }
}


/* ---------------------------------------------------------------- motion layer */
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn { from { opacity: 0; } }
::view-transition-old(root) { animation: vtFadeOut 0.22s ease both; }
::view-transition-new(root) { animation: vtFadeIn 0.32s ease both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes coverIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes globeIn {
  from { opacity: 0; transform: scale(0.965); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes quietFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.layout-spread .intro--cover {
  animation: coverIn 0.9s ease both;
}

.layout-spread .hero-copy > * {
  animation: riseIn 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.layout-spread .hero-copy > :nth-child(1) { animation-delay: 0.08s; }
.layout-spread .hero-copy > :nth-child(2) { animation-delay: 0.16s; }
.layout-spread .hero-copy > :nth-child(3) { animation-delay: 0.24s; }

.layout-spread .hero-meta { animation: quietFade 0.8s 0.3s ease both; }
.layout-spread .map-index { animation: riseIn 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.layout-spread .map-visual { animation: globeIn 1.1s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: 50% 50%; }
.layout-spread .map-aside { animation: riseIn 0.85s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.site-footer { animation: quietFade 0.8s 0.5s ease both; }

/* 指针在封面上移动时的一层很淡的聚光，不做鼠标跟随光标 */
.intro--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    440px circle at var(--mx, 50%) var(--my, 38%),
    rgba(255, 252, 244, 0.11),
    transparent 64%
  );
  mix-blend-mode: soft-light;
}

.index-item { transition: transform 0.2s ease, color 0.2s ease; }
.index-item:hover { transform: translateX(4px); }

.instrument-actions button { transition: color 0.2s ease, border-color 0.2s ease; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a { transition: color 0.2s ease; }
  .city-tab { transition: transform 0.2s ease, background 0.2s ease; }
}


.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motion-ready .card.is-revealed {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
  transition-delay: 0ms;
}

.motion-ready .card.is-revealed:hover {
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal], .motion-ready .card.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------------------------------------------------------------- photo transition fallback */
.photo-transition-clone {
  position: fixed;
  z-index: 9999;
  display: block;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(8, 12, 20, 0.28);
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
}

/* ---------------------------------------------------------------- view transitions */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 0.01ms !important; }
}
